/* The Finance workspace is the visual reference for every department. */
@media screen {
  #warehouse-demo {
    --accent: #00a973;
    --accent-dark: #00895e;
    --accent-soft: #e7f5ed;
    --action-green: #00a973;
    --action-green-hover: #00895e;
    --ground: #eef1f4;
    --ink: #1a3040;
    --muted: #5f7483;
    --line: #d4dfe4;
    --raised-edge: #d4dfe4;
    --raised-bottom: #a9bdc5;
    --raised-shadow: none;
    --inset-edge: #dce5e9;
    --inset-bottom: #c8d8de;
    --inset-shadow: none;
    background: #eef1f4;
  }
  #warehouse-demo .tab-panel { background: #eef1f4; }
  #warehouse-demo .workspace-sidebar-brand,
  #warehouse-demo .workspace-sidebar-heading,
  #warehouse-demo .workspace-sidebar-pages,
  #warehouse-demo .workspace-sidebar-settings,
  #warehouse-demo .workspace-breadcrumb,
  #warehouse-demo .workspace-nav-toggle,
  #warehouse-demo .workspace-nav-backdrop { display: none; }
  #warehouse-demo .workspace-nav-backdrop[hidden] { display: none !important; }
  #warehouse-demo :is(
    .product-form, .customer-form, .inventory-table-wrap, .customers-table-wrap,
    .released-table-wrap, .receivables-table-wrap, .payments-table-wrap,
    .report-grid section, .report-customer-balances, .user-form, .users-table-wrap,
    .workflow-card, .dealer-context, .dealer-card, .field-form, .field-history,
    .field-table-wrap, .hr-form, .hr-table, .hr-payroll-toolbar,
    .hr-payroll-employee, .hr-payroll-review, .hr-payroll-lines,
    .hr-dtr-card, .hr-dtr-list, .hr-dtr-prompt,
    .att-clock-card, .att-today-card, .att-stats-card, .att-transport-card,
    .att-record, .att-filters, .att-dtr-card, .att-dtr-table-wrap,
    .finance-summary > div, .finance-section, .finance-form,
    .client-card, .client-summary > div, .client-section
  ) {
    border: 1px solid #d4dfe4;
    border-bottom: 1.5px solid #a9bdc5;
    border-radius: 7px;
    background-color: #fff;
    box-shadow: none;
  }
  #warehouse-demo .clients-panel .client-card {
    border: 1px solid #d4dfe4;
    border-bottom: 1.5px solid #a9bdc5;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
  }
  #warehouse-demo :is(
    .product, .receivable-summary > div, .report-metrics > div,
    .hr-employee-toolbar, .hr-cutoff-toolbar, .hr-contribution-toolbar,
    .hr-advance-toolbar, .hr-account-guide, .hr-run-summary,
    .hr-contribution-line, .hr-deduction-line, .hr-dtr-top,
    .att-summary > div, .att-camera, .att-location, .att-post-all-bar,
    .finance-line, .finance-record dl > div
  ) {
    border: 1px solid #dce5e9;
    border-bottom: 1.5px solid #c8d8de;
    border-radius: 6px;
    background-color: #f7fafb;
    box-shadow: none;
  }
  #warehouse-demo :is(
    .att-dialog, .att-details-dialog, .finance-details-dialog,
    .finance-entry-dialog, .hr-employee-dialog, .hr-account-dialog,
    .hr-cutoff-dialog, .hr-contribution-dialog, .hr-contribution-review-dialog,
    .hr-advance-dialog, .hr-advance-review-dialog, .hr-dtr-dialog,
    .hr-payroll-dialog, .hr-slip-dialog, .app-more-dialog,
    .mobile-settings-dialog, .change-password-dialog, .pin-setup-dialog,
    .dr-dialog, .void-dialog, .payment-dialog, .reverse-payment-dialog,
    .sponsored-details-dialog, .client-dialog, .client-detail-dialog,
    .client-sign-dialog
  ) {
    border: 1px solid #c5d5dc;
    border-bottom: 3px solid #a9bdc5;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 18px 42px #17304730;
  }
  #warehouse-demo .department-placeholder { background: #eef1f4; }

  /* Warehouse report cards follow the same surface and section hierarchy as Finance. */
  #warehouse-demo .receivables-panel .receivable-summary > div,
  #warehouse-demo .reports-panel .report-metrics > div {
    min-width: 0;
    min-height: 80px;
    padding: 12px 13px;
    border: 1px solid #d4dfe4;
    border-bottom: 1.5px solid #b3c5cc;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
  }
  #warehouse-demo :is(.receivable-summary, .report-metrics) small { color: #5c7583; font-size: 11px; }
  #warehouse-demo :is(.receivable-summary, .report-metrics) strong { color: #17394d; font-size: 21px; font-variant-numeric: tabular-nums; }
  #warehouse-demo :is(.report-grid section, .report-customer-balances) > h3 {
    margin: -16px -16px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8eb;
    color: #1a3040;
    font-size: 15px;
  }
  #warehouse-demo :is(.receivables-table-wrap, .report-grid, .report-customer-balances) th {
    border-bottom-color: #dbe5e9;
    background: #f5f8f9;
    color: #557080;
    font-size: 11px;
  }

  #warehouse-demo[data-department="attendance"] :where(.hr-panel button:not(.att-photo-button):not(.att-map-button):not(.att-transport-review-button):not(:disabled)) {
    border-color: #b8dcc9 !important;
    background: #e7f5ed !important;
    color: #15543f !important;
  }
  #warehouse-demo[data-department="hr"] .hr-panel button:not(:disabled):not(.finance-remove-line):not([data-action="return-run"]):not([data-action*="reject"]):not([data-action*="void"]):not([data-action*="delete"]) {
    border-color: var(--action-green) !important;
    background: var(--action-green) !important;
    color: #fff !important;
  }
  #warehouse-demo[data-department="hr"] .hr-panel button:disabled {
    border-color: #c9d6d0 !important;
    background: #edf2f0 !important;
    color: #70837a !important;
  }

  /* Match the brighter teal primary-action reference across departments. */
  #warehouse-demo :is(
    .pwa-install-button, .payment, .checkout-next, .save-product,
    .add-sponsored-item, .release-sponsored, .report-filters button,
    .field-form > button, .field-actions > button:first-child,
    .hr-form button, .hr-actions button, .hr-run-bar button, .hr-print,
    .hr-add-employee, .hr-cutoff-create, .hr-dtr-actions button,
    .att-primary, .att-camera-actions [data-att-take],
    .att-camera-actions [data-att-use-selfie],
    .att-transport-add, .att-transport-save, .att-post-all-bar button,
    .att-post-module button:not(:disabled), .att-save,
    .users-view-tabs button.active, .user-form > button[type="submit"],
    .users-list-toolbar button, .finance-primary-action,
    .finance-view-details, .finance-form button:not(.finance-remove-line),
    .finance-inline-form button:not([value="return"]),
    .finance-section > button, .finance-receipts button,
    button[data-budget-release-accept], button[data-revolving-accept],
    .clients-panel .client-primary, .clients-panel .client-card button
  ) {
    border-color: var(--action-green) !important;
    background: var(--action-green) !important;
    color: #fff !important;
  }
  #warehouse-demo :is(
    .pwa-install-button, .payment, .checkout-next, .save-product,
    .add-sponsored-item, .release-sponsored, .report-filters button,
    .field-form > button, .field-actions > button:first-child,
    .hr-form button, .hr-actions button, .hr-run-bar button, .hr-print,
    .hr-add-employee, .hr-cutoff-create, .hr-dtr-actions button,
    .att-primary, .att-camera-actions [data-att-take],
    .att-camera-actions [data-att-use-selfie],
    .att-transport-add, .att-transport-save, .att-post-all-bar button,
    .att-post-module button:not(:disabled), .att-save,
    .users-list-toolbar button, .finance-primary-action,
    .finance-view-details, .finance-form button:not(.finance-remove-line),
    .finance-inline-form button:not([value="return"]),
    .finance-section > button, .finance-receipts button,
    button[data-budget-release-accept], button[data-revolving-accept],
    .clients-panel .client-primary, .clients-panel .client-card button
  ):hover:not(:disabled) { background: var(--action-green-hover) !important; }
  #warehouse-demo :is(
    .payment, .checkout-next, .save-product, .release-sponsored,
    .report-filters button, .field-form > button, .hr-form button,
    .att-transport-save, .att-post-all-bar button, .att-save, .att-primary,
    .finance-primary-action, .finance-form button, .finance-section > button,
    .clients-panel .client-primary, .clients-panel .client-card button
  ):disabled {
    border-color: #c9d6d0 !important;
    background: #edf2f0 !important;
    color: #70837a !important;
    box-shadow: none !important;
    cursor: not-allowed;
  }
  #warehouse-demo :is(.finance-export-fields button, .finance-history-pager button):not(:disabled) {
    border-color: #a4d7c2;
    background: #e7f5ed;
    color: #155b43;
  }
  #warehouse-demo :is(.finance-export-fields button, .finance-history-pager button):hover:not(:disabled) { background: #d7eddf; }
  #warehouse-demo :is(
    .export-actions button, .att-secondary button, .att-camera-actions button:not([data-att-take]):not([data-att-use-selfie]),
    .att-all-day-pager button:not(:disabled), .dealer-actions button,
    .purchase-list button, .client-dialog-head button, .client-lines-head button,
    .finance-details-head button
  ) {
    border-color: #b8dcc9;
    background: #e7f5ed;
    color: #15543f;
  }
  #warehouse-demo[data-mobile-nav="ready"] .app-bottom-nav button[data-mobile-punch] svg {
    background: var(--action-green);
    box-shadow: 0 4px 13px #00a97340;
  }
  #warehouse-demo[data-mobile-nav="ready"] .app-bottom-nav button:not([data-mobile-punch]).active::after { background: var(--action-green); }
  #warehouse-demo[data-mobile-nav="ready"] .app-bottom-nav button.active { color: var(--action-green); }
}

@media screen {
  :is(.login-form > button[type="submit"], .pin-login-form > button[type="submit"],
    .pin-setup-form button, .login-change-password-form > button[type="submit"],
    .startup-retry) {
    border-color: #00a973;
    background: #00a973;
    color: #fff;
  }
}

@media screen and (min-width: 1100px) {
  #warehouse-demo[data-department] {
    grid-template-columns: 252px minmax(0, 1fr);
    grid-template-rows: 56px minmax(0, 1fr);
    overflow: hidden;
  }
  #warehouse-demo[data-department] > .department-menu {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    min-width: 0;
    min-height: 0;
    padding: 19px 13px;
    border: 0;
    background: linear-gradient(165deg, #34977d 0%, #237963 100%);
    overflow-y: auto;
  }
  #warehouse-demo > header,
  #warehouse-demo[data-department="finance"] > header {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 56px;
    padding: 0 23px;
    background: #fff;
    box-shadow: none;
  }
  #warehouse-demo > header .brand { display: none; }
  #warehouse-demo > header .workspace-breadcrumb { display: block; color: #647b8b; font-size: 12px; }
  #warehouse-demo > .tab-menu,
  #warehouse-demo > .hr-navigation,
  #warehouse-demo > .mobile-department-picker { display: none; }
  #warehouse-demo[data-department] > .tab-panel:not([hidden]),
  #warehouse-demo[data-department] > .department-placeholder:not([hidden]) {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    overflow: auto;
  }
}

@media screen and (min-width: 621px) {
  #warehouse-demo > .tab-menu,
  #warehouse-demo > .hr-navigation,
  #warehouse-demo > .mobile-department-picker { display: none !important; }
  #warehouse-demo > .department-menu .workspace-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 2px 10px 24px;
    color: #fff;
  }
  #warehouse-demo .workspace-sidebar-brand img { width: 38px; height: 38px; border-radius: 10px; background: #eaf4ec; object-fit: cover; }
  #warehouse-demo .workspace-sidebar-brand strong { display: block; font-size: 15px; letter-spacing: .02em; }
  #warehouse-demo .workspace-sidebar-brand small { display: block; margin-top: 2px; color: #edfff6; font-size: 10px; }
  #warehouse-demo .workspace-sidebar-heading { display: block; padding: 8px 13px 12px; color: #e2fff0; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  #warehouse-demo[data-department] > .department-menu .department-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 41px;
    margin: 2px 0;
    padding: 10px 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    white-space: normal;
  }
  #warehouse-demo[data-department] > .department-menu .department-button::after { content: '›'; margin-left: 8px; font-size: 17px; font-weight: 400; transition: transform .45s ease; }
  #warehouse-demo[data-department] > .department-menu .department-button[aria-expanded="true"]::after { transform: rotate(90deg); }
  #warehouse-demo[data-department] > .department-menu .department-button:hover { background: #2a9277; color: #fff; }
  #warehouse-demo[data-department] > .department-menu .department-button.active { background: #1c735e; color: #fff; }
  #warehouse-demo > .department-menu .workspace-sidebar-pages {
    display: grid;
    flex: none;
    gap: 1px;
    margin: 0 0 8px 12px;
    padding: 6px 0 12px;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  #warehouse-demo > .department-menu .workspace-sidebar-pages[hidden] { display: none !important; }
  #warehouse-demo .workspace-sidebar-pages button {
    min-height: 33px;
    margin: 2px 3px;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #fff0a3;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 1px #104c3d;
    text-align: left;
  }
  #warehouse-demo .workspace-sidebar-pages button:hover { background: #2a9277; color: #fff0a3; }
  #warehouse-demo .workspace-sidebar-pages button[aria-current="page"] { background: #1b6f5b; color: #fff0a3; font-weight: 700; }
  #warehouse-demo > .department-menu .workspace-sidebar-pages.is-expanded button { animation: workspace-module-in .35s ease both; }
  #warehouse-demo > .department-menu .workspace-sidebar-settings {
    display: block;
    width: 100%;
    min-height: 38px;
    margin-top: auto;
    padding: 10px 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
  }
}

@keyframes workspace-module-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media screen and (min-width: 621px) and (max-width: 1099px) {
  #warehouse-demo[data-department] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 56px minmax(0, 1fr);
  }
  #warehouse-demo > header,
  #warehouse-demo[data-department="finance"] > header {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-wrap: nowrap;
    min-height: 56px;
    padding: 0 16px;
    background: #fff;
  }
  #warehouse-demo > header .brand { display: none; }
  #warehouse-demo > header .workspace-breadcrumb { display: block; min-width: 0; overflow: hidden; color: #647b8b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  #warehouse-demo > header .workspace-nav-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #cad8df;
    border-radius: 6px;
    background: #fff;
    color: #14344b;
    font-size: 22px;
  }
  #warehouse-demo > header .account-meta { width: auto; margin-left: auto; }
  #warehouse-demo[data-department] > .department-menu {
    position: fixed;
    z-index: 102;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    width: min(260px, calc(100vw - 48px));
    max-width: none;
    padding: 19px 13px;
    border: 0;
    background: linear-gradient(165deg, #34977d 0%, #237963 100%);
    overflow-y: auto;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .18s ease, visibility .18s;
  }
  #warehouse-demo[data-workspace-nav-open] > .department-menu { transform: translateX(0); visibility: visible; }
  #warehouse-demo[data-workspace-nav-open] > .workspace-nav-backdrop {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #102b3d88;
  }
  #warehouse-demo > .tab-menu,
  #warehouse-demo > .hr-navigation,
  #warehouse-demo > .mobile-department-picker { display: none; }
  #warehouse-demo[data-department] > .tab-panel:not([hidden]),
  #warehouse-demo[data-department] > .department-placeholder:not([hidden]) {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    overflow: auto;
  }
  #warehouse-demo[data-department="finance"] .finance-local-tabs { display: none; }
}

@media screen and (max-width: 620px) {
  #warehouse-demo .workspace-sidebar-brand,
  #warehouse-demo .workspace-sidebar-heading,
  #warehouse-demo .workspace-sidebar-pages,
  #warehouse-demo .workspace-sidebar-settings,
  #warehouse-demo .workspace-breadcrumb,
  #warehouse-demo .workspace-nav-toggle,
  #warehouse-demo .workspace-nav-backdrop { display: none !important; }
  #warehouse-demo[data-department="attendance"][data-active-page="hr-attendance"] .att-clock-card,
  #warehouse-demo[data-department="attendance"][data-active-page="hr-attendance"] .att-stats-card,
  #warehouse-demo[data-department="attendance"][data-active-page="hr-attendance"] .att-today-card,
  #warehouse-demo[data-department="attendance"][data-active-page="hr-attendance"] .att-transport-card {
    border: 1px solid #d4dfe4;
    border-bottom: 1.5px solid #a9bdc5;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
  }
  #warehouse-demo[data-department="attendance"][data-active-page="hr-attendance"] .att-clock { color: #126547; }
  #warehouse-demo[data-department="attendance"][data-active-page="hr-attendance"] .hr-panel { background: #eef1f4; }
}

@media screen and (min-width: 621px) and (max-width: 1099px) {
  #warehouse-demo > header {
    border-bottom-color: #fff;
    background: #00a973;
    color: #fff;
    box-shadow: none;
  }
  #warehouse-demo > header .workspace-breadcrumb { color: #fff; }
  #warehouse-demo > header .workspace-nav-toggle {
    border-color: #a9d5bd;
    background: #00a973;
    color: #fff;
  }
  #warehouse-demo > header .account-menu summary {
    border-color: #a9d5bd;
    background: #00a973;
    color: #fff;
  }
  #warehouse-demo > header .account-menu[open] > summary { background: #075a3f; }
}

@media screen and (max-width: 620px) {
  #warehouse-demo > header,
  #warehouse-demo[data-department="attendance"][data-active-page="hr-attendance"] > header {
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom-color: #fff;
    background: #00a973;
    color: #fff;
    box-shadow: none;
  }
  #warehouse-demo > header .mobile-settings-toggle:not([hidden]) {
    border-color: #a9d5bd;
    background: #00a973;
    color: #fff;
  }
  #warehouse-demo[data-department][data-active-page] > header .brand > .brand-mobile-title,
  #warehouse-demo[data-department][data-active-page] > header .brand > .brand-mobile-title small {
    color: #fff;
  }
  #warehouse-demo > header .account-menu summary,
  #warehouse-demo[data-department="attendance"][data-active-page="hr-attendance"] > header .account-menu summary {
    border-color: #a9d5bd;
    background: #00a973;
    color: #fff;
  }
  #warehouse-demo > header .account-menu[open] > summary { background: #075a3f; }
  #warehouse-demo > header .account-menu .mobile-account-initials { color: #fff; }
  #warehouse-demo[data-department="attendance"][data-active-page="hr-attendance"] > header .account-menu .mobile-account-initials { color: #fff; }
}

@media screen and (prefers-reduced-motion: reduce) {
  #warehouse-demo > .department-menu { transition: none; }
  #warehouse-demo > .department-menu .department-button::after,
  #warehouse-demo > .department-menu .workspace-sidebar-pages { transition: none; }
  #warehouse-demo > .department-menu .workspace-sidebar-pages.is-expanded button { animation: none; }
}

/* Local-inspired workspace navigation. Phone navigation remains the existing bottom bar. */
@media screen and (min-width: 1100px) {
  #warehouse-demo[data-department] { grid-template-columns: 72px 282px minmax(0, 1fr); }
  #warehouse-demo:is([data-workspace-panel-collapsed], [data-workspace-direct-page]) { grid-template-columns: 72px 0 minmax(0, 1fr); }
  #warehouse-demo[data-department] > .department-menu { grid-column: 1 / 3; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0; padding: 0; overflow: visible; background: transparent; }
  #warehouse-demo[data-department] > header,
  #warehouse-demo[data-department] > .tab-panel:not([hidden]),
  #warehouse-demo[data-department] > .department-placeholder:not([hidden]) { grid-column: 3; }
  #warehouse-demo:is([data-workspace-panel-collapsed], [data-workspace-direct-page]) > .department-menu { grid-column: 1; grid-template-columns: 72px 0; }
  #warehouse-demo:is([data-workspace-panel-collapsed], [data-workspace-direct-page]) > header,
  #warehouse-demo:is([data-workspace-panel-collapsed], [data-workspace-direct-page]) > .tab-panel:not([hidden]),
  #warehouse-demo:is([data-workspace-panel-collapsed], [data-workspace-direct-page]) > .department-placeholder:not([hidden]) { grid-column: 3; }
  #warehouse-demo:is([data-workspace-panel-collapsed], [data-workspace-direct-page]) .workspace-page-panel { visibility: hidden; overflow: hidden; }
}
@media screen and (min-width: 621px) {
  #warehouse-demo .workspace-department-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 0; padding: 16px 7px; overflow-y: auto; background: #4db783; }
  #warehouse-demo .workspace-department-rail .workspace-sidebar-brand { display: grid; place-items: center; width: 48px; height: 48px; min-height: 48px; margin: 0 0 13px; padding: 0; border: 2px solid #238b5a; border-radius: 50%; }
  #warehouse-demo .workspace-sidebar-brand img { width: 38px; height: 38px; border-radius: 50%; }
  #warehouse-demo .workspace-sidebar-brand span { display: none; }
  #warehouse-demo[data-department] .workspace-department-rail .department-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 56px; min-height: 56px; margin: 0; padding: 5px 2px; border: 0; border-radius: 8px; background: transparent; color: #135c3f; font-size: 0; text-align: center; }
  #warehouse-demo[data-department] .workspace-department-rail .department-button::after { display: none; }
  #warehouse-demo .workspace-department-rail .department-button svg,
  #warehouse-demo .workspace-department-rail .workspace-sidebar-settings svg { display: block; flex: none; width: 23px; height: 23px; }
  #warehouse-demo .workspace-department-rail .department-button small { display: block; max-width: 52px; color: inherit; font-size: 0; font-weight: 700; line-height: 1.1; white-space: nowrap; }
  #warehouse-demo .workspace-department-rail .department-button small::before { display: block; content: attr(data-short-label); font-size: 9px; line-height: 1.1; }
  #warehouse-demo[data-department] .workspace-department-rail .department-button:hover,
  #warehouse-demo[data-department] .workspace-department-rail .department-button.active { background: #2d9464; color: #fff; }
  #warehouse-demo .workspace-department-rail .department-button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
  #warehouse-demo .workspace-department-rail .workspace-sidebar-settings { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 56px; min-height: 56px; margin-top: auto; padding: 5px 2px; border: 0; border-radius: 8px; background: transparent; color: #135c3f; font-size: 0; }
  #warehouse-demo .workspace-department-rail .workspace-sidebar-settings small { color: inherit; font-size: 9px; font-weight: 700; line-height: 1.1; }
  #warehouse-demo .workspace-department-rail .workspace-sidebar-settings:hover { background: #2d9464; color: #fff; }
  #warehouse-demo .workspace-page-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f5f6f5; border-right: 1px solid #dfe7e0; }
  #warehouse-demo .workspace-page-heading { display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: 18px 20px; border-bottom: 1px solid #e0e8e1; color: #17352a; font-size: 19px; }
  #warehouse-demo .workspace-page-close { border: 0; background: transparent; color: #839287; font-size: 24px; }
  #warehouse-demo .workspace-page-panel .workspace-sidebar-pages { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; margin: 0; padding: 13px 11px; overflow-y: auto; border: 0; background: transparent; }
  #warehouse-demo .workspace-page-panel .workspace-sidebar-pages[hidden] { display: none !important; }
  #warehouse-demo .workspace-page-panel .workspace-sidebar-pages button { width: 100%; min-height: 42px; margin: 0; padding: 10px 13px; border: 0; border-radius: 6px; background: transparent; color: #426051; font-size: 13px; font-weight: 600; text-align: left; text-shadow: none; animation: none; }
  #warehouse-demo .workspace-page-panel .workspace-sidebar-pages button:hover,
  #warehouse-demo .workspace-page-panel .workspace-sidebar-pages button[aria-current="page"] { background: #fff; color: #147449; }
}
@media screen and (min-width: 621px) and (max-width: 1099px) {
  #warehouse-demo[data-department] { grid-template-columns: 68px minmax(0, 1fr); }
  #warehouse-demo[data-department] > .department-menu { position: static; grid-column: 1; grid-row: 1 / 3; display: block; width: 68px; padding: 0; overflow: visible; transform: none; visibility: visible; background: transparent; }
  #warehouse-demo .workspace-department-rail { position: relative; z-index: 103; height: 100%; padding: 13px 6px; }
  #warehouse-demo[data-department] .workspace-department-rail .department-button { width: 54px; }
  #warehouse-demo .workspace-page-panel { position: fixed; z-index: 102; top: 0; bottom: 0; left: 68px; width: min(282px, calc(100vw - 68px)); box-shadow: 7px 0 24px #153d2630; visibility: hidden; transform: translateX(-110%); transition: transform .18s ease, visibility .18s; }
  #warehouse-demo[data-workspace-nav-open] .workspace-page-panel { visibility: visible; transform: translateX(0); }
  #warehouse-demo[data-department] > header,
  #warehouse-demo[data-department] > .tab-panel:not([hidden]),
  #warehouse-demo[data-department] > .department-placeholder:not([hidden]) { grid-column: 2; }
  #warehouse-demo > header .workspace-nav-toggle { display: none; }
  #warehouse-demo[data-workspace-nav-open] > .workspace-nav-backdrop { z-index: 101; }
}
@media screen and (max-width: 620px) {
  #warehouse-demo .workspace-department-rail,
  #warehouse-demo .workspace-page-panel { display: none !important; }
}
