:root {
  color-scheme: light;
  --ink: #202a25;
  --muted: #8a938d;
  --line: #e9ece8;
  --paper: #fff;
  --canvas: #f5f6f3;
  --green: #1f684d;
  --green-dark: #174d3a;
  --mint: #eaf3ed;
  --amber: #cf8a32;
  --sidebar: #0b2a5b;
  --sidebar-width: 248px;
  font-family: "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 13px; }
[hidden] { display: none !important; }
.request-progress { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; background: #05080ad1; color: #fff; pointer-events: auto; cursor: progress; }
.request-progress > span:last-child { position: absolute; left: 0; right: 0; bottom: max(48px, calc(env(safe-area-inset-bottom) + 32px)); padding: 0 24px; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .2px; text-shadow: 0 1px 4px #000a; }
.request-spinner { width: 54px; height: 54px; border: 5px solid #ffffff3d; border-top-color: #fff; border-radius: 50%; animation: request-spin .8s linear infinite; }
@keyframes request-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .request-spinner { animation: none; } }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 0%,#e7eee5 0%,#f5f6f3 52%); }.login-card { width: min(390px,100%); padding: 35px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 20px 60px #23372b12; }.login-brand { display: block; margin-bottom: 32px; color: #314238; font: 800 13px Manrope,sans-serif; letter-spacing: 1.2px; }.login-brand span { color: var(--green); }.login-card h1 { margin: 0; font: 700 25px Manrope,sans-serif; letter-spacing: -.7px; }.login-description { margin: 8px 0 22px; color: #879189; font-size: 11px; }.login-card .form-field { margin: 14px 0; }.login-card .form-field span { display: block; margin-bottom: 6px; color: #566259; font-size: 9px; font-weight: 600; }.login-card .form-field input { width: 100%; min-height: 39px; padding: 10px; border: 1px solid #e3e8e3; border-radius: 5px; outline: none; font-size: 11px; }.login-card .form-field input:focus { border-color: #8eb69a; }.login-submit { width: 100%; height: 39px; margin-top: 5px; }.login-error { min-height: 15px; margin: 7px 0 0; color: #a3483a; font-size: 10px; }.login-demo { display: block; margin-top: 17px; color: #9aa39c; font-size: 9px; line-height: 1.5; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width,248px); padding: 24px 15px 15px; background: var(--sidebar); color: #f4f7ff; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 0 9px; height: 43px; }
.brand-mark { width: 31px; height: 31px; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 6px; border: 1px solid #3b5a8f; border-radius: 9px; }
.brand-mark span { display: block; width: 4px; border-radius: 4px; background: #8fb8f0; transform: skew(-18deg); }
.brand-mark span:nth-child(1) { height: 10px; }.brand-mark span:nth-child(2) { height: 17px; }.brand-mark span:nth-child(3) { height: 13px; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; letter-spacing: 1.2px; }.brand-copy strong { font: 800 13px Manrope,sans-serif; }.brand-copy small { font-size: 8px; letter-spacing: 2.4px; color: #9fb2d3; }
.workspace-switcher { margin: 35px 0 28px; border: 1px solid #26457a; border-radius: 9px; padding: 10px 9px; display: flex; gap: 9px; align-items: center; }
.workspace-icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: #dbe7fb; color: #0b2a5b; font: 700 13px Manrope,sans-serif; }
.workspace-switcher strong,.workspace-switcher small,.profile-copy strong,.profile-copy small { display: block; }
.workspace-switcher strong { font-size: 11px; font-weight: 600; }.workspace-switcher small { font-size: 9px; color: #9fb2d3; margin-top: 3px; }.chevron { margin-left: auto; color: #9fb2d3; font-size: 17px; }
.nav-label { padding: 0 10px; margin: 0 0 9px; color: #7f95bd; font-size: 9px; letter-spacing: 1.25px; font-weight: 700; }.library-label { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; }
.tiny-add { color: #b3c3e0; background: none; border: 0; font-size: 17px; padding: 0 3px; }
.main-nav { display: grid; gap: 3px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: #b3c3e0; text-align: left; font-size: 12px; }
.nav-item:hover,.nav-item.active { background: #173d7a; color: #f2f6ff; }.nav-item.active { box-shadow: inset 2px 0 #5aa0ff; }
.nav-icon { width: 17px; color: #9fb4d9; font-size: 16px; text-align: center; }.nav-item.active .nav-icon { color: #8ec1ff; }
.nav-count { margin-left: auto; padding: 2px 7px; border-radius: 10px; background: #24457f; color: #d3def2; font-size: 10px; }
.muted-nav { height: 34px; }
.sidebar-spacer { flex: 1; }
.storage-card { padding: 14px 12px; margin-bottom: 13px; border: 1px solid #26457a; border-radius: 9px; }.storage-heading { display: flex; justify-content: space-between; font-size: 10px; color: #e3ebf8; }.storage-heading span:last-child { color: #a9bde0; }
.storage-track { height: 4px; background: #26457a; border-radius: 8px; margin: 10px 0 8px; overflow: hidden; }.storage-track span { width: 68%; height: 100%; display: block; background: #4f9bff; border-radius: inherit; }.storage-card p { margin: 0 0 10px; font-size: 9px; color: #9fb2d3; }.storage-card button { padding: 0; border: 0; background: none; color: #9cc6ff; font-size: 10px; }.storage-card button span { padding-left: 4px; }
.profile-button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-top: 1px solid #26457a; padding: 14px 4px 2px; background: transparent; color: white; text-align: left; }.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; width: 30px; height: 30px; background: #e8d4bc; color: #70513a; font-size: 9px; font-weight: 700; border: 2px solid #fff; }.avatar-user { background: #e1c9ad; color: #63482f; }.profile-copy { flex: 1; }.profile-copy strong { font-size: 10px; font-weight: 600; }.profile-copy small { margin-top: 3px; color: #9fb2d3; font-size: 9px; }.more-icon { color: #9fb2d3; font-size: 20px; }.signout-button { width: 25px; height: 25px; border: 0; background: transparent; }
.main-area { margin-left: var(--sidebar-width,248px); width: calc(100% - var(--sidebar-width,248px)); min-height: 100vh; }
.topbar { height: 68px; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #929a94; font-size: 11px; }.breadcrumbs strong { color: #3a443e; font-weight: 600; }.crumb-slash { color: #c4cac5; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }.search-box { height: 34px; width: 244px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #e7ebe7; border-radius: 7px; color: #879189; }.search-box>span { font-size: 20px; line-height: 1; transform: rotate(-20deg); }.search-box input { min-width: 0; flex: 1; border: 0; outline: none; font-size: 10px; color: var(--ink); }.search-box input::placeholder { color: #a2aaa4; }.search-box kbd { white-space: nowrap; padding: 3px 4px; border: 1px solid #e6e9e5; border-radius: 4px; font-size: 8px; color: #9ba39d; }
.icon-button { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: transparent; color: #66726a; font-size: 19px; }.notification-button i { position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; background: #d47753; }.top-avatar { width: 29px; height: 29px; border: 0; }
.demo-badge { padding: 5px 7px; border: 1px solid #e4eadf; border-radius: 4px; color: #708371; background: #f6f8f3; font-size: 8px; letter-spacing: .55px; font-weight: 700; white-space: nowrap; }
.page-content { max-width: 1460px; padding: 35px 40px 60px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }.eyebrow { margin: 0 0 7px; color: #789080; font-size: 9px; letter-spacing: 1.35px; font-weight: 700; text-transform: uppercase; }.page-heading h1 { margin: 0; font: 700 25px Manrope,sans-serif; letter-spacing: -.8px; }.page-heading p { margin: 7px 0 0; font-size: 11px; color: var(--muted); }.heading-actions { display: flex; gap: 9px; align-items: center; }
.button { height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid #e3e8e3; border-radius: 6px; background: #fff; color: #47534b; font-size: 10px; font-weight: 600; }.button:hover { background: #f8faf8; }.button-primary { color: white; background: var(--green); border-color: var(--green); }.button-primary:hover { background: var(--green-dark); }.button-primary .plus { font-size: 16px; font-weight: 400; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-bottom: 27px; }.metric-card { min-height: 99px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: white; }.metric-top { display: flex; align-items: center; justify-content: space-between; color: #858f88; font-size: 10px; }.metric-symbol { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: #eff5f0; color: var(--green); font-size: 13px; }.metric-value { margin-top: 11px; font: 700 20px Manrope,sans-serif; letter-spacing: -.5px; }.metric-foot { margin-top: 4px; color: #9ba39d; font-size: 9px; }.metric-foot em { color: #4c9567; font-style: normal; font-weight: 600; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 13px; }.section-heading h2 { margin: 0; font: 700 14px Manrope,sans-serif; }.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.section-tools { display: flex; align-items: center; gap: 8px; }.select-button { display: flex; align-items: center; gap: 13px; background: white; border: 1px solid var(--line); border-radius: 5px; padding: 7px 9px; color: #68736b; font-size: 9px; }
.contract-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.contract-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }.contract-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px #21392d12; }.contract-art { position: relative; height: 112px; overflow: hidden; background: linear-gradient(115deg,#9aa88d 0%,#d6d3b8 48%,#a0ad88 100%); }.contract-art::before { content: ""; position: absolute; left: -4%; right: -4%; height: 44px; top: 53px; transform: rotate(-9deg); background: #646b60; box-shadow: 0 -5px 0 #b6ad8b,0 5px 0 #e5ddba; }.contract-art::after { content: ""; position: absolute; top: 72px; left: -3%; right: -3%; border-top: 2px dashed #f5e9bd; transform: rotate(-9deg); }.art-2 { background: linear-gradient(115deg,#8c9e96,#c4c4ab 50%,#789184); }.art-2::before { transform: rotate(8deg); top: 39px; }.art-2::after { transform: rotate(8deg); top: 58px; }.art-3 { background: linear-gradient(115deg,#b8b293,#d3c69d 46%,#91a184); }.art-3::before { transform: rotate(-2deg); top: 51px; }.art-3::after { transform: rotate(-2deg); top: 71px; }
.art-sun { position: absolute; width: 35px; height: 35px; border-radius: 50%; right: 34px; top: 17px; background: #efe3bb; opacity: .8; }.art-hill { position: absolute; width: 170px; height: 90px; left: -13px; top: 22px; transform: rotate(-14deg); border-radius: 50%; background: #748b6d; opacity: .54; }.art-2 .art-hill { left: auto; right: -28px; background: #577663; transform: rotate(18deg); }.art-tag { position: absolute; z-index: 1; top: 11px; left: 12px; border-radius: 4px; padding: 5px 7px; background: #fff; color: #526157; font-size: 8px; font-weight: 600; }
.contract-info { padding: 13px 14px 12px; }.contract-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 7px; }.contract-title { margin: 0; font: 700 12px Manrope,sans-serif; }.contract-location { margin: 5px 0 0; color: #8b958e; font-size: 9px; }.status-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 10px; background: #eaf4ec; color: #398052; font-size: 8px; }.status-pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }.status-review { background: #fff3df; color: #ac7629; }.status-planning { background: #edf0f5; color: #71819a; }
.contract-progress { margin-top: 14px; }.progress-caption { display: flex; justify-content: space-between; color: #929b94; font-size: 9px; }.progress-caption strong { color: #516057; font-weight: 600; }.progress-bar { margin-top: 6px; height: 4px; background: #eef0ed; border-radius: 5px; }.progress-bar span { display: block; height: 100%; border-radius: inherit; background: #548e69; }.contract-meta { display: flex; justify-content: space-between; border-top: 1px solid #f0f2ef; margin-top: 13px; padding-top: 10px; color: #8a948d; font-size: 9px; }.contract-meta strong { color: #58645c; font-weight: 600; }.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-top: 1px solid #f0f2ef; }.avatar-stack { display: flex; padding-left: 2px; }.avatar-stack .avatar { width: 22px; height: 22px; margin-left: -3px; font-size: 7px; border-width: 1.5px; }.avatar-stack .avatar:nth-child(2) { background: #c9d9c8; color: #3d6548; }.avatar-stack .avatar:nth-child(3) { background: #e5c6bf; color: #704d46; }.avatar-stack .avatar:nth-child(4) { background: #dfdfc6; color: #65664b; }.card-footer span { color: #969f98; font-size: 9px; }.open-arrow { color: #6d7c72; font-size: 14px; }
.lower-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; margin-top: 26px; }.panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 15px 16px; }.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }.panel-head h2 { margin: 0; font: 700 12px Manrope,sans-serif; }.text-link { border: 0; background: transparent; color: var(--green); font-size: 9px; }
.recent-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid #f0f2ef; }.file-icon { display: grid; place-items: center; width: 27px; height: 29px; border-radius: 5px; background: #fff0ed; color: #d36d5a; font-size: 9px; font-weight: 700; }.file-icon.pdf { background: #fff0ed; color: #d36d5a; }.file-icon.xlsx { background: #eaf4eb; color: #518b61; }.file-icon.doc { background: #edf2fa; color: #6783b2; }.file-icon.txt,.file-icon.csv { background: #edf2fa; color: #6783b2; }.recent-row strong { display: block; font-size: 9px; font-weight: 600; }.recent-row small { display: block; margin-top: 3px; color: #9aa29c; font-size: 8px; }.recent-date { color: #9ba39d; font-size: 8px; }.activity-line { display: flex; gap: 9px; padding: 8px 0; border-top: 1px solid #f0f2ef; }.activity-line .avatar { width: 24px; height: 24px; border: 0; font-size: 7px; }.activity-copy { flex: 1; color: #747f77; font-size: 9px; line-height: 1.5; }.activity-copy strong { color: #3d4941; font-weight: 600; }.activity-copy small { display: block; margin-top: 2px; color: #a0a8a2; font-size: 8px; }
.back-link { padding: 0; margin: 0 0 15px; border: 0; background: none; color: #78847b; font-size: 10px; }.detail-heading { align-items: flex-start; }.detail-title-row { display: flex; gap: 10px; align-items: center; }.detail-title-row h1 { font-size: 23px; }.detail-subtitle { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: #8b958e; font-size: 10px; }.detail-subtitle span { color: #c0c7c1; }.detail-actions { align-items: center; }
.detail-banner { display: grid; grid-template-columns: 1.3fr .7fr; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.banner-overview { padding: 18px 20px; }.banner-top { display: flex; align-items: center; justify-content: space-between; }.banner-top h2 { margin: 0; font: 700 12px Manrope,sans-serif; }.banner-top span { color: #929a94; font-size: 9px; }.detail-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 18px; }.detail-metric label { display: block; color: #8c968f; font-size: 9px; }.detail-metric strong { display: block; margin-top: 6px; font: 700 15px Manrope,sans-serif; letter-spacing: -.3px; }.detail-metric small { display: block; margin-top: 4px; color: #a2aaa4; font-size: 8px; }.detail-progress { padding: 19px 20px; border-left: 1px solid #eff1ef; background: #fbfcfa; }.detail-progress-title { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: #8a948d; }.detail-progress-title strong { font-size: 11px; color: #344339; }.detail-progress .progress-bar { height: 6px; margin: 12px 0 9px; }.detail-progress p { margin: 0; color: #8e9891; font-size: 9px; line-height: 1.5; }.detail-facts { display: flex; gap: 24px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #eff1ef; }.detail-facts div { display: flex; flex-direction: column; gap: 4px; }.detail-facts span { color: #929b95; font-size: 8px; }.detail-facts strong { color: #47534b; font-size: 9px; font-weight: 600; }
.documents-section { margin-top: 26px; }.document-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }.document-toolbar h2 { margin: 0; font: 700 14px Manrope,sans-serif; }.document-toolbar p { margin: 4px 0 0; color: #939c95; font-size: 9px; }.document-toolbar-actions { display: flex; gap: 7px; }.folder-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }.folder-tile { display: flex; align-items: flex-start; gap: 10px; min-height: 79px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: white; text-align: left; color: var(--ink); }.folder-tile:hover { border-color: #b5cdbb; background: #fcfefc; }.folder-glyph { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: #eff5ed; color: #668755; font-size: 16px; }.folder-tile:nth-child(3n+2) .folder-glyph { background: #f5f1e8; color: #ac8b52; }.folder-tile:nth-child(3n) .folder-glyph { background: #edf1f5; color: #6c83a0; }.folder-copy { min-width: 0; flex: 1; }.folder-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; font-size: 9px; font-weight: 600; }.folder-copy small { display: block; margin-top: 7px; color: #9aa29c; font-size: 8px; }.folder-more { color: #9ba39c; letter-spacing: 1px; font-size: 13px; }
.files-table-wrap { margin-top: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }.files-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid #edf0ec; }.files-head h3 { margin: 0; font: 700 11px Manrope,sans-serif; }.files-head button { border: 0; background: transparent; color: #7d8980; font-size: 9px; }.file-table { width: 100%; border-collapse: collapse; text-align: left; }.file-table th { padding: 9px 14px; color: #9ba39d; font-size: 8px; font-weight: 500; }.file-table td { padding: 9px 14px; border-top: 1px solid #f1f3f0; color: #748077; font-size: 9px; }.file-table td:first-child { color: #3b4840; font-weight: 600; }.table-file { display: flex; align-items: center; gap: 8px; }.table-file .file-icon { width: 23px; height: 24px; }.file-table tr:hover { background: #fcfdfb; }.table-owner { display: flex; align-items: center; gap: 6px; }.table-owner .avatar { width: 20px; height: 20px; border: 0; font-size: 6px; }
.file-open { padding: 0; border: 0; background: transparent; color: #3b4840; text-align: left; font-size: inherit; font-weight: 600; }.file-open:hover { color: var(--green); text-decoration: underline; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.gallery-item { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.gallery-image-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; text-align: left; }.gallery-image-button:focus-visible { outline: 3px solid #8eb69a; outline-offset: -3px; }.gallery-visual { height: 180px; position: relative; overflow: hidden; background: linear-gradient(140deg,#9eac91,#d4c9a5 52%,#6c896e); }.gallery-visual::before { content: ""; position: absolute; width: 120%; height: 64px; top: 77px; left: -10%; transform: rotate(-7deg); background: #626a60; box-shadow: 0 -8px 0 #b6ad8b,0 8px 0 #ded5b2; }.gallery-visual::after { content: ""; position: absolute; width: 120%; top: 112px; left: -10%; border-top: 2px dashed #f2e6b8; transform: rotate(-7deg); }.gallery-visual img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; }.gallery-expand-hint { position: absolute; z-index: 3; right: 9px; bottom: 9px; padding: 5px 8px; border-radius: 4px; background: #111a16b8; color: #fff; font-size: 9px; opacity: 0; transition: opacity .15s ease; }.gallery-image-button:hover .gallery-expand-hint,.gallery-image-button:focus-visible .gallery-expand-hint { opacity: 1; }.gallery-item:nth-child(2) .gallery-visual { background: linear-gradient(135deg,#96a7a0,#ddd1ac 54%,#758b74); }.gallery-item:nth-child(2) .gallery-visual::before,.gallery-item:nth-child(2) .gallery-visual::after { transform: rotate(7deg); }.gallery-item:nth-child(3) .gallery-visual { background: linear-gradient(135deg,#b7b493,#dcc69b 54%,#718a6c); }.gallery-item:nth-child(3) .gallery-visual::before,.gallery-item:nth-child(3) .gallery-visual::after { transform: rotate(-1deg); }.gallery-caption { padding: 11px 12px; }.gallery-caption strong { display: block; font-size: 10px; }.gallery-caption small { display: block; margin-top: 4px; color: #939c95; font-size: 8px; }
.modal-backdrop.gallery-fullscreen-backdrop { z-index: 25; place-items: stretch; padding: 0; overflow: hidden; background: rgba(0, 0, 0, .88); }
.gallery-fullscreen { display: grid; grid-template-rows: auto minmax(0,1fr) auto; width: 100%; height: 100%; min-height: 100vh; color: #fff; }
.gallery-fullscreen-header,.gallery-fullscreen-footer { display: flex; align-items: center; gap: 14px; padding: 18px 24px; }
.gallery-fullscreen-header { justify-content: space-between; border-bottom: 1px solid #ffffff1c; }
.gallery-fullscreen-header strong,.gallery-fullscreen-header small { display: block; }
.gallery-fullscreen-header strong { font-size: 13px; }
.gallery-fullscreen-header small { margin-top: 4px; color: #ffffff9c; font-size: 10px; }
.gallery-carousel-close { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border: 1px solid #ffffff35; border-radius: 50%; background: #ffffff12; color: #fff; cursor: pointer; font-size: 24px; }
.gallery-carousel-stage { display: grid; grid-template-columns: 70px minmax(0,1fr) 70px; align-items: center; justify-items: center; gap: 15px; min-height: 0; padding: 20px; }
.gallery-carousel-image { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: transparent; }
.gallery-carousel-image img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-carousel-nav { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #ffffff45; border-radius: 50%; background: #ffffff14; color: #fff; cursor: pointer; font-size: 35px; line-height: 1; }
.gallery-carousel-nav:hover:not(:disabled),.gallery-carousel-close:hover { background: #ffffff30; }
.gallery-carousel-nav:disabled { opacity: .35; cursor: default; }
.gallery-fullscreen-footer { flex-wrap: wrap; justify-content: center; border-top: 1px solid #ffffff1c; text-align: center; }
.gallery-fullscreen-footer strong { max-width: 60vw; overflow-wrap: anywhere; font-size: 12px; }
.gallery-fullscreen-footer span { color: #ffffffc4; font-size: 10px; }
.gallery-fullscreen-footer small { flex-basis: 100%; color: #ffffff8a; font-size: 9px; }
@media (max-width: 600px) {
  .gallery-fullscreen-header,.gallery-fullscreen-footer { padding: 13px; }
  .gallery-carousel-stage { grid-template-columns: 38px minmax(0,1fr) 38px; gap: 5px; padding: 10px 6px; }
  .gallery-carousel-nav { width: 36px; height: 36px; font-size: 28px; }
  .gallery-fullscreen-footer strong { max-width: 75vw; }
}
@media (max-width: 760px) {
  .modal-backdrop.gallery-fullscreen-backdrop { padding: 0; overflow: hidden; place-items: stretch; }
}
.view-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 0 0 17px; }.view-tab { padding: 0 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #909a93; font-size: 10px; }.view-tab.active { border-color: var(--green); color: var(--green); font-weight: 600; }
.shared-list,.activity-list { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }.shared-row { display: grid; grid-template-columns: 34px minmax(180px,1fr) 1fr 130px 90px; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid #f0f2ef; }.shared-row:first-child { border-top: 0; }.shared-row .file-icon { width: 30px; height: 32px; }.shared-name strong { display: block; font-size: 10px; }.shared-name small,.shared-location,.shared-updated { color: #969f98; font-size: 8px; }.shared-name small { display: block; margin-top: 4px; }.shared-location { display: flex; align-items: center; gap: 6px; }.shared-owner { display: flex; align-items: center; gap: 6px; color: #707c73; font-size: 9px; }.permission { color: #758179; font-size: 8px; }.activity-entry { display: grid; grid-template-columns: 28px minmax(220px,1fr) 150px 110px; gap: 13px; align-items: center; padding: 12px 16px; border-top: 1px solid #f0f2ef; }.activity-entry:first-child { border-top: 0; }.activity-entry .avatar { width: 25px; height: 25px; border: 0; font-size: 7px; }.activity-description { font-size: 9px; color: #768078; line-height: 1.5; }.activity-description strong { color: #3f4a42; font-weight: 600; }.activity-description small { display: block; color: #98a19a; font-size: 8px; }.activity-action { color: #728078; font-size: 8px; }.activity-time { text-align: right; color: #9ba39d; font-size: 8px; }
.empty-state { padding: 45px 20px; text-align: center; color: #8d9790; }.empty-state strong { display: block; margin-bottom: 5px; color: #465249; font: 600 13px Manrope,sans-serif; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: #101b16a8; }.modal { width: min(440px,100%); max-height: 90vh; overflow: auto; padding: 22px; border-radius: 10px; background: #fff; box-shadow: 0 20px 70px #101b1640; }.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 17px; }.modal-head h2 { margin: 0; font: 700 16px Manrope,sans-serif; }.modal-head p { margin: 5px 0 0; color: #8c968f; font-size: 9px; }.modal-close { width: 27px; height: 27px; border: 0; border-radius: 5px; background: #f2f4f1; color: #6e7a70; font-size: 16px; }.form-field { display: block; margin: 13px 0; }.form-field label { display: block; margin-bottom: 6px; color: #566259; font-size: 9px; font-weight: 600; }.form-field input,.form-field select,.form-field textarea { width: 100%; min-height: 36px; padding: 9px 10px; border: 1px solid #e3e8e3; border-radius: 5px; outline: none; color: #39463e; background: #fff; font-size: 10px; }.form-field textarea { min-height: 70px; resize: vertical; }.form-field input:focus,.form-field select:focus,.form-field textarea:focus { border-color: #8eb69a; box-shadow: 0 0 0 2px #eaf3ed; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }.toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; padding: 11px 15px; border-radius: 6px; background: #1e392b; color: white; font-size: 10px; box-shadow: 0 8px 24px #18251d30; animation: toast-in .2s ease; }.toast.error { background: #8e3e34; }@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 1100px) { :root { --sidebar-width: 215px; }.topbar { padding: 0 25px; }.page-content { padding: 30px 25px 50px; }.contract-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.folder-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.metric-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) { .sidebar { position: static; width: 61px; padding: 16px 9px; }.brand { padding: 0 5px; }.brand-copy,.workspace-switcher,.nav-label,.nav-item:not(.active),.nav-item:not(.active) .nav-count,.storage-card,.profile-copy,.more-icon { display: none; }.main-nav { margin-top: 30px; }.nav-item { justify-content: center; padding: 0; font-size: 0; }.nav-icon { font-size: 18px; }.profile-button { justify-content: center; padding-top: 14px; }.main-area { margin-left: 0; width: calc(100% - 61px); }.topbar { height: 58px; padding: 0 15px; }.breadcrumbs { font-size: 10px; }.search-box { width: 34px; border: 0; padding: 0; justify-content: center; }.search-box input,.search-box kbd { display: none; }.search-box>span { font-size: 23px; }.demo-badge { display: none; }.topbar-actions { gap: 7px; }.page-content { padding: 25px 15px 40px; }.page-heading { align-items: flex-start; gap: 12px; flex-direction: column; }.page-heading h1 { font-size: 22px; }.heading-actions { width: 100%; }.metric-grid { gap: 8px; }.metric-card { padding: 12px; min-height: 87px; }.metric-value { font-size: 17px; }.contract-grid { grid-template-columns: 1fr; }.contract-art { height: 120px; }.lower-grid { grid-template-columns: 1fr; }.detail-banner { grid-template-columns: 1fr; }.detail-progress { border-left: 0; border-top: 1px solid #eff1ef; }.detail-metrics { grid-template-columns: repeat(2,1fr); row-gap: 16px; }.detail-facts { flex-wrap: wrap; gap: 12px 18px; }.folder-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.document-toolbar { align-items: flex-start; gap: 10px; flex-direction: column; }.file-table th:nth-child(3),.file-table td:nth-child(3),.file-table th:nth-child(4),.file-table td:nth-child(4) { display: none; }.gallery-grid { grid-template-columns: 1fr; }.gallery-visual { height: 150px; }.shared-row { grid-template-columns: 30px 1fr 85px; }.shared-row .shared-location,.shared-row .shared-owner { display: none; }.activity-entry { grid-template-columns: 25px 1fr; }.activity-action,.activity-time { grid-column: 2; text-align: left; }.activity-action { display: none; }.activity-time { margin-top: -7px; }.contract-title-row { flex-wrap: wrap; } }
@media (max-width: 760px) { .sidebar .nav-item:not(.active) { display: flex; } }
@media (max-width: 760px) { .sidebar .signout-button { display: block; } }

/* Slightly larger typography and icon targets for easier reading. */
body { font-size: 14px; }
.login-brand,.brand-copy strong { font-size: 14px; }
.login-card h1 { font-size: 27px; }
.login-description,.login-card .form-field input { font-size: 12px; }
.login-card .form-field span,.login-demo { font-size: 10px; }
.login-error { font-size: 11px; }
.workspace-switcher strong { font-size: 12px; }
.workspace-switcher small,.profile-copy small,.nav-label,.storage-card p,.eyebrow,.art-tag,.status-pill,.avatar-stack .avatar { font-size: 9px; }
.workspace-icon { font-size: 15px; }
.nav-item { font-size: 13px; }
.nav-icon,.metric-symbol { font-size: 18px; }
.nav-count,.storage-card button,.profile-copy strong,.breadcrumbs,.search-box input,.detail-subtitle { font-size: 11px; }
.storage-heading,.button,.page-heading p,.metric-top,.section-tools .select-button,.files-head button,.view-tab { font-size: 11px; }
.search-box>span { font-size: 22px; }
.search-box kbd,.demo-badge,.metric-foot,.contract-location,.status-pill,.progress-caption,.contract-meta,.card-footer span,.text-link,.file-icon,.recent-date,.activity-copy small,.detail-metric label,.detail-metric small,.detail-facts span,.document-toolbar p,.folder-copy small,.file-table th,.file-table td,.shared-name small,.shared-location,.shared-updated,.permission,.activity-action,.activity-time,.gallery-caption small,.modal-head p,.form-field label,.form-field input,.form-field select,.form-field textarea,.login-error { font-size: 10px; }
.page-heading h1 { font-size: 27px; }
.metric-value { font-size: 22px; }
.section-heading h2 { font-size: 15px; }
.contract-title,.panel-head h2 { font-size: 13px; }
.contract-meta,.progress-caption,.folder-copy strong,.files-head h3 { font-size: 10px; }
.card-footer .avatar { width: 24px; height: 24px; }
.avatar { width: 32px; height: 32px; font-size: 10px; }
.avatar-stack .avatar { width: 24px; height: 24px; }
.open-arrow,.more-icon { font-size: 16px; }
.panel-head h2 { font-size: 13px; }
.recent-row strong,.activity-copy,.detail-metric strong,.detail-progress-title,.detail-facts strong,.folder-copy strong,.gallery-caption strong { font-size: 11px; }
.file-icon { width: 30px; height: 32px; font-size: 10px; }
.table-file .file-icon { width: 25px; height: 26px; }
.page-heading.detail-heading h1 { font-size: 25px; }
.banner-top h2,.document-toolbar h2 { font-size: 15px; }
.detail-metric strong { font-size: 16px; }
.folder-glyph { width: 35px; height: 35px; font-size: 18px; }
.folder-copy strong { font-size: 10px; }
.file-open { font-size: inherit; }
.shared-name strong { font-size: 11px; }
.activity-description,.login-error { font-size: 11px; }
.modal-head h2 { font-size: 17px; }
.form-field input,.form-field select,.form-field textarea { font-size: 11px; }
.icon-button { width: 33px; height: 33px; font-size: 21px; }
.notification-button i { width: 6px; height: 6px; }
.button { min-height: 37px; height: auto; padding-top: 8px; padding-bottom: 8px; }
.button-primary .plus,.tiny-add { font-size: 19px; }
.metric-symbol { width: 27px; height: 27px; }
.avatar-user,.top-avatar { width: 32px; height: 32px; }
.gallery-modal .modal-head .button { font-size: 11px; }
@media (max-width: 760px) {
  .nav-icon { font-size: 20px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading.detail-heading h1 { font-size: 22px; }
  .contract-title { font-size: 14px; }
  .icon-button { width: 30px; height: 30px; }
  .button { padding-left: 10px; padding-right: 10px; }
}

.account-menu-anchor { position: relative; }
.top-avatar { padding: 0; border: 2px solid #fff; cursor: pointer; box-shadow: 0 0 0 1px #e7ebe7; }
.top-avatar:focus-visible,.profile-button:focus-visible,[data-action="account-menu"]:focus-visible { outline: 2px solid #6aa6ff; outline-offset: 2px; }
.account-menu { position: absolute; z-index: 15; top: calc(100% + 12px); right: 0; width: 265px; padding: 7px; border: 1px solid #e6eae5; border-radius: 9px; background: #fff; box-shadow: 0 14px 36px #1e30231f; }
.account-menu-header { display: flex; align-items: center; gap: 10px; padding: 10px 9px 13px; }
.account-menu-header strong,.account-menu-header small { display: block; }
.account-menu-header strong { color: #344138; font-size: 12px; font-weight: 700; }
.account-menu-header small { margin-top: 3px; color: #89938c; font-size: 10px; }
.account-menu>button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px; border: 0; border-radius: 6px; background: transparent; color: #66736a; text-align: left; }
.account-menu>button:hover { background: #f4f7f3; }
.account-menu>button>span:first-child { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: #eff5f0; color: #47785a; font-size: 16px; }
.account-menu>button>span:nth-child(2) { min-width: 0; }
.account-menu>button strong,.account-menu>button small { display: block; }
.account-menu>button strong { color: #36433a; font-size: 11px; font-weight: 600; }
.account-menu>button small { margin-top: 3px; color: #909a93; font-size: 9px; }
.account-menu-divider { height: 1px; margin: 6px 3px; background: #edf0ec; }
.account-menu>button.account-signout { min-height: 36px; color: #a24e43; font-size: 11px; }
.account-menu>button.account-signout>span:first-child { background: #fbefed; color: #a24e43; }
.account-menu .account-signout span:nth-child(2) { font-weight: 600; }
.account-section-title { margin: 0 0 4px; color: #566259; font-size: 10px; font-weight: 700; }
.account-note { margin: 4px 0 10px; color: #909a93; font-size: 9px; line-height: 1.55; }
.preference-toggle { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f0f2ef; color: #58645b; }
.preference-toggle input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--green); }
.preference-toggle strong,.preference-toggle small { display: block; }
.preference-toggle strong { font-size: 10px; }
.preference-toggle small { margin-top: 3px; color: #8b958e; font-size: 9px; line-height: 1.45; }
.account-menu-header .avatar { width: 36px; height: 36px; font-size: 10px; }
.topbar-actions .account-menu-anchor { display: flex; }
@media (max-width: 760px) {
  .account-menu { position: fixed; top: 64px; right: 12px; width: min(285px, calc(100vw - 85px)); }
  .profile-button { cursor: pointer; }
  .profile-button .more-icon { display: none; }
}

@media (max-width: 900px) {
  .app-shell { display: block; width: 100%; min-width: 0; }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: calc(62px + env(safe-area-inset-bottom));
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  }
  .sidebar .brand,.sidebar .workspace-switcher,.sidebar .nav-label,.sidebar .sidebar-spacer,
  .sidebar .storage-card,.sidebar .profile-button { display: none; }
  .main-nav { display: contents; margin: 0; }
  .sidebar .nav-item,.sidebar .nav-item:not(.active) {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: auto;
    min-width: 0;
    max-width: 112px;
    height: 50px;
    padding: 4px 2px;
    font-size: 0;
  }
  .sidebar .nav-item::after { color: #b3c3e0; font-size: 9px; line-height: 1.1; }
  .sidebar .nav-item.active::after { color: #f2f6ff; }
  .sidebar [data-view="contracts"]::after { content: "Contracts"; }
  .sidebar [data-view="shared"]::after { content: "Shared"; }
  .sidebar [data-view="activity"]::after { content: "Activity"; }
  .sidebar [data-view="starred"]::after { content: "Starred"; }
  .sidebar [data-view="recent"]::after { content: "Recent"; }
  .sidebar [data-view="admin"]::after { content: "Admin"; }
  .sidebar .nav-icon { width: auto; font-size: 19px; }
  .sidebar .nav-count { display: none; }
  .main-area { width: 100%; min-width: 0; margin: 0; }
  .topbar { height: 58px; min-width: 0; gap: 8px; padding: 0 12px; }
  .breadcrumbs { min-width: 0; gap: 6px; white-space: nowrap; }
  .breadcrumbs strong { max-width: 28vw; overflow: hidden; text-overflow: ellipsis; }
  .topbar-actions { min-width: 0; gap: 6px; }
  .search-box { flex: 0 0 34px; width: 34px; border: 0; padding: 0; justify-content: center; }
  .search-box input,.search-box kbd,.demo-badge { display: none; }
  .search-box>span { font-size: 23px; }
  .page-content { width: 100%; min-width: 0; padding: 25px 15px calc(82px + env(safe-area-inset-bottom)); }
  .page-heading { align-items: flex-start; gap: 12px; flex-direction: column; }
  .page-heading>div,.heading-actions { min-width: 0; max-width: 100%; }
  .page-heading h1,.page-heading p,.contract-title,.contract-location,.detail-subtitle,
  .folder-copy strong,.shared-name strong,.activity-description,.file-open { overflow-wrap: anywhere; }
  .heading-actions { width: 100%; flex-wrap: wrap; }
  .section-heading { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .metric-card,.contract-card,.panel,.folder-tile { min-width: 0; }
  .metric-card { min-height: 87px; padding: 12px; }
  .metric-value { font-size: 17px; }
  .contract-grid,.lower-grid { grid-template-columns: minmax(0,1fr); }
  .contract-art { height: 120px; }
  .detail-title-row { flex-wrap: wrap; }
  .detail-actions,.document-toolbar-actions { flex-wrap: wrap; }
  .detail-banner { grid-template-columns: minmax(0,1fr); }
  .detail-progress { border-top: 1px solid #eff1ef; border-left: 0; }
  .detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 16px; }
  .detail-facts { gap: 12px 18px; flex-wrap: wrap; }
  .folder-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .document-toolbar { align-items: flex-start; gap: 10px; flex-direction: column; }
  .files-table-wrap { overflow-x: auto; }
  .file-table { width: 100%; min-width: 0; table-layout: fixed; }
  .file-table th,.file-table td { padding: 9px 7px; overflow-wrap: anywhere; }
  .file-table th:nth-child(3),.file-table td:nth-child(3),
  .file-table th:nth-child(4),.file-table td:nth-child(4) { display: none; }
  .table-file,.table-owner { min-width: 0; overflow-wrap: anywhere; }
  .view-tabs { overflow-x: auto; white-space: nowrap; }
  .gallery-grid { grid-template-columns: minmax(0,1fr); }
  .gallery-visual { height: 150px; }
  .shared-row { grid-template-columns: 30px minmax(0,1fr) auto; gap: 8px; padding: 12px 10px; }
  .shared-row .shared-location,.shared-row .shared-owner { display: none; }
  .activity-entry { grid-template-columns: 25px minmax(0,1fr); gap: 9px; }
  .activity-action { display: none; }
  .activity-time { grid-column: 2; margin-top: -7px; text-align: left; }
  .modal-backdrop { overflow-y: auto; place-items: center; padding: 12px; }
  .modal { width: min(440px,100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: clamp(16px,4vw,22px); }
  .modal-actions { flex-wrap: wrap; }
  .account-menu { position: fixed; top: 64px; right: 12px; width: min(285px,calc(100vw - 24px)); }
  .toast { right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); left: 12px; width: fit-content; max-width: calc(100vw - 24px); }
  .login-screen { min-height: 100vh; min-height: 100svh; padding: 16px; }
  .login-card { padding: clamp(22px,6vw,35px); }
}

@media (max-width: 380px) {
  .topbar { padding-right: 9px; padding-left: 9px; }
  .breadcrumbs { gap: 4px; font-size: 9px; }
  .topbar-actions { gap: 3px; }
  .metric-top { gap: 5px; }
  .metric-symbol { flex: 0 0 auto; }
  .folder-grid { grid-template-columns: minmax(0,1fr); }
  .shared-row { grid-template-columns: 28px minmax(0,1fr); }
  .shared-row .permission,.shared-row .shared-updated { grid-column: 2; }
  .modal-backdrop { padding: 8px; }
  .modal { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
}

.admin-page-heading { margin-bottom: 20px; }
.admin-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 22px; align-items: start; }
.admin-nav { position: sticky; top: 18px; padding: 12px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.admin-nav-group + .admin-nav-group { margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf0ec; }
.admin-nav-group h3 { margin: 0 9px 7px; color: #9ba39d; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.admin-nav-link { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: #66736a; text-align: left; font-size: 11px; }
.admin-nav-link>span { width: 17px; color: #75877a; text-align: center; font-size: 15px; }
.admin-nav-link:hover,.admin-nav-link.active { background: #edf4ef; color: var(--green); font-weight: 600; }
.admin-nav-link.active>span { color: var(--green); }
.admin-content { min-width: 0; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.admin-section-heading h2 { margin: 0; font: 700 17px Manrope,sans-serif; }
.admin-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 15px; }
.admin-stat { display: grid; gap: 8px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-stat>span { color: var(--green); font-size: 18px; }
.admin-stat small { color: #88938b; font-size: 10px; }
.admin-stat strong { overflow-wrap: anywhere; font: 700 19px Manrope,sans-serif; }
.admin-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-card-heading h3,.admin-role-card h3,.admin-notification-card h3 { margin: 0; font: 700 13px Manrope,sans-serif; }
.admin-card-heading p,.admin-role-card p,.admin-notification-card p { margin: 5px 0 0; color: #879189; font-size: 10px; line-height: 1.6; }
.admin-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 15px; }
.admin-shortcuts button { display: grid; gap: 6px; min-width: 0; padding: 12px; border: 1px solid #e9ece8; border-radius: 7px; background: #fff; text-align: left; }
.admin-shortcuts button:hover { border-color: #b6cfbd; background: #f8fbf8; }
.admin-shortcuts button>span { color: var(--green); font-size: 17px; }
.admin-shortcuts strong { color: #354239; font-size: 10px; }
.admin-shortcuts small { color: #8c968f; font-size: 9px; }
.admin-notice { display: grid; gap: 4px; margin-top: 14px; padding: 12px 14px; border: 1px solid #e0ebdf; border-radius: 7px; background: #f5f9f4; color: #54705d; font-size: 10px; line-height: 1.5; }
.admin-notice strong { color: #3c6548; }
.admin-table-card { padding: 0; overflow: hidden; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 11px 13px; color: #8d9890; background: #fafbfa; font-size: 9px; font-weight: 600; white-space: nowrap; }
.admin-table td { padding: 12px 13px; border-top: 1px solid #edf0ec; color: #657168; font-size: 10px; vertical-align: middle; }
.admin-table td strong,.admin-table td small { display: block; }
.admin-table td strong { color: #36433a; font-size: 10px; }
.admin-table td small { margin-top: 4px; color: #929b95; font-size: 9px; }
.admin-status,.admin-role-badge,.admin-locked { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 20px; background: #f2f3f1; color: #778179; font-size: 9px; white-space: nowrap; }
.admin-status.active { background: #eaf4ec; color: #398052; }
.admin-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-row-actions .button { min-height: 30px; padding: 5px 8px; font-size: 9px; }
.admin-row-actions .text-link { padding: 4px; white-space: nowrap; }
.admin-role-list { display: grid; gap: 10px; }
.admin-role-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.admin-role-card h3 { margin-top: 8px; }
.admin-role-card>div:first-child>small { display: block; margin-top: 9px; color: #879189; font-size: 9px; }
.admin-danger-button { color: #a24e43; }
.admin-locked { background: #fff3df; color: #a0712c; }
.admin-access-table { min-width: 760px; }
.admin-access-table th { max-width: 145px; white-space: normal; }
.access-all,.access-edit,.access-view { color: #367c4d; font-size: 9px; font-weight: 600; }
.access-view { color: #79837c; }.access-none { color: #aeb5af; }
.contract-access-list { display: grid; gap: 9px; }
.contract-access-user { position: relative; display: grid; grid-template-columns: minmax(180px,1fr) minmax(230px,330px); align-items: center; gap: 14px; padding: 12px 14px; }
.contract-access-user-info { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 10px; }
.contract-access-user-info>div { min-width: 0; }
.contract-access-user-info strong,.contract-access-user-info small { display: block; }
.contract-access-user-info strong { color: #36433a; font-size: 11px; }
.contract-access-user-info small { margin-top: 4px; overflow-wrap: anywhere; color: #929b95; font-size: 9px; }
.contract-access-dropdown { position: relative; min-width: 0; }
.contract-access-dropdown>summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 7px 10px; border: 1px solid #e3e8e3; border-radius: 6px; background: #fff; color: #4f5d53; cursor: pointer; font-size: 10px; list-style: none; }
.contract-access-dropdown>summary::-webkit-details-marker { display: none; }
.contract-access-dropdown>summary::marker { content: ""; }
.contract-access-dropdown[open]>summary { border-color: #a8c6af; border-radius: 6px 6px 0 0; }
.contract-access-chevron { flex: 0 0 auto; color: #748278; font-size: 14px; transition: transform .15s ease; }
.contract-access-dropdown[open] .contract-access-chevron { transform: rotate(180deg); }
.contract-access-menu { position: absolute; z-index: 4; top: 100%; right: 0; left: 0; display: grid; gap: 8px; padding: 10px; border: 1px solid #a8c6af; border-top: 0; border-radius: 0 0 7px 7px; background: #fff; box-shadow: 0 12px 24px #21392d1a; }
.contract-access-search { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 9px; border: 1px solid #e3e8e3; border-radius: 5px; color: #809087; }
.contract-access-search>span { font-size: 17px; }
.contract-access-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #39463e; font-size: 10px; }
.contract-access-options { display: grid; max-height: min(260px,40vh); overflow-y: auto; overscroll-behavior: contain; }
.contract-access-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 8px 2px; border-top: 1px solid #f0f2ef; }
.contract-access-option[hidden] { display: none; }
.contract-access-choice { display: flex; align-items: center; gap: 8px; min-width: 0; }
.contract-access-choice input { flex: 0 0 auto; accent-color: var(--green); }
.contract-access-choice>span { min-width: 0; }
.contract-access-choice strong,.contract-access-choice small { display: block; }
.contract-access-choice strong { overflow-wrap: anywhere; color: #4b594f; font-size: 10px; font-weight: 500; }
.contract-access-choice small { margin-top: 3px; color: #99a19b; font-size: 8px; }
.contract-access-option select { flex: 0 0 76px; min-width: 0; min-height: 30px; padding: 4px 6px; border: 1px solid #e3e8e3; border-radius: 5px; background: #fff; color: #566259; font-size: 9px; }
.contract-access-global-note { margin: 0; }
.contract-access-empty,.contract-access-no-results { margin: 5px 0; }
.contract-access-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid #edf0ec; }
.contract-access-footer small { color: #849087; font-size: 9px; }
.contract-access-footer .button { flex: 0 0 auto; min-height: 31px; height: auto; padding: 6px 9px; font-size: 9px; }
.admin-help { margin: 10px 0 0; color: #849087; font-size: 10px; line-height: 1.5; }
.admin-settings-form { max-width: 700px; }
.admin-field { display: grid; gap: 7px; margin: 15px 0; color: #526057; font-size: 10px; font-weight: 600; }
.admin-field>span>strong { margin-left: 7px; color: var(--green); }
.admin-field input:not([type="range"]):not([type="color"]) { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #e3e8e3; border-radius: 5px; background: #fff; color: #39463e; }
.admin-field input[type="range"] { width: 100%; accent-color: var(--green); }
.admin-field small { color: #8d9790; font-size: 9px; font-weight: 400; line-height: 1.5; }
.admin-color-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.danger-button,.danger-link { color: #a24e43 !important; }
.contract-card-actions,.file-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.contract-card-actions { margin-left: auto; }
.contract-card-actions button,.file-row-actions button { padding: 3px 0; border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 600; }
.file-row-actions { min-width: 130px; }
.file-description,.sample-file-badge,.department-table td small,.document-share-row small { display: block; margin-top: 4px; color: #879189; font-size: 9px; line-height: 1.4; }
.sample-file-badge { color: #9a712e; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 18px 0 30px; color: #718078; font-size: 11px; }
.pagination .button { min-height: 34px; padding: 7px 12px; }
.pagination button:disabled { cursor: not-allowed; opacity: .45; }
.all-contracts-toolbar { margin-top: 4px; }
.page-size-control { display: inline-flex; align-items: center; gap: 8px; color: #68736b; font-size: 10px; }
.page-size-control select { min-height: 34px; padding: 0 28px 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #47534b; }
.all-contracts-pagination { justify-content: flex-end; }
.recent-pagination { flex-wrap: wrap; justify-content: flex-end; }
.back-link-row { margin-bottom: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 8px; border: 1px solid #cfd9d2; border-radius: 999px; background: #fff; color: #1f684d; font-size: 12px; font-weight: 700; cursor: pointer; }
.back-link:hover { background: #edf5f0; }
.back-link-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1f684d; color: #fff; }
.back-link-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow .back-link, .proc-back.back-link { margin-bottom: 4px; letter-spacing: 0; text-transform: none; }
.button .back-link-icon { display: inline-grid; width: 20px; height: 20px; margin-right: 6px; vertical-align: middle; }
.department-nav { margin-bottom: 8px; }
.department-nav-label { margin-top: 20px; }
.department-metrics { margin-bottom: 18px; }
.department-register { padding: 16px; }
.department-register .panel-head { margin-bottom: 12px; }
.department-register .panel-head h2 { margin: 0; font: 700 16px Manrope,sans-serif; }
.department-register .panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.department-table-wrap { overflow-x: auto; }
.department-table { min-width: 760px; }
.department-table td strong { display: block; color: #344239; font-size: 10px; }
.department-table td small { white-space: normal; }
.document-share-list { display: grid; gap: 8px; }
.document-share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.document-share-row strong { overflow-wrap: anywhere; }
.share-recipient-field { position: relative; }
.share-recipient-control { position: relative; display: flex; align-items: stretch; }
.share-recipient-control input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.share-recipient-toggle { min-width: 34px; padding: 0 10px; border: 1px solid var(--line); border-left: 0; border-radius: 0 7px 7px 0; background: #fff; color: #5f6a62; cursor: pointer; font-size: 12px; }
.share-recipient-toggle:hover,.share-recipient-toggle:focus-visible { background: #f2f7f2; outline: 0; }
.share-recipient-help { display: block; margin-top: 6px; color: #879189; font-size: 9px; line-height: 1.45; }
.share-recipient-options { position: absolute; z-index: 5; top: calc(100% - 2px); right: 0; left: 0; max-height: 220px; overflow-y: auto; border: 1px solid #dfe6df; border-radius: 0 0 7px 7px; background: #fff; box-shadow: 0 12px 24px #21392d1a; }
.share-recipient-options[hidden] { display: none; }
.share-recipient-option { display: grid; width: 100%; gap: 3px; padding: 9px 11px; border: 0; border-bottom: 1px solid #eef1ed; background: #fff; color: #455349; cursor: pointer; text-align: left; }
.share-recipient-option:hover,.share-recipient-option:focus-visible { outline: 0; background: #f2f7f2; }
.share-recipient-option strong { font-size: 10px; font-weight: 600; }
.share-recipient-option small,.share-recipient-empty { color: #849087; font-size: 9px; }
.share-recipient-empty { margin: 0; padding: 11px; line-height: 1.5; }
.view-context { margin: -10px 0 16px; color: #879189; font-size: 10px; }
.file-table td { vertical-align: top; }
.file-table td:last-child { min-width: 145px; }
.contract-card-actions button { z-index: 2; position: relative; }
@media (max-width: 900px) {
  .sidebar [data-view="finance"]::after { content: "Finance"; }
  .sidebar [data-view="operations"]::after { content: "Ops"; }
  .sidebar [data-view="hr"]::after { content: "HR"; }
  .file-row-actions { gap: 5px 8px; }
  .department-register { padding: 12px; }
}
@media (max-width: 520px) {
  .contract-card-actions { width: 100%; margin-left: 0; }
  .section-tools { flex-wrap: wrap; }
  .all-contracts-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .all-contracts-toolbar .section-tools { width: 100%; justify-content: space-between; }
  .page-size-control { gap: 5px; }
  .pagination { gap: 8px; }
  .pagination .button { padding: 6px 8px; }
  .document-share-row { align-items: flex-start; }
}
.admin-color-input { display: flex; gap: 8px; }
.admin-color-input input[type="color"] { width: 42px; height: 38px; padding: 3px; border: 1px solid #e3e8e3; border-radius: 5px; background: #fff; }
.admin-color-input .admin-hex-value { flex: 1; min-width: 0; }
.admin-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; color: #566259; }
.admin-check input,.admin-contract-grant input,.admin-permission-option input { accent-color: var(--green); }
.admin-check input { margin-top: 3px; }
.admin-check strong,.admin-check small { display: block; }
.admin-check strong { font-size: 10px; }
.admin-check small { margin-top: 4px; color: #8b958e; font-size: 9px; line-height: 1.5; }
.admin-form-actions { display: flex; justify-content: flex-end; margin-top: 20px; padding-top: 14px; border-top: 1px solid #edf0ec; }
.admin-usage { display: grid; gap: 8px; padding: 13px; border: 1px solid #edf0ec; border-radius: 7px; background: #fafbfa; color: #808b83; font-size: 10px; }
.admin-usage strong { color: #39463e; font-size: 12px; }
.admin-usage-track { height: 6px; overflow: hidden; border-radius: 5px; background: #e9ede9; }
.admin-usage-track span { display: block; height: 100%; border-radius: inherit; background: #64a176; }
.admin-notification-card { display: flex; align-items: flex-start; gap: 14px; }
.admin-notification-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 8px; background: #edf4ef; color: var(--green); font-size: 18px; }
.admin-access-fieldset,.admin-permission-group { min-width: 0; margin: 14px 0; padding: 10px 12px; border: 1px solid #e8ece8; border-radius: 7px; }
.admin-access-fieldset legend,.admin-permission-group legend { padding: 0 5px; color: #47564c; font-size: 10px; font-weight: 700; }
.admin-access-fieldset>p { margin: 0 0 8px; color: #8d9790; font-size: 9px; line-height: 1.5; }
.admin-contract-grant { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #f0f2ef; }
.admin-contract-grant label { display: flex; align-items: center; gap: 7px; min-width: 0; color: #566259; font-size: 10px; }
.admin-contract-grant label span { overflow-wrap: anywhere; }
.admin-contract-grant select { flex: 0 0 76px; min-width: 0; padding: 5px; border: 1px solid #e3e8e3; border-radius: 5px; background: #fff; color: #566259; font-size: 9px; }
.admin-permission-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-height: 45vh; overflow-y: auto; }
.admin-permission-group { margin: 0; padding: 8px 10px; }
.admin-permission-option { display: flex; align-items: flex-start; gap: 7px; padding: 7px 0; border-top: 1px solid #f0f2ef; }
.admin-permission-option input { flex: 0 0 auto; margin: 2px 0 0; }
.admin-permission-option strong,.admin-permission-option small { display: block; }
.admin-permission-option strong { color: #536057; font-size: 9px; }
.admin-permission-option small { margin-top: 3px; color: #929b95; font-size: 8px; line-height: 1.4; }
.admin-role-summary { display: grid; gap: 7px; margin: 0 0 14px; padding: 11px 12px; border: 1px solid #e5ece6; border-radius: 6px; background: #f8faf8; color: #68736b; font-size: 10px; }
.admin-role-summary>strong { color: #46544b; font-weight: 500; }
.admin-role-summary>small { color: #819087; }
.admin-role-summary>div { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-role-summary>div span { padding: 3px 7px; border-radius: 12px; background: #eaf3ed; color: #436b51; font-size: 9px; }
.admin-role-summary .text-link { justify-self: start; padding: 2px 0; text-align: left; }
.compact-layout .page-content { padding-top: 24px; }
.compact-layout .admin-stat,.compact-layout .admin-card { padding: 13px; }
.compact-layout .contract-grid,.compact-layout .metric-grid,.compact-layout .admin-stat-grid { gap: 8px; }

@media (max-width: 1100px) {
  .admin-layout { grid-template-columns: 190px minmax(0,1fr); gap: 14px; }
  .admin-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: minmax(0,1fr); }
  .admin-nav { position: static; display: flex; gap: 8px; overflow-x: auto; padding: 8px; }
  .admin-nav-group { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
  .admin-nav-group + .admin-nav-group { margin: 0; padding: 0 0 0 8px; border-top: 0; border-left: 1px solid #edf0ec; }
  .admin-nav-group h3 { display: none; }
  .admin-nav-link { flex: 0 0 auto; width: auto; min-height: 34px; white-space: nowrap; }
  .admin-permission-list { grid-template-columns: minmax(0,1fr); }
  .access-table { min-width: 720px; }
}
@media (max-width: 600px) {
  .admin-page-heading { margin-bottom: 14px; }
  .admin-section-heading { align-items: flex-start; flex-direction: column; }
  .admin-section-heading>.button { align-self: flex-start; }
  .admin-stat-grid { gap: 7px; }
  .admin-stat { padding: 11px; }
  .admin-stat strong { font-size: 16px; }
  .admin-shortcuts { grid-template-columns: minmax(0,1fr); }
  .admin-role-card,.admin-notification-card { align-items: flex-start; flex-direction: column; }
  .admin-role-card .admin-row-actions { width: 100%; }
  .admin-color-grid,.form-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .admin-nav { margin-right: -15px; margin-left: -15px; border-right: 0; border-left: 0; border-radius: 0; }
  .admin-card { padding: 14px; }
  .contract-access-user { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .contract-access-menu { right: auto; left: 0; width: min(100%,calc(100vw - 54px)); }
  .contract-access-footer { align-items: flex-start; flex-direction: column; }
}

.folder-tile { position: relative; flex-wrap: wrap; cursor: pointer; }
.folder-copy .folder-description { margin-top: 4px; color: #7d867f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.folder-actions { display: flex; gap: 10px; width: 100%; margin-left: 42px; padding-top: 2px; }
.folder-actions .text-link { padding: 0; border: 0; background: none; font-size: 8px; cursor: pointer; color: #3f6d4a; }

.eyebrow.contract-meta-line { color: #000; font-weight: 800; }

.detail-status-line { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-weight: 600; }

.disbursement-editor { display: grid; gap: 10px; margin: 4px 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fafcfa; }
.disbursement-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.disbursement-rows { display: grid; gap: 10px; }
.disbursement-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.6fr) auto; gap: 8px; align-items: end; }
.disbursement-row .form-field { margin: 0; }
.disbursement-empty { margin: 0; color: var(--muted); font-size: 10px; }
.disbursement-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.disbursement-table th,.disbursement-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.detail-metric .text-link { padding: 0; border: 0; background: none; color: #3f6d4a; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) { .disbursement-row { grid-template-columns: 1fr 1fr; } .disbursement-row .disbursement-comment { grid-column: 1 / -1; } .disbursement-row > button { grid-column: 1 / -1; } }

.brand-logo { flex: 0 0 auto; width: auto; height: 38px; max-width: 34px; object-fit: contain; border-radius: 4px; }
.login-logo { display: block; width: auto; height: 74px; margin: 0 0 16px; object-fit: contain; }
.login-brand { margin-bottom: 24px; }

.notification-anchor { position: relative; display: flex; }
.notification-button .notification-count { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid #fff; border-radius: 9px; background: #d47753; color: #fff; font: 700 9px/12px 'DM Sans',sans-serif; text-align: center; box-sizing: content-box; }
.notification-panel { position: absolute; z-index: 16; top: calc(100% + 12px); right: 0; width: 340px; max-width: calc(100vw - 24px); border: 1px solid #e6eae5; border-radius: 9px; background: #fff; box-shadow: 0 14px 36px #1e30231f; overflow: hidden; }
.notification-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 11px; }
.notification-head .text-link { padding: 0; border: 0; background: none; color: #3f6d4a; font-size: 10px; cursor: pointer; }
.notification-list { max-height: 380px; overflow-y: auto; }
.notification-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #f0f2ef; }
.notification-item.unread { background: #f4f9f4; }
.notification-item:last-child { border-bottom: 0; }
.notification-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: transparent; }
.notification-item.unread .notification-dot { background: #d47753; }
.notification-item strong { display: block; font-size: 11px; }
.notification-item span.notification-text { display: block; margin-top: 3px; color: #6f7a72; font-size: 10px; overflow-wrap: anywhere; }
.notification-item small { display: block; margin-top: 3px; color: #9aa39c; font-size: 9px; }
.notification-empty { padding: 26px 14px; text-align: center; color: #8a948c; font-size: 11px; }
@media (max-width: 640px) { .notification-panel { position: fixed; top: 64px; right: 12px; width: calc(100vw - 24px); } }

.sidebar { box-shadow: 4px 0 24px #0b2a5b40; }
.brand-logo { filter: drop-shadow(0 2px 6px #00000040); }
.nav-item:hover:not(.active) { background: #13335f; }

.folder-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 10px; color: #8a948c; }
.folder-breadcrumb .text-link { padding: 0; border: 0; background: none; color: #1f4f9a; font: inherit; cursor: pointer; }
.folder-breadcrumb strong { color: #2b3a33; }
.folder-empty { margin: 0 0 14px; color: #8a948c; font-size: 10px; }

.report-filters { padding: 18px; margin-bottom: 16px; }
.report-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.report-wide { grid-column: span 2; }
.report-status { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.report-status legend { float: left; margin-right: 10px; padding: 0; font-size: 10px; font-weight: 700; color: #5b6672; }
.report-chip input { position: absolute; opacity: 0; pointer-events: none; }
.report-chip span { display: inline-block; padding: 5px 12px; border: 1px solid #c9d3e3; border-radius: 999px; font-size: 10px; cursor: pointer; background: #fff; }
.report-chip input:checked + span { background: #0b2a5b; border-color: #0b2a5b; color: #fff; }
.report-chip input:focus-visible + span { outline: 2px solid #3b6fc4; outline-offset: 2px; }
.report-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.report-results { padding: 18px; }
.report-results .panel-head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.report-criteria { margin: 4px 0 0; font-size: 10px; color: #5b6672; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.report-cards div { border: 1px solid #dbe3f0; border-radius: 8px; padding: 10px 12px; background: #f6f9fd; }
.report-cards span { display: block; font-size: 9px; color: #5b6672; }
.report-cards strong { font-size: 16px; color: #0b2a5b; }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: 10px; min-width: 900px; }
.report-table th, .report-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #e6ebf3; vertical-align: top; }
.report-table th { color: #5b6672; font-weight: 700; white-space: nowrap; }
.report-table .num { text-align: right; white-space: nowrap; }
.report-table .report-title { min-width: 220px; font-weight: 600; }
.report-row { cursor: pointer; }
.report-row:hover, .report-row:focus-visible { background: #f0f5fc; }
@media (max-width: 1000px) { .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .report-grid { grid-template-columns: 1fr; } .report-wide { grid-column: auto; } }

.sidebar { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2f5aa3 transparent; }
.sidebar > * { flex-shrink: 0; }
.sidebar-spacer { min-height: 12px; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #2f5aa3; border-radius: 6px; }

/* ---- Human Resources tree and modules ---- */
.nav-tree { display: block; }
.nav-tree-toggle { width: 100%; }
.nav-caret { margin-left: auto; color: #9fb4d9; font-size: 15px; transition: transform .15s ease; }
.nav-tree.open .nav-caret { transform: rotate(90deg); }
.nav-tree-toggle.has-active { color: #f2f6ff; }
.nav-tree-children { display: none; margin: 2px 0 4px 17px; padding-left: 9px; border-left: 1px solid #2a4f8f; }
.nav-tree.open .nav-tree-children { display: block; }
.nav-item.nav-sub { padding-left: 12px; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.button-danger { border-color: #e3b8b2; color: #8e3e34; }
.button-danger:hover { background: #fbeeec; }
.button { text-decoration: none; }
.hr-metrics { margin-bottom: 14px; }
.hr-filter { margin: 0; min-width: 150px; }
.hr-staff-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 10px; padding: 4px 0; }
.hr-staff-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; font: inherit; }
.hr-staff-card:hover { border-color: #5a86c9; box-shadow: 0 4px 14px #0b2a5b1f; }
.hr-staff-card .admin-status { grid-column: 2; justify-self: start; }
.hr-staff-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.hr-staff-copy strong { font-size: 12px; overflow-wrap: anywhere; }
.hr-staff-copy small { color: #7b867f; font-size: 9px; overflow-wrap: anywhere; }
.hr-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: #dce8fb; color: #0b2a5b; font: 700 14px Manrope,sans-serif; }
.hr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hr-avatar-xl { width: 96px; height: 96px; font-size: 30px; }
.hr-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 10px; color: #6e7a70; }
.hr-profile-head { display: flex; align-items: center; gap: 18px; padding: 8px 4px; }
.hr-profile-head h2 { margin: 0 0 4px; font: 700 18px Manrope,sans-serif; }
.hr-profile-head p { margin: 0 0 8px; color: #6e7a70; font-size: 11px; }
.hr-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 14px 0; }
.hr-detail-grid .panel { margin: 0; }
.hr-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; padding: 4px 2px; }
.hr-fact span { display: block; color: #8c968f; font-size: 9px; }
.hr-fact strong { display: block; margin-top: 2px; font-size: 11px; overflow-wrap: anywhere; }
.hr-notes { margin: 0; padding: 4px 2px; font-size: 11px; white-space: pre-wrap; }
.hr-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.hr-upload select,.hr-upload input[type="file"] { min-height: 34px; padding: 6px 8px; border: 1px solid #e3e8e3; border-radius: 5px; font-size: 10px; max-width: 100%; }
.modal.modal-wide { width: min(760px,100%); }
.hr-form fieldset { margin: 0 0 14px; padding: 10px 12px 2px; border: 1px solid #e6ebe6; border-radius: 8px; min-width: 0; }
.hr-form legend { padding: 0 6px; color: #0b2a5b; font-size: 10px; font-weight: 700; }
.hr-form .form-field { margin: 8px 0; }
.hr-form .form-field span { display: block; margin-bottom: 5px; color: #566259; font-size: 9px; font-weight: 600; }
.form-row.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.hr-photo-picker { display: flex; align-items: center; gap: 16px; padding-bottom: 10px; }
.hr-photo-picker small { display: block; margin-top: 4px; color: #8c968f; font-size: 9px; }
.hr-check { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 10px; }
.modal.pension-manual-modal { width: min(760px,100%); }
.pension-staff-list { max-height: 180px; overflow-y: auto; padding: 8px; border: 1px solid #e3e8e3; border-radius: 5px; }
.pension-staff-list [hidden] { display: none; }
.pension-manual-modal fieldset { margin: 12px 0; padding: 10px 12px; min-width: 0; border: 1px solid #e6ebe6; border-radius: 8px; }
.pension-manual-modal legend { padding: 0 6px; font-size: 10px; font-weight: 700; }
.hr-hint { margin: 0; color: #7b867f; font-size: 9px; line-height: 1.5; }
.hr-notice { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #f0d98a; border-radius: 6px; background: #fff8dc; color: #6d5a14; font-size: 10px; }
.hr-table td,.hr-table th { white-space: nowrap; }
.hr-table small,.file-table small { display: block; }
@media (max-width: 900px) {
  .sidebar .nav-tree,.sidebar .nav-tree-children { display: contents; }
  .sidebar .nav-tree-toggle { display: none; }
  .sidebar .nav-item.nav-sub { padding: 4px 2px; font-size: 0; }
  .sidebar [data-view="hr-pensions"]::after { content: "Pensions"; }
  .sidebar [data-view="hr-payroll"]::after { content: "Payroll"; }
  .sidebar [data-view="hr-staff"]::after { content: "Staff"; }
  .sidebar [data-view="hr-pensions"]::before { content: "\20A6"; font-size: 19px; color: #9fb4d9; }
  .sidebar [data-view="hr-payroll"]::before { content: "\25A4"; font-size: 19px; color: #9fb4d9; }
  .sidebar [data-view="hr-staff"]::before { content: "\2659"; font-size: 19px; color: #9fb4d9; }
  .sidebar .nav-sub.active::before { color: #8ec1ff; }
  .sidebar .nav-sub { margin: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .hr-table td,.hr-table th { display: table-cell !important; }
  .hr-detail-grid,.hr-facts,.form-row.three { grid-template-columns: minmax(0,1fr); }
  .hr-profile-head { flex-direction: column; align-items: flex-start; }
}
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.panel-head h2 { font-size: 14px; }
@media (max-width: 900px) {
  .hr-staff-grid { grid-template-columns: minmax(0,1fr); }
  .panel { min-width: 0; }
  .hr-upload input[type="file"] { width: 100%; }
}
@media (max-width: 900px) {
  .sidebar { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar .nav-item,.sidebar .nav-item:not(.active) { flex: 0 0 66px; }
}
.table-scroll { max-width: 100%; overflow-x: auto; }
.hr-payment { margin-bottom: 14px; }
.hr-payment-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11px; }
.hr-payment-label { margin-right: 8px; color: #8c968f; font-size: 10px; }
.hr-payment small { margin-left: 6px; color: #8c968f; }
.hr-receipt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10px; }
.quota-card { min-height: 0; }
.quota-body { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.quota-chart { flex: 0 0 auto; width: 74px; height: 74px; }
.quota-chart-text { fill: #0b2a5b; font: 700 6.5px Manrope,sans-serif; }
.quota-legend { margin: 0; padding: 0; list-style: none; font-size: 10px; color: #6e7a70; }
.quota-legend li { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
.quota-legend i { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 900px) {
  .sidebar .nav-item.nav-tree-toggle,.sidebar .nav-item.nav-tree-toggle:not(.active) { display: none !important; }
  .sidebar [data-view="reports"]::after { content: "Reports"; }
}
.quota-chart { background: radial-gradient(circle, transparent 0 56%, #e3e9f3 57% 58%, transparent 59%); border-radius: 50%; }
.contract-art { height: 67px; }
.contract-art::before { height: 26px; top: 32px; box-shadow: 0 -3px 0 #b6ad8b, 0 3px 0 #e5ddba; }
.contract-art::after { top: 43px; }
.art-2::before { top: 23px; }
.art-2::after { top: 35px; }
.art-3::before { top: 31px; }
.art-3::after { top: 43px; }
@media (max-width: 760px) { .contract-art { height: 72px; } }

/* Admin: email & signature */
.admin-subhead{margin:22px 0 8px;font-size:15px;color:#0b2a5b}
.admin-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.admin-muted{color:#6b7686;font-size:13px;margin:0 0 10px}
.admin-check{display:flex;gap:10px;align-items:flex-start;margin:10px 0}
.admin-check input{margin-top:4px}
.admin-check small{display:block;color:#6b7686;font-weight:400}
.mail-provider-note{background:#eef3fb;border-left:3px solid #0b2a5b;padding:10px 14px;border-radius:6px;font-size:13px;margin:12px 0}
.mail-signature-preview{border:1px dashed #b8c3d6;border-radius:8px;padding:14px;margin:12px 0;background:#fafbfd}
.mail-signature-preview>small{display:block;color:#6b7686;margin-bottom:8px}
.mail-sig{display:grid;gap:3px;font-size:13px;border-top:2px solid #1f8a4c;padding-top:10px}
.mail-sig b{color:#0b2a5b}
.mail-sig em{color:#1f8a4c;font-style:normal}
.mail-sig small{color:#8a94a3;margin-top:6px}
.mail-test-row{display:flex;gap:10px;flex-wrap:wrap}
.mail-test-row input{flex:1;min-width:220px}
.mail-attach{background:#eef3fb;border-radius:8px;padding:10px 14px;margin-bottom:12px}
.mail-attach small{display:block;color:#6b7686}
.admin-table td small{display:block;color:#6b7686}
/* Fleet management */
.fleet-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.fleet-grid .panel { margin: 0; min-width: 0; }
.fleet-grid-wide { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.fleet-grid-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.fleet-bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding: 18px 2px 0; }
.fleet-bar-col { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.fleet-bar-col small { margin-top: 4px; color: #8c968f; font-size: 8px; }
.fleet-bar-value { color: #566259; font-size: 7px; white-space: nowrap; margin-bottom: 2px; }
.fleet-bar { display: block; width: 70%; max-width: 26px; border-radius: 3px 3px 0 0; min-height: 0; }
.fleet-bar-col { height: 100%; }
.fleet-bars .fleet-bar, .fleet-bars .fleet-stack { flex: 0 0 auto; }
.fleet-stack { display: flex; flex-direction: column-reverse; width: 70%; max-width: 26px; border-radius: 3px 3px 0 0; overflow: hidden; }
.fleet-bar-col { padding-bottom: 14px; }
.fleet-bar-col small { position: absolute; bottom: 0; }
.fleet-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 9px; color: #566259; }
.fleet-legend i, .fleet-donut-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.fleet-grid-wide + .fleet-grid, .hr-metrics + .fleet-grid { margin-top: 0; }
.fleet-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 8px 0; }
.fleet-donut { position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.fleet-donut::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: #fff; }
.fleet-donut span { position: relative; font: 700 11px Manrope,sans-serif; color: #0b2a5b; }
.fleet-donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 10px; flex: 1; min-width: 150px; }
.fleet-donut-legend li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; }
.fleet-donut-legend small { color: #8c968f; }
.fleet-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fleet-hbar-head { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; }
.fleet-hbar-track { height: 7px; margin: 4px 0 2px; border-radius: 4px; background: #e8eef8; overflow: hidden; }
.fleet-hbar-track span { display: block; height: 100%; border-radius: 4px; background: #0b2a5b; }
.fleet-hbars small { color: #8c968f; font-size: 9px; }
.fleet-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fleet-alerts li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; background: #f6f8f6; font-size: 10px; }
.fleet-alerts li div { flex: 1; min-width: 0; }
.fleet-alerts small { display: block; color: #7b867f; font-size: 9px; }
.fleet-alert-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0a21a; flex: 0 0 auto; }
.fleet-alert-danger { background: #fbeeec !important; }
.fleet-alert-danger .fleet-alert-dot { background: #c0453a; }
.fleet-asset-alerts { margin-bottom: 14px; }
.fleet-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.fleet-filters input, .fleet-filters select { min-height: 32px; padding: 5px 8px; border: 1px solid #e3e8e3; border-radius: 5px; font-size: 10px; }
.fleet-tiles { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 12px; padding-top: 4px; }
.fleet-tile { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.fleet-tile:hover { border-color: #5a86c9; box-shadow: 0 4px 14px #0b2a5b1f; }
.fleet-tile-top { display: flex; gap: 10px; align-items: center; }
.fleet-tile-top strong { display: block; font-size: 11px; font-weight: 700; font-family: inherit; }
.fleet-tile-top small, .fleet-tile-foot { color: #7b867f; font-size: 9px; }
.fleet-tile-label { display: block; color: #8c968f; font-size: 8px; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.fleet-tile-label:first-child { margin-top: 0; }
.fleet-tile-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #dce8fb; color: #0b2a5b; font-size: 18px; flex: 0 0 auto; }
.fleet-tile-status { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fleet-tile dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 0; }
.fleet-tile dt { color: #8c968f; font-size: 8px; }
.fleet-tile dd { margin: 2px 0 0; font-size: 10px; font-weight: 700; }
.fleet-status, .fleet-pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 9px; font-weight: 700; background: #eef1ee; color: #566259; }
.fleet-status-ok, .fleet-pill-completed, .fleet-pill-resolved, .fleet-pill-minor { background: #dff3e6; color: #1b6b3b; }
.fleet-status-maint, .fleet-pill-in-progress, .fleet-pill-scheduled, .fleet-pill-moderate, .fleet-pill-open { background: #fff1cf; color: #7a5a0c; }
.fleet-status-out, .fleet-pill-major, .fleet-pill-critical { background: #fbe1de; color: #9a3329; }
.fleet-status-idle { background: #e6ecf6; color: #28497f; }
.fleet-alert-badge { padding: 2px 8px; border-radius: 10px; background: #fbe1de; color: #9a3329; font-size: 9px; font-weight: 700; }
.fleet-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; align-items: center; margin-bottom: 14px; }
.fleet-summary span { display: block; color: #8c968f; font-size: 9px; }
.fleet-summary strong { font-size: 11px; }
.fleet-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.fleet-tab { padding: 9px 12px; border: 0; border-bottom: 2px solid transparent; background: none; font: 600 10px Manrope,sans-serif; color: #566259; cursor: pointer; white-space: nowrap; }
.fleet-tab span { margin-left: 5px; padding: 1px 6px; border-radius: 8px; background: #eef1ee; font-size: 8px; }
.fleet-tab.active { color: #0b2a5b; border-bottom-color: #0b2a5b; }
.fleet-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 10px; }
.fleet-docs li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid #eef1ee; }
.fleet-doc-danger { color: #c0453a; font-weight: 700; }
.fleet-doc-warn { color: #a37410; font-weight: 700; }
.fleet-doc-ok { color: #1b6b3b; }
.fleet-specs { grid-template-columns: repeat(4,minmax(0,1fr)); }
.fleet-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; }
.fleet-form-grid .form-field span { display: block; margin-bottom: 5px; color: #566259; font-size: 9px; font-weight: 600; }
.fleet-wide-field { grid-column: 1 / -1; }
.fleet-calc { margin: 10px 0 0; color: #0b2a5b; font-size: 10px; font-weight: 700; min-height: 12px; }
@media (max-width: 900px) {
  .fleet-grid, .fleet-grid-wide, .fleet-grid-three { grid-template-columns: 1fr; }
  .fleet-specs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fleet-form-grid { grid-template-columns: 1fr; }
}
.fleet-summary .fleet-status { justify-self: start; }

/* Stronger active-tab indicator */
.nav-item.active { position: relative; background: linear-gradient(90deg,#2a5fb8,#1b4a96); color: #fff; font-weight: 700; box-shadow: 0 2px 8px #04122f66; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 7px; width: 4px; border-radius: 0 4px 4px 0; background: #7fd1a0; }
.nav-item.active .nav-icon { color: #fff; }
.nav-tree-toggle.has-active { color: #fff; font-weight: 700; background: #12356b; }
.nav-tree-toggle.has-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 7px; width: 4px; border-radius: 0 4px 4px 0; background: #7fd1a0; }
.nav-tree-toggle { position: relative; }
.nav-tree-toggle.has-active .nav-icon { color: #fff; }
/* AGO Tracker */
.ago-tanks { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 14px; }
.ago-tank { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ago-tank-idle { background: #f6f8fb; }
.ago-tank-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ago-tank-head strong { display: block; font-size: 12px; }
.ago-tank-head small { color: #7b867f; font-size: 9px; }
.ago-stock strong { font: 700 22px Manrope,sans-serif; color: #0b2a5b; }
.ago-stock span { margin-left: 6px; color: #7b867f; font-size: 10px; }
.ago-gauge { height: 10px; border-radius: 6px; background: #e8eef8; overflow: hidden; }
.ago-gauge span { display: block; height: 100%; border-radius: 6px; }
.ago-gauge-ok { background: #1f8a4c; }
.ago-gauge-mid { background: #e0a21a; }
.ago-gauge-low { background: #c0453a; }
.ago-gauge-label { display: flex; justify-content: space-between; color: #8c968f; font-size: 9px; }
.ago-low { padding: 6px 8px; border-radius: 6px; background: #fbe1de; color: #9a3329; font-size: 9px; font-weight: 700; }
.ago-tank dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 10px; margin: 4px 0; }
.ago-tank dt { color: #8c968f; font-size: 8px; }
.ago-tank dd { margin: 2px 0 0; font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.ago-tank-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid #eef1ee; }
.ago-pair { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; width: 100%; }
.ago-pair .fleet-bar { width: 42%; max-width: 12px; }
.ago-bars .fleet-bar-col { padding-bottom: 14px; }
.ago-src-fleet { background: #dce8fb; color: #0b2a5b; }
.ago-src-ops { background: #dff3e6; color: #1b6b3b; }
.ago-src-other { background: #eef1ee; color: #566259; }
.ago-form-note { margin: 8px 0 0; color: #0b2a5b; font-size: 10px; min-height: 12px; }
.fleet-donut-total { border-top: 1px solid #e6ebe6; padding-top: 6px; font-weight: 700; }
.metric-value { overflow-wrap: anywhere; }
/* Mobile navigation drawer (replaces the old icon bar) */
.nav-burger, .sidebar-backdrop { display: none; }
@media (max-width: 900px) {
  body .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(288px, 85vw); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 20px 14px calc(14px + env(safe-area-inset-bottom));
    overflow-y: auto; overflow-x: hidden; z-index: 60;
    transform: translateX(-105%); transition: transform .22s ease; box-shadow: none;
  }
  body.nav-open .sidebar { transform: none; box-shadow: 8px 0 32px #0b1d3f66; }
  body.nav-open { overflow: hidden; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 55; background: #0b1d3f80; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.nav-open .sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
  .nav-burger { display: grid; flex: 0 0 auto; width: 34px; height: 34px; margin-right: 6px; border-radius: 7px; color: #0b2a5b; font-size: 22px; }
  .nav-burger:hover { background: #eef2f8; }
  body .sidebar .brand { display: flex; padding: 0 9px; }
  body .sidebar .workspace-switcher { display: flex; margin: 22px 0 20px; }
  body .sidebar .nav-label { display: block; }
  body .sidebar .library-label { display: flex; }
  body .sidebar .sidebar-spacer { display: block; flex: 1; min-height: 12px; }
  body .sidebar .storage-card { display: block; }
  body .sidebar .profile-button { display: flex; justify-content: flex-start; padding: 14px 4px 2px; }
  body .sidebar .profile-copy, body .sidebar .more-icon { display: block; }
  body .sidebar .main-nav { display: grid; margin: 0; }
  body .sidebar .nav-tree { display: block; }
  body .sidebar .nav-tree-children { display: none; margin: 2px 0 4px 17px; padding-left: 9px; border-left: 1px solid #2a4f8f; }
  body .sidebar .nav-tree.open .nav-tree-children { display: block; }
  body .sidebar .nav-item,
  body .sidebar .nav-item:not(.active),
  body .sidebar .nav-item.nav-tree-toggle,
  body .sidebar .nav-item.nav-tree-toggle:not(.active) {
    display: flex !important; flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 12px; width: 100%; max-width: none; height: 40px; padding: 0 11px; font-size: 12px; text-align: left;
  }
  body .sidebar .nav-item[hidden] { display: none !important; }
  body .sidebar .nav-item.nav-sub { padding: 0 12px; font-size: 11.5px; height: 38px; margin: 0; border-left: 0; }
  body .sidebar .nav-item::after { content: none !important; }
  body .sidebar .nav-sub::before { content: none !important; }
  body .sidebar .nav-sub.active::before { content: "" !important; }
  body .sidebar .nav-item:not(.active) .nav-count, body .sidebar .nav-count { display: inline-block; }
  body .sidebar .nav-icon { width: 17px; font-size: 16px; }
  body .sidebar .nav-sub::before { font-size: 0; }
  body .main-area { margin: 0; width: 100%; min-width: 0; }
  body .page-content { padding-bottom: 40px; }
}
@media (max-width: 520px) {
  body .topbar { padding: 0 10px; gap: 6px; }
  body .breadcrumbs span:not(.crumb-slash), body .breadcrumbs .crumb-slash { display: none; }
  body .breadcrumbs strong { max-width: 44vw; font-size: 12px; }
}
/* Fleet dashboard column charts */
.fleet-columns { display: flex; align-items: stretch; gap: 10px; height: 190px; margin-bottom: 14px; padding-top: 6px; }
.fleet-column { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fleet-column-plot { position: relative; flex: 1; width: 100%; margin-top: 16px; display: flex; justify-content: center; align-items: flex-end; }
.fleet-column-bar { position: relative; display: block; width: 100%; max-width: 46px; border-radius: 5px 5px 0 0; }
.fleet-column-bar em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-style: normal; font-size: 9px; font-weight: 700; color: #3a443e; white-space: nowrap; }
.fleet-column small { width: 100%; text-align: center; font-size: 9px; color: #7b867f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fleet-columns + .fleet-donut-legend { border-top: 1px solid #eef1ee; padding-top: 10px; }
@media (max-width: 900px) {
  body .sidebar .brand::after, body .sidebar [data-view]::after { content: none !important; }
  body .sidebar .brand-copy { display: flex; }
}

@media (max-width: 900px) {
  body .admin-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  body .admin-nav { position: static; display: flex; gap: 14px; overflow-x: auto; }
  body .admin-nav-group { flex: 0 0 auto; min-width: 190px; }
  body .admin-nav-group + .admin-nav-group { margin-top: 0; padding-top: 0; border-top: 0; padding-left: 14px; border-left: 1px solid #edf0ec; }
  body .heading-actions { flex-wrap: wrap; }
  body .panel, body .page-content > * { max-width: 100%; }
  body .fleet-filters { flex-wrap: wrap; width: 100%; }
  body .fleet-filters > * { flex: 1 1 140px; min-width: 0; }
}
@media (max-width: 520px) {
  body .fleet-columns { gap: 6px; }
  body .fleet-donut-legend li { grid-template-columns: auto 1fr auto; }
  body .modal, body .modal-card, body dialog { max-width: 100vw; }
}
.share-locked-file { padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: #f6f8fb; }
.share-locked-file strong, .share-locked-file small { display: block; overflow-wrap: anywhere; }
.share-locked-file small { margin-top: 3px; color: #7b867f; font-size: 9px; }
#share-file-search { width: 100%; margin-bottom: 6px; }
#share-file { width: 100%; }
#share-file option:disabled { display: none; }
.fleet-hbar-total { display: flex; justify-content: space-between; margin: 12px 0 0; padding-top: 8px; border-top: 1px solid #e6ebe6; font-size: 11px; }
.ago-compact .fleet-hbars { gap: 7px; }
.ago-compact .fleet-hbars li small { display: none; }
/* Cement Tracker */
.cement-panels { align-items: stretch; }
.cement-panels > .panel { display: flex; flex-direction: column; min-height: 260px; }
.cement-panels .ago-compact .fleet-hbars li small { display: block; }

.hr-filters { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Payroll roles, overtime, payslip ---- */
.pay-editor { margin: 6px 0 10px; }
.pay-block { margin-bottom: 10px; }
.pay-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 11px; }
.pay-line { display: grid; grid-template-columns: minmax(120px, 2fr) 100px minmax(80px, 1fr) auto auto 30px; gap: 6px; align-items: center; margin-bottom: 6px; }
.pay-line[data-kind="deduction"] { grid-template-columns: minmax(120px, 2fr) 100px minmax(80px, 1fr) 30px; }
.pay-line input:not([type="checkbox"]), .pay-line select { min-width: 0; width: 100%; padding: 7px 8px; border: 1px solid #dfe5df; border-radius: 6px; font-size: 11px; }
.pay-line .hr-check { margin: 0; white-space: nowrap; }
.pay-line .icon-button { color: #b33; }
.pay-hint { margin: 4px 0 8px; color: #6c776f; font-size: 9px; }
.hr-period { margin: 0; }
.hr-period span { display: block; font-size: 9px; color: #566259; }
.hr-period input { padding: 6px 8px; border: 1px solid #dfe5df; border-radius: 6px; font-size: 11px; }
.hr-pay-tabs { margin-top: 4px; }
.ot-rates, .ot-entry { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 12px; }
.ot-rates .form-field, .ot-entry .form-field { margin: 0; flex: 1 1 140px; }
.ot-rates .form-field span, .ot-entry .form-field span { display: block; margin-bottom: 4px; font-size: 9px; color: #566259; font-weight: 600; }
.ot-rates input, .ot-entry input, .ot-entry select { width: 100%; padding: 7px 8px; border: 1px solid #dfe5df; border-radius: 6px; font-size: 11px; }
.payslip-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.payslip-head h2 { margin: 0; font-size: 15px; }
.payslip-head p { margin: 2px 0 0; color: #566259; font-size: 10px; }
.payslip-staff { text-align: right; }
.payslip-staff span { display: block; color: #566259; font-size: 10px; }
.payslip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.payslip table { width: 100%; border-collapse: collapse; margin-bottom: 8px; font-size: 10px; }
.payslip th { text-align: left; padding: 6px 8px; background: #eef3ee; }
.payslip td { padding: 6px 8px; border-bottom: 1px solid #edf0ed; }
.payslip .amt { text-align: right; white-space: nowrap; }
.payslip .sub td { font-weight: 700; }
.payslip .muted { color: #8a948c; }
.payslip-net { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 10px 14px; border-radius: 8px; background: #0e6b3b; color: #fff; font-size: 13px; }
.payslip-foot { margin: 8px 0 0; color: #6c776f; font-size: 9px; }
@media (max-width: 700px) {
  .pay-line, .pay-line[data-kind="deduction"] { grid-template-columns: 1fr 1fr 30px; }
  .pay-line .pl-title { grid-column: 1 / -1; }
  .payslip-cols { grid-template-columns: 1fr; }
  .payslip-staff { text-align: left; }
}

/* Bitumen & Asphalt */
.bit-subtabs { margin-top: -6px; }
.bit-subtabs .fleet-tab { font-size: 12px; }
.bit-totals { margin: 10px 4px 4px; color: #4d5a52; font-size: 13px; }
.bit-recon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 14px 0; }
.bit-recon-card { border: 1px solid #e0e6e1; border-radius: 10px; padding: 14px 16px; background: #fbfcfb; }
.bit-recon-card h3 { margin: 0 0 8px; font-size: 15px; }
.bit-eq { margin: 0; }
.bit-eq > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed #dfe5e0; font-size: 13px; }
.bit-eq dt { color: #4d5a52; }
.bit-eq dd { margin: 0; font-weight: 600; text-align: right; }
.bit-eq .bit-eq-total { border-bottom: 2px solid #0b2a5b; font-size: 14px; }
.bit-mix-box { margin-top: 14px; padding: 12px; border: 1px solid #e0e6e1; border-radius: 10px; }
.bit-mix-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bit-comp-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.bit-check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bit-ago-box { display: grid; gap: 6px; padding: 10px 12px; border: 1px dashed #b8c5bb; border-radius: 8px; }
.bit-ago-box[hidden], .form-field[hidden] { display: none; }
.fleet-calc.bit-bad { color: #b3261e; font-weight: 600; }
@media (max-width: 700px) {
  .bit-comp-row { grid-template-columns: 1fr 80px auto; }
}
/* ---- Bitumen / Asphalt section switch ---- */
.bit-sections { display: inline-flex; gap: 4px; margin: 0 0 12px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.bit-section { flex: 0 0 auto; white-space: nowrap; padding: 8px 22px; border: 0; border-radius: 7px; background: none; font: 700 11px Manrope,sans-serif; color: #566259; cursor: pointer; }
.bit-section.active { background: #0b2a5b; color: #fff; }
/* ---- Dashboard ---- */
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 14px 0; }
.home-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0; align-items: stretch; }
.home-charts > .panel, .home-grid > .panel { margin: 0; height: 100%; }
.home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-grid + .home-charts, .home-charts + .lower-grid { margin-top: 14px; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .home-grid, .home-charts { grid-template-columns: minmax(0, 1fr); } }
.home-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; }
.home-stats div { min-width: 0; }
.home-stats dt { font-size: 10px; color: #6b766e; text-transform: uppercase; letter-spacing: .04em; }
.home-stats dd { margin: 2px 0 0; font: 800 14px Manrope,sans-serif; overflow-wrap: anywhere; }
.home-alerts { margin-top: 14px; border-left: 4px solid #e0a21a; }
.home-alerts ul { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.8; }
.home-metrics .metric-value { font-size: 20px; overflow-wrap: anywhere; }.home-subhead { margin: 18px 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #6b766e; }

/* Administration: dropdown lists */
.admin-list-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.admin-list-tab { border: 1px solid var(--line, #e2e8e4); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.admin-list-tab small { opacity: .6; margin-left: 4px; }
.admin-list-tab.active { background: var(--green); border-color: var(--green); color: #fff; }
.admin-list-add { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.admin-list-add .form-field { flex: 1; margin: 0; }
.admin-list-input { width: 100%; min-width: 160px; padding: 7px 10px; border: 1px solid var(--line, #d9e0db); border-radius: 8px; font: inherit; }
.admin-list-new { margin-top: 16px; }
.admin-danger-link { color: #b42318; }
@media (max-width: 640px) { .admin-list-add { flex-direction: column; align-items: stretch; } }
.admin-list-add .form-field > span { font-size: 12px; font-weight: 600; }
.admin-card-heading .admin-role-badge { align-self: flex-start; }

/* Searchable dropdowns */
.ss-wrap { position: relative; display: block; min-width: 0; }
.ss-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.ss-btn { display: block; width: 100%; box-sizing: border-box; text-align: left; cursor: pointer; font: inherit; position: relative; padding-right: 26px !important; line-height: 1.3; }
.ss-btn::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid #7b867e; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ss-btn:disabled { opacity: .6; cursor: not-allowed; }
.ss-btn:focus-visible { outline: none; border-color: #8eb69a !important; box-shadow: 0 0 0 2px #eaf3ed; }
.ss-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-empty .ss-label { opacity: .7; }
.ss-pop { position: fixed; z-index: 60; background: #fff; border: 1px solid #dfe5df; border-radius: 8px; box-shadow: 0 12px 36px #101b1633; padding: 8px; box-sizing: border-box; }
.ss-search { width: 100%; box-sizing: border-box; min-height: 34px; padding: 7px 10px; border: 1px solid #dfe5df; border-radius: 6px; font-size: 12px; outline: none; }
.ss-search:focus { border-color: #8eb69a; box-shadow: 0 0 0 2px #eaf3ed; }
.ss-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 240px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
@media (pointer: coarse) { .ss-search { font-size: 16px; min-height: 40px; } .ss-item, .ss-none { padding: 12px 10px; font-size: 14px; } .ss-list { max-height: 45vh; } }
.ss-item, .ss-none { padding: 8px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; color: #39463e; }
.ss-item.ss-hover { background: #eef5f0; }
.ss-item.ss-selected { font-weight: 700; color: var(--green); }
.ss-item.ss-disabled { opacity: .45; cursor: not-allowed; }
.ss-none { color: #8c968f; cursor: default; }
.ss-group { padding: 6px 10px 2px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8c968f; }
.ot-entry .ot-total{display:flex;flex-direction:column;justify-content:center;gap:2px}.ot-entry .ot-total span,.ot-calc{font-size:.78rem;color:var(--muted,#667085)}.ot-calc{display:block;margin-top:4px}

.ot-entry { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 12px 14px; align-items: start; padding: 14px; margin: 0 0 16px; background: #f7f9f7; border: 1px solid #e3e9e3; border-radius: 10px; }
.ot-entry .form-field { flex: none; min-width: 0; }
.ot-entry .form-field span { font-size: 11px; }
.ot-entry .ot-calc { margin-top: 5px; font-weight: 600; color: #1f5a3a; text-align: right; }
.ot-entry .form-field:nth-of-type(5) { grid-column: 1 / 3; }
.ot-entry .ot-total { grid-column: 3 / 4; align-self: end; align-items: flex-end; text-align: right; }
.ot-entry .ot-total strong { font-size: 16px; }
.ot-entry > button[type="submit"] { grid-column: 4 / 5; align-self: end; width: 100%; }
.ot-table { table-layout: fixed; width: 100%; min-width: 0; }
.ot-table th, .ot-table td { padding-left: 8px; padding-right: 8px; }
.ot-table th, .ot-table td { vertical-align: middle; white-space: normal; }
.ot-table th:not(:first-child), .ot-table td:not(:first-child) { text-align: right; }
.ot-table th:first-child, .ot-table td:first-child { width: 20%; text-align: left; }
.ot-table th:last-child, .ot-table td:last-child { width: 120px; }
.ot-table td small { display: block; }
.table-scroll .ot-table td .file-row-actions { justify-content: flex-end; min-width: 0 !important; gap: 10px; }
.ot-table td:last-child { min-width: 0; }
.ot-table th:last-child, .ot-table td:last-child { width: 110px; }
@media (max-width: 800px) {
  .ot-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ot-entry .form-field:first-child, .ot-entry .form-field:nth-of-type(5) { grid-column: 1 / -1; }
  .ot-entry .ot-total { grid-column: 1 / 2; }
  .ot-entry > button[type="submit"] { grid-column: 2 / 3; }
  .ot-table { table-layout: auto; min-width: 720px; }
}
.mail-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 12px; color: #39463e; }

/* Radio communications */
.role-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.role-chip { padding: 2px 8px; border-radius: 10px; background: #eef1ee; color: #566259; font-size: 9px; font-weight: 600; }
.role-chip.primary { background: #e6ecf6; color: #28497f; }
.role-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.role-option { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid #e3e8e3; border-radius: 6px; cursor: pointer; }
.role-option:has(input:checked) { border-color: #0b2a5b; background: #f3f6fb; }
.role-option strong { display: block; font-size: 10px; }
.role-option small { display: block; margin-top: 2px; color: #7b857d; font-size: 9px; }
@media (max-width: 600px) { .role-picker { grid-template-columns: 1fr; } }

/* WhatsApp admin */
.wa-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.wa-stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.wa-stats strong { display: block; font-size: 18px; }
.wa-stats span { color: #7b857d; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.wa-template { margin: 8px 0; padding: 12px 14px; border-radius: 6px; background: #f3f6f4; font: 11px/1.5 Consolas, monospace; white-space: pre-wrap; user-select: all; }
.wa-fieldset .form-field { margin-bottom: 10px; }
@media (max-width: 800px) { .wa-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Notifications centre */
.notif-filters { margin-bottom: 12px; }
.notif-bulk { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-bottom: 10px; font-size: 10px; color: #566259; }
.notif-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.notif-bulk-actions { display: flex; gap: 14px; }
.notif-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.notif-count-chip { padding: 2px 8px; border-radius: 10px; background: #eef1ee; font-size: 9px; }
.notif-group { margin-bottom: 14px; padding: 0; overflow: hidden; }
.notif-group h3 { margin: 0; padding: 9px 16px; border-bottom: 1px solid var(--line); background: #f7f9f7; color: #7b857d; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.notif-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f0f2ef; cursor: pointer; }
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: #f6f9f6; }
.notif-row.unread { background: #f4f9f4; }
.notif-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #eef1ee; color: #566259; font-size: 13px; }
.notif-icon-share { background: #e6ecf6; color: #28497f; }
.notif-icon-activity { background: #e4f3e9; color: #1b6b3b; }
.notif-icon-radio { background: #fff1cf; color: #7a5a0c; }
.notif-main { min-width: 0; }
.notif-main strong { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.notif-row:not(.unread) .notif-main strong { font-weight: 600; color: #566259; }
.notif-main span { display: block; margin-top: 3px; color: #6f7a72; font-size: 10px; overflow-wrap: anywhere; }
.notif-main small { display: block; margin-top: 3px; color: #9aa39c; font-size: 9px; }
.notif-main .notification-dot { background: #d47753; margin: 0; }
.notif-actions { display: flex; gap: 12px; white-space: nowrap; font-size: 10px; }
@media (max-width: 700px) {
  .notif-row { grid-template-columns: auto minmax(0, 1fr); }
  .notif-icon { display: none; }
  .notif-actions { grid-column: 2; }
}
.notification-head span { display: flex; gap: 10px; }

/* Radio communications */
.notification-item.clickable { cursor: pointer; }
.notification-item.clickable:hover { background: #eef5ee; }
.radio-table td small { display: block; margin-top: 3px; color: #7b857d; font-size: 9px; }
.radio-row { cursor: pointer; }
.radio-row:hover { background: #f6f9f6; }
.radio-row.unread td strong { color: #0b2a5b; }
.radio-subject { display: block; max-width: 340px; }
.radio-unread-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #d47753; }
.radio-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.radio-attach-btn { cursor: pointer; }
.danger-button { color: #9a3329; border-color: #ecc3be; }
.radio-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; }
.radio-steps li { counter-increment: step; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #e3e8e3; border-radius: 16px; background: #fff; color: #8a948c; font-size: 10px; font-weight: 700; }
.radio-steps li::before { content: counter(step); display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #eef1ee; font-size: 9px; }
.radio-steps li.done { color: #1b6b3b; border-color: #bfe2cb; background: #f2faf5; }
.radio-steps li.done::before { content: "\2713"; background: #dff3e6; }
.radio-steps li.current { color: #fff; border-color: #0b2a5b; background: #0b2a5b; }
.radio-steps li.current::before { background: rgba(255,255,255,.2); }
.radio-steps li.alt { border-color: #9a3329; background: #9a3329; }
.radio-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.radio-thread, .radio-side { display: grid; gap: 14px; min-width: 0; }
.radio-panel { padding: 16px; }
.radio-post { margin-bottom: 12px; padding: 12px 14px; border: 1px solid #e3e8e3; border-radius: 8px; background: #fbfcfb; }
.radio-post-root { background: #fff; border-color: #cdd8e8; }
.radio-post header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.radio-post header small { display: block; margin-top: 2px; color: #7b857d; font-size: 9px; }
.radio-post h3 { margin: 8px 0 4px; font-size: 14px; }
.radio-msg-table { border-collapse: collapse; margin: 8px 0; white-space: normal; max-width: 100%; }
.radio-msg-table th, .radio-msg-table td { border: 1px solid #98a2b3; padding: 5px 10px; text-align: left; }
.radio-msg-table th { background: #eef2f6; }
.radio-editor-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.radio-editor-bar label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.radio-editor-tools { display: inline-flex; gap: 12px; margin-left: auto; }
.radio-editor { min-height: 130px; max-height: 340px; overflow: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
.radio-editor:focus { border-color: #2563eb; }
.radio-editor .radio-msg-table { white-space: normal; width: 100%; }
.radio-editor .radio-msg-table th, .radio-editor .radio-msg-table td { min-width: 70px; height: 28px; }
.radio-info input { width: 100%; min-width: 80px; box-sizing: border-box; }
.radio-info .radio-msg-table { width: 100%; }
.radio-info .radio-msg-table td { padding: 2px; }
.radio-info-head input { font-weight: 700; background: #eef2f6; }
.modal-progress { margin-top: 12px; }
.modal-progress small { display: block; margin-top: 6px; color: #667085; font-size: 11px; }
.modal-progress-bar { display: block; height: 6px; border-radius: 999px; background: #e4ebe6; overflow: hidden; position: relative; }
.modal-progress-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 999px; background: var(--green, #2f7d4f); animation: modal-progress-slide 1.1s ease-in-out infinite; }
@keyframes modal-progress-slide { 0% { left: -40%; } 100% { left: 100%; } }
#modal-form.is-busy { cursor: progress; }
#modal-form.is-busy .fleet-form-grid { opacity: .6; pointer-events: none; }
.radio-table-scroll { overflow-x: auto; }
.radio-table-editor { margin: 8px 0; }
.radio-table-editor input { width: 100%; min-width: 90px; box-sizing: border-box; }
.radio-table-editor .radio-msg-table th, .radio-table-editor .radio-msg-table td { padding: 2px; }
.radio-table-actions { display: flex; gap: 14px; margin-top: 6px; }
.radio-table-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.radio-body { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.55; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.radio-route { padding: 2px 8px; border-radius: 10px; background: #e6ecf6; color: #28497f; font-size: 9px; font-weight: 700; }
.radio-chip { padding: 2px 8px; border-radius: 10px; font-size: 9px; background: #eef1ee; color: #566259; }
.radio-chip em { font-style: normal; font-weight: 700; margin-left: 3px; }
.radio-chip-ok { background: #dff3e6; color: #1b6b3b; }
.radio-chip-maint { background: #fff1cf; color: #7a5a0c; }
.radio-files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 10px; }
.radio-post-actions { margin-top: 6px; }
.radio-reply-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
#radio-reply-form textarea { width: 100%; padding: 8px 10px; border: 1px solid #dfe5df; border-radius: 6px; font: inherit; font-size: 12px; }
.radio-closed-note { padding: 12px 14px; border-radius: 8px; background: #eef1ee; color: #566259; font-size: 11px; }
.radio-facts { display: grid; gap: 8px; margin: 0; }
.radio-facts div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid #f0f2ef; font-size: 11px; }
.radio-facts dt { color: #7b857d; flex: 0 0 40%; }
.radio-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.radio-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 11px; }
.radio-list li { padding-bottom: 7px; border-bottom: 1px solid #f0f2ef; }
.radio-list small { display: block; margin-top: 2px; color: #7b857d; font-size: 9px; }
.radio-audit { max-height: 320px; overflow-y: auto; }
.radio-muted { color: #7b857d; font-size: 11px; }
.radio-track th, .radio-track td { font-size: 9px; padding: 6px 6px; }
.radio-picker { display: grid; gap: 6px; }
.radio-picker-label { color: #566259; font-size: 9px; font-weight: 600; }
.radio-picker-label em { font-style: normal; color: #1b6b3b; }
.radio-picker > small { color: #7b857d; font-size: 9px; }
.radio-picker input[type="search"] { min-height: 30px; padding: 5px 8px; border: 1px solid #e3e8e3; border-radius: 5px; font-size: 10px; }
.radio-picker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; max-height: 150px; overflow-y: auto; padding: 6px 8px; border: 1px solid #e3e8e3; border-radius: 6px; background: #fff; }
.radio-picker-list label { display: flex; align-items: flex-start; gap: 6px; padding: 3px 0; font-size: 10px; cursor: pointer; }
.radio-picker-list label[hidden] { display: none; }
.radio-picker-list small { display: block; color: #7b857d; font-size: 8px; }
.radio-check { flex-direction: row; align-items: center; display: flex; gap: 8px; }
.radio-check span { margin: 0 !important; }
.radio-targets { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 10px; }
.radio-targets label { display: flex; align-items: center; gap: 5px; }
@media (max-width: 900px) {
  .radio-layout { grid-template-columns: 1fr; }
  .radio-picker-list { grid-template-columns: 1fr; }
}

/* Procurement */
.proc-muted { color: #8d9790; font-size: 10px; }
.proc-inline { display: inline; color: #7b857d; }
.proc-stars { color: #d49a0c; letter-spacing: 1px; }
.proc-late { color: #9a3329; font-weight: 700; }
.proc-back { margin-bottom: 12px; }
.proc-list { list-style: none; margin: 0; padding: 0; }
.proc-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf0ed; font-size: 11px; }
.proc-list li:last-child { border-bottom: 0; }
.proc-list small { display: block; color: #7b857d; font-size: 9px; }
.proc-list-end { display: flex; align-items: center; gap: 10px; text-align: right; }
.proc-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.proc-steps li { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 8px; counter-increment: step; font-size: 10px; }
.proc-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-bottom: 6px; border-radius: 50%; background: #0b2a5b; color: #fff; font-size: 10px; }
.proc-steps strong, .proc-steps span { display: block; }
.proc-steps span { margin-top: 3px; color: #7b857d; font-size: 9px; }

/* Responsive hardening: wide data tables scroll sideways instead of being squeezed */
.panel-head { flex-wrap: wrap; gap: 10px; }
.panel-head > :first-child { flex: 1 1 180px; min-width: 0; }
@media (max-width: 900px) {
  .table-scroll .file-table, .department-table, .file-table.hr-table { table-layout: auto; width: max-content; min-width: 100%; }
  .table-scroll .file-table th, .table-scroll .file-table td, .department-table th, .department-table td { display: table-cell !important; white-space: nowrap; overflow-wrap: normal; }
  .table-scroll, .department-table-wrap, .report-table-wrap, .files-table-wrap { -webkit-overflow-scrolling: touch; }
  .panel-head > * { min-width: 0; }
  .panel-head .hr-filters, .panel-head .fleet-filters { width: 100%; }
  .hr-filters > *, .fleet-filters > * { flex: 1 1 140px; min-width: 0; }
  .hr-filters select, .hr-filters input, .fleet-filters select, .fleet-filters input { width: 100%; }
  .heading-actions, .page-heading > div:last-child { flex-wrap: wrap; }
  .fleet-tabs, .radio-tabs, .view-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .fleet-tabs::-webkit-scrollbar, .radio-tabs::-webkit-scrollbar { display: none; }
  .fleet-tab, .radio-tab { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 520px) {
  .modal input, .modal select, .modal textarea { font-size: 16px; }
  .form-row, .form-row.two, .form-row.three { grid-template-columns: minmax(0, 1fr); }
}
.proc-facts { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 12px 18px; margin: 0 0 14px; }
.proc-facts dt { color: #7b857d; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.proc-facts dd { margin: 3px 0 0; font-size: 11px; overflow-wrap: anywhere; }
.proc-facts-one { grid-template-columns: 1fr; gap: 8px; }
.proc-note { margin: 10px 0; color: #566259; font-size: 10px; line-height: 1.6; }
.proc-sub { margin: 16px 0 8px; font: 700 12px Manrope,sans-serif; }
.proc-meter { height: 6px; min-width: 70px; border-radius: 4px; background: #e8eef8; overflow: hidden; }
.proc-meter span { display: block; height: 100%; background: #1f8a4c; }
.proc-meter-warn span { background: #d49a0c; }
.proc-meter-over span { background: #c0392b; }
.proc-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.proc-step { display: flex; gap: 10px; padding-bottom: 14px; font-size: 10px; position: relative; }
.proc-step:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: #dfe5df; }
.proc-dot { flex: none; width: 12px; height: 12px; margin-top: 2px; border-radius: 50%; background: #c8d0c9; }
.proc-step-approved .proc-dot { background: #1f8a4c; }
.proc-step-rejected .proc-dot { background: #c0392b; }
.proc-step-pending .proc-dot { background: #d49a0c; }
.proc-step small, .proc-step em { display: block; margin-top: 2px; color: #7b857d; font-size: 9px; }
.proc-check { list-style: none; margin: 0; padding: 0; font-size: 11px; }
.proc-check li { padding: 5px 0; color: #8d9790; }
.proc-check li.proc-done { color: #1b6b3b; }
.proc-issues { list-style: none; margin: 0; padding: 0; font-size: 10px; }
.proc-issues li { padding: 7px 0; border-bottom: 1px solid #edf0ed; }
.proc-ok { padding: 10px 12px; border-radius: 6px; background: #dff3e6; color: #1b6b3b; font-size: 11px; }
.proc-row-flag td { background: #fdf1ef; }
.proc-lines input, .proc-lines select, .proc-tier-table input, .proc-tier-table select, .proc-grn-line input, .proc-inv-line input { width: 100%; min-width: 80px; min-height: 30px; padding: 5px 7px; border: 1px solid #e3e8e3; border-radius: 5px; font-size: 10px; }
.proc-lines td:first-child input { min-width: 160px; }
.proc-line-total, .proc-grand { text-align: right; white-space: nowrap; }
.proc-tier-check { margin: 0; }
.admin-access-fieldset { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 900px) { .proc-steps { grid-template-columns: minmax(0,1fr); } }

/* Date fields: dd/mm/yyyy text entry with a calendar button */
.date-input { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; }
.date-input > input[type="text"] { flex: 1; min-width: 0; width: 100%; padding-right: 30px; }
.date-input .dp-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.date-input .dp-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #667085; cursor: pointer; }
.date-input .dp-btn:hover { background: #eef2ee; color: #1f2937; }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.view-switch button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 0; border-right: 1px solid var(--line); background: #fff; font: inherit; font-size: 12.5px; cursor: pointer; color: inherit; }
.view-switch button:last-child { border-right: 0; }
.view-switch button.active { background: #0b2a5b; color: #fff; }
.vm-list { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.vm-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.vm-row:hover, .vm-tile:hover, .vm-row-click:hover { border-color: #5a86c9; background: #f5f8fd; }
.vm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vm-main small { color: #667; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vm-tiles { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 10px; padding-top: 4px; }
.vm-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; text-align: center; cursor: pointer; }
.vm-tile .progress-bar { width: 100%; }
.vm-table-wrap { overflow-x: auto; }
.vm-table td, .vm-table th { white-space: nowrap; }
.vm-row-click { cursor: pointer; }
@media (max-width: 700px) { .view-switch button span { display: none; } .vm-end { flex-direction: column; align-items: flex-end; gap: 4px; } }
.contract-export-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.contract-export-list { max-height: 480px; overflow-y: auto; border: 1px solid #d5dbe4; border-radius: 8px; }
.contract-export-list label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e6eaf0; cursor: pointer; }
.contract-export-list label:last-child { border-bottom: 0; }
.disbursement-entry { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.contract-deduction-row { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 8px 0; }
.contract-deduction-row label { display: flex; flex-direction: column; gap: 4px; }
.contract-deduction-row label[hidden] { display: none; }
