
    .staff-directory-view .office-resource-toolbar {
      align-items: center;
      margin-bottom: 8px;
    }

    .staff-directory-view .office-resource-toolbar h2 {
      font-size: 18px;
      line-height: 1.2;
    }

    .staff-directory-view .notice-help {
      margin: 2px 0 0;
      font-size: 12px;
      line-height: 1.25;
    }

    .staff-directory-view .notice-attached-tabs {
      margin: 0 0 -1px;
    }

    .staff-directory-view .notice-attached-tabs .notice-view-tab.active {
      background: #fff;
    }

    .staff-directory-view .notice-attached-tabs .notice-view-tab.active::before {
      box-shadow: 8px 8px 0 7px #fff;
    }

    .staff-directory-view .notice-attached-tabs .notice-view-tab.active::after {
      box-shadow: -8px 8px 0 7px #fff;
    }

    .staff-directory-panel {
      min-height: 210px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 0 8px 8px 8px;
      background: #fff;
    }

    .staff-directory-panel[hidden] {
      display: none;
    }

    .staff-directory-view .results-actions {
      gap: 6px;
    }

    .staff-directory-view .reset-button,
    .staff-directory-view .cancel-button,
    .staff-directory-view .save-button {
      min-height: 34px;
      padding: 0 12px;
      border-radius: 8px;
      font-size: 12px;
    }

    .staff-directory-view .office-resource-form {
      gap: 9px;
      margin-bottom: 10px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--surface-soft);
    }

    .staff-directory-view .office-form-grid {
      gap: 8px;
    }

    .staff-directory-view label {
      margin-bottom: 4px;
      font-size: 12px;
    }

    .staff-directory-view input,
    .staff-directory-view select {
      min-height: 38px;
      padding: 0 10px;
      border-radius: 8px;
      font-size: 13px;
    }

    .staff-directory-view .office-checkbox-field {
      min-height: 38px;
      margin-bottom: 0;
      font-size: 12px;
    }

    .staff-directory-view .dialog-actions {
      gap: 8px;
      margin-top: 0;
    }

    .staff-directory-view .table-wrap {
      max-height: calc(100vh - 190px);
      border-radius: 8px;
    }

    .staff-directory-view .action-stack {
      gap: 6px;
    }

    .staff-directory-table {
      min-width: calc(980px * var(--staff-directory-table-scale, 1));
      font-size: calc(13px * var(--staff-directory-table-scale, 1));
    }

    .staff-directory-table th,
    .staff-directory-table td {
      padding: calc(8px * var(--staff-directory-table-scale, 1)) calc(10px * var(--staff-directory-table-scale, 1));
    }

    .staff-schedule-panel {
      padding: 0;
      border-radius: 0;
      background: #fff;
    }

    .work-schedule-print-header {
      display: none;
    }

    .work-schedule-toolbar {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) minmax(360px, auto) auto;
      gap: 10px;
      align-items: end;
      padding: 10px;
      border-bottom: 1px solid var(--line);
    }

    .work-schedule-title {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      min-width: 0;
    }

    .work-schedule-title h2 {
      margin: 0;
      font-size: 20px;
      font-weight: 950;
      line-height: 1.1;
      text-transform: uppercase;
    }

    .work-schedule-title .result-status {
      flex-basis: 100%;
      min-height: 16px;
      margin: 0;
      font-size: 12px;
    }

    .work-schedule-status-badge {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 8px;
      border: 1px solid #facc15;
      border-radius: 0;
      color: #854d0e;
      background: #fef9c3;
      font-size: 11px;
      font-weight: 950;
    }

    .work-schedule-status-badge.approved {
      border-color: #86efac;
      color: #166534;
      background: #dcfce7;
    }

    .work-schedule-controls,
    .work-schedule-actions,
    .work-schedule-month-nav {
      display: flex;
      align-items: end;
      flex-wrap: wrap;
      gap: 6px;
    }

    .work-schedule-times {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
    }

    .work-schedule-times label {
      display: flex;
      align-items: center;
      gap: 4px;
      margin: 0;
      white-space: nowrap;
      font-size: 11px;
      font-weight: 700;
      color: #344054;
    }

    .work-schedule-times input {
      width: 94px;
      min-height: 32px;
      padding: 4px;
      border: 1px solid #d0d5dd;
      border-radius: 6px;
      font: inherit;
    }

    .work-schedule-actions {
      justify-content: flex-end;
    }

    .work-schedule-field {
      display: grid;
      gap: 4px;
      min-width: 150px;
    }

    .work-schedule-field label {
      margin: 0;
      color: #344054;
      font-size: 11px;
      font-weight: 900;
      line-height: 1.2;
    }

    .work-schedule-month-nav {
      align-items: center;
      min-height: 38px;
      padding: 0 4px;
      border: 1px solid var(--line);
      background: #fff;
    }

    .work-schedule-month-label {
      min-width: 142px;
      text-align: center;
      font-size: 13px;
      font-weight: 950;
    }

    .work-schedule-icon-button,
    .work-schedule-action {
      min-height: 32px;
      border: 1px solid var(--line);
      border-radius: 0;
      color: #344054;
      background: #fff;
      font: inherit;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
    }

    .work-schedule-icon-button {
      width: 30px;
      padding: 0;
    }

    .work-schedule-action {
      padding: 0 10px;
    }

    .work-schedule-action.primary {
      border-color: var(--primary);
      color: #fff;
      background: var(--primary);
    }

    .work-schedule-action.danger {
      border-color: #fecaca;
      color: #b42318;
      background: #fff5f5;
    }

    .work-schedule-action:disabled,
    .work-schedule-icon-button:disabled {
      cursor: not-allowed;
      opacity: 0.55;
    }

    .schedule-edit-tools {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
      padding: 8px 10px;
      border-bottom: 1px solid var(--line);
      background: #f8fafc;
    }

    .schedule-edit-tools[hidden] {
      display: none;
    }

    .schedule-edit-summary {
      margin-right: 4px;
      color: #344054;
      font-size: 12px;
      font-weight: 900;
    }

    .schedule-cell-popover {
      position: fixed;
      z-index: 3000;
      display: grid;
      gap: 2px;
      min-width: 112px;
      padding: 5px;
      border: 1px solid #667085;
      background: #fff;
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    }

    .schedule-cell-popover[hidden] {
      display: none;
    }

    .schedule-cell-popover button {
      min-height: 30px;
      border: 0;
      color: #172033;
      background: transparent;
      font: inherit;
      font-size: 12px;
      font-weight: 850;
      text-align: left;
      cursor: pointer;
    }

    .schedule-cell-popover button:hover {
      background: #eef4ff;
    }

    .work-schedule-scroll {
      max-height: calc(100vh - 280px);
      overflow: auto;
      border-top: 0;
      background: #fff;
    }

    .work-schedule-table {
      width: max-content;
      min-width: max-content;
      border-collapse: collapse;
      background: #fff;
      font-size: 12px;
    }

    .work-schedule-table th,
    .work-schedule-table td {
      height: 44px;
      padding: 0 4px;
      border: 1px solid #7b8190;
      background: #fff;
      text-align: center;
      vertical-align: middle;
    }

    .work-schedule-table thead th {
      position: sticky;
      z-index: 15;
      top: 0;
      color: #111827;
      background: #f4f6f8;
      font-size: 11px;
      font-weight: 950;
      letter-spacing: 0;
      text-transform: none;
    }

    .work-schedule-day-heading {
      display: grid;
      gap: 2px;
      justify-items: center;
      line-height: 1.05;
    }

    .work-schedule-weekday {
      color: #667085;
      font-size: 10px;
      font-weight: 900;
    }

    .work-schedule-table .work-schedule-weekend {
      background: #f2f4f7;
    }

    .work-schedule-table .work-schedule-warning-day {
      box-shadow: inset 0 -3px 0 #facc15;
    }

    .work-schedule-table .work-schedule-sticky-left,
    .work-schedule-table .work-schedule-sticky-right {
      position: sticky;
      z-index: 8;
    }

    .work-schedule-table thead .work-schedule-sticky-left,
    .work-schedule-table thead .work-schedule-sticky-right {
      z-index: 20;
      background: #eef2f6;
    }

    .work-schedule-col-no {
      left: 0;
      width: 58px;
      min-width: 58px;
    }

    .work-schedule-col-name {
      left: 58px;
      width: 190px;
      min-width: 190px;
    }

    .work-schedule-col-role {
      left: 248px;
      width: 180px;
      min-width: 180px;
    }

    .work-schedule-day-col {
      width: 42px;
      min-width: 42px;
      max-width: 42px;
      font-weight: 900;
    }

    .work-schedule-summary-col {
      width: 82px;
      min-width: 82px;
      font-weight: 950;
    }

    .work-schedule-summary-first {
      right: 246px;
    }

    .work-schedule-summary-second {
      right: 164px;
    }

    .work-schedule-summary-total {
      right: 82px;
    }

    .work-schedule-summary-hours {
      right: 0;
    }

    .work-schedule-table thead th.work-schedule-summary-first,
    .work-schedule-table thead th.work-schedule-summary-second {
      color: #172554;
      background: #dbeafe;
    }

    .work-schedule-table thead th.work-schedule-summary-total {
      color: #14532d;
      background: #dcfce7;
    }

    .work-schedule-table thead th.work-schedule-summary-hours {
      color: #713f12;
      background: #fef3c7;
    }

    .work-schedule-summary-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      width: 100%;
      min-height: 28px;
      padding: 0;
      border: 0;
      color: inherit;
      background: transparent;
      font: inherit;
      font-size: 11px;
      font-weight: 950;
      cursor: pointer;
    }

    .work-schedule-summary-arrow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 14px;
      height: 14px;
      border: 1px solid currentColor;
      border-radius: 999px;
      font-size: 10px;
      line-height: 1;
    }

    .work-schedule-table td.work-schedule-summary-first,
    .work-schedule-table td.work-schedule-summary-second {
      background: #f0f7ff;
    }

    .work-schedule-table td.work-schedule-summary-total {
      color: #14532d;
      background: #eefaf1;
    }

    .work-schedule-table td.work-schedule-summary-hours {
      color: #713f12;
      background: #fff8e5;
    }

    .work-schedule-subtotal-row td.work-schedule-summary-col {
      background: #eaf2fb;
    }

    .work-schedule-total-row td.work-schedule-summary-col {
      background: #dfeaf6;
    }

    .work-schedule-total-row td.work-schedule-summary-total {
      background: #dff7e6;
    }

    .work-schedule-total-row td.work-schedule-summary-hours {
      background: #fdecc8;
    }

    .work-schedule-name-button {
      width: 100%;
      padding: 0;
      overflow: hidden;
      border: 0;
      color: #111827;
      background: transparent;
      font: inherit;
      font-weight: 900;
      text-align: left;
      text-overflow: ellipsis;
      white-space: nowrap;
      cursor: pointer;
    }

    .work-schedule-role-cell {
      overflow: hidden;
      color: #344054;
      font-weight: 750;
      text-align: left;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .work-schedule-cell {
      cursor: default;
      user-select: none;
    }

    .work-schedule-editing .work-schedule-cell {
      cursor: pointer;
    }

    .work-schedule-cell.selected {
      background: #dbeafe !important;
      outline: 2px solid #2563eb;
      outline-offset: -2px;
    }

    .work-schedule-row-index {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2px;
      min-height: 100%;
    }

    .work-schedule-row-tools {
      display: none;
      align-items: center;
      gap: 2px;
    }

    .work-schedule-editing .work-schedule-row-tools {
      display: inline-flex;
    }

    .work-schedule-row-tool {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      padding: 0;
      border: 1px solid #98a2b3;
      border-radius: 0;
      color: #172033;
      background: #fff;
      font: inherit;
      font-size: 12px;
      font-weight: 950;
      line-height: 1;
      cursor: pointer;
    }

    .work-schedule-row-tool.danger {
      border-color: #fecaca;
      color: #b42318;
      background: #fff5f5;
    }

    .work-schedule-group-row th {
      height: 28px;
      padding: 0 10px;
      color: #111827;
      background: #e5e7eb;
      font-size: 12px;
      font-weight: 950;
      text-align: left;
    }

    .work-schedule-custom-section-row th {
      height: 28px;
      padding: 0 10px;
      color: #111827;
      background: #dbe3ef;
      font-size: 12px;
      font-weight: 950;
      text-align: left;
    }

    .work-schedule-section-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
    }

    .work-schedule-section-title {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .work-schedule-editing .work-schedule-section-title {
      cursor: text;
    }

    .work-schedule-section-tools {
      display: none;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }

    .work-schedule-editing .work-schedule-section-tools {
      display: inline-flex;
    }

    .work-schedule-section-action {
      min-height: 22px;
      padding: 0 7px;
      border: 1px solid #98a2b3;
      border-radius: 0;
      color: #172033;
      background: #fff;
      font: inherit;
      font-size: 11px;
      font-weight: 900;
      cursor: pointer;
    }

    .work-schedule-section-action.danger {
      border-color: #fecaca;
      color: #b42318;
      background: #fff5f5;
    }

    .work-schedule-role-wrap {
      display: grid;
      gap: 3px;
      text-align: left;
    }

    .work-schedule-role-text {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .work-schedule-section-select {
      width: 100%;
      min-height: 22px;
      border: 1px solid #cbd5e1;
      border-radius: 0;
      background: #fff;
      font: inherit;
      font-size: 11px;
      font-weight: 850;
    }

    .work-schedule-subtotal-row th,
    .work-schedule-subtotal-row td {
      height: 30px;
      background: #f8fafc;
      font-weight: 950;
    }

    .work-schedule-total-row th,
    .work-schedule-total-row td {
      height: 36px;
      background: #eef2f6;
      font-weight: 950;
    }

    .work-schedule-empty {
      margin: 0;
      padding: 18px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 850;
      text-align: center;
    }

    .schedule-warnings {
      padding: 10px;
      border-top: 1px solid var(--line);
      background: #fffdf5;
    }

    .schedule-warnings[hidden] {
      display: none;
    }

    .schedule-warnings h3 {
      margin: 0 0 6px;
      color: #854d0e;
      font-size: 13px;
    }

    .schedule-warnings ul {
      margin: 0;
      padding-left: 18px;
      color: #854d0e;
      font-size: 12px;
      font-weight: 750;
      line-height: 1.5;
    }

    .work-schedule-signatures {
      display: grid;
      width: min(100%, 520px);
      gap: 16px;
      margin: 28px 0 0 auto;
      padding: 0 8px 4px;
      color: #111827;
      font-size: 13px;
      font-weight: 850;
    }

    .work-schedule-signatures[hidden] {
      display: none;
    }

    .work-schedule-signature-item {
      display: grid;
      grid-template-columns: auto 138px minmax(140px, auto);
      align-items: end;
      column-gap: 8px;
      row-gap: 4px;
    }

    .work-schedule-signature-label {
      white-space: nowrap;
    }

    .work-schedule-signature-line {
      height: 1px;
      border-bottom: 1px dotted #111827;
      transform: translateY(-4px);
    }

    .work-schedule-signature-name {
      min-width: 120px;
      text-align: center;
      white-space: nowrap;
    }

    .work-schedule-signature-position {
      grid-column: 3;
      color: #344054;
      font-size: 12px;
      font-weight: 800;
      text-align: center;
    }

    .schedule-approval-fields {
      display: grid;
      gap: 16px;
    }

    .schedule-approval-block {
      display: grid;
      gap: 12px;
      padding: 14px;
      border: 1px solid #e4e9f2;
      border-radius: 8px;
      background: #f8fafc;
    }

    .schedule-approval-block h3 {
      margin: 0;
      color: #111827;
      font-size: 15px;
    }

    .schedule-employee-list,
    .schedule-pattern-options {
      display: grid;
      gap: 8px;
    }

    .schedule-employee-list {
      max-height: 52vh;
      overflow: auto;
      padding: 4px;
    }

    .schedule-employee-option,
    .schedule-pattern-options label {
      display: flex;
      align-items: center;
      gap: 9px;
      min-height: 38px;
      padding: 7px 9px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      font-size: 13px;
      font-weight: 850;
    }

    .schedule-employee-option span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
    }
