.page-new-design {
  .work-rules-panel {
    .work-rules-table {
      tbody > tr > td:first-child { color: var(--slate-400); }
      th:first-child, td:first-child { width: 44px; }
      th:nth-child(2), td:nth-child(2) { width: auto; }
      th:last-child, td:last-child { width: 90px; }
      td:nth-child(2) {
        color: var(--slate-800);
        font-weight: 700;
        a { color: var(--color-link); text-decoration: none; }
        a:hover, a:focus-visible { color: var(--color-link-hover); }
      }
    }

    .table-actions {
      white-space: nowrap;
      .icon-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        min-height: 28px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: transparent;
        img { display: block; width: 14px; height: 14px; }
        .icon-hover { display: none; }
        &:hover {
          background: var(--sky-50);
          .icon-hover { display: block; }
          > img:not(.icon-hover) { display: none; }
        }
        &.delete-button:hover { background: var(--red-50); }
      }
    }
  }

  .work-rules-form-modal {
    .modal-header {
      margin-bottom: 24px;
      h2 { color: var(--slate-800); font-size: 14px; font-weight: 700; line-height: 17px; }
    }
    .modal-body { margin: 0; }
  }

  .work-rule-periods-panel {
    .work-rule-period-filter {
      display: flex;
      align-items: center;
      gap: 12px;
      label { color: var(--slate-600); font-size: 14px; }
      select { width: 260px; height: 35px; padding: 0 12px; border: 1px solid var(--color-input-border); border-radius: 8px; background: var(--white); }
    }
    .work-rule-periods-table {
      th:first-child, td:first-child { width: 56px; }
      th:nth-child(2), td:nth-child(2) { width: 120px; }
      th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4) { width: 128px; }
      th:nth-child(5), td:nth-child(5), th:nth-child(6), td:nth-child(6) { width: 100px; }
      th:last-child, td:last-child { width: 90px; }
    }
    .table-actions {
      white-space: nowrap;
      .icon-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        min-height: 28px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: transparent;
        img { display: block; width: 14px; height: 14px; }
        .icon-hover { display: none; }
        &:hover {
          background: var(--sky-50);
          .icon-hover { display: block; }
          > img:not(.icon-hover) { display: none; }
        }
        &.delete-button:hover { background: var(--red-50); }
      }
    }
  }

  .work-rule-periods-form-modal {
    .modal-header { margin-bottom: 24px; h2 { color: var(--slate-800); font-size: 14px; font-weight: 700; line-height: 17px; } }
    .modal-body { margin: 0; overflow: visible; }
    .form-item {
      > input, > select { width: 328px; height: 38px; min-height: 38px; padding: 8px 12px; border: 1px solid var(--color-input-border); border-radius: 8px; &:focus { border-color: var(--color-focus); outline: var(--input-focus-outline); outline-offset: 0; } }
      > .date-input-control { width: 328px; }
      &.work-rule-break-time-item { align-items: start; }
    }
    #work-rule-break-times { grid-column: 2; display: flex; flex-direction: column; gap: 8px; }
    .break-time-row { display: flex; align-items: center; gap: 8px; input { width: 140px; height: 38px; padding: 8px 12px; border: 1px solid var(--color-input-border); border-radius: 8px; &:focus { border-color: var(--color-focus); outline: var(--input-focus-outline); outline-offset: 0; } } }
  }
}

@media (max-width: 768px) {
  .page-new-design .work-rule-periods-form-modal {
    .modal { max-height: calc(100vh - 2rem); }
    .modal-body { max-height: calc(100vh - 180px); overflow-x: hidden; overflow-y: auto; }
  }
}
