:root {
  color-scheme: light;
  --ink: #202630;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #fff;
  --canvas: #f5f6f8;
  --green: #c8202d;
  --green-dark: #151515;
  --green-soft: #fbecee;
  --sidebar-width: 248px;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.license-view [hidden], .license-dialog [hidden] { display: none !important; }
.license-notice { margin: 14px 0; padding: 12px 14px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; color: #667085; font-size: 12px; line-height: 1.6; }
.license-tabs { display: flex; gap: 4px; width: fit-content; margin: 20px 0; padding: 4px; border: 1px solid #e4e7ec; border-radius: 10px; background: #eaecf0; }
.license-tabs .button { min-width: 120px; }
.license-tabs [aria-pressed="true"] { background: #c8202d; color: #fff; }
.license-filter-panel { margin-bottom: 16px; }
.license-filters { display: flex; flex-wrap: wrap; gap: 14px; padding: 16px; }
.license-filters label { display: grid; flex: 1 1 140px; gap: 6px; color: #667085; font-size: 11px; }
.license-filters label:first-child { flex-grow: 2; }
.license-view .form-input, .license-dialog .form-input { width: 100%; min-width: 0; height: 38px; padding: 8px 10px; border: 1px solid #d5dae2; border-radius: 8px; background: #fff; color: #202630; font: inherit; }
.license-view .form-input:focus, .license-dialog .form-input:focus { outline: 2px solid #c8202d; outline-offset: 2px; }
.license-caption { color: #667085; font-size: 11px; line-height: 1.6; margin-bottom: 16px; }
.license-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.license-kpis .stat-value { margin: 0 0 12px; }
.license-kpis .stat-card { padding: 20px 16px; }
.license-kpis .stat-card:first-child { border-top: 3px solid #c8202d; }
.license-kpis .stat-card:nth-child(2) { border-top: 3px solid #436b9b; }
.license-kpis .stat-card:nth-child(3) { border-top: 3px solid #38804d; }
.license-kpis .stat-card:nth-child(4) { border-top: 3px solid #c78b32; }
.license-kpis .stat-card:nth-child(5) { border-top: 3px solid #a3212b; }
.license-budget-panel { margin-bottom: 22px; }
.license-budget-panel .panel-header { align-items: center; }
.license-budget-panel .panel-header p { margin: 5px 0 0; color: #667085; font-size: 11px; }
.license-budget-panel > .license-caption { padding: 0 20px 16px; margin: 0; }
.license-budget-toggle { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #667085; }
.license-budget-toggle .form-input { width: 110px; }
#license-budget { display: flex; flex-wrap: wrap; gap: 16px; padding: 20px; }
.license-budget-currency { flex: 1 1 220px; padding: 18px; border: 1px solid #e4e7ec; border-radius: 10px; background: linear-gradient(135deg, #fff, #f8f9fb); }
.license-budget-label { display: block; color: #667085; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.license-budget-total { display: block; margin: 8px 0 16px; color: #202630; font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.8px; }
.license-budget-entity { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #eef0f3; font-size: 12px; font-variant-numeric: tabular-nums; }
.license-budget-product { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0 7px 12px; color: #475467; font-size: 12px; font-variant-numeric: tabular-nums; }
.license-budget-product > :first-child { min-width: 0; overflow-wrap: anywhere; }
.license-budget-product > :last-child { flex-shrink: 0; }
.license-table .license-register-plan { color: #101828; }
.inventory-condition { display: inline-block; align-self: flex-start; width: fit-content; margin: 0 0 10px; padding: 4px 8px; border-radius: 5px; font-size: 10px; font-weight: 600; }
.inventory-condition-new { background: #e8f5ec; color: #246b39; }
.inventory-condition-used { background: #edf2fa; color: #436b9b; }
.license-renewal { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eef0f3; font-size: 12px; }
.license-renewal strong { flex: 1; min-width: 120px; overflow-wrap: anywhere; }
.license-table-wrap { overflow-x: auto; }
.license-table { width: 100%; min-width: 800px; border-collapse: collapse; font-size: 12px; text-align: left; }
.license-table th { padding: 14px; background: #f8f9fb; color: #667085; font-size: 10px; text-transform: uppercase; }
.license-table td { max-width: 280px; padding: 14px; border-bottom: 1px solid #eef0f3; overflow-wrap: anywhere; vertical-align: top; }
.license-table td small { display: block; margin-top: 5px; color: #667085; font-size: 11px; }
.license-assigned-table caption { padding: 0; height: 0; overflow: hidden; font-size: 0; }
.license-table td .button { margin: 0 4px 4px 0; }
.license-badge { display: inline-block; padding: 5px 8px; border-radius: 6px; background: #f2f4f7; color: #475467; font-size: 11px; white-space: nowrap; }
.license-badge-danger { background: #fcebed; color: #a3212b; }
.license-badge-warning { background: #fff3df; color: #8b611d; }
.license-pagination { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px; font-size: 12px; }
.license-pagination span { margin-right: auto; }
.license-view button:disabled, .license-dialog button:disabled { opacity: .5; cursor: not-allowed; }
#license-load-status { margin: 12px 0; font-size: 12px; color: #a3212b; overflow-wrap: anywhere; }
.license-dialog { width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border: 1px solid #e4e7ec; border-radius: 14px; background: #fff; color: #202630; box-shadow: 0 20px 60px #1018282b; }
.license-dialog::backdrop { background: #10182880; }
.license-dialog h2 { margin: 0 0 18px; font-size: 20px; overflow-wrap: anywhere; }
.license-dialog h3 { font-size: 14px; margin: 24px 0 12px; }
#license-dialog-error { color: #a3212b; font-size: 12px; line-height: 1.6; }
.license-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.license-dialog.license-confirm-dialog { width: min(440px, calc(100% - 32px)); padding: 24px; }
.license-confirm-header { display: flex; align-items: center; gap: 12px; }
.license-confirm-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid #f5d0d4; border-radius: 12px; background: #fbecee; color: #c8202d; }
.license-confirm-icon svg { width: 22px; height: 22px; }
.license-confirm-eyebrow { color: #667085; font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.license-confirm-dialog h2 { margin: 3px 0 0; font-size: 19px; }
.license-confirm-close { display: grid; place-items: center; flex: 0 0 28px; height: 28px; margin-left: auto; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #667085; font-size: 22px; cursor: pointer; }
.license-confirm-close:hover { background: #f2f4f7; color: #202630; }
.license-confirm-description { margin: 20px 0; color: #667085; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.license-confirm-field { display: grid; gap: 10px; color: #475467; font-size: 12px; }
.license-confirm-field code { padding: 2px 6px; border: 1px solid #f5d0d4; border-radius: 4px; background: #fbecee; color: #a3212b; font-weight: 600; }
.license-confirm-error { margin: 8px 0 0; color: #a3212b; font-size: 11px; line-height: 1.5; }
.license-confirm-error:empty { display: none; }
.license-confirm-dialog .license-dialog-actions { margin-top: 22px; padding-top: 16px; border-top: 1px solid #eef0f3; }
.license-confirm-dialog .button { min-width: 100px; }
.license-dialog.license-credentials-dialog { width: min(480px, calc(100% - 32px)); }
.license-dialog.license-renewal-dialog { width: min(560px, calc(100% - 32px)); }
.license-renewal-dialog .license-form { grid-template-columns: 1fr; }
.license-credentials-dialog h2 { margin: 4px 0 0; font-size: 19px; }
.license-credentials-dialog .license-confirm-field { margin: 16px 0; }
.license-credentials-dialog .license-dialog-actions { border-top: 1px solid #eef0f3; padding-top: 16px; }
.credential-input-row { display: flex; gap: 6px; }
.credential-input-row input { min-width: 0; flex: 1; }
.license-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.license-form label { display: grid; gap: 6px; color: #475467; font-size: 12px; }
.license-form-wide { grid-column: 1 / -1; }
.license-form textarea.form-input { height: 90px; resize: vertical; }
.license-form input[readonly] { background: #f6f7f6; color: #67726b; cursor: default; }
.license-details { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 20px; font-size: 12px; }
.license-details dt { color: #667085; }
.license-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.license-detail-dialog { width: min(1080px, calc(100% - 32px)); padding: 28px; }
.license-detail-dialog > h2 { margin-bottom: 6px; font-size: 24px; letter-spacing: -.4px; }
.license-detail-dialog #license-dialog-error:empty { display: none; }
.license-detail-identity { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.license-detail-identity p { margin: 0; color: #667085; font-size: 13px; overflow-wrap: anywhere; }
.license-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.license-detail-summary { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; margin-bottom: 22px; }
.license-detail-stat { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 18px; border: 1px solid #e4e7ec; border-radius: 10px; background: #f8f9fb; }
.license-detail-stat > span { color: #667085; font-size: 11px; font-weight: 600; }
.license-detail-stat strong { font-size: 24px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.license-detail-stat:last-child strong { font-size: 18px; line-height: 1.4; }
.license-detail-stat small { color: #667085; font-size: 11px; line-height: 1.5; }
.license-detail-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.license-detail-section { padding: 18px; border: 1px solid #e4e7ec; border-radius: 10px; }
.license-detail-dialog .license-detail-section h3, .license-detail-dialog .license-detail-notes h3 { margin: 0 0 16px; color: #344054; }
.license-detail-section .license-details { grid-template-columns: 125px minmax(0, 1fr); margin: 0; gap: 13px 16px; line-height: 1.5; }
.license-detail-section dd { color: #202630; font-weight: 500; }
.license-detail-notes { margin-top: 16px; padding: 18px; border: 1px solid #e4e7ec; border-radius: 10px; }
.license-detail-notes p { margin: 0; color: #475467; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.license-assigned-section { margin-top: 26px; }
.license-assigned-heading { display: flex; align-items: center; gap: 10px; }
.license-detail-dialog .license-assigned-heading h3 { margin: 0; font-size: 15px; }
.license-assigned-section > .license-caption { margin: 7px 0 14px; }
.license-assigned-wrap { border: 1px solid #e4e7ec; border-radius: 10px; }
.license-assigned-table { table-layout: fixed; min-width: 860px; }
.license-assigned-table th:nth-child(1) { width: 28%; }
.license-assigned-table th:nth-child(2) { width: 24%; }
.license-assigned-table th:nth-child(3) { width: 14%; }
.license-assigned-table th:nth-child(4) { width: 34%; text-align: right; }
.license-assigned-table td { padding: 16px 14px; vertical-align: middle; line-height: 1.5; }
.license-assigned-table tbody tr:last-child td { border-bottom: 0; }
.license-assigned-table td strong { display: block; color: #202630; font-weight: 600; }
.license-assigned-date { color: #475467; font-variant-numeric: tabular-nums; white-space: nowrap; }
.license-assignment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.license-assigned-table .license-assignment-actions .button { margin: 0; min-height: 32px; padding: 7px 10px; font-size: 11px; white-space: nowrap; }
.license-assignment-actions .license-credentials-action { border-color: #d0d5dd; background: #f8f9fb; color: #344054; }
.license-assignment-actions .license-remove-action { border-color: #f5d0d4; color: #a3212b; }
.license-assigned-empty { padding: 28px 18px; text-align: center; border: 1px dashed #d0d5dd; border-radius: 10px; color: #475467; }
.license-assigned-empty p { margin: 7px 0 0; color: #667085; font-size: 12px; }
.license-assigned-section .license-assigned-notice { margin: 12px 0 0; font-size: 10px; line-height: 1.6; }
.license-detail-audit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #eef0f3; }
.license-detail-audit > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.license-detail-audit span, .license-detail-audit small { font-size: 10px; color: #667085; overflow-wrap: anywhere; }
.license-detail-audit strong { font-size: 11px; font-weight: 500; color: #475467; }
.license-detail-dialog > .license-dialog-actions { padding-top: 18px; border-top: 1px solid #e4e7ec; }
@media (max-width: 1100px) { .license-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .license-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license-form { grid-template-columns: 1fr; }
  .license-dialog { padding: 18px; }
  .license-details { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .license-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license-detail-stat:last-child { grid-column: 1 / -1; }
  .license-detail-sections, .license-detail-audit { grid-template-columns: 1fr; }
  .license-detail-section .license-details { grid-template-columns: 105px minmax(0, 1fr); gap: 12px; }
  .license-detail-dialog > h2 { font-size: 21px; }
  .license-detail-stat, .license-detail-section { padding: 14px; }
}

* { box-sizing: border-box; }
html { min-width: 360px; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 13px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; }
.app-shell[hidden] { display: none; }
.workspace-startup { display: grid; min-height: 100vh; place-items: center; padding: 24px; color: #5f6b64; font-size: 14px; text-align: center; }
.workspace-startup[hidden] { display: none; }
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; padding: 27px 17px 16px; background: #153c35; color: #fff; }
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; margin: 0 0 45px 7px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: #d8f0e1; color: #285c4a; }
.brand-mark svg { width: 25px; height: 25px; stroke: none; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { max-width: 165px; font-family: "Manrope", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: -.2px; line-height: 1.25; }
.brand-copy > span { color: #97b5a9; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
.workspace-label { padding: 0 11px; margin-bottom: 11px; color: #83a197; font-size: 7px; font-weight: 700; letter-spacing: .7px; }
.nav-list { display: grid; gap: 5px; }
.nav-link { display: flex; min-height: 42px; align-items: center; gap: 13px; padding: 0 11px; border-radius: 7px; color: #bed0c9; font-size: 12px; font-weight: 500; transition: background .18s, color .18s; }
.nav-link svg { width: 17px; height: 17px; opacity: .84; }
.nav-link:hover, .nav-link.active { background: #285449; color: #fff; }
.nav-link.active { font-weight: 600; box-shadow: inset 2px 0 0 #8bd4aa; }
.nav-count { margin-left: auto; color: #c0d1ca; font-size: 10px; }
.nav-count-alert { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; background: #47645a; color: #fff; font-weight: 600; }
.sidebar-bottom { margin-top: auto; }
.help-card { display: flex; flex-direction: column; align-items: flex-start; margin: 0 1px 15px; padding: 14px 13px 13px; border: 1px solid #ffffff17; border-radius: 8px; background: #ffffff08; }
.help-icon { display: grid; width: 28px; height: 28px; place-items: center; margin-bottom: 12px; border-radius: 7px; background: #ffffff12; color: #c4dfcf; }
.help-icon svg { width: 15px; height: 15px; }
.help-card > strong { margin-bottom: 4px; font-size: 11px; }
.help-card > span:not(.help-icon) { color: #a9c0b6; font-size: 10px; }
.help-card > a { margin-top: 12px; color: #b9e2c9; font-size: 10px; font-weight: 600; }
.profile { display: flex; align-items: center; gap: 10px; padding: 12px 4px 1px; border-top: 1px solid #ffffff1c; }
.avatar { display: inline-grid; flex: 0 0 auto; width: 27px; height: 27px; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 700; }
.avatar-profile { width: 31px; height: 31px; background: #d2e8d7; color: #345f49; }
.profile-avatar-button { position: relative; overflow: hidden; padding: 0; border: 0; cursor: pointer; }
.profile-avatar-button:disabled { cursor: wait; opacity: .65; }
.profile-avatar-button img, .directory-member .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.directory-member .avatar { position: relative; overflow: hidden; }
.profile-copy { display: grid; gap: 3px; }
.profile-copy strong { font-size: 10px; font-weight: 600; }
.profile-copy span { color: #a8beb5; font-size: 9px; }
.main-content { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 3; display: flex; height: 64px; align-items: center; justify-content: space-between; padding: 0 39px; border-bottom: 1px solid #e9eeeb; background: rgb(255 255 255 / 92%); backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: #929d98; font-size: 11px; }
.breadcrumbs strong { color: #46534e; font-weight: 600; }
.breadcrumb-divider { color: #c7d0cb; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.search-box { display: flex; width: 244px; height: 34px; align-items: center; gap: 9px; padding: 0 9px; border: 1px solid #e7ece9; border-radius: 6px; background: #fafbfa; color: #8c9993; }
.search-box svg { width: 15px; height: 15px; }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #9aa59f; }
.search-box kbd { flex: 0 0 auto; padding: 2px 4px; border: 1px solid #e7ece9; border-radius: 3px; background: white; color: #9ba59f; font-family: inherit; font-size: 9px; }
.icon-button { position: relative; display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #697770; cursor: pointer; }
.icon-button:hover { background: #f0f4f1; }
.icon-button svg { width: 17px; height: 17px; }
.notification-dot { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #e98569; }
.notification-count { position: absolute; top: -3px; right: -4px; min-width: 18px; padding: 2px 4px; border-radius: 10px; background: #b4232d; color: white; font-size: 10px; line-height: 14px; }
.notification-count[hidden], .notification-panel[hidden] { display: none; }
.notification-panel { position: fixed; z-index: 100; top: 65px; right: 16px; left: 16px; width: auto; max-width: 430px; margin-left: auto; max-height: calc(100vh - 90px); overflow-y: auto; padding: 14px; border: 1px solid #dfe5e1; border-radius: 12px; background: #fff; box-shadow: 0 12px 40px #14271f30; }
.notification-heading { display: flex; align-items: center; gap: 8px; }
.notification-heading strong { margin-right: auto; }
.notification-heading .button { padding: 6px 8px; font-size: 11px; }
#notification-status { margin: 10px 0; color: #59665f; font-size: 12px; }
.notification-entry { display: block; width: 100%; margin-top: 7px; padding: 11px; border: 1px solid #e2e8e4; border-radius: 8px; background: #fff; color: #26332e; text-align: left; cursor: pointer; }
.notification-entry.is-unread { border-left: 3px solid #b4232d; background: #fff8f4; }
.notification-entry strong, .notification-entry span, .notification-entry small { display: block; overflow-wrap: anywhere; }
.notification-entry span { margin: 5px 0; font-size: 12px; line-height: 1.5; }
.notification-entry small { color: #67756b; font-size: 10px; }
.notification-entry:focus-visible { outline: 2px solid #436b9b; }
.notification-request-focus { outline: 2px solid #436b9b; outline-offset: -2px; }
#portal-warning { padding: 12px; border: 1px solid #d5a71f; border-radius: 8px; background: #fff8dc; color: #604600; }
.mobile-menu { display: none; }

.page-content { width: min(100%, 1430px); margin: 0 auto; padding: 35px 39px 24px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #75847c; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.live-dot, .footer-indicator { width: 6px; height: 6px; border-radius: 50%; background: #4ca87a; box-shadow: 0 0 0 3px #4ca87a1b; }
h1, h2, p { margin: 0; }
h1 { margin-top: 10px; font-family: "Manrope", "Segoe UI", sans-serif; font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -1.1px; line-height: 1.24; }
.wave { display: inline-block; color: #dca764; font-size: 23px; vertical-align: 2px; }
.welcome-subtitle { margin-top: 7px; color: #7b8982; font-size: 12px; }
.welcome-actions { display: flex; align-items: center; gap: 17px; }
.today-label { color: #78857f; font-size: 10px; white-space: nowrap; }
.button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; font-size: 10px; font-weight: 600; cursor: pointer; transition: background .16s, box-shadow .16s, transform .16s; }
.button:active { transform: translateY(1px); }
.button svg { width: 14px; height: 14px; }
.button-primary { background: #1b725c; color: #fff; box-shadow: 0 2px 3px #1b725c18; }
.button-primary:hover { background: #155e4b; box-shadow: 0 3px 8px #1b725c24; }
.button-secondary { border-color: #e3e9e5; background: #fff; color: #52615a; }
.button-secondary:hover { background: #f5f7f6; }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.stat-card { min-width: 0; padding: 16px 17px 15px; border: 1px solid #e9eeeb; border-radius: 8px; background: var(--surface); box-shadow: 0 1px 2px #172b2010; }
.stat-topline { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 7px; }
.stat-icon svg { width: 16px; height: 16px; }
.icon-people { background: #eaf5ef; color: #318469; }
.icon-devices { background: #eef2f8; color: #607ba3; }
.icon-schedule { background: #eaf5ef; color: #318469; }
.icon-tickets { background: #fff3e9; color: #c88749; }
.icon-uptime { background: #f2eef8; color: #8872ac; }
.stat-kebab { margin: -8px -2px 0 0; color: #a9b2ad; font-size: 20px; letter-spacing: 1px; line-height: 1; }
.stat-value { margin-top: 15px; font-family: "Manrope", sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -.9px; line-height: 1; }
.value-unit { margin-left: 2px; font-size: 15px; }
.stat-label { margin-top: 6px; color: #596760; font-size: 10px; }
.stat-foot { display: flex; align-items: center; gap: 5px; margin-top: 15px; color: #95a09a; font-size: 9px; white-space: nowrap; }
.device-age-summary { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; font-size: 8px; white-space: normal; }
.device-age-summary > span { white-space: nowrap; }
.device-age-healthy { color: #26714a; }
.device-age-attention { color: #a86712; }
.device-age-end-of-life { color: #ba3036; }
.today-schedule-card { display: flex; min-height: 170px; flex-direction: column; }
.today-schedule-date { font-size: 19px; letter-spacing: -.4px; }
.today-schedule-summary { display: grid; gap: 4px; margin-top: 10px; color: #596760; font-size: 9px; line-height: 1.4; }
.today-schedule-summary strong { color: #26714a; font-weight: 650; }
.trend { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 600; }
.trend-up { color: #318469; }
.trend-neutral { color: #518369; }
.small-status-dot { width: 5px; height: 5px; border-radius: 50%; background: #54a274; }

.content-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 17px; align-items: stretch; }
.dashboard-planner { grid-column: 1 / -1; }
.panel { min-width: 0; overflow: hidden; border: 1px solid #e9eeeb; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px #172b2010; }
.panel-header { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px 13px; }
.panel-title-row { display: flex; align-items: center; gap: 9px; }
.panel-header h2 { font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: -.2px; }
.panel-subtitle { margin-top: 5px; color: #909b95; font-size: 10px; }
.count-pill { padding: 4px 7px; border-radius: 10px; background: #eff5f1; color: #4e8069; font-size: 9px; font-weight: 600; }
.text-link { flex: 0 0 auto; color: #31785f; font-size: 10px; font-weight: 600; }
.text-link span, .panel-footer a span, .activity-footer span { padding-left: 3px; font-size: 13px; }
.table-wrap { overflow-x: auto; }
.ticket-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.ticket-table thead { height: 33px; background: #f8faf8; }
.ticket-table th { padding: 0 9px; color: #94a099; font-size: 8px; font-weight: 600; letter-spacing: .55px; }
.ticket-table th:first-child, .ticket-table td:first-child { padding-left: 18px; }
.ticket-table th:last-child, .ticket-table td:last-child { padding-right: 17px; }
.ticket-table td { height: 51px; padding: 0 9px; border-bottom: 1px solid #f0f3f1; color: #58665f; font-size: 10px; }
.ticket-table tbody tr:last-child td { border-bottom: 0; }
.ticket-table tbody tr:hover { background: #fbfcfb; }
.ticket-subject { display: flex; align-items: center; gap: 8px; color: #35423c; font-weight: 500; }
.ticket-id { color: #a1aba5; font-size: 9px; font-weight: 400; }
.requester { display: inline-flex; align-items: center; gap: 7px; color: #68756f; }
.requester .avatar { width: 22px; height: 22px; font-size: 8px; }
.avatar-mint { background: #dff0e4; color: #407b5a; }
.avatar-lilac { background: #ece7f7; color: #76658f; }
.avatar-peach { background: #fbeade; color: #a7704d; }
.avatar-blue { background: #e4eef8; color: #56799a; }
.avatar-gold { background: #f6ecd7; color: #987845; }
.priority { display: inline-flex; align-items: center; gap: 5px; color: #77837c; font-size: 9px; }
.priority i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.priority-high { color: #d37762; }
.priority-medium { color: #bd9250; }
.priority-low { color: #728d7c; }
.status { display: inline-block; padding: 4px 7px; border-radius: 4px; font-size: 9px; }
.status-progress { background: #eff2fa; color: #69799d; }
.status-open { background: #fff4e7; color: #ae8048; }
.status-waiting { background: #f2eef7; color: #85729b; }
.updated-time { color: #909b95 !important; font-size: 9px !important; }
.panel-footer { display: flex; min-height: 39px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; border-top: 1px solid #edf1ee; color: #96a09a; font-size: 9px; }
.panel-footer strong { color: #596760; font-weight: 600; }
.panel-footer a { color: #34795f; font-weight: 600; white-space: nowrap; }
.empty-search { padding: 30px 12px; color: #8b9790; text-align: center; font-size: 11px; }

.activity-panel { display: flex; flex-direction: column; }
.activity-panel .panel-header { min-height: 78px; }
.more-button { align-self: flex-start; padding: 0 2px; border: 0; background: transparent; color: #929d97; font-size: 19px; cursor: pointer; }
.activity-list { padding: 1px 18px 0; }
.activity-item { position: relative; display: flex; min-height: 64px; align-items: center; gap: 10px; }
.activity-item:not(:last-child)::after { position: absolute; top: calc(50% + 14px); bottom: -5px; left: 14px; width: 1px; background: #e9eeeb; content: ""; }
.activity-icon { z-index: 1; display: grid; flex: 0 0 auto; width: 29px; height: 29px; place-items: center; border: 1px solid #edf1ee; border-radius: 50%; background: #fff; color: #6c917a; }
.activity-icon svg { width: 14px; height: 14px; }
.activity-person { color: #719878; }
.activity-device { color: #7589a6; }
.activity-ticket { color: #bd8e5d; }
.activity-security { color: #778f7d; }
.activity-copy { min-width: 0; flex: 1; }
.activity-copy p { overflow: hidden; color: #606e67; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy strong { color: #35433c; font-weight: 600; }
.activity-copy > span { display: block; margin-top: 5px; color: #9aa49e; font-size: 8px; }
.activity-avatar { width: 22px; height: 22px; font-size: 7px; }
.device-mini { display: grid; place-items: center; border-radius: 6px; background: #edf1f7; color: #7388a7; }
.device-mini svg { width: 13px; height: 13px; }
.resolved-check { display: grid; place-items: center; border-radius: 50%; background: #eaf5ef; color: #4e9770; font-size: 11px; font-weight: 700; }
.activity-footer { display: flex; min-height: 39px; align-items: center; justify-content: center; gap: 4px; margin-top: auto; border-top: 1px solid #edf1ee; color: #34795f; font-size: 9px; font-weight: 600; }
.dashboard-planner .panel-header { align-items: flex-start; }
.calendar-nav:focus-visible, .calendar-today:focus-visible, .calendar-day:focus-visible { outline: 2px solid #2671a8; outline-offset: 2px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 2px 17px 12px; }
.calendar-month-control { display: flex; align-items: center; gap: 10px; }
.calendar-month-control h3 { min-width: 125px; color: #303b35; font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 700; text-align: center; }
.calendar-nav, .calendar-today { display: grid; min-width: 27px; height: 27px; place-items: center; border: 1px solid #e9eeeb; border-radius: 6px; background: #fff; color: #59665f; cursor: pointer; }
.calendar-nav { font-size: 19px; line-height: 1; }
.calendar-nav:hover, .calendar-today:hover { border-color: #d9b3b6; background: #fff8f8; color: #c8202d; }
.calendar-today { display: block; padding: 0 9px; font-size: 9px; font-weight: 600; }
.wfh-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 14px 15px; }
.calendar-weekday { padding: 0 5px 7px; color: #929c96; font-size: 8px; font-weight: 700; text-align: right; text-transform: uppercase; }
.calendar-days { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #edf0ee; border-left: 1px solid #edf0ee; }
.calendar-day { display: flex; min-width: 0; min-height: 72px; flex-direction: column; align-items: stretch; gap: 3px; padding: 6px; border: 0; border-right: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; background: #fff; color: #4c5952; text-align: left; cursor: pointer; }
.calendar-day:hover { background: #fffafa; }
.calendar-day-disabled, .calendar-day-disabled:hover { background: #fafafa; color: #a5ada8; cursor: not-allowed; }
.calendar-day-empty { background: #fafbfa; cursor: default; }
.calendar-day-header { display: flex; min-height: 20px; align-items: center; justify-content: flex-end; }
.calendar-day-today .calendar-day-header { justify-content: space-between; }
.calendar-day-today-label { color: #26714a; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.calendar-day-number { align-self: flex-end; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #58655e; font-size: 9px; }
.calendar-day-today .calendar-day-number { background: #26714a; color: #fff; font-weight: 700; }
.calendar-day-assigned:not(.calendar-day-today) { background: #edf5fc; box-shadow: inset 0 0 0 1px #b9d5ee; }
.calendar-day-assigned:not(.calendar-day-today):hover { background: #e4f0fa; }
.calendar-event { overflow: hidden; padding: 3px 4px; border-radius: 3px; background: #f1f3f2; color: #56635c; font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-remote { background: #e8f3fd; color: #23649a; }
.calendar-event-in_office { background: #e8f5ec; color: #246b39; }
.calendar-event-annual_leave, .calendar-event-medical_leave { background: #fcebed; color: #a3212b; }
.calendar-event-public_holiday { background: #fff2d8; color: #8a5b00; }
.calendar-event-off_work { background: #f0f1f2; color: #737b80; }
.calendar-event-more { padding-left: 4px; color: #858f89; font-size: 8px; }
@media (max-width: 680px) {
  .dashboard-planner .panel-header { align-items: flex-start; flex-direction: column; }
  .calendar-day { min-height: 62px; gap: 2px; padding: 4px 3px; }
  .calendar-event { padding: 3px 2px; font-size: 7px; }
  .calendar-event-more { padding-left: 2px; font-size: 7px; }
  .calendar-toolbar { padding-right: 12px; padding-left: 12px; }
  .wfh-calendar { padding-right: 8px; padding-left: 8px; }
}
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 2px 0; color: #98a29d; font-size: 9px; }
.page-footer > span:first-child { display: inline-flex; align-items: center; gap: 7px; color: #708178; }
.footer-indicator { width: 5px; height: 5px; }
.footer-separator { padding: 0 4px; color: #c4ccc7; }

.invite-dialog { width: min(420px, calc(100% - 32px)); padding: 0; overflow: visible; border: 0; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 24px 70px #14271f2e; }
.invite-dialog::backdrop { background: #14271f70; backdrop-filter: blur(3px); }
.invite-dialog form { padding: 25px; }
.dialog-heading { display: flex; justify-content: space-between; }
.dialog-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: #eaf5ef; color: #28785e; }
.dialog-icon svg { width: 18px; height: 18px; }
.dialog-close { width: 27px; height: 27px; border: 0; border-radius: 6px; background: transparent; color: #929d97; font-size: 21px; cursor: pointer; }
.dialog-close:hover { background: #f2f5f3; }
.invite-dialog h2 { margin-top: 19px; font-family: "Manrope", sans-serif; font-size: 19px; letter-spacing: -.5px; }
.dialog-description { margin-top: 5px; margin-bottom: 20px; color: #84918a; font-size: 11px; }
.form-label { display: block; margin: 13px 0 6px; color: #4c5a53; font-size: 10px; font-weight: 600; }
.form-input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #e3e9e5; border-radius: 6px; outline: 0; color: #26352e; font-size: 11px; }
.form-input:focus { border-color: #73a88e; box-shadow: 0 0 0 3px #55a67b1a; }
.form-input::placeholder { color: #b1bab5; }
.demo-note { margin-top: 15px; color: #929d97; font-size: 9px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 10; padding: 11px 15px; border: 1px solid #d9e8de; border-radius: 7px; background: #fff; color: #32654d; box-shadow: 0 5px 20px #183a2a14; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1500px) {
  .page-content { padding-right: 48px; padding-left: 48px; }
  .topbar { padding-right: 48px; padding-left: 48px; }
  .stat-card { padding: 18px 20px 17px; }
  .content-grid { gap: 17px; margin-top: 19px; }
}
@media (max-width: 1160px) {
  :root { --sidebar-width: 220px; }
  .sidebar { padding-right: 14px; padding-left: 14px; }
  .topbar { padding-right: 27px; padding-left: 27px; }
  .page-content { padding-right: 27px; padding-left: 27px; }
  .stat-card { padding-right: 13px; padding-left: 13px; }
  .stat-foot { flex-wrap: wrap; gap: 2px 5px; }
  .content-grid { grid-template-columns: minmax(0, 1.5fr) minmax(250px, .9fr); }
  .ticket-table th, .ticket-table td { padding-right: 6px; padding-left: 6px; }
  .ticket-table th:first-child, .ticket-table td:first-child { padding-left: 13px; }
  .ticket-table th:last-child, .ticket-table td:last-child { padding-right: 12px; }
}
@media (max-width: 930px) {
  :root { --sidebar-width: 205px; }
  .content-grid { grid-template-columns: 1fr; }
  .activity-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; padding-bottom: 7px; }
  .activity-item:nth-child(2)::after { display: none; }
  .stat-card { padding: 14px 12px; }
  .stat-foot { font-size: 8px; }
}
@media (max-width: 680px) {
  .sidebar { width: 248px; box-shadow: 12px 0 30px #12281d20; transform: translateX(-110%); transition: transform .2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { height: 58px; padding: 0 17px; }
  .breadcrumbs { gap: 8px; }
  .topbar-actions { gap: 6px; }
  .search-box { width: min(43vw, 220px); height: 33px; }
  .search-box kbd { display: none; }
  .notification-button { display: grid; }
  .mobile-menu { display: grid; }
  .page-content { padding: 27px 17px 19px; }
  .welcome-row { align-items: flex-start; margin-bottom: 20px; }
  .welcome-actions { align-items: flex-end; flex-direction: column-reverse; gap: 8px; }
  .today-label { font-size: 9px; }
  .button { min-height: 34px; padding: 0 9px; font-size: 9px; white-space: nowrap; }
  h1 { font-size: 23px; }
  .welcome-subtitle { max-width: 240px; font-size: 11px; line-height: 1.5; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { padding: 13px; }
  .stat-value { margin-top: 12px; font-size: 24px; }
  .stat-foot { min-height: 22px; margin-top: 11px; }
  .content-grid { margin-top: 12px; gap: 12px; }
  .panel-header { padding-right: 14px; padding-left: 14px; }
  .ticket-table { min-width: 790px; }
  .panel-footer { padding-right: 13px; padding-left: 13px; }
  .activity-list { display: block; padding-right: 14px; padding-left: 14px; }
  .activity-item:nth-child(2)::after { display: block; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 14px; }
}
@media (max-width: 420px) {
  .search-box { width: 37vw; }
  .search-box input { font-size: 10px; }
  .welcome-row { gap: 8px; }
  .welcome-actions { gap: 7px; }
  .welcome-actions .button { gap: 5px; padding-right: 7px; padding-left: 7px; }
  .welcome-actions .button svg { width: 12px; height: 12px; }
  h1 { font-size: 21px; }
  .eyebrow { font-size: 8px; letter-spacing: .8px; }
  .stat-card { padding: 11px; }
  .stat-foot { white-space: normal; }
  .stat-label { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.sidebar { background: #151515; }
.brand-mark { background: #c8202d; color: #fff; }
.brand-copy > span, .workspace-label { color: #aaa; }
.nav-link { color: #c4c4c4; }
.nav-link:hover, .nav-link.active { background: #292929; color: #fff; }
.nav-link.active { box-shadow: inset 2px 0 0 #e33440; }
.nav-count-alert { background: #c8202d; }
.help-card > span:not(.help-icon), .profile-copy span { color: #aaa; }
.help-icon, .help-card > a { color: #f17d84; }
.avatar-profile { background: #c8202d; color: #fff; }
.button-primary { background: #c8202d; box-shadow: 0 2px 3px #c8202d18; }
.button-primary:hover { background: #a71924; box-shadow: 0 3px 8px #c8202d24; }
.live-dot, .footer-indicator { background: #c8202d; box-shadow: 0 0 0 3px #c8202d1b; }
.wave { color: #c8202d; }
.icon-people, .icon-tickets { background: #fbecee; color: #c8202d; }
.icon-devices, .icon-uptime { background: #f0f0f0; color: #4b4b4b; }
.trend-up, .trend-neutral { color: #b51d28; }
.small-status-dot { background: #c8202d; }
.count-pill { background: #fbecee; color: #b51d28; }
.avatar-mint, .avatar-peach { background: #fbecee; color: #a91c27; }
.avatar-lilac, .avatar-blue, .avatar-gold { background: #ededed; color: #4e4e4e; }
.priority-high { color: #c8202d; }
.priority-medium, .priority-low { color: #777; }
.status-progress, .status-waiting { background: #f0f0f0; color: #555; }
.status-in-progress { background: #f0f0f0; color: #555; }
.status-open { background: #fbecee; color: #b51d28; }
.activity-person, .activity-ticket, .activity-security { color: #c8202d; }
.activity-device { color: #656565; }
.resolved-check { background: #fbecee; color: #b51d28; }
.device-mini { background: #f0f0f0; color: #555; }
.text-link, .panel-footer a, .activity-footer { color: #b51d28; }
.dialog-icon { background: #fbecee; color: #c8202d; }
.form-input:focus { border-color: #c8202d; box-shadow: 0 0 0 3px #c8202d1a; }
.toast { border-color: #f0c9cc; color: #a71924; }
.sign-out-button { padding: 5px 8px; border: 1px solid #ffffff38; border-radius: 5px; background: transparent; color: #fff; font-size: 9px; cursor: pointer; }
.sign-out-button:hover { background: #ffffff16; }
.footer-sign-in { color: #b51d28; font-weight: 600; }
.footer-sign-in[hidden], [hidden] { display: none !important; }
.request-type { display: inline-block; padding: 4px 6px; border-radius: 4px; font-size: 8px; font-weight: 600; }
.type-it { background: #f0f0f0; color: #555; }
.type-hr, .type-admin { background: #fbecee; color: #b51d28; }
.approval-state { color: #888; font-size: 9px; }
.approval-approved { color: #555; }
.approval-rejected { color: #b51d28; }
.approval-actions { display: inline-flex; gap: 4px; }
.approval-button { padding: 4px 6px; border: 1px solid #e7e7e7; border-radius: 4px; background: #fff; color: #444; font-size: 8px; cursor: pointer; }
.approval-button:disabled { opacity: .55; cursor: wait; }
.approve-button { border-color: #efc9cc; color: #b51d28; }
.approve-button:hover:not(:disabled) { background: #fbecee; }
.reject-button:hover:not(:disabled) { border-color: #c8c8c8; background: #f4f4f4; }

.page-view[hidden] { display: none; }
.people-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.people-heading h1 { margin-top: 9px; }
.people-date-control { display: grid; gap: 6px; color: #626262; font-size: 10px; font-weight: 600; }
.people-date-control .form-input { min-width: 165px; }
.directory-panel, .wfh-panel { margin-bottom: 16px; }
.directory-panel .panel-header, .wfh-panel .panel-header { min-height: 75px; }
.directory-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.directory-table thead { height: 35px; background: #f8f8f8; }
.directory-table th { padding: 0 12px; color: #909090; font-size: 8px; font-weight: 600; letter-spacing: .6px; }
.directory-table th:first-child, .directory-table td:first-child { padding-left: 18px; }
.directory-table td { height: 55px; padding: 8px 12px; border-bottom: 1px solid #f0f0f0; color: #606060; font-size: 10px; }
.directory-table tbody tr:last-child td { border-bottom: 0; }
.directory-table tbody tr:hover { background: #fcfcfc; }
.directory-member { gap: 9px; color: #292929; }
.directory-member strong { font-weight: 600; }
.directory-position { color: #454545 !important; }
.directory-department, .directory-date, .directory-location { color: #777 !important; }
.presence-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 12px; background: #f0f0f0; color: #555; font-size: 9px; }
.presence-badge::before { width: 6px; height: 6px; border-radius: 50%; background: #737373; content: ""; }
.presence-in_office, .presence-select.presence-in_office { border-color: #b8dfc3; background: #e8f5ec; color: #246b39; }
.presence-in_office::before { background: #32934f; }
.presence-remote, .presence-select.presence-remote { border-color: #b7d7f5; background: #e8f3fd; color: #23649a; }
.presence-remote::before { background: #378bd0; }
.presence-annual_leave, .presence-medical_leave,
.presence-select.presence-annual_leave, .presence-select.presence-medical_leave { border-color: #efc0c4; background: #fcebed; color: #a3212b; }
.presence-annual_leave::before, .presence-medical_leave::before { background: #c8303b; }
.presence-off_work, .presence-select.presence-off_work { border-color: #d9dde0; background: #f0f1f2; color: #737b80; }
.presence-select { display: block; min-width: 145px; height: 29px; margin-top: 5px; padding: 0 7px; border: 1px solid #e6e6e6; border-radius: 5px; font: inherit; font-size: 9px; }
.presence-select:disabled { cursor: wait; opacity: .65; }
.wfh-person-control { display: grid; width: min(100% - 36px, 340px); gap: 5px; margin: 0 18px 13px; color: #626262; font-size: 10px; font-weight: 600; }
.wfh-person-control .form-input { height: 35px; }
.wfh-edit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 18px 13px; }
.wfh-edit-modes { display: flex; gap: 7px; }
.wfh-edit-toolbar .button { min-height: 32px; }
.wfh-edit-toolbar .button-primary { background: #c8202d; }
.calendar-day-pending-add { background: #edf6fd !important; box-shadow: inset 0 0 0 2px #2671a8; }
.calendar-day-no-entry { opacity: .48; cursor: not-allowed; }
.people-wfh-calendar { padding-bottom: 18px; }
.people-wfh-calendar .calendar-day { min-height: 82px; }
.people-wfh-calendar .calendar-day-selected { background: #edf5fc; box-shadow: inset 0 0 0 1px #b9d5ee; }
.people-wfh-calendar .calendar-day-today,
.people-wfh-calendar .calendar-day-today.calendar-day-selected { background: #eef7f0; box-shadow: inset 0 0 0 2px #26714a; }
.people-wfh-calendar .calendar-day-today { background: #eef7f0; box-shadow: inset 0 0 0 2px #26714a; }
.people-wfh-calendar .calendar-day-selected:not(.calendar-day-today) .calendar-day-number { background: transparent; color: #58655e; font-weight: 400; }
.calendar-day-readonly { cursor: default; }
.calendar-day-readonly:hover { background: #fff; }
.wfh-panel .panel-header { min-height: 82px; }
.request-filters { display: flex; gap: 6px; padding: 14px 18px; border-bottom: 1px solid #edf0ee; }
.request-filter { display: inline-flex; min-height: 31px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #68746e; font-size: 10px; font-weight: 600; cursor: pointer; }
.request-filter span { display: grid; min-width: 19px; height: 19px; place-items: center; border-radius: 10px; background: #f0f2f0; color: #69756e; font-size: 8px; }
.request-filter.active { border-color: #edc7ca; background: #fff7f7; color: #a71924; }
.request-filter.active span { background: #fbecee; color: #a71924; }
.request-table-wrap { min-height: 140px; }
.request-table { width: 100%; table-layout: fixed; white-space: normal; }
.request-table th:nth-child(1) { width: 12%; }
.request-table th:nth-child(2) { width: 13%; }
.request-table th:nth-child(3) { width: 15%; }
.request-table th:nth-child(4) { width: 27%; }
.request-table th:nth-child(5) { width: 15%; }
.request-table th:nth-child(6) { width: 18%; }
.request-table td { overflow-wrap: anywhere; }
.device-filters { display: flex; align-items: flex-end; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #edf0ee; }
.device-search-control, .device-age-control { display: grid; min-width: 190px; gap: 6px; color: #626262; font-size: 10px; font-weight: 600; }
.device-search-control { flex: 1; max-width: 390px; }
.device-filters .form-input { height: 36px; }
.device-results-count { margin: 0 0 10px auto; color: #68746e; font-size: 10px; white-space: nowrap; }
.device-table { min-width: 970px; }
.device-table-wrap { max-height: 520px; overflow-x: hidden; overflow-y: auto; scrollbar-color: #aebbb4 #edf0ee; scrollbar-width: thin; }
.device-table thead th { position: sticky; top: 0; z-index: 1; background: #f8faf8; }
.device-horizontal-scroll { height: 17px; overflow-x: auto; overflow-y: hidden; scrollbar-color: #aebbb4 #edf0ee; scrollbar-width: thin; }
.device-horizontal-scroll > div { height: 1px; }
.device-horizontal-scroll-top { margin-top: 7px; }
.device-horizontal-scroll-bottom { margin-top: 3px; }
@media (pointer: coarse), (max-width: 930px) {
  .device-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.device-pagination { border-top: 0; }
.device-table th:nth-child(1) { width: 14%; }
.device-table th:nth-child(2) { width: 13%; }
.device-table th:nth-child(3) { width: 13%; }
.device-table th:nth-child(4) { width: 14%; }
.device-table th:nth-child(5) { width: 12%; }
.device-table th:nth-child(6) { width: 12%; }
.device-table th:nth-child(7) { width: 8%; }
.device-table th:nth-child(8) { width: 8%; }
.device-table th:nth-child(9) { width: 8%; }
.device-table td { overflow-wrap: anywhere; }
.device-row-actions { display: flex; gap: 5px; }
.device-row-actions .request-decision-button { min-width: 38px; }
.device-dialog { max-height: min(760px, calc(100vh - 32px)); overflow-y: auto; }
.device-dialog form { padding: 22px; }
.device-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.device-form-grid label { min-width: 0; }
.device-form-grid .form-input { width: 100%; min-height: 37px; }
.inventory-filters { display: flex; align-items: flex-end; gap: 14px; margin: 0 0 16px; padding: 15px 16px; border: 1px solid #e0e2de; border-radius: 9px; background: #f7f6f2; }
.inventory-search-control, .inventory-category-control { display: grid; min-width: 180px; gap: 6px; color: #626262; font-size: 10px; font-weight: 600; }
.inventory-search-control { flex: 1; max-width: 440px; }
.inventory-category-control { width: min(100%, 220px); }
.inventory-filters .form-label { margin: 0; }
.inventory-filters .form-input { height: 36px; }
.inventory-grid { display: grid; grid-auto-rows: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-height: 1168px; overflow-y: auto; padding: 2px 5px 2px 1px; scrollbar-color: #b9bcb7 #e8e9e5; scrollbar-width: thin; }
.inventory-card { display: flex; flex-direction: column; min-width: 0; padding: 0 13px 12px; overflow: hidden; border: 1px solid #e5e9e7; border-top: 3px solid var(--inventory-accent, #596a7d); border-radius: 10px; background: #fff; box-shadow: 0 2px 7px #18262208; }
.inventory-card-top { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -13px 10px; padding: 0 10px; background: var(--inventory-tint, #eff3f7); }
.inventory-category { overflow: hidden; color: var(--inventory-category-text, #455466); font-size: 10px; font-weight: 700; letter-spacing: .6px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.inventory-stock-status { flex: 0 0 auto; padding: 5px 9px; border-radius: 20px; font-size: 9px; font-weight: 700; }
.inventory-stock-optimal { background: #e8f5ec; color: #246b39; }
.inventory-stock-low { background: #fcebed; color: #a3212b; }
.inventory-item-name { display: -webkit-box; min-height: 34px; overflow: hidden; color: #26332e; font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -.25px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.inventory-quantity-label { display: block; margin-top: 8px; color: #84918b; font-size: 10px; }
.inventory-quantity { display: block; margin-top: 2px; color: #202b26; font-family: "Manrope", sans-serif; font-size: 28px; font-weight: 700; line-height: 1.2; }
.inventory-minimum { margin-top: 7px; color: #7e8983; font-size: 10px; }
.inventory-card-actions { display: flex; flex-shrink: 0; align-items: center; gap: 7px; margin-top: auto; padding-top: 9px; border-top: 1px solid #edf0ee; }
.return-item-list { display: grid; gap: 10px; max-height: 30vh; overflow-y: auto; margin: 16px 0; }
.return-item-list[hidden] { display: none; }
.return-item-list label { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; font-size: 13px; }
.return-item-list input { flex-shrink: 0; }
.inventory-adjust-button { display: grid; width: 32px; height: 30px; place-items: center; border: 1px solid #dfe5e1; border-radius: 6px; background: #fff; color: #4e5d55; font-size: 18px; cursor: pointer; }
.inventory-adjust-button:hover:not(:disabled) { border-color: #e8b6ba; background: #fff7f7; color: #a71924; }
.inventory-adjust-button:disabled, .inventory-delete-button:disabled { cursor: wait; opacity: .55; }
.inventory-delete-button { min-height: 30px; margin-left: auto; padding: 0 9px; border: 1px solid #efc0c4; border-radius: 6px; background: #fff; color: #a3212b; font-size: 9px; font-weight: 600; cursor: pointer; }
.inventory-delete-button:hover:not(:disabled) { background: #fcebed; }
.inventory-action-btn { min-height: 30px; padding: 0 10px; border: 1px solid #dfe5e1; border-radius: 6px; background: #fff; color: #334155; font-size: 10px; font-weight: 600; cursor: pointer; transition: all 0.15s ease; }
.inventory-action-btn:hover { border-color: #cbd5e1; background: #f8fafc; color: #0f172a; }
.inventory-empty { margin-top: 12px; border: 1px dashed #dfe5e1; border-radius: 9px; background: #fff; }
.inventory-dialog .form-label { display: block; margin: 14px 0 6px; }
.inventory-dialog .form-input { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #dedede; border-radius: 6px; outline: 0; background: #fff; color: #222; font-size: 11px; }
.inventory-dialog .form-input:focus { border-color: #c8202d; box-shadow: 0 0 0 3px #c8202d1a; }
.inventory-form-number-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inventory-form-number-grid label { min-width: 0; }
.request-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid #edf0ee; }
.request-pagination-summary { color: #68746e; font-size: 10px; }
.request-pagination-controls { display: flex; flex-wrap: wrap; gap: 5px; }
.request-page-button { min-width: 30px; min-height: 29px; padding: 0 8px; border: 1px solid #e3e9e5; border-radius: 5px; background: #fff; color: #52615a; font-size: 10px; cursor: pointer; }
.request-page-button[aria-current="page"] { border-color: #edc7ca; background: #fff7f7; color: #a71924; font-weight: 700; }
.request-page-button:disabled { color: #a5ada8; cursor: default; }
.directory-member-name { color: #414a45 !important; font-weight: 600; }
.request-item-cell { min-width: 0; color: #4e5953 !important; line-height: 1.5; }
.request-item-scroll { max-height: 76px; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; scrollbar-width: thin; }
.request-status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 12px; font-size: 9px; font-weight: 700; }
.request-status-pending { background: #fff3df; color: #8b611d; }
.request-status-approved { background: #e8f5ec; color: #246b39; }
.request-status-rejected { background: #fcebed; color: #a3212b; }
.request-status-expired { background: #ececea; color: #5d625f; }
.request-date-hint { color: #7f8983; font-weight: 400; }
.request-due-date-cell > span { display: block; }
.request-due-date-cell > .request-due-signal { margin-top: 5px; }
.request-due-signal { width: fit-content; padding: 3px 6px; border-radius: 10px; background: #fff3df; color: #8b611d; font-size: 8px; font-weight: 700; }
.request-due-signal-today, .request-due-signal-expired { background: #fcebed; color: #a3212b; }
.request-approval-actions { display: flex; gap: 5px; margin-top: 7px; }
.request-decision-button { min-height: 25px; padding: 0 7px; border: 1px solid #e8eae8; border-radius: 5px; background: #fff; font-size: 8px; font-weight: 600; cursor: pointer; }
.request-decision-button:disabled { cursor: wait; opacity: .55; }
.request-decision-approved { border-color: #b8dfc3; color: #246b39; }
.request-decision-approved:hover:not(:disabled) { background: #e8f5ec; }
.request-decision-rejected { border-color: #efc0c4; color: #a3212b; }
.request-decision-rejected:hover:not(:disabled) { background: #fcebed; }
.request-delete-button { display: block; margin-top: 6px; border-color: #efc0c4; color: #a3212b; }
.request-delete-button:hover:not(:disabled) { background: #fcebed; }
.request-decision-time { display: block; margin-top: 5px; color: #8a948e; font-size: 8px; }
.request-dialog { max-height: min(720px, calc(100vh - 32px)); overflow-y: auto; }
.request-dialog .form-label { display: block; margin: 15px 0 6px; }
.request-dialog .form-input { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #dedede; border-radius: 6px; outline: 0; background: #fff; color: #222; font-size: 11px; }
.request-dialog .form-input:focus { border-color: #c8202d; box-shadow: 0 0 0 3px #c8202d1a; }
.request-dialog input[readonly] { background: #f6f7f6; color: #67726b; }
.request-dialog .request-item-input { min-height: 95px; padding-top: 9px; resize: vertical; }

@media (max-width: 1200px) {
  .inventory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .people-heading { align-items: flex-start; flex-direction: column; }
  .people-date-control { width: 100%; }
  .people-date-control .form-input { width: 100%; }
  .directory-table { min-width: 670px; }
  .wfh-person-control { width: calc(100% - 26px); margin-right: 13px; margin-left: 13px; }
  .wfh-edit-toolbar { margin-right: 13px; margin-left: 13px; }
  .people-wfh-calendar .calendar-day { min-height: 70px; }
  .request-filters { gap: 2px; overflow-x: auto; padding-right: 10px; padding-left: 10px; }
  .request-filter { flex: 0 0 auto; gap: 5px; padding: 0 7px; font-size: 9px; }
  .request-table { min-width: 820px; }
  .device-filters { align-items: stretch; flex-direction: column; gap: 10px; padding: 12px; }
  .device-search-control, .device-age-control { width: 100%; max-width: none; }
  .device-results-count { margin: 0; }
  .inventory-filters { align-items: stretch; flex-direction: column; gap: 10px; padding: 12px; }
  .inventory-search-control, .inventory-category-control { width: 100%; max-width: none; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 1730px; }
  .inventory-card { padding-right: 13px; padding-left: 13px; }
  .inventory-card-top { margin-right: -13px; margin-left: -13px; padding-right: 10px; padding-left: 10px; }
}

@media (max-width: 460px) {
  .inventory-grid { grid-template-columns: 1fr; max-height: 3470px; }
  .request-table { min-width: 820px; }
  .device-form-grid { grid-template-columns: 1fr; }
}

.login-page { min-height: 100vh; background: #fff; color: #171717; }
.login-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(320px, .82fr) 1.18fr; }
.login-brand-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 36px clamp(30px, 6vw, 82px); background: #151515; color: #fff; }
.login-brand-panel::before { position: absolute; right: -145px; bottom: -160px; width: 410px; height: 410px; border: 1px solid #ffffff17; border-radius: 50%; content: ""; }
.login-brand-panel::after { position: absolute; right: -67px; bottom: -82px; width: 255px; height: 255px; border: 1px solid #c8202d; border-radius: 50%; content: ""; }
.login-brand { z-index: 1; display: inline-flex; width: fit-content; align-items: center; gap: 11px; font-family: "Manrope", sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -.7px; }
.login-brand-mark, .login-mobile-brand > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; background: #c8202d; color: #fff; font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 800; }
.login-brand-message { z-index: 1; max-width: 410px; padding: 55px 0 78px; }
.login-eyebrow, .login-form-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #e4b4b7; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.login-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #dc2935; }
.login-brand-message h1 { margin: 24px 0 13px; font-family: "Manrope", sans-serif; font-size: clamp(34px, 4.2vw, 56px); font-weight: 700; letter-spacing: -2.2px; line-height: 1.08; }
.login-brand-message p { max-width: 310px; color: #aaa; font-size: 13px; line-height: 1.7; }
.login-brand-footer { z-index: 1; color: #888; font-size: 9px; font-weight: 600; letter-spacing: 1.4px; }
.login-form-panel { display: flex; min-height: 100vh; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 8vw, 115px); }
.login-form-wrap { width: min(100%, 380px); margin: auto; }
.login-mobile-brand { display: none; }
.login-form-eyebrow { color: #b51d28; }
.login-form-wrap h2 { margin-top: 13px; font-family: "Manrope", sans-serif; font-size: clamp(23px, 2.5vw, 30px); font-weight: 700; letter-spacing: -.8px; }
.login-intro { margin-top: 7px; color: #777; font-size: 12px; }
.login-label { display: block; margin: 22px 0 7px; color: #333; font-size: 10px; font-weight: 600; }
.login-input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #dedede; border-radius: 6px; outline: 0; background: #fff; color: #171717; font-size: 11px; transition: border-color .15s, box-shadow .15s; }
.login-input::placeholder { color: #aaa; }
.login-input:focus { border-color: #c8202d; box-shadow: 0 0 0 3px #c8202d18; }
.login-form-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: #888; font-size: 9px; }
.login-submit { display: flex; width: 100%; height: 43px; align-items: center; justify-content: center; gap: 8px; margin-top: 25px; border: 0; border-radius: 6px; background: #c8202d; color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .15s; }
.login-submit:hover:not(:disabled) { background: #a71924; }
.login-submit:disabled { background: #bb8589; cursor: not-allowed; }
.login-submit span { font-size: 15px; }
.login-help { margin-top: 23px; color: #888; font-size: 10px; line-height: 1.6; text-align: center; }
.login-back-link { display: block; margin-top: 25px; color: #777; font-size: 10px; text-align: center; }
.login-back-link:hover { color: #b51d28; }
.login-notice { margin-top: 20px; padding: 11px 12px; border: 1px solid #e5e5e5; border-radius: 6px; background: #f7f7f7; color: #555; font-size: 10px; line-height: 1.55; }
.login-notice.is-error { border-color: #f0c9cc; background: #fff7f7; color: #a71924; }
.login-footer { display: flex; width: 100%; justify-content: space-between; gap: 8px; margin-top: 44px; color: #999; font-size: 9px; }
.login-footer span:first-child { color: #555; font-weight: 700; letter-spacing: .5px; }

@media (max-width: 760px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100vh; padding: 30px 24px; }
  .login-mobile-brand { display: flex; width: fit-content; align-items: center; gap: 9px; margin-bottom: 36px; font-family: "Manrope", sans-serif; font-size: 17px; font-weight: 800; }
  .login-mobile-brand > span { width: 31px; height: 31px; font-size: 19px; }
}

body { background: var(--canvas); }
.sidebar { overflow-y: auto; background: #18191d; border-right: 1px solid #282a30; }
.brand { margin-bottom: 32px; }
.brand-copy strong { font-size: 20px; letter-spacing: -.5px; }
.brand-copy > span { font-size: 9px; letter-spacing: 1.8px; }
.workspace-label { margin-bottom: 12px; font-size: 9px; letter-spacing: 1.4px; }
.workspace-label, .brand-copy > span { color: #a5a9b3; }
.nav-list { gap: 6px; }
.nav-link { min-height: 44px; border-radius: 9px; color: #c8cbd3; font-size: 12px; }
.nav-link:hover { background: #25262d; color: #fff; }
.nav-link.active { background: #c8202d; color: #fff; box-shadow: 0 4px 12px #00000018; }
.nav-link.active .nav-count { color: #fff; }
.nav-link.active .nav-count-alert { background: #ffffff24; }
.main-content { background: var(--canvas); }
.topbar { border-bottom-color: var(--line); background: rgb(255 255 255 / 96%); }
.breadcrumbs { color: #697386; font-size: 12px; }
.breadcrumbs strong { color: #303846; }
.breadcrumbs > span:first-child { color: #303846; font-weight: 600; }
.page-content { min-height: calc(100vh - 64px); }
h1, .brand-copy strong, .stat-value, .panel-header h2, .calendar-month-control h3,
.invite-dialog h2, .inventory-item-name, .inventory-quantity, .login-brand,
.login-brand-mark, .login-mobile-brand, .login-mobile-brand > span,
.login-brand-message h1, .login-form-wrap h2 { font-family: inherit; }
h1 { letter-spacing: -.8px; }
.welcome-subtitle { color: var(--muted); line-height: 1.6; }
.button { min-height: 38px; border-radius: 8px; font-size: 11px; }
.button-primary { background: #c8202d; box-shadow: 0 2px 4px #c8202d1a; }
.button-primary:hover { background: #ad1c28; box-shadow: 0 4px 10px #c8202d26; }
button:focus-visible, a:focus-visible { outline: 2px solid #c8202d; outline-offset: 3px; }
.icon-button { border-radius: 9px; }
.stat-card, .panel, .inventory-card {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 1px 3px #10182805, 0 4px 12px #10182803;
}
.stat-card { border-radius: 12px; }
.stat-label { font-size: 11px; font-weight: 600; color: #475467; }
.stat-value { font-size: 30px; color: #202630; }
.panel { border-radius: 12px; }
.panel-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.panel-header h2 { font-size: 14px; color: #303846; }
.directory-panel .panel-header, .wfh-panel .panel-header { background: #fff; }
.calendar-days { border-color: #e4e4df; }
.calendar-day { border-color: var(--line); background: #fff; }
.calendar-day:hover { background: #fff7f8; }
.calendar-day-disabled, .calendar-day-disabled:hover,
.calendar-day-empty { background: #f8f9fb; }
.calendar-day-readonly:hover { background: #fff; }
.people-wfh-calendar .calendar-day-selected { background: #edf5fc; }
.people-wfh-calendar .calendar-day-today,
.people-wfh-calendar .calendar-day-today.calendar-day-selected { background: #eef7f0; }
.people-wfh-calendar .calendar-day-today { background: #eef7f0; }
.calendar-weekday { color: #747d77; }
.ticket-table thead, .directory-table thead { background: #f8f9fb; }
.ticket-table th, .directory-table th { color: #667085; letter-spacing: .35px; }
.ticket-table td, .directory-table td { border-bottom-color: #eef0f3; }
.ticket-table tbody tr:hover, .directory-table tbody tr:hover { background: #fafbfc; }
.activity-icon { background: #f6f5f1; }
.activity-item:not(:last-child)::after { background: #e3e4df; }
.button-secondary, .calendar-nav, .calendar-today,
.request-page-button, .approval-button, .request-decision-button,
.inventory-adjust-button, .inventory-delete-button {
  border-color: #dfe3e9;
  background: #fff;
}
.button-secondary:hover, .calendar-nav:hover, .calendar-today:hover,
.request-page-button:hover:not(:disabled), .approval-button:hover:not(:disabled) {
  background: #f5f6f8;
}
.form-input, .inventory-dialog .form-input, .request-dialog .form-input {
  border-color: #d5dae2;
  border-radius: 8px;
  background: #fff;
}
.form-input:focus { outline: none; border-color: #c8202d; box-shadow: 0 0 0 3px #c8202d14; }
.device-filters, .request-filters { background: #fff; }
.inventory-card { border-top-color: var(--inventory-accent, #596a7d); background: linear-gradient(145deg, var(--inventory-tint, #eff3f7), var(--surface) 70%); }
.inventory-card-top { background: var(--inventory-tint, #eff3f7); }
.inventory-category { color: var(--inventory-category-text, #455466); }
.inventory-card-actions, .request-pagination { border-color: #e5e5df; }
.inventory-empty { background: #fff; }
.invite-dialog, .request-dialog, .inventory-dialog { background: #fff; border-radius: 14px; box-shadow: 0 20px 60px #1018282b; }
.dialog-close:hover { background: #f2f4f7; }
.login-page { background: #fff; }
.login-brand-panel { background: linear-gradient(145deg, #18191d, #272126); }
.login-brand-message p { color: #bec1c9; }
.login-form-panel { background: #fff; }
.login-submit { min-height: 46px; border-radius: 9px; font-size: 13px; box-shadow: 0 4px 10px #c8202d1a; }
.login-intro { line-height: 1.6; font-size: 13px; }
.login-help { font-size: 11px; color: #667085; }
.login-footer { font-size: 10px; }
.login-input { border-color: #d9ddd8; background: #fdfcf9; }
.login-notice { border-color: #e0e2de; background: #efefeb; }

@media (max-width: 680px) {
  .page-content { min-height: calc(100vh - 58px); }
  .stat-value { font-size: 26px; }
  .welcome-row { flex-wrap: wrap; }
  .welcome-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .breadcrumbs { min-width: 0; font-size: 11px; }
  .breadcrumbs strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { flex-shrink: 0; }
  .login-footer { flex-wrap: wrap; }
}

/* Documents */
.documents-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.documents-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; font-size: 12px; color: #606060; }
.documents-crumb { padding: 0; border: 0; background: none; color: #1f6f54; font: inherit; cursor: pointer; }
.documents-crumb:hover { text-decoration: underline; }
.documents-name { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: #1c1c1c; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; text-align: left; }
.documents-name:hover { text-decoration: underline; }
.documents-location { margin: 2px 0 0 26px; color: #777; font-size: 10px; }
.documents-drop-over { outline: 2px dashed #8a1f2b; outline-offset: -2px; background: rgba(138, 31, 43, 0.06); }
.documents-table tr[draggable="true"] { cursor: grab; }
.documents-icon { width: 18px; height: 14px; flex: none; border-radius: 3px; background: #7a8f86; }
.documents-icon-folder { background: #e0a526; }
.documents-actions { display: flex; gap: 6px; }
.documents-action { min-height: 28px; padding: 0 10px; font-size: 10px; }
.documents-delete { color: #b3261e; }
.documents-table td:nth-child(1) { white-space: normal; word-break: break-word; }
#documents-dialog-message { margin: 10px 0 14px; color: #606060; font-size: 12px; line-height: 1.5; }
@media (max-width: 680px) { .documents-actions { flex-wrap: wrap; } }

/* Requests table: compact, aligned layout */
.request-table { min-width: 1000px; }
.request-table th:nth-child(1) { width: 9%; }
.request-table th:nth-child(2) { width: 8%; }
.request-table th:nth-child(3) { width: 9%; }
.request-table th:nth-child(4) { width: 11%; }
.request-table th:nth-child(5) { width: 11%; }
.request-table th:nth-child(6) { width: 26%; }
.request-table th:nth-child(7) { width: 11%; }
.request-table th:nth-child(8) { width: 15%; }
.request-table th { padding: 0 8px; vertical-align: middle; }
.request-table td { height: auto; padding: 8px; vertical-align: top; line-height: 1.4; }
.request-table th:first-child, .request-table td:first-child { padding-left: 14px; }
.request-table .request-item-scroll { max-height: 64px; }
.request-table .request-approval-actions { margin-top: 5px; }
.request-search-filters { flex-wrap: wrap; }
.request-search-filters .device-search-control { min-width: 0; flex-basis: 220px; }
.request-search-filters .device-age-control { min-width: 150px; }
@media (max-width: 680px) {
  .request-search-filters .device-search-control { flex-basis: auto; }
}

/* Document file-type icons */
.documents-icon { display: inline-grid; place-items: center; width: 26px; height: 18px; border-radius: 3px; color: #fff; font-size: 7px; font-weight: 700; letter-spacing: .2px; line-height: 1; }
.documents-icon-folder { width: 22px; background: #e0a526; }
.documents-icon-xls { background: #1d6f42; }
.documents-icon-pdf { background: #d32f2f; }
.documents-icon-doc { background: #2b579a; }
.documents-icon-ppt { background: #d24726; }
.documents-icon-img { background: #8e44ad; }
.documents-icon-zip { background: #a67c00; }
.documents-icon-txt { background: #607d8b; }
.documents-icon-file { background: #7a8f86; }

/* Device history dialog */
#history-dialog { width: min(460px, calc(100% - 32px)); padding: 22px; }
#history-dialog .dialog-heading { margin: 0; }
#history-dialog h2 { margin-top: 12px; }
.history-subtitle { margin: 4px 0 14px; color: #7f8983; font-size: 10px; }
.history-list { position: relative; display: grid; gap: 10px; max-height: 52vh; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.history-item { padding: 10px 12px; border: 1px solid #e8ebe8; border-left: 3px solid #c9cfcb; border-radius: 8px; background: #fff; }
.history-item-current { border-left-color: #246b39; background: #f6fbf7; }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.history-head strong { font-size: 12px; }
.history-dates { margin-top: 4px; color: #68746e; font-size: 10px; }
.history-badge { padding: 3px 8px; border-radius: 10px; font-size: 9px; font-weight: 700; }
.history-badge-current { background: #e8f5ec; color: #246b39; }
.history-badge-done { background: #ececea; color: #5d625f; }

/* Device status badges */
.device-badge { display: inline-block; padding: 3px 9px; border-radius: 10px; font-size: 9px; font-weight: 700; }
.device-badge-unassigned { background: #e3effd; color: #1b5fb4; }
.device-badge-disposed { background: #fcebed; color: #a3212b; }
.device-row-disposed td { background: #fdf6f6; color: #8c7b7d; }

/* Device details modal dialog */
#device-details-dialog { width: min(640px, calc(100% - 32px)); padding: 22px; max-height: min(85vh, 760px); }
#device-details-dialog .dialog-heading { margin: 0; }
.device-details-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.device-details-header h2 { margin: 0; font-size: 18px; }
.device-details-status-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 10px; font-weight: 700; }
.device-details-status-badge.badge-assigned { background: #e8f5ec; color: #246b39; }
.device-details-status-badge.badge-unassigned { background: #e3effd; color: #1b5fb4; }
.device-details-status-badge.badge-disposed { background: #fcebed; color: #a3212b; }
#device-details-subtitle { margin: 4px 0 14px; color: #64748b; font-size: 11px; }
.device-details-content { display: grid; gap: 12px; max-height: 54vh; overflow-y: auto; padding-right: 4px; }
.device-details-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px; }
.device-details-section-title { margin: 0 0 10px; font-size: 10px; font-weight: 700; color: #475569; letter-spacing: 0.4px; text-transform: uppercase; }
.device-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.device-detail-item { display: flex; flex-direction: column; gap: 2px; }
.device-detail-label { font-size: 9px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.3px; }
.device-detail-value { font-size: 11.5px; font-weight: 500; color: #0f172a; word-break: break-word; }

/* Enhanced Device Row Action Buttons */
.device-table th#device-actions-heading,
.device-table td.device-row-actions {
  white-space: nowrap !important;
  width: 1%;
}
.device-row-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  align-items: center;
  white-space: nowrap !important;
  min-width: max-content;
}
.device-action-btn {
  white-space: nowrap !important;
  flex-shrink: 0;
  min-height: 24px;
  padding: 2.5px 7px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.device-action-btn:hover:not(:disabled) { transform: translateY(-0.5px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06); }
.device-action-btn:disabled { opacity: 0.5; cursor: wait; }

.btn-device-details { background: #f0f4ff; border-color: #c7d7fc; color: #1e40af; }
.btn-device-details:hover:not(:disabled) { background: #e0ebff; border-color: #93b4f9; }

.btn-device-edit { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
.btn-device-edit:hover:not(:disabled) { background: #f1f5f9; border-color: #94a3b8; }

.btn-device-return { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.btn-device-return:hover:not(:disabled) { background: #fef3c7; border-color: #fcd34d; }

.btn-device-dispose { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.btn-device-dispose:hover:not(:disabled) { background: #fee2e2; border-color: #fca5a5; }

.btn-device-history { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
.btn-device-history:hover:not(:disabled) { background: #ede9fe; border-color: #c4b5fd; }

.btn-device-credentials { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.btn-device-credentials:hover:not(:disabled) { background: #d1fae5; border-color: #6ee7b7; }

.btn-device-remove { background: #fff1f2; border-color: #fecdd3; color: #e11d48; margin-top: 0 !important; }
.btn-device-remove:hover:not(:disabled) { background: #ffe4e6; border-color: #fda4af; }

.button-danger {
  background: #c8202d !important;
  color: #fff !important;
  box-shadow: 0 2px 3px rgba(200, 32, 45, 0.18) !important;
}
.button-danger:hover {
  background: #a71924 !important;
}

.btn-device-disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

/* Inventory Card Serial Numbers & Devices */
.inventory-device-card { display: flex; flex-direction: column; }
.inventory-device-card .inventory-card-top { flex-shrink: 0; }
.inventory-device-card .inventory-item-name { display: block; overflow: visible; overflow-wrap: anywhere; min-height: 0; margin: 0; line-height: 1.5; }
.inventory-device-card .inventory-card-serials { margin-bottom: 10px; }
.inventory-device-card .inventory-card-actions { flex-shrink: 0; margin-top: auto; }
.inventory-device-card .inventory-action-btn { flex: 1; min-width: 0; min-height: 32px; padding: 6px 8px; border-color: var(--inventory-accent, #596a7d); color: var(--inventory-category-text, #455466); font-size: 11px; }
.inventory-device-card .inventory-delete-button { flex-shrink: 0; min-height: 32px; font-size: 10px; }
.inventory-dialog .form-input:disabled { opacity: 1; background: #f1f3f2; color: #5b655f; cursor: not-allowed; }
.inventory-device-card .inventory-action-btn:focus-visible { outline: 2px solid var(--inventory-accent, #596a7d); outline-offset: 3px; }
.inventory-card-serials {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.inventory-serials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.inventory-serials-count {
  background: #e2e8f0;
  color: #1e293b;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}
.inventory-serials-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 85px;
  overflow-y: auto;
  padding-right: 2px;
  min-width: 0;
}
.inventory-serial-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9.5px;
  font-family: monospace;
  color: #0f172a;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.inventory-serial-tag small {
  color: #64748b;
  font-size: 8.5px;
  font-weight: normal;
}
.inventory-serials-empty {
  font-size: 10px;
  color: #94a3b8;
  font-style: italic;
  padding: 2px 0;
}

/* Entity Badges */
.entity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 2.5px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.entity-badge-kkle { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.entity-badge-kklc { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.entity-badge-kce { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.entity-badge-kohmers { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.entity-badge-kml { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.entity-badge-hss { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.entity-badge-ksl { background: #fdf4ff; color: #a21caf; border: 1px solid #f5d0fe; }
.entity-badge-default { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.device-entity-cell { white-space: nowrap; width: 1%; }