.page-new-design {
  &:has(.work-logs-input-panel) {
    background: var(--new-main-background-color);
    .main { background: var(--new-main-background-color); }
  }
  .work-logs-input-panel {
    > .panel-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 10px;
    }
    .work-logs-input-filters {
      display: flex;
      align-items: flex-end;
      gap: 16px;
      .form-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        label { width: auto; white-space: nowrap; }
        select { height: var(--control-height); min-height: var(--control-height); }
        .wl-month-picker {
          position: relative;
          display: inline-flex;
          width: 164px;
          height: var(--control-height);
          align-items: center;
          justify-content: space-between;
          box-sizing: border-box;
          padding: 0 10px 0 12px;
          border: 1px solid var(--color-input-border);
          border-radius: 8px;
          background: var(--white);
          color: #314159;
          font-size: 14px;
          white-space: nowrap;
          > svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
          &:focus-within { border-color: var(--color-focus); outline: var(--input-focus-outline); outline-offset: 0; }
          .wl-month-picker-toggle { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; &:hover { background: var(--slate-100); } > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; } }
          .wl-month-picker-popup { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 248px; box-sizing: border-box; padding: 12px; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--white); box-shadow: var(--new-shadow); }
          .wl-month-picker-popup[hidden] { display: none; }
          .wl-month-picker-year { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--slate-800); font-weight: 600; }
          .wl-month-picker-year > button { width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 20px; cursor: pointer; &:hover { background: var(--slate-100); } }
          .wl-month-picker-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
          .wl-month-picker-months > button { height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--slate-700); font: inherit; cursor: pointer; &:hover { background: var(--sky-50); } &.is-selected { background: var(--sky-100); color: var(--sky-700); font-weight: 600; } }
        }
      }
    }
    > .panel-header > .panel-actions { margin-left: auto; }
    .work-logs-input-table-wrap { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); box-shadow: var(--new-shadow); }
    .work-logs-input-table {
      width: 100%;
      min-width: 980px;
      margin-bottom: 0;
      thead > tr > th, tbody > tr > td { padding: 0 16px; text-align: left; }
      thead > tr > th { height: 34px; background: var(--slate-50); color: var(--slate-400); font-size: 11px; font-weight: 500; line-height: 13px; }
      tbody > tr > td { height: 61px; color: var(--slate-500); font-size: 14px; }
      thead > tr > th:first-child, tbody > tr:not(.wl-detail-row) > td:first-child { width: 112px; padding-right: 8px; }
      tbody > tr > td.wl-date {
        font-weight: 500;
        > .wl-date-content { display: inline-flex; align-items: center; gap: 6px; }
        > .wl-date-content > img { width: 14px; height: 14px; }
        > .wl-contract-note { display: block; color: var(--slate-500); font-size: 11px; }
        &.wl-date-saturday { color: var(--sky-600); }
        &.wl-date-holiday { color: #E11D48; }
      }
      tbody > tr.wl-main-row { cursor: pointer; }
      tbody > tr.wl-main-row > td { transition: background-color var(--transition-hover-duration) ease-out; }
      tbody > tr.wl-main-row:hover > td { background: var(--color-hover-background); }
      tbody > tr.wl-main-row.is-selected > td { background: var(--color-selected-background); }
      tbody > tr.wl-main-row.is-selected > td:first-child { box-shadow: inset var(--width-selected-left-line) 0 var(--color-selected-left-line); }
    }
    .wl-monthly-panel { margin-bottom: 10px; padding: 10px 16px 16px; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--white); box-shadow: var(--new-shadow); }
    .wl-monthly-panel > h2 { margin: 0 0 8px; color: var(--slate-500); font-size: 14px; font-weight: 500; line-height: 20px; }
    .wl-ai-comment.is-empty { color: var(--slate-400); }
    .primary-btn, .secondary-btn, .cancel-btn {
      height: var(--control-height);
      min-height: var(--control-height);
      font-size: 14px;
      line-height: 17px;
    }
    [hidden] { display: none !important; }
    .wl-detail-row {
      display: none;
      background-color: transparent;
      transition: background-color var(--dialog-backdrop-duration) ease, display var(--dialog-backdrop-duration) allow-discrete;
    }
    .wl-summary-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 59px;
      padding: 12px 16px;
      background: var(--slate-50);
      border-top: 1px solid var(--slate-200);
      border-radius: 0;
    }
    .wl-summary-content { display: grid; grid-template-columns: repeat(5, max-content); column-gap: 20px; row-gap: 6px; }
    .wl-summary-matrix, .wl-summary-strip { display: contents; }
    .wl-summary-box { display: inline-flex; gap: 6px; color: var(--slate-500); font-size: 14px; line-height: 14px; white-space: nowrap; }
    .wl-summary-value { color: var(--slate-800); }
    .wl-summary-spacer { display: block; }
    .wl-monthly-button { height: 28px; min-height: 28px; padding: 6px 12px; border: 1px solid var(--sky-200); border-radius: 8px; background: var(--sky-50); color: var(--sky-700); font-size: 14px; line-height: 14px; &:hover { background: #E0F2FE; } }
    .wl-monthly-modal { z-index: 3150; }
    .wl-monthly-dialog {
      display: flex;
      width: min(826px, calc(100vw - 48px));
      height: min(621px, calc(100vh - 48px));
      max-height: calc(100vh - 48px);
      flex-direction: column;
      overflow: hidden;
      border-radius: 16px;
      background: var(--white);
      box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
    }
    .wl-monthly-dialog-header, .wl-monthly-dialog-footer { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; }
    .wl-monthly-dialog-header { min-height: 57px; box-sizing: border-box; padding: 24px 32px 16px; }
    .wl-monthly-dialog-header h2 { margin: 0; color: var(--slate-800); font-size: 17px; font-weight: 700; }
    .wl-monthly-dialog-body { min-height: 0; overflow-y: hidden; padding: 24px 32px; border-top: 1px solid var(--slate-100); border-bottom: 1px solid var(--slate-100); }
    .wl-monthly-dialog-body .wl-detail-empty { margin: 0 0 18px; }
    .wl-monthly-dialog-body .wl-detail-empty[hidden] { display: none; }
    .wl-monthly-dialog-body .wl-detail-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .wl-monthly-dialog-body .wl-detail-field { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
    .wl-monthly-dialog-body .wl-detail-field > label { color: var(--slate-500); font-size: 12px; font-weight: 500; line-height: 14px; }
    .wl-monthly-dialog-body .wl-required { color: #FB6568; font-weight: 700; }
    .wl-monthly-dialog-body .wl-custom-input:not([type="range"]), .wl-monthly-dialog-body textarea, .wl-monthly-dialog-body select { width: 100%; box-sizing: border-box; border: 1px solid var(--color-input-border); border-radius: 8px; background: var(--white); color: #314159; font: inherit; }
    .wl-monthly-dialog-body .wl-custom-input:not([type="range"]):not(textarea), .wl-monthly-dialog-body select { height: var(--control-height); min-height: var(--control-height); padding: 8px 12px; }
    .wl-monthly-dialog-body textarea.wl-custom-input { height: 103px; min-height: 103px; padding: 8px 12px; resize: vertical; }
    .wl-monthly-dialog-body .wl-custom-input:focus, .wl-monthly-dialog-body textarea:focus, .wl-monthly-dialog-body select:focus { border-color: var(--color-focus); outline: var(--input-focus-outline); outline-offset: 0; }
    .wl-monthly-dialog-body .wl-slider-wrap { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
    .wl-monthly-dialog-body .wl-slider-input { width: 100%; margin: 0; }
    .wl-monthly-dialog-body .wl-slider-scale { display: flex; justify-content: space-between; color: var(--slate-500); font-size: 11px; }
    .wl-monthly-dialog-body .wl-comment-field, .wl-monthly-dialog-body .wl-link-field, .wl-monthly-dialog-body .wl-monthly-comment-field, .wl-monthly-dialog-body .wl-monthly-life-event-field { grid-column: 1 / -1; }
    .wl-monthly-dialog-footer { justify-content: flex-end; gap: 12px; }
    .wl-monthly-dialog-footer .primary-btn { width: 94px; }
    .wl-detail-row.is-open {
      display: block;
      position: fixed;
      inset: 0;
      z-index: 3100;
      background-color: rgba(15, 23, 42, .32);
      > td > .wl-dialog-card {
        opacity: 1;
        transform: translateY(0);
        transition-duration: var(--dialog-enter-duration);
        @starting-style { opacity: 0; transform: translateY(var(--dialog-enter-offset)); }
      }
      @starting-style { background-color: transparent; }
    }
    .wl-detail-row.is-open > td {
      display: flex;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }
    .wl-dialog-card {
      width: min(1102px, calc(100vw - 48px));
      max-height: calc(100vh - 48px);
      overflow: auto;
      border-radius: 16px;
      background: var(--white);
      box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
      opacity: 0;
      transform: translateY(var(--dialog-enter-offset));
      transition: opacity var(--dialog-exit-duration) ease, transform var(--dialog-exit-duration) ease;
    }
    .wl-dialog-header, .wl-dialog-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 24px 32px;
    }
    .wl-dialog-header { border-bottom: 1px solid var(--slate-200); }
    .wl-dialog-header h2 { margin: 0; color: var(--slate-800); font-size: 17px; }
    .wl-dialog-close { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--slate-100); }
    .wl-dialog-close img { display: block; width: 11px; height: 11px; }
    .wl-dialog-close:hover { background: var(--slate-200); }
    .wl-dialog-body { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 24px 32px; }
    .wl-dialog-column { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
    .wl-dialog-field { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-height: 0; }
    .wl-dialog-field > label, .wl-dialog-health h3 { color: var(--slate-500); font-size: 14px; font-weight: 500; }
    .wl-dialog-field .required-mark { margin-left: 3px; color: var(--red-500); font-weight: 700; }
    .wl-dialog-field input, .wl-dialog-field select, .wl-dialog-field textarea, .wl-dialog-health input:not([type="range"]), .wl-dialog-health select, .wl-dialog-secondary {
      width: 100%; height: var(--control-height); min-height: var(--control-height); padding: 8px 12px; border: 1px solid var(--color-input-border); border-radius: 8px; background: var(--white); color: #314159; font: inherit; box-sizing: border-box;
    }
    .wl-dialog-field textarea, .wl-dialog-health textarea { height: 103px; min-height: 103px; resize: vertical; line-height: 1.5; }
    .wl-dialog-field input:focus, .wl-dialog-field select:focus, .wl-dialog-health input:not([type="range"]):focus, .wl-dialog-health select:focus, .wl-dialog-health textarea:focus { border-color: var(--color-focus); outline: var(--input-focus-outline); outline-offset: 0; }
    .wl-dialog-secondary { width: auto; cursor: pointer; }
    .wl-dialog-field .wl-break-has-mark { margin-left: 8px; color: var(--slate-500); }
    .wl-break-has-mark.is-empty { color: transparent; }
    .wl-break-control { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
    .wl-break-summary { color: var(--slate-500); font-size: 13px; line-height: 17px; white-space: normal; }
    .wl-link-button { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--sky-500); font-size: 14px; line-height: 18px; text-decoration: none; &:hover { color: var(--color-link-hover); text-decoration: underline; } }
    .wl-link-icon { display: block; width: 10px; height: 10px; background: currentColor; -webkit-mask: url("/static/img/outer-link.svg?v=20260920-1") center / contain no-repeat; mask: url("/static/img/outer-link.svg?v=20260920-1") center / contain no-repeat; }
    .wl-dialog-comment { align-items: start; }
    .wl-dialog-health { min-width: 0; padding: 16px; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--white); }
    .wl-dialog-health h3 { margin: 0 0 14px; }
    .wl-dialog-health .wl-detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
    .wl-dialog-health .wl-detail-field { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
    .wl-dialog-health .wl-comment-field { grid-column: 1 / -1; }
    .wl-dialog-health .wl-link-field { grid-column: 1 / -1; align-items: flex-end; }
    .wl-dialog-health .wl-detail-field > label { color: var(--slate-600); font-size: 14px; line-height: 17px; }
    .wl-dialog-health .wl-required { margin-left: 3px; color: var(--red-500); font-weight: 700; }
    .wl-dialog-health textarea { width: 100%; box-sizing: border-box; min-height: 103px; padding: 8px 12px; border: 1px solid var(--color-input-border); border-radius: 8px; background: var(--white); }
    .wl-slider-wrap { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
    .wl-slider-input { width: 100%; height: 16px; margin: 0; border: 0; background: transparent; -webkit-appearance: none; appearance: none; }
    .wl-slider-input[data-slider-order="0"] { --wl-slider-color: var(--sky-600); accent-color: var(--wl-slider-color); }
    .wl-slider-input[data-slider-order="1"] { --wl-slider-color: var(--emerald-600); accent-color: var(--wl-slider-color); }
    .wl-slider-input[data-slider-order="2"] { --wl-slider-color: var(--orange-600); accent-color: var(--wl-slider-color); }
    .wl-slider-input[data-slider-order="3"] { --wl-slider-color: var(--violet-500); accent-color: var(--wl-slider-color); }
    .wl-slider-input[data-slider-order="4"] { --wl-slider-color: var(--red-500); accent-color: var(--wl-slider-color); }
    .wl-slider-input {
      &::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--wl-slider-color) 0%, var(--wl-slider-color) var(--wl-slider-progress, 0%), var(--slate-300) var(--wl-slider-progress, 0%), var(--slate-300) 100%); }
      &::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--wl-slider-color); -webkit-appearance: none; appearance: none; }
    }
    .wl-slider-scale { display: flex; width: 100%; align-items: center; justify-content: space-between; color: var(--slate-500); line-height: 1; }
    .wl-slider-scale-min, .wl-slider-scale-max { font-size: 18px; line-height: 1; }
    .wl-dialog-footer { justify-content: flex-end; gap: 12px; border-top: 0; }
    .wl-dialog-footer .primary-btn { width: 94px; }
  }
  #work-log-break-modal { z-index: 3200; }
  #work-log-break-modal .wl-break-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
  #work-log-break-modal .primary-btn { width: 94px; }
  #work-log-break-modal .wl-break-row input { height: var(--control-height); min-height: var(--control-height); padding: 8px 12px; border: 1px solid var(--color-input-border); border-radius: 8px; background: var(--white); color: #314159; box-sizing: border-box; }
  #work-log-break-modal .wl-break-row input:focus { border-color: var(--color-focus); outline: var(--input-focus-outline); outline-offset: 0; }
}

@media (max-width: 1100px) {
  .page-new-design {
    .work-logs-input-panel {
      .work-logs-input-table {
        min-width: 900px;
        thead > tr > th, tbody > tr.wl-main-row > td { padding-inline: 12px; }
      }
    }
  }
}

@media (max-width: 768px) {
  .page-new-design .work-logs-input-panel > .panel-header { align-items: stretch; flex-direction: column; }
  .page-new-design .work-logs-input-panel .work-logs-input-filters { align-items: stretch; flex-direction: column; }
  .page-new-design .work-logs-input-panel .wl-summary-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-new-design .work-logs-input-panel .wl-summary-content { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-new-design .work-logs-input-panel .wl-summary-box { white-space: normal; }
  .page-new-design .work-logs-input-panel .wl-dialog-body { grid-template-columns: 1fr; }
  .page-new-design .work-logs-input-panel .wl-dialog-field { display: flex; flex-direction: column; }
  .page-new-design .work-logs-input-panel .wl-monthly-dialog { width: min(826px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
  .page-new-design .work-logs-input-panel .wl-monthly-dialog-header, .page-new-design .work-logs-input-panel .wl-monthly-dialog-footer { padding: 20px 24px; }
  .page-new-design .work-logs-input-panel .wl-monthly-dialog-body { padding: 20px 24px; }
  .page-new-design .work-logs-input-panel .wl-monthly-dialog-body { overflow-y: auto; }
  .page-new-design .work-logs-input-panel .wl-monthly-dialog-body .wl-detail-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .page-new-design .work-logs-input-panel .wl-monthly-dialog-body .wl-detail-fields { grid-template-columns: 1fr; }
}
