/* PLATAFORT - Derechos reservados. | Propiedad de Bernardo Soto Gutierrez y Javier Soto Gutierrez. | Uso, reproduccion y distribucion sujetos a autorizacion de los titulares. | Identificador de archivo: PLTF-EF161D9EF93FC8D7CDA3A5AC */
[data-commercial-requests] p,
[data-commercial-source] p,
[data-settlement-balance] dd {
  overflow-wrap: anywhere;
}

[data-commercial-requests] select {
  min-width: 0;
  max-width: 100%;
}

:root {
  --ink: #172b3d;
  --muted: #66798a;
  --brand-primary: #124f7f;
  --brand-primary-dark: #071c33;
  --brand-primary-light: #75c6ff;
  --forest: var(--brand-primary);
  --forest-2: var(--brand-primary);
  --brand-gradient: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  --lime: var(--brand-primary-light);
  --paper: #f3f6f9;
  --surface: #ffffff;
  --surface-soft: #edf3f7;
  --line: #d5dee7;
  --white: #ffffff;
  --space-page: 28px;
  --space-section: 24px;
  --space-card: 20px;
  --space-grid: 12px;
  --radius-field: 6px;
  --radius-control: 7px;
  --radius-card: 10px;
  --radius-overlay: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 14px rgb(18 79 127 / 5%);
  --shadow-overlay: 0 16px 38px rgb(7 28 51 / 22%);
}

* { box-sizing: border-box; }
html { background: var(--brand-primary-dark); }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; }
.app-header { height: 60px; padding: 0 18px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; background: #071c33; color: white; position: sticky; top: 0; z-index: 20; }
.cookie-notice {
  position:fixed; z-index:1000; inset:0; margin:auto;
  width:min(720px,calc(100% - 28px)); min-height:45dvh; max-height:calc(100dvh - 28px);
  padding:clamp(20px,4vw,36px); border:1px solid var(--line);
  background:var(--surface); color:var(--ink); box-shadow:0 16px 45px rgb(7 28 51 / 25%);
  overflow:auto;
}
.cookie-notice[open] { display:grid; align-content:center; gap:24px; }
.cookie-notice::backdrop { background:rgb(7 28 51 / 45%); }
.cookie-notice .cookie-notice-copy { display:grid; gap:12px; }
.cookie-notice .cookie-notice-copy h2 { font-size:clamp(22px,4vw,28px); }
.cookie-notice .cookie-notice-copy p { font-size:14px; line-height:1.5; }
.cookie-notice .cookie-notice-actions { flex-wrap:wrap; gap:12px; }
.cookie-notice .cookie-notice-actions .button { min-height:44px; font-size:13px; }
.cookie-notice .cookie-configure-link { font-size:13px; }
body:has(.cookie-notice[open]) :is(.direct-chat-launcher,.personal-notes-launcher) { visibility:hidden; }
.cookie-notice-copy { min-width:0; display:flex; flex-wrap:wrap; align-items:baseline; column-gap:13px; row-gap:5px; }.cookie-notice h2 { margin:0; font-size:14px; letter-spacing:0; }.cookie-notice p { margin:0; color:var(--muted); font-size:12px; line-height:1.4; }.cookie-notice-copy > a { color:#275f8c; font-size:11px; font-weight:700; text-decoration:underline; text-underline-offset:2px; }.cookie-notice-categories { width:100%; display:flex; flex-wrap:wrap; gap:0; color:#617689; font-size:10px; }.cookie-notice-categories span { padding:0 10px; border-left:1px solid #d1dee8; }.cookie-notice-categories span:first-child { padding-left:0; border-left:0; }.cookie-notice-categories strong { color:#275f8c; font-weight:750; }.cookie-notice-actions { display:flex; align-items:center; flex-wrap:nowrap; gap:7px; }.cookie-notice-actions form { margin:0; }.cookie-notice-actions .button { min-height:32px; padding:7px 10px; border:1px solid #b7cad9; border-radius:7px; cursor:pointer; font-size:11px; font-weight:700; }.cookie-notice-actions .button:not(.secondary) { border-color:#124f7f; background:#124f7f; }.cookie-configure-link { padding:5px; color:#275f8c; font-size:11px; font-weight:700; text-decoration:underline; text-underline-offset:2px; white-space:nowrap; }
.privacy-footer { width:100%; max-width:none; margin:0 auto; padding:18px clamp(14px,2vw,32px) 34px; display:flex; justify-content:space-between; gap:18px; color:#617689; font-size:12px; }.privacy-footer a { color:var(--forest-2); font-weight:800; }
.privacy-center { display:grid; gap:24px; }.privacy-heading { padding:34px; display:flex; justify-content:space-between; gap:30px; border-radius:24px; color:white; background:linear-gradient(135deg,#071c33,#0d2740); }.privacy-heading h1 { margin:5px 0 12px; }.privacy-heading p:last-child { max-width:780px; margin:0; color:#d1dee8; line-height:1.6; }.privacy-shield { width:82px; height:82px; flex:0 0 82px; display:grid; place-items:center; border:1px solid rgb(255 255 255 / 24%); border-radius:24px; color:var(--lime); background:rgb(255 255 255 / 7%); font-size:45px; }.privacy-summary,.privacy-detail,.privacy-preferences { padding:26px; border:1px solid var(--line); border-radius:18px; background:white; box-shadow:0 8px 24px rgb(18 79 127 / 5%); }.privacy-summary { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr); align-items:center; gap:28px; }.privacy-summary h2 { font-size:25px; }.privacy-summary > p { color:var(--muted); line-height:1.55; }.privacy-preferences { display:grid; gap:12px; }.privacy-choice { padding:20px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:25px; border:1px solid #d1dee8; border-radius:14px; background:#f3f7fa; }.privacy-choice.required { border-color:#b7cad9; background:#f3f7fa; }.privacy-choice h2 { margin:4px 0 7px; font-size:20px; }.privacy-choice p { margin:0; color:var(--muted); line-height:1.5; }.privacy-category { color:#275f8c; font-size:10px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }.privacy-toggle { min-width:106px; display:grid; grid-template-columns:46px auto; align-items:center; gap:9px; cursor:pointer; }.privacy-toggle input { position:absolute; opacity:0; pointer-events:none; }.privacy-toggle span { position:relative; width:46px; height:26px; border-radius:999px; background:#b7cad9; transition:.15s; }.privacy-toggle span::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:white; box-shadow:0 1px 4px rgb(0 0 0 / 20%); transition:.15s; }.privacy-toggle input:checked + span { background:var(--forest-2); }.privacy-toggle input:checked + span::after { transform:translateX(20px); }.privacy-toggle input:focus-visible + span { outline:3px solid rgb(40 120 181 / 25%); outline-offset:2px; }.privacy-toggle strong { font-size:12px; }.privacy-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:8px; }.privacy-actions .button { border:1px solid var(--forest); cursor:pointer; }.privacy-accept { background:#124f7f; }.privacy-detail h2 { margin:4px 0 18px; font-size:26px; }.privacy-table { overflow:auto; border:1px solid var(--line); border-radius:12px; }.privacy-table th { position:static; }.privacy-table td { min-width:140px; line-height:1.45; }.privacy-table td:nth-child(3) { min-width:330px; }.privacy-provider-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }.privacy-provider-grid article { padding:18px; border:1px solid #d1dee8; border-radius:13px; background:#f3f7fa; }.privacy-provider-grid h3 { margin:0 0 7px; }.privacy-provider-grid p { min-height:72px; color:var(--muted); line-height:1.45; }.privacy-provider-grid a,.privacy-provider-grid span,.privacy-rights a { color:var(--forest-2); font-size:12px; font-weight:850; }.privacy-rights p { max-width:1000px; color:var(--muted); line-height:1.65; }.privacy-rights small { display:block; margin-top:18px; color:#617689; }
.privacy-external-placeholder { min-height:430px; padding:36px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; background:#f3f7fa; color:var(--muted); text-align:center; }.privacy-external-placeholder strong { color:var(--ink); font-size:22px; }.privacy-external-placeholder span { max-width:520px; line-height:1.55; }.privacy-external-placeholder a,.privacy-payment-placeholder a { color:var(--forest-2); font-weight:800; }.privacy-payment-placeholder { padding:15px; border:1px solid #d1dee8; border-radius:12px; background:#f3f7fa; }.privacy-payment-placeholder p { margin:5px 0 12px; color:var(--muted); font-size:13px; }
@media (max-width:760px) { .cookie-notice-copy { column-gap:8px; }.cookie-notice-categories { flex-direction:column; gap:2px; }.cookie-notice-categories span { padding:0; border-left:0; }.cookie-notice-actions { justify-content:flex-start; flex-wrap:wrap; }.privacy-heading { padding:25px; }.privacy-shield { display:none; }.privacy-summary { grid-template-columns:1fr; }.privacy-choice { grid-template-columns:1fr; }.privacy-actions { align-items:stretch; flex-direction:column; }.privacy-actions .button { justify-content:center; }.privacy-footer { align-items:flex-start; flex-direction:column; } }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand-wordmark { min-width:0; display:grid; align-content:center; gap:1px; line-height:1; }
.brand-name { display:block; }
.brand-version { color:#94aec2; font-size:8px; font-variant-numeric:tabular-nums; font-weight:850; letter-spacing:.08em; line-height:1; text-transform:none; }
.brand-mark { width: 36px; height: 36px; object-fit: cover; border-radius: 9px; transform: scale(1.18); clip-path: inset(9% round 10px); }
.app-header .brand-mark { filter:brightness(0) invert(1); }
nav { display: flex; align-items: center; gap: 24px; }
nav a { text-decoration: none; font-weight: 650; }
.nav-disabled { color: #8fa0ae; }
.page-shell { width:100%; max-width:1680px; min-width:0; margin:0 auto; padding:40px clamp(14px,2vw,32px) 80px; }
.hero { color: white; border-radius: var(--radius-overlay); padding: 64px; background: var(--brand-gradient); }
.hero h1 { max-width: 840px; margin: 8px 0 16px; font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.045em; }
.hero p:last-child { max-width: 760px; color: #d1dee8; font-size: 18px; line-height: 1.6; }
.eyebrow { color: #617689; font-weight: 800; letter-spacing: .12em; font-size: 12px; }
.hero .eyebrow { color: var(--lime); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 24px 0 56px; }
.metrics article { background: white; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.metrics strong { font-size: 28px; }
.metrics span { color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 36px 0 18px; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { font-size: 42px; margin: 4px 0 24px; }
h2 { margin: 4px 0; font-size: 30px; }
.cards, .module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.project-card, .module-card { display: block; background: white; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; text-decoration: none; box-shadow: var(--shadow-card); }
.project-module-access-list { margin:36px 0; display:grid; gap:16px; }
.project-module-access { position:relative; padding-right:64px; color:inherit; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.project-module-access h2 { margin:0 0 8px; }
.project-module-access p { margin:0 0 10px; color:var(--muted); }
.project-module-access > span { position:absolute; top:50%; right:25px; color:var(--forest-2); font-size:27px; font-weight:800; transform:translateY(-50%); }
.project-module-access:hover { border-color:var(--forest-2); box-shadow:0 12px 28px rgb(18 79 127 / 10%); transform:translateY(-1px); }
.project-module-access:focus-visible { outline:3px solid rgb(40 120 181 / 28%); outline-offset:3px; }
.project-card:hover { border-color: var(--forest-2); transform: translateY(-2px); }
/* shared compact actions and oval workflow states. */
.status, .status-pill, .status-badge { box-sizing:border-box; min-height:27px; padding:4px 10px; display:inline-flex; align-items:center; border:1px solid #bfd3e1; border-radius:999px; background:#e8f1f7; color:#124f7f; font-size:12px; font-weight:800; line-height:1; white-space:nowrap; }
.button { min-height:38px; padding:9px 14px; display:inline-flex; align-items:center; justify-content:center; border-radius:var(--radius-control); background:var(--forest); color:white; text-decoration:none; font-weight:750; line-height:1.15; }
.button.secondary { background: white; color: var(--forest); border: 1px solid var(--line); }
.button:disabled { cursor: not-allowed; opacity: .58; }
.money { font-size: 24px; font-weight: 800; margin: 24px 0; }
.status.productivity-ahead { color:#124f7f; background:#e8f1f7; }
.status.productivity-on_plan { color:#275f8c; background:#eaf3fa; }
.status.productivity-below { color:#8f2f22; background:#fff0ed; }
.status.productivity-unplanned { color:#617689; background:#edf1ef; }
.table-shell { overflow: auto; background: white; border: 1px solid var(--line); border-radius: var(--radius-card); }
.table-wrap { width:100%; max-width:100%; overflow-x:auto; }
table { width: 100%; border-collapse: collapse; }
th { position: sticky; top: 0; background: var(--forest); color: white; text-align: left; padding: 14px 16px; font-size: 13px; z-index: 1; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
td:nth-child(2) { min-width: 420px; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { margin-bottom: 4px; }
.page-heading p { color: var(--muted); margin: 0; }
.record-heading-meta { display:flex; align-items:center; gap:8px; max-width:100%; margin-top:10px; padding-bottom:2px; overflow-x:auto; flex-wrap:nowrap; scrollbar-width:thin; }
.record-heading-meta > * { flex:0 0 auto; white-space:nowrap; }
.record-heading-context { color:var(--muted); font-size:13px; font-weight:700; }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.project-quick-panel { margin:28px 0 38px; padding:24px; border:1px solid var(--line); border-radius:18px; background:white; box-shadow:0 10px 28px rgb(18 79 127 / 5%); }
.project-quick-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.project-quick-heading h2 { font-size:24px; }
.project-quick-heading .eyebrow { margin:0; }
.project-quick-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.project-quick-group { display:flex; flex-direction:column; gap:8px; padding:16px; border-radius:14px; background:#f3f7fa; }
.project-quick-group h3 { margin:0 4px 4px; color:#617689; font-size:12px; letter-spacing:.1em; text-transform:uppercase; }
.project-quick-link { min-height:60px; padding:11px 13px; display:flex; flex-direction:column; justify-content:center; gap:2px; border:1px solid #d1dee8; border-radius:11px; background:white; color:var(--forest); text-decoration:none; transition:border-color .15s,transform .15s,box-shadow .15s; }
.project-quick-link span { color:var(--muted); font-size:12px; }
.project-quick-link:hover { border-color:#6f93ae; transform:translateY(-1px); box-shadow:0 6px 16px rgb(18 79 127 / 8%); }
.project-quick-link.featured { border-color:var(--forest); color:white; background:var(--forest); }
.project-quick-link.featured span { color:#d1dee8; }
.project-live-overview { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:18px; margin:24px 0; }
.project-weather-card,.project-generalities-card { min-width:0; padding:24px; border:1px solid var(--line); border-radius:18px; background:white; box-shadow:0 10px 28px rgb(18 79 127 / 5%); }
.project-weather-card > header,.project-generalities-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.project-weather-card h2,.project-generalities-card h2 { font-size:24px; }
.project-weather-card .eyebrow,.project-generalities-card .eyebrow { margin:0; }
.weather-sunny { --weather-start:#fff7a6; --weather-end:#ffb323; --weather-accent:#e98108; }
.weather-night { --weather-start:#d9ddff; --weather-end:#40558f; --weather-accent:#354b86; }
.weather-partly-cloudy { --weather-start:#c8efff; --weather-end:#ffd766; --weather-accent:#3287bd; }
.weather-cloudy { --weather-start:#dce8ee; --weather-end:#8eb1c4; --weather-accent:#547889; }
.weather-fog { --weather-start:#e8eeee; --weather-end:#aebcbc; --weather-accent:#667878; }
.weather-rain { --weather-start:#bce8ff; --weather-end:#4a91db; --weather-accent:#1765aa; }
.weather-snow { --weather-start:#f5fdff; --weather-end:#91d6ef; --weather-accent:#3d9cbd; }
.weather-storm { --weather-start:#d8c8ff; --weather-end:#6651c4; --weather-accent:#47308f; }
.project-weather-card:is(.weather-sunny,.weather-night,.weather-partly-cloudy,.weather-cloudy,.weather-fog,.weather-rain,.weather-snow,.weather-storm) { position:relative; overflow:hidden; border-color:color-mix(in srgb,var(--weather-accent) 38%,transparent); background:linear-gradient(145deg,color-mix(in srgb,var(--weather-accent) 86%,#15394d),color-mix(in srgb,var(--weather-end) 78%,#587d8d)); color:white; box-shadow:0 18px 44px color-mix(in srgb,var(--weather-accent) 24%,transparent); }
.project-weather-card:is(.weather-sunny,.weather-night,.weather-partly-cloudy,.weather-cloudy,.weather-fog,.weather-rain,.weather-snow,.weather-storm)::before { content:""; position:absolute; inset:-35% -12% auto 38%; height:300px; pointer-events:none; border-radius:50%; background:radial-gradient(circle,rgb(255 255 255 / 30%),rgb(255 255 255 / 0) 67%); }
.project-weather-card:is(.weather-sunny,.weather-night,.weather-partly-cloudy,.weather-cloudy,.weather-fog,.weather-rain,.weather-snow,.weather-storm) > * { position:relative; }
.project-weather-card:is(.weather-sunny,.weather-night,.weather-partly-cloudy,.weather-cloudy,.weather-fog,.weather-rain,.weather-snow,.weather-storm) .eyebrow,.project-weather-card:is(.weather-sunny,.weather-night,.weather-partly-cloudy,.weather-cloudy,.weather-fog,.weather-rain,.weather-snow,.weather-storm) .project-local-clock small,.project-weather-card:is(.weather-sunny,.weather-night,.weather-partly-cloudy,.weather-cloudy,.weather-fog,.weather-rain,.weather-snow,.weather-storm) .project-weather-current span,.project-weather-card:is(.weather-sunny,.weather-night,.weather-partly-cloudy,.weather-cloudy,.weather-fog,.weather-rain,.weather-snow,.weather-storm) .project-weather-meta { color:rgb(255 255 255 / 82%); }
.project-weather-card:is(.weather-sunny,.weather-night,.weather-partly-cloudy,.weather-cloudy,.weather-fog,.weather-rain,.weather-snow,.weather-storm) .project-local-clock strong { color:white; }
.project-weather-heading-meta { display:flex; align-items:center; gap:12px; }
.project-weather-icon { position:relative; display:grid; place-items:center; width:62px; height:62px; flex:0 0 62px; border:1px solid rgb(255 255 255 / 68%); border-radius:18px; overflow:hidden; background:linear-gradient(145deg,var(--weather-start,#dceffc),var(--weather-end,#75c6ff)); box-shadow:0 9px 18px color-mix(in srgb,var(--weather-accent,#124f7f) 26%,transparent),inset 0 1px 0 rgb(255 255 255 / 65%); font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif; font-size:34px; }
.project-weather-icon::before { content:""; position:absolute; width:46px; height:46px; left:-16px; top:-18px; border-radius:50%; background:rgb(255 255 255 / 42%); }
.project-weather-icon span { position:relative; z-index:1; filter:drop-shadow(0 2px 2px rgb(71 95 114 / 20%)); }
.project-local-clock { min-width:92px; display:flex; flex-direction:column; align-items:flex-end; gap:1px; }
.project-local-clock small { max-width:120px; color:var(--muted); font-size:10px; line-height:1.15; text-align:right; }
.project-local-clock strong { color:var(--forest); font-size:17px; font-variant-numeric:tabular-nums; letter-spacing:.02em; }
.project-weather-current { margin:18px 0; display:flex; align-items:flex-start; flex-direction:column; gap:2px; }
.project-weather-current strong { font-size:42px; letter-spacing:-.04em; }
.project-weather-current span { color:var(--muted); font-size:17px; font-weight:750; }
.project-weather-details { min-width:0; }
.project-weather-facts,.project-generality-grid { margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.project-weather-facts div,.project-generality-grid div { min-width:0; padding:11px; border-radius:10px; background:#f4f7f5; }
.project-weather-card:is(.weather-sunny,.weather-night,.weather-partly-cloudy,.weather-cloudy,.weather-fog,.weather-rain,.weather-snow,.weather-storm) .project-weather-facts div { border:1px solid rgb(255 255 255 / 18%); background:rgb(255 255 255 / 14%); backdrop-filter:blur(8px); }
.project-weather-card:is(.weather-sunny,.weather-night,.weather-partly-cloudy,.weather-cloudy,.weather-fog,.weather-rain,.weather-snow,.weather-storm) .project-weather-facts dt { color:rgb(255 255 255 / 72%); }
.project-weather-facts dt,.project-generality-grid dt { color:var(--muted); font-size:11px; font-weight:750; }
.project-weather-facts dd,.project-generality-grid dd { margin:4px 0 0; font-weight:850; }
.project-weather-meta { margin:16px 0 0; color:var(--muted); font-size:12px; }
.project-weather-meta a { color:var(--forest-2); font-weight:800; }
.project-weather-forecast { margin-top:18px; padding-top:15px; border-top:1px solid rgb(255 255 255 / 30%); }
.project-weather-forecast-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.project-weather-forecast-heading h3 { margin:0; font-size:14px; }
.project-weather-forecast-heading span { color:rgb(255 255 255 / 72%); font-size:11px; }
.project-weather-forecast-days { display:grid; grid-template-columns:repeat(4,minmax(64px,1fr)); gap:7px; margin-top:11px; }
.project-weather-forecast-days article { min-width:0; padding:9px 5px; display:grid; grid-template-columns:1fr 1fr; align-items:center; justify-items:center; border:1px solid rgb(255 255 255 / 14%); border-radius:12px; background:rgb(255 255 255 / 10%); text-align:center; }
.project-weather-forecast-days article.is-today { border-color:rgb(255 255 255 / 48%); background:rgb(255 255 255 / 22%); }
.project-weather-forecast-days time,.project-weather-forecast-days .weather-forecast-icon,.project-weather-forecast-days em { grid-column:1 / -1; }
.project-weather-forecast-days time { font-size:11px; font-weight:800; text-transform:capitalize; }
.project-weather-forecast-days .weather-forecast-icon { margin:5px 0 3px; font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif; font-size:23px; filter:drop-shadow(0 2px 3px rgb(0 0 0 / 18%)); }
.project-weather-forecast-days strong { justify-self:end; font-size:12px; }
.project-weather-forecast-days small { justify-self:start; color:rgb(255 255 255 / 70%); font-size:11px; }
.project-weather-forecast-days em { min-height:13px; color:rgb(255 255 255 / 76%); font-size:9px; font-style:normal; }
.project-weather-unavailable { margin-top:18px; padding:18px; border-radius:12px; background:#f4f7f5; }
.project-weather-unavailable p { color:var(--muted); }
.project-generalities-card > header > span { color:var(--muted); font-size:12px; }
.project-workforce-highlight { margin:17px 0; display:grid; grid-template-columns:auto 1fr; align-items:baseline; column-gap:10px; }
.project-workforce-highlight strong { grid-row:span 2; font-size:48px; letter-spacing:-.05em; }
.project-workforce-highlight span { font-size:18px; font-weight:800; }
.project-workforce-highlight small { color:var(--muted); }
.project-generality-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.project-generality-grid dd { font-size:20px; }
.project-live-overview { margin:16px 0; gap:14px; align-items:stretch; }
.project-weather-card,.project-generalities-card { padding:16px 18px; border-radius:14px; }
.project-weather-card h2,.project-generalities-card h2 { margin:2px 0; font-size:20px; }
.project-weather-icon { width:46px; height:46px; flex-basis:46px; border-radius:13px; font-size:26px; }
.project-local-clock strong { font-size:14px; }
.project-weather-current { margin:7px 0; gap:9px; }
.project-weather-current strong { font-size:31px; }
.project-weather-current span { font-size:14px; }
.project-weather-facts div,.project-generality-grid div { padding:7px 9px; }
.project-weather-facts dd,.project-generality-grid dd { margin-top:2px; }
.project-weather-forecast { margin-top:9px; padding-top:8px; }
.project-weather-forecast-days { margin-top:6px; gap:5px; }
.project-weather-forecast-days article { padding:4px 3px; border-radius:8px; }
.project-weather-forecast-days .weather-forecast-icon { margin:1px 0; font-size:17px; }
.project-weather-forecast-days em { display:none; }
.project-weather-meta { margin-top:8px; }
.project-workforce-highlight { margin:8px 0; }
.project-workforce-highlight strong { font-size:38px; }
@media (min-width:901px) {
  .project-weather-card { display:grid; grid-template-columns:minmax(190px,1fr) minmax(0,2fr); grid-template-areas:"weather-heading weather-heading" "weather-current weather-details" "weather-meta weather-meta"; align-items:start; gap:10px 18px; }
  .project-weather-card > header { grid-area:weather-heading; align-items:center; }
  .project-weather-current { grid-area:weather-current; margin:7px 0 0; white-space:nowrap; }
  .project-weather-details { grid-area:weather-details; }
  .project-weather-facts div { padding:7px 9px; }
  .project-weather-facts dd { margin-top:2px; }
  .project-weather-forecast { margin-top:10px; padding-top:9px; }
  .project-weather-forecast-days { margin-top:7px; gap:6px; }
  .project-weather-forecast-days article { padding:6px 4px; }
  .project-weather-forecast-days .weather-forecast-icon { margin:2px 0 1px; font-size:18px; }
  .project-weather-forecast-days em { display:none; }
  .project-weather-meta { grid-area:weather-meta; margin:0; }
  .project-generalities-card { display:grid; grid-template-columns:auto 1fr; grid-template-areas:"generality-heading generality-heading" "generality-workforce generality-facts" "generality-meta generality-meta"; align-items:center; gap:8px 18px; }
  .project-generalities-card > header { grid-area:generality-heading; }
  .project-workforce-highlight { grid-area:generality-workforce; min-width:165px; margin:0; }
  .project-generality-grid { grid-area:generality-facts; }
  .project-generalities-card > .project-weather-meta { grid-area:generality-meta; margin:0; }
}
@media (max-width:900px) {
  .bid-award-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bid-award-summary article:nth-child(2) { border-right:0; }
  .project-quick-groups { grid-template-columns:1fr; }
  .project-live-overview { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .project-quick-panel { padding:18px; }
  .project-quick-heading { align-items:flex-start; flex-direction:column; }
  .project-quick-heading .button { width:100%; justify-content:center; }
  .project-weather-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .project-weather-forecast-days { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.table-link { color: var(--forest-2); font-weight: 750; }
.form-card, .info-panel, .error-panel, .success-panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.form-card { max-width: 900px; }
.budget-transfer-card { margin-block: 16px; }
.budget-transfer-form label { min-width: 0; }
.budget-transfer-form :where(input, select) { box-sizing: border-box; min-width: 0; width: 100%; }
.budget-transfer-form .button { box-sizing: border-box; min-width: 0; width: 100%; white-space: normal; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid label, .form-card > label { min-width:0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 750; }
.form-grid input, .form-grid select, .form-grid textarea, .form-card input[type="file"] { width: 100%; border: 1px solid #b7cad9; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: white; font: inherit; }
/* match native number and date controls across form grids. */
.form-grid :is(input[type="number"], input[type="date"]) {
  box-sizing:border-box;
  min-width:0;
  height:44px;
}
.span-2 { grid-column: span 2; }
.split-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.info-panel { background: #f3f7fa; }
.error-panel { margin: 20px 0; border-color: #e2a69f; background: #fff3f1; }
.success-panel { margin: 20px 0; border-color: #9eb8cc; background: #eef5fa; }
.flash { margin-bottom: 20px; padding: 14px 18px; border-radius: 10px; background: #d1dee8; }
.flash.alert { background: #fff0ed; color: #8f2f22; }
.button, input.button, button.button { border: 0; cursor: pointer; font: inherit; }
.filter-bar, .bulk-bar { display: flex; align-items: end; gap: 12px; padding: 16px; margin-bottom: 16px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.filter-bar label { display: flex; flex-direction: column; gap: 6px; min-width: 130px; color: var(--muted); font-size: 12px; font-weight: 750; }
.filter-bar input, .filter-bar select, .bulk-bar select { min-height: 40px; border: 1px solid #b7cad9; border-radius: 9px; padding: 8px 10px; background: white; }
.filter-bar input.button { border-color:var(--forest); background:var(--forest); color:white; font-weight:750; }
.filter-bar .search-field { flex: 1; min-width: 240px; }
.daily-report-filters { flex-wrap:wrap; }
.daily-report-filters .search-field { flex:1 0 100%; }
.automatic-weather-panel { max-width:900px; margin:20px 0; padding:22px 24px; display:grid; grid-template-columns:64px 1fr; align-items:start; gap:18px; border:1px solid #c7d5e0; border-left:5px solid var(--weather-accent,var(--forest-2)); border-radius:14px; background:linear-gradient(135deg,color-mix(in srgb,var(--weather-start,#e5edf3) 40%,white),#e5edf3 70%); }
.automatic-weather-icon { display:grid; place-items:center; width:58px; height:58px; border-radius:17px; background:linear-gradient(145deg,var(--weather-start,#dceffc),var(--weather-end,#75c6ff)); box-shadow:0 8px 17px color-mix(in srgb,var(--weather-accent,#124f7f) 24%,transparent); font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif; font-size:31px; }
.automatic-weather-panel h2 { font-size:24px; }
.automatic-weather-panel p { margin:7px 0; }
.automatic-weather-panel small { color:var(--muted); }
.automatic-weather-panel a { color:var(--forest-2); font-weight:800; }
@media (max-width:600px) {
  .project-weather-heading-meta { align-items:flex-end; flex-direction:column; }
  .project-weather-icon { width:54px; height:54px; flex-basis:54px; }
  .automatic-weather-panel { grid-template-columns:1fr; }
}
.weather-exception-fields { padding:18px; border:1px solid #e3c283; border-radius:14px; background:#fff9ec; }
.weather-exception-fields summary { cursor:pointer; color:#714d0a; font-weight:850; }
.weather-exception-fields > p { color:#785d2f; }
.weather-exception-fields .form-grid { margin-top:14px; }
.checkbox-row { margin:14px 0; flex-direction:row!important; align-items:center; color:var(--ink)!important; }
.checkbox-row input { width:auto!important; }
.weather-event-callout { margin:18px 0; padding:24px 26px; border:1px solid #e1b564; border-left:6px solid #dc6803; border-radius:14px; background:#fff8e9; }
.weather-event-callout h2 { font-size:25px; }
.daily-report-print-toolbar { margin-bottom:14px; display:flex; justify-content:flex-end; gap:8px; }
.daily-report-print-cover { margin-bottom:14px; padding:20px 24px; display:grid; grid-template-columns:1fr minmax(300px,.8fr); gap:22px; border-radius:14px; background:var(--forest); color:white; }
.daily-report-print-identity { min-width:0; display:flex; align-items:flex-start; gap:13px; }
.daily-report-owner-logo { width:54px; height:54px; flex-basis:54px; border-color:rgb(255 255 255 / 45%); box-shadow:none; }
.daily-report-owner-name { display:block; margin-bottom:3px; color:#d5e1ea; font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.daily-report-print-cover .eyebrow { color:var(--lime); }
.daily-report-print-cover h1 { margin-bottom:2px; font-size:30px; }
.daily-report-print-cover h2 { margin:0; color:#d5e1ea; font-size:17px; }
.daily-report-print-cover dl { margin:0; display:grid; gap:4px; }
.daily-report-print-cover dl div { display:grid; grid-template-columns:100px 1fr; gap:10px; }
.daily-report-print-cover dt { color:#bdccd8; font-size:11px; font-weight:750; }
.daily-report-print-cover dd { margin:0; font-size:12px; font-weight:750; }
.daily-report-print-sheet { margin:0 0 12px; padding:16px 18px; border:1px solid var(--line); border-radius:12px; background:white; }
.daily-report-print-sheet > header { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; padding-bottom:8px; border-bottom:1px solid var(--line); }
.daily-report-print-sheet > header .eyebrow { margin-bottom:2px; }
.daily-report-print-sheet h2 { font-size:19px; }
.daily-report-print-status { align-self:flex-start; flex:0 0 auto; }
.daily-report-print-facts { margin:8px 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.daily-report-print-facts div { padding:7px 8px; border-radius:7px; background:#f4f7f5; }
.daily-report-print-facts small { display:block; color:var(--muted); }
.daily-report-print-facts strong { font-size:12px; }
.daily-report-print-event { margin:8px 0; padding:8px 10px; border-left:3px solid #dc6803; background:#fff8e9; font-size:12px; }
.daily-report-print-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.daily-report-print-grid section { min-width:0; padding:7px 8px; border:1px solid var(--line); border-radius:7px; }
.daily-report-print-grid h3 { margin:0 0 3px; font-size:12px; }
.daily-report-print-grid p { margin:0; font-size:11px; line-height:1.3; }
.daily-report-print-table { margin-top:8px; border:1px solid var(--line); }
.daily-report-print-table th { padding:5px 7px; font-size:11px; }
.daily-report-print-table td { min-width:0; padding:5px 7px; font-size:11px; }
.daily-report-print-evidence { margin:7px 0 0; color:var(--muted); font-size:10px; overflow-wrap:anywhere; }

/* Spotlight contextual: se aplica automáticamente a todo buscador GET de Platafort. */
.filter-bar:has(input[type="search"]) {
  flex-wrap: wrap;
  align-items: end;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(18,79,127, .08);
}
.filter-bar:has(input[type="search"]) .search-field {
  position: relative;
  flex: 1 0 100%;
  min-width: 100%;
  font-size: 0;
}
.filter-bar:has(input[type="search"]) .search-field::before {
  content: "⌕";
  position: absolute;
  left: 18px;
  bottom: 12px;
  z-index: 1;
  color: var(--forest-2);
  font-size: 30px;
  line-height: 1;
  pointer-events: none;
}
.filter-bar:has(input[type="search"]) input[type="search"] {
  width: 100%;
  min-height: 58px;
  padding: 14px 124px 14px 58px;
  border: 1px solid #b7cad9;
  border-radius: 14px;
  background: #f3f7fa;
  color: var(--ink);
  font-size: 18px;
  font-weight: 620;
  outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.filter-bar:has(input[type="search"]) input[type="search"]:focus {
  border-color: var(--forest-2);
  background: white;
  box-shadow: 0 0 0 4px rgba(18,79,127, .12), 0 8px 24px rgba(18,79,127, .10);
}
.spotlight-shortcut {
  position: absolute;
  right: 14px;
  bottom: 13px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font: 700 11px/1 ui-sans-serif, system-ui, sans-serif;
  pointer-events: none;
}
.spotlight-status {
  min-height: 16px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.spotlight-status.is-searching { color: var(--forest-2); font-weight: 750; }
.bulk-bar { position: sticky; top: 82px; z-index: 12; align-items: center; background: #f3f7fa; }
.bulk-bar select { min-width: 340px; }
.selection-count { color: var(--muted); font-size: 13px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 22px; }
.pagination a { color: var(--forest); font-weight: 750; text-decoration: none; }
.pagination a.disabled { pointer-events: none; color: #a9bac8; }
.quality-filter-panel { margin:20px 0 24px; padding:18px; display:grid; grid-template-columns:minmax(280px,2fr) repeat(4,minmax(145px,1fr)); gap:12px; border:1px solid var(--line); border-radius:16px; background:white; }
.quality-filter-panel label { min-width:0; display:grid; align-content:end; gap:6px; color:var(--muted); font-size:.72rem; font-weight:800; }
.quality-filter-panel :is(input,select) { width:100%; min-height:42px; padding:9px 10px; border:1px solid #b7cad9; border-radius:8px; color:var(--ink); background:white; }
.quality-search-field { grid-column:span 2; }
.quality-filter-actions { display:flex; align-items:end; gap:8px; }
.quality-groups { display:grid; gap:22px; }
.quality-group { overflow:hidden; border:1px solid var(--line); border-radius:16px; background:white; box-shadow:0 8px 22px rgb(18 79 127 / 5%); }
.quality-group > header { padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid var(--line); background:#f3f7fa; }
.quality-group > header h2 { margin:0; font-size:1rem; }
.quality-group > header span { color:var(--muted); font-size:.75rem; font-weight:750; }
.quality-record-list { display:grid; }
.quality-record-row { padding:16px 18px; display:grid; grid-template-columns:minmax(300px,2fr) minmax(140px,.65fr) minmax(125px,.55fr) minmax(130px,.55fr); align-items:center; gap:18px; color:inherit; text-decoration:none; border-bottom:1px solid var(--line); }
.quality-record-row:last-child { border-bottom:0; }
.quality-record-row:hover { background:#f7fafc; }
.quality-record-row > div:not(.quality-record-title) { display:grid; gap:4px; }
.quality-record-row small { color:var(--muted); font-size:.68rem; }
.quality-record-title { min-width:0; }
.quality-record-title .eyebrow { margin:0 0 4px; }
.quality-record-title h3 { margin:0; overflow:hidden; font-size:1rem; text-overflow:ellipsis; white-space:nowrap; }
.quality-dimensions { margin-top:9px; display:flex; flex-wrap:wrap; gap:6px; }
.quality-dimensions span { padding:4px 7px; border-radius:6px; color:#52697c; background:#edf3f7; font-size:.68rem; }
.quality-dimensions strong { color:#294b65; }
.quality-record-form { display:grid; gap:22px; }
.quality-record-form fieldset { margin:0; padding:0 0 22px; border:0; border-bottom:1px solid var(--line); }
.quality-record-form fieldset:last-of-type { border-bottom:0; }
.quality-record-form legend { margin-bottom:12px; color:var(--ink); font-size:1rem; font-weight:850; }
.quality-record-form .fieldset-help { margin:-6px 0 14px; color:var(--muted); font-size:.8rem; }
.quality-record-form input[readonly] { color:#52697c; background:#edf3f7; }
.quality-record-classification { margin:20px 0; padding:18px; border:1px solid var(--line); border-radius:16px; background:#f7fafc; }
.quality-record-classification > .eyebrow { margin-top:0; }
.quality-detail-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.quality-empty-state { margin-top:22px; }
.document-grid { display: grid; gap: 14px; }
.document-card { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px; padding: 20px; color: inherit; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 16px; }
.document-card:hover { border-color: var(--forest-2); }
.document-card h2, .document-card p { margin: 3px 0; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.document-manager { margin:-18px -24px 0; background:#f3f7fa; min-height:calc(100vh - 150px); }
.document-manager-heading { padding:30px 38px 22px; display:flex; align-items:end; justify-content:space-between; gap:24px; background:white; }
.document-manager-heading h1 { margin:.2rem 0; font-size:2rem; }
.document-manager-heading p { margin:0; color:#617689; }
.document-tabs { padding:0 38px; display:flex; gap:24px; border-bottom:1px solid #d1dee8; background:white; }
.document-tabs button,.document-tabs a { padding:13px 2px 12px; border:0; border-bottom:3px solid transparent; background:none; color:#4c84ae; font:inherit; font-weight:750; text-decoration:none; cursor:pointer; }
.document-tabs button.active,.document-tabs a.active { border-bottom-color:#157eb0; color:#0d2740; }
.document-tabs button:disabled { cursor:default; opacity:.5; }
.document-tabs small { margin-left:5px; font-size:.65rem; }
.document-manager-shell { min-height:650px; display:grid; grid-template-columns:270px minmax(0,1fr); background:white; }
.document-folder-tree { padding:18px 12px; border-right:1px solid #d1dee8; background:#f3f7fa; }
.folder-tree-heading { margin:0 6px 12px; padding:0 8px 13px; display:flex; justify-content:space-between; border-bottom:1px solid #e7eff6; color:#275f8c; font-size:.78rem; }
.document-folder-tree > a { min-height:38px; padding:8px 9px; display:grid; grid-template-columns:24px 1fr auto; align-items:center; gap:4px; border-radius:6px; color:#124f7f; text-decoration:none; font-size:.82rem; }
.document-folder-tree > a.nested { padding-left:24px; }
.document-folder-tree > a:hover { background:#f3f7fa; }
.document-folder-tree > a.active { color:#0c5f84; background:#e3f2f8; }
.document-folder-tree > a strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.document-folder-tree > a small { min-width:24px; color:#74889a; text-align:right; }
.document-folder-tree > a.document-trash-folder { margin-top:4px; }
.document-folder-tree > a.document-trash-folder.active { color:#8a342b; background:#fff0ed; }
.document-category-row { display:grid; grid-template-columns:minmax(0,1fr) 28px; align-items:center; border-radius:6px; }
.document-category-row:hover,.document-category-row:has(> a.active) { background:#f3f7fa; }
.document-category-row:has(> a.active) { background:#e3f2f8; }
.document-category-row > a { min-width:0; min-height:38px; padding:8px 2px 8px 24px; display:grid; grid-template-columns:24px 1fr auto; align-items:center; gap:4px; color:#124f7f; text-decoration:none; font-size:.82rem; }
.document-category-row > a.active { color:#0c5f84; }
.document-category-row > a strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.document-category-row > a small { padding-right:4px; color:#74889a; text-align:right; }
.document-category-row > button { width:25px; height:25px; padding:0; border:1px solid transparent; border-radius:6px; color:#0d2740; background:transparent; cursor:pointer; opacity:0; }
.document-category-row:hover > button,.document-category-row:focus-within > button { border-color:#d1dee8; background:white; opacity:1; }
.folder-divider-actions { display:flex; align-items:center; justify-content:space-between; }
.folder-divider-actions button { width:25px; height:25px; border:1px solid #d1dee8; border-radius:6px; color:#0d2740; background:white; cursor:pointer; }
.document-custom-folder { min-height:38px; position:relative; display:grid; grid-template-columns:1fr 28px; align-items:center; border-radius:6px; }
.document-custom-folder:hover,.document-custom-folder.active { background:#f3f7fa; }
.document-custom-folder.active { background:#e3f2f8; }
.document-custom-folder > a { min-width:0; padding:8px 2px 8px calc(24px + (var(--folder-depth, 1) * 15px)); display:grid; grid-template-columns:24px 1fr auto; align-items:center; color:#124f7f; text-decoration:none; font-size:.82rem; }
.document-custom-folder > a strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.document-custom-folder > a small { padding-right:4px; color:#74889a; }
.document-custom-folder details summary { padding:5px; list-style:none; cursor:pointer; }
.document-custom-folder details summary::-webkit-details-marker { display:none; }
.document-custom-folder details > div { width:155px; padding:6px; position:absolute; right:2px; z-index:30; display:grid; border:1px solid #d1dee8; border-radius:8px; background:white; box-shadow:0 10px 24px rgb(18 79 127 / 18%); }
.document-custom-folder details button { width:100%; padding:8px; border:0; text-align:left; color:#124f7f; background:transparent; cursor:pointer; }
.document-custom-folder details button.danger { color:#a2372c; }
.document-folder-inline-form { min-height:38px; padding:3px 2px 3px 24px; display:grid; grid-template-columns:22px minmax(0,1fr) 28px 28px; align-items:center; gap:3px; }
.document-folder-create-form { margin:5px 0 8px; padding:7px 4px 7px 18px; grid-template-columns:22px minmax(0,1fr) 28px 28px; border:1px solid #d1dee8; border-radius:7px; background:#f3f7fa; }
.document-folder-create-form > small { grid-column:1 / -1; padding:0 3px 3px; color:#4c84ae; font-size:.68rem; font-weight:750; }
.document-folder-create-form > input[type="hidden"] { display:none; }
.document-folder-inline-form.is-hidden { display:none!important; }
.document-folder-inline-form input[type="text"] { min-width:0; width:100%; height:32px; padding:5px 7px; border:1px solid #1677a0; border-radius:4px; font:inherit; background:#fff; outline:2px solid rgb(22 119 160 / 12%); }
.document-folder-inline-form input[type="submit"],.document-folder-inline-form button { width:28px; height:28px; padding:0; display:grid; place-items:center; border:1px solid #d1dee8; border-radius:4px; color:#0d2740; background:#fff; cursor:pointer; }
.document-folder-inline-form input[type="submit"]:hover { color:#fff; border-color:#0d2740; background:#0d2740; }
.document-folder-inline-form button:hover { color:#8f3028; border-color:#e6c1bc; background:#fff2f0; }
.document-folder-rename-form { grid-column:1 / -1; padding-left:24px; }
.document-custom-folder:has(.document-folder-rename-form:not(.is-hidden)) > details { display:none; }
.folder-divider { margin:18px 14px 7px; color:#74889a; font-size:.65rem; font-weight:850; letter-spacing:.12em; }
.document-register { min-width:0; background:white; }
.document-register-toolbar { min-height:66px; padding:12px 18px; display:flex; align-items:center; gap:10px; border-bottom:1px solid #e7eff6; }
.document-search { min-width:260px; flex:1; display:flex; align-items:center; gap:8px; border:1px solid #b7cad9; border-radius:6px; background:white; }
.document-search span { padding-left:12px; color:#124f7f; font-size:1.35rem; }
.document-search input { width:100%; padding:10px 10px 10px 0; border:0; outline:0; }
.document-status-filter select { min-width:155px; padding:10px; }
.document-view-switch { display:flex; align-items:center; }
.document-view-button { width:38px; height:38px; display:grid; place-items:center; border:1px solid #d1dee8; border-radius:0; background:white; color:#275f8c; text-decoration:none; cursor:pointer; }
.document-view-button:first-child { border-radius:7px 0 0 7px; }
.document-view-button:last-child { border-radius:0 7px 7px 0; }
.document-view-button + .document-view-button { margin-left:-1px; }
.document-view-button.active { color:#0c6e9a; background:#e9f5fa; }
.document-breadcrumb { min-height:44px; padding:0 20px; display:flex; align-items:center; gap:8px; border-bottom:1px solid #e7eff6; color:#617689; font-size:.8rem; }
.document-breadcrumb a { color:#617689; text-decoration:none; }
.document-breadcrumb a:hover { color:#0d2740; text-decoration:underline; text-underline-offset:3px; }
.document-breadcrumb a[aria-current="page"] { color:#0d2740; font-weight:750; }
.document-trash-storage-notice { margin:14px 18px; padding:14px 16px; display:flex; align-items:flex-start; gap:12px; border:1px solid #e4c98c; border-radius:9px; color:#654d1f; background:#fff8e6; }
.document-trash-storage-notice > span { width:30px; height:30px; display:grid; place-items:center; flex:0 0 30px; border-radius:50%; background:#f7e8bd; }
.document-trash-storage-notice strong { display:block; color:#4f3b17; font-size:.82rem; }
.document-trash-storage-notice p { margin:4px 0 0; color:#78643b; font-size:.74rem; line-height:1.45; }
.document-bulk-actions { min-height:58px; padding:9px 18px; position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:9px; border-bottom:1px solid #d1dee8; background:#e7eff6; box-shadow:0 5px 14px rgb(18 79 127 / 9%); }
.document-bulk-actions[hidden] { display:none; }
.document-bulk-actions > strong { min-width:125px; color:#0d2740; font-size:.82rem; }
.document-bulk-actions .button { min-height:36px; padding:7px 13px; font-size:.78rem; }
.document-bulk-actions .button.danger { border-color:#d9aaa5; color:#9e3028; background:white; }
.document-bulk-actions .button.danger:hover { color:white; background:#a63830; }
.document-selection-clear { margin-left:auto; padding:8px; border:0; color:#275f8c; background:transparent; font:inherit; font-size:.76rem; font-weight:750; cursor:pointer; }
.document-selection-clear:hover { text-decoration:underline; }
.document-table-shell { width:100%; overflow:auto; }
.document-grid-select-all { min-height:42px; padding:9px 20px; display:flex; align-items:center; border-bottom:1px solid #e7eff6; color:#52697c; background:#f8fafc; font-size:.75rem; font-weight:750; }
.document-grid-select-all label { display:flex; align-items:center; gap:8px; cursor:pointer; }
.document-grid-select-all input { width:16px; height:16px; }
.document-thumbnail-grid-shell { min-height:0; padding:18px; overflow:auto; background:#f7f9fb; }
.document-thumbnail-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); align-content:start; gap:18px; }
.document-thumbnail-card { min-width:0; position:relative; overflow:hidden; display:grid; grid-template-rows:minmax(185px,1fr) auto; border:1px solid #cad7e1; border-radius:10px; background:white; box-shadow:0 3px 10px rgb(7 28 51 / 5%); transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.document-thumbnail-card:hover { border-color:#7fa7c3; box-shadow:0 10px 26px rgb(7 28 51 / 12%); transform:translateY(-1px); }
.document-thumbnail-card.is-selected { border-color:var(--brand-primary); box-shadow:0 0 0 3px rgb(40 120 181 / 13%); }
.document-thumbnail-card-controls { min-width:0; padding:8px; position:absolute; z-index:4; inset:0 0 auto; display:flex; align-items:center; justify-content:space-between; pointer-events:none; }
.document-thumbnail-card-controls > * { pointer-events:auto; }
.document-thumbnail-card-controls > label { width:30px; height:30px; display:grid; place-items:center; border:1px solid #c8d5df; border-radius:6px; background:rgb(255 255 255 / 94%); box-shadow:0 2px 7px rgb(7 28 51 / 12%); }
.document-thumbnail-card-controls input { width:16px; height:16px; }
.document-thumbnail-card-controls .document-row-menu { border:1px solid #c8d5df; background:rgb(255 255 255 / 94%); box-shadow:0 2px 7px rgb(7 28 51 / 12%); }
.document-thumbnail-preview { min-height:185px; padding:16px; position:relative; display:grid; place-items:center; overflow:hidden; color:inherit; background:linear-gradient(145deg,#edf2f6,#fdfefe); text-decoration:none; }
.document-thumbnail-preview canvas { max-width:100%; max-height:100%; opacity:0; background:white; box-shadow:0 3px 13px rgb(7 28 51 / 16%); transition:opacity .18s ease; }
.document-thumbnail-preview canvas.is-ready { opacity:1; }
.document-thumbnail-loading { position:absolute; display:flex; align-items:center; gap:8px; color:#617689; font-size:.72rem; font-weight:750; }
.document-thumbnail-loading[hidden] { display:none; }
.document-thumbnail-placeholder { display:grid; justify-items:center; gap:9px; color:#617689; }
.document-thumbnail-placeholder strong { width:54px; height:66px; display:grid; place-items:center; border-radius:7px; color:white; background:#db493e; font-size:.75rem; }
.document-thumbnail-card > footer { min-width:0; min-height:76px; padding:11px 13px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid #dbe3ea; background:white; }
.document-thumbnail-card > footer > div:first-child { min-width:0; }
.document-thumbnail-card h2 { margin:0; overflow:hidden; color:#173149; font-size:.82rem; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.document-thumbnail-card footer p { margin:4px 0 0; overflow:hidden; color:#617689; font-size:.66rem; text-overflow:ellipsis; white-space:nowrap; }
.document-thumbnail-meta { flex:none; display:grid; justify-items:end; gap:5px; }
.document-thumbnail-meta .status { max-width:94px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.document-upload-card-preview { align-content:center; gap:12px; }
.document-thumbnail-card.document-upload-row > footer { align-items:flex-start; }
.document-thumbnail-card.document-upload-row .document-upload-details { width:100%; }
.document-thumbnail-card.document-upload-row [data-document-upload-folder] { overflow:hidden; color:#617689; font-size:.65rem; text-overflow:ellipsis; white-space:nowrap; }
.document-thumbnail-card.document-upload-row footer > div:last-child { display:grid; justify-items:end; gap:5px; color:#617689; font-size:.68rem; }
.document-table { width:100%; min-width:1000px; border-collapse:collapse; font-size:.75rem; }
.document-table th { position:sticky; top:0; z-index:2; padding:7px 9px; border-bottom:1px solid #d1dee8; color:#275f8c; background:#f3f7fa; text-align:left; font-size:.67rem; white-space:nowrap; }
.document-table td { height:42px; padding:4px 9px; border-bottom:1px solid #e7eff6; color:#275f8c; vertical-align:middle; }
.document-table tbody tr:hover { background:#f3f7fa; }
.document-table tbody tr.is-selected { background:#e7eff6; }
.document-check { width:34px; text-align:center!important; }
.document-check input { width:16px; height:16px; accent-color:#124f7f; cursor:pointer; }
.document-table td.document-name-cell { min-width:280px; }
.document-name-display { display:flex; align-items:center; gap:7px; }
.document-name-display > a { min-width:0; flex:1; display:flex; align-items:center; gap:10px; color:#0d2740; text-decoration:none; }
.document-name-display > button { border:0; background:transparent; color:#617689; cursor:pointer; opacity:0; }
.document-table tr:hover .document-name-display > button { opacity:1; }
.document-inline-rename { display:flex; align-items:center; gap:5px; }
.document-inline-rename.is-hidden,.document-name-display.is-hidden { display:none!important; }
.document-inline-rename input { min-width:210px; flex:1; padding:7px 9px; border:1px solid #238ac0; border-radius:4px; }
.document-name-cell h2 { margin:0; max-width:420px; overflow:hidden; font-size:.79rem; font-weight:750; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.document-name-cell small { display:block; max-width:360px; margin-top:3px; overflow:hidden; color:#617689; text-overflow:ellipsis; white-space:nowrap; }
.document-file-icon { width:22px; height:27px; display:grid; place-items:center; flex:none; border-radius:3px; color:white; background:#db493e; font-size:.48rem; font-weight:850; }
.document-description-cell { max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.document-updated-cell { white-space:nowrap; }
.document-status-cell { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.document-status-cell .status { padding:3px 8px; }
.submittal-title-link { min-width:0; display:flex; align-items:center; gap:10px; color:#0d2740; text-decoration:none; }
.submittal-title-link:hover h2 { text-decoration:underline; }
.submittal-file-icon { width:34px; height:34px; display:grid; place-items:center; flex:none; border-radius:5px; color:white; background:#124f7f; font-size:.55rem; font-weight:850; letter-spacing:.04em; }
.submittal-table td > small { display:block; margin-top:3px; color:#617689; }
.submittal-table .priority { white-space:nowrap; }
.submittal-status { --submittal-status-accent:#617689; gap:5px; border:1px solid color-mix(in srgb,var(--submittal-status-accent) 38%,white); box-shadow:inset 3px 0 0 var(--submittal-status-accent); }
.submittal-status::before { content:""; width:.48rem; height:.48rem; flex:none; border:2px solid currentColor; border-radius:50%; }
.submittal-status.draft { --submittal-status-accent:#617689; color:#526b80; background:#edf1f4; }
.submittal-status.submitted { --submittal-status-accent:#7652a4; color:#5b3b82; background:#f1eafb; }
.submittal-status.submitted::before { border-radius:2px; transform:rotate(45deg); }
.submittal-status.under_review { --submittal-status-accent:#238ac0; color:#1d5874; background:#deeff8; }
.submittal-status.under_review::before { border-right-color:transparent; }
.submittal-status.approved { --submittal-status-accent:hsl(151 48% 34%); color:hsl(151 55% 24%); background:hsl(146 45% 92%); }
.submittal-status.approved::before { content:"✓"; width:.82rem; height:.82rem; display:grid; place-items:center; border:0; font-size:.72rem; font-weight:900; }
.submittal-status.approved_as_noted { --submittal-status-accent:#d59618; color:#765008; background:#fff1c9; }
.submittal-status.approved_as_noted::before { content:"!"; width:.82rem; height:.82rem; display:grid; place-items:center; border:0; font-size:.75rem; font-weight:900; }
.submittal-status.rejected { --submittal-status-accent:#bd443a; color:#8d2e27; background:#fde5e2; }
.submittal-status.rejected::before { content:"×"; width:.82rem; height:.82rem; display:grid; place-items:center; border:0; font-size:.9rem; font-weight:900; }
.submittal-status.revise_and_resubmit { --submittal-status-accent:#d36b13; color:#8b4408; background:#fff0df; }
.submittal-status.revise_and_resubmit::before { content:"↻"; width:.82rem; height:.82rem; display:grid; place-items:center; border:0; font-size:.78rem; font-weight:900; }
.submittal-status.closed { --submittal-status-accent:#526b80; color:#334b5f; background:#e5ebef; }
.submittal-status.closed::before { border-radius:2px; background:currentColor; }
.submittal-status.cancelled { --submittal-status-accent:#7b838a; color:#626b73; background:#eceff1; text-decoration:line-through; }
.submittal-status.cancelled::before { height:2px; border:0; border-radius:0; background:currentColor; }
.document-version { display:inline-grid; place-items:center; min-width:30px; height:22px; padding:0 6px; border-radius:999px; color:#124f7f; background:#e7eff6; font-weight:800; }
.document-row-menu { width:26px; height:26px; display:grid; place-items:center; border-radius:5px; color:#275f8c; text-decoration:none; font-size:1.05rem; }
.document-row-menu:hover { background:#e7eff6; }
.document-actions-cell { width:42px; }
.document-row-actions { position:relative; }
.document-row-actions > summary { list-style:none; cursor:pointer; }
.document-row-actions > summary::-webkit-details-marker { display:none; }
.document-row-actions[open] > summary { background:#e7eff6; }
.document-actions-menu { position:fixed; z-index:500; width:300px; max-height:min(690px,calc(100vh - 24px)); padding:7px; overflow:auto; border:1px solid #d1dee8; border-radius:10px; background:white; box-shadow:0 18px 48px rgb(71 95 114 / 24%); }
.document-actions-menu > a,.document-actions-menu > button,.document-actions-menu > form > button { width:100%; min-height:38px; padding:8px 10px; display:grid; grid-template-columns:25px 1fr; align-items:center; border:0; border-radius:6px; color:#124f7f; background:transparent; font:inherit; text-align:left; text-decoration:none; cursor:pointer; }
.document-actions-menu > form { margin:0; }
.document-actions-menu > a:hover,.document-actions-menu > button:hover,.document-actions-menu > form > button:hover { background:#f3f7fa; }
.document-actions-menu span { color:#275f8c; font-size:1rem; text-align:center; }
.document-actions-menu .danger { color:#a2372c; }
.document-action-heading { padding:9px 10px 10px; display:grid; gap:2px; }
.document-action-heading strong { overflow:hidden; color:#0d2740; text-overflow:ellipsis; white-space:nowrap; }
.document-action-heading small { color:#74889a; }
.document-action-divider { height:1px; margin:5px 3px; background:#e7eff6; }
.document-lock-state { margin-left:6px; font-size:.75rem; }
.document-activity-list { margin-top:22px; display:grid; gap:10px; }
.document-activity-list article { padding:16px 18px; display:grid; grid-template-columns:minmax(180px,auto) 1fr auto; align-items:center; gap:18px; border:1px solid var(--line); border-radius:12px; background:white; }
.document-activity-list p { margin:0; color:#275f8c; }
.document-activity-list time { color:#617689; font-size:.78rem; white-space:nowrap; }
.document-activity-list article > div { min-width:0; overflow-wrap:anywhere; }
.document-access-actions { flex-wrap:wrap; }
.document-access-table td:nth-child(2) { min-width:120px; max-width:240px; overflow-wrap:anywhere; }
.document-access-table time { white-space:nowrap; }
@media (max-width:720px) {
  .document-activity-list article { grid-template-columns:minmax(0,1fr); gap:10px; }
  .document-activity-list time { white-space:normal; }
}
.document-register-footer { padding:12px 20px; display:flex; justify-content:space-between; gap:20px; color:#617689; font-size:.72rem; }
.document-upload-summary { min-height:42px; padding:7px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #e6c487; color:#684d1a; background:#fff8e8; font-size:.76rem; font-weight:750; }
.document-upload-summary[hidden] { display:none; }
.document-upload-summary button { padding:5px 9px; border:1px solid #d8bd83; border-radius:6px; color:#654914; background:white; font:inherit; cursor:pointer; }
.document-upload-row { background:#f3f7fa; }
.document-upload-row:hover { background:#f3f7fa!important; }
.document-upload-row.is-complete { background:#eef5fa; }
.document-upload-row.is-failed { background:#fff3f1; }
.document-upload-spinner { width:13px; height:13px; display:inline-block; border:2px solid #d1dee8; border-top-color:#124f7f; border-radius:50%; animation:document-upload-spin .8s linear infinite; }
.document-upload-row.is-complete .document-upload-spinner { border:0; animation:none; }
.document-upload-row.is-complete .document-upload-spinner::before { content:"✓"; color:#2878b5; font-weight:900; }
.document-upload-row.is-failed .document-upload-spinner { border:0; animation:none; }
.document-upload-row.is-failed .document-upload-spinner::before { content:"!"; color:#b42318; font-weight:900; }
.document-upload-file { min-width:0; display:flex; align-items:center; gap:8px; }
.document-upload-details { min-width:0; width:min(360px,100%); display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:2px 8px; }
.document-upload-details > strong { grid-column:1 / -1; overflow:hidden; color:#0d2740; font-size:.76rem; text-overflow:ellipsis; white-space:nowrap; }
.document-upload-progress { height:5px; overflow:hidden; border-radius:999px; background:#e7eff6; }
.document-upload-progress > span { width:0; height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,#124f7f,#75c6ff); transition:width .12s linear; }
.document-upload-details small { margin:0; color:#4c84ae; font-size:.63rem; text-align:right; }
.document-upload-state { color:#124f7f; background:#e7eff6; }
.document-upload-row.is-failed .document-upload-state { color:#9d3027; background:#fee9e7; }
.document-upload-flash { margin-bottom:12px; }
@keyframes document-upload-spin { to { transform:rotate(360deg); } }

/* Desktop document control behaves as a focused file workspace: navigation and
   tools remain in place while folders and records scroll independently. */
@media (min-width:901px) and (min-height:620px) {
  body.document-workspace-page { height:100dvh; overflow:hidden; display:flex; flex-direction:column; }
  .document-workspace-page > .app-header { flex:0 0 auto; }
  .document-workspace-page > .privacy-footer { display:none; }
  .document-workspace-shell { width:100%; max-width:none; height:auto; min-height:0; flex:1 1 auto; display:flex; flex-direction:column; padding:20px 24px 0; overflow:hidden; }
  .document-workspace-shell > :not(.document-manager) { flex-shrink:0; }
  .document-workspace-shell .document-manager { flex:1 1 auto; height:auto; min-height:0; margin:0; display:flex; flex-direction:column; overflow:hidden; border:1px solid #d1dee8; border-bottom:0; border-radius:14px 14px 0 0; background:white; box-shadow:0 10px 28px rgb(18 79 127 / 6%); }
  .document-workspace-shell .document-manager-heading,
  .document-workspace-shell .document-tabs { flex:0 0 auto; }
  .document-workspace-shell .document-manager-shell { grid-template-rows:minmax(0,1fr); min-height:0; flex:1 1 auto; overflow:hidden; }
  .document-workspace-shell .document-folder-tree { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
  .document-workspace-shell .document-register { min-height:0; display:flex; flex-direction:column; overflow:hidden; }
  .document-workspace-shell .document-register-toolbar,
  .document-workspace-shell .document-breadcrumb,
  .document-workspace-shell .document-trash-storage-notice,
  .document-workspace-shell .document-bulk-actions,
  .document-workspace-shell .document-register-footer { flex:0 0 auto; }
  .document-workspace-shell .document-table-shell,
  .document-workspace-shell .document-thumbnail-grid-shell { min-height:0; flex:1 1 auto; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
  .document-workspace-shell .document-register > .empty-state { min-height:0; flex:1 1 auto; overflow:auto; }
}
.document-drop-form { display:none; }
.document-drop-overlay { position:fixed; z-index:300; inset:18px; display:grid; place-items:center; border:3px dashed #1582b2; border-radius:20px; background:rgb(232 248 255 / 94%); backdrop-filter:blur(5px); }
.document-drop-overlay[hidden] { display:none; }
.document-drop-overlay > div { min-width:min(560px,85vw); padding:56px 36px; display:grid; justify-items:center; gap:10px; border-radius:18px; color:#124f68; background:white; box-shadow:0 24px 70px rgb(15 72 94 / 22%); text-align:center; }
.document-drop-overlay span { font-size:3.8rem; line-height:1; }
.document-drop-overlay strong { font-size:1.8rem; }
.document-drop-overlay small { color:#617981; }
.document-move-dialog { width:min(520px,calc(100vw - 30px)); padding:0; border:1px solid #d1dee8; border-radius:16px; color:#0d2740; background:white; box-shadow:0 24px 80px rgb(7 28 51 / 32%); }
.document-move-dialog::backdrop { background:rgb(71 95 114 / 48%); backdrop-filter:blur(3px); }
.document-move-dialog form { padding:24px; display:grid; gap:15px; }
.document-move-dialog header { display:flex; align-items:start; justify-content:space-between; gap:20px; }
.document-move-dialog header h2 { margin:.15rem 0 0; font-size:1.5rem; }
.document-move-dialog header > button { width:34px; height:34px; border:0; border-radius:50%; color:#275f8c; background:#f3f7fa; font-size:1.35rem; cursor:pointer; }
.document-move-dialog p { margin:0; color:#4c84ae; }
.document-move-dialog label { margin-bottom:-8px; color:#275f8c; font-size:.78rem; font-weight:800; }
.document-move-dialog select { width:100%; min-height:46px; padding:9px 11px; border:1px solid #b7cad9; border-radius:8px; background:white; }
.document-move-dialog footer { margin-top:4px; display:flex; justify-content:flex-end; gap:9px; }
.document-icon { width: 58px; height: 68px; display: grid; place-items: center; border-radius: 8px; background: #d84c3f; color: white; font-size: 12px; font-weight: 900; }
.document-state { display: flex; align-items: end; flex-direction: column; gap: 10px; }
.status.published { background:#e8f1f7; color:#124f7f; }
.status.superseded, .status.archived { background: #edf0ee; color: #617689; }

/* Project photo record and private 360-degree viewer */
.photo-library { min-height:calc(100vh - 150px); }
.photo-library-body { min-height:650px; display:grid; grid-template-columns:260px minmax(0,1fr); background:white; }
.photo-library-folders { padding:18px 12px; border-right:1px solid #d1dee8; background:#f3f7fa; }
.photo-library-folders a { min-height:48px; padding:10px 12px; display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:8px; border-radius:8px; color:#124f7f; text-decoration:none; }
.photo-library-folders a:hover { background:#eaf2f7; }
.photo-library-folders a.active { color:#0c5f84; background:#dcecf4; box-shadow:inset 3px 0 0 #1582b2; }
.photo-library-folders a span { font-size:1.15rem; text-align:center; }
.photo-library-folders a small { min-width:28px; color:#617689; text-align:right; }
.photo-library-content { min-width:0; }
.photo-library-toolbar { min-height:78px; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid #d1dee8; }
.photo-library-toolbar h2 { margin:.12rem 0 0; font-size:1.25rem; }
.photo-library-toolbar .eyebrow { margin:0; }
.photo-upload-panel { position:relative; }
.photo-upload-panel > summary { list-style:none; cursor:pointer; }
.photo-upload-panel > summary::-webkit-details-marker { display:none; }
.photo-upload-panel[open] > summary { color:white; background:#0d2740; }
.photo-upload-panel form { width:min(620px,calc(100vw - 42px)); padding:18px; position:absolute; z-index:50; top:calc(100% + 8px); right:0; display:grid; grid-template-columns:1fr 180px; gap:12px; border:1px solid #b7cad9; border-radius:12px; background:white; box-shadow:0 18px 46px rgb(7 28 51 / 22%); }
.photo-upload-panel label { display:grid; gap:5px; color:#275f8c; font-size:.75rem; font-weight:800; }
.photo-upload-panel input { width:100%; min-height:42px; padding:8px; border:1px solid #b7cad9; border-radius:7px; background:white; }
.photo-upload-panel .span-2 { grid-column:1 / -1; }
.photo-upload-panel .actions { display:flex; justify-content:flex-end; }
.photo-upload-help { margin:0; color:#617689; font-size:.72rem; line-height:1.45; }
.photo-card-grid { padding:20px; display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); align-content:start; gap:18px; background:#f7f9fb; }
.photo-card-grid[hidden],.photo-empty-state[hidden] { display:none; }
.photo-card { min-width:0; overflow:hidden; border:1px solid #cad7e1; border-radius:11px; background:white; box-shadow:0 3px 12px rgb(7 28 51 / 6%); transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.photo-card:hover { border-color:#7fa7c3; box-shadow:0 10px 28px rgb(7 28 51 / 14%); transform:translateY(-2px); }
.photo-card-preview { height:210px; position:relative; display:block; overflow:hidden; background:#dfe8ee; }
.photo-card-preview img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .22s ease; }
.photo-card-preview video { width:100%; height:100%; display:block; object-fit:cover; pointer-events:none; }
.photo-card:hover .photo-card-preview img { transform:scale(1.025); }
.photo-360-badge { padding:6px 9px; position:absolute; right:9px; bottom:9px; border:1px solid rgb(255 255 255 / 55%); border-radius:999px; color:white; background:rgb(7 28 51 / 74%); backdrop-filter:blur(6px); font-size:.67rem; font-weight:850; }
.photo-video-badge { padding:6px 9px; position:absolute; left:9px; bottom:9px; border:1px solid rgb(255 255 255 / 55%); border-radius:999px; color:white; background:rgb(7 28 51 / 78%); backdrop-filter:blur(6px); font-size:.67rem; font-weight:850; }
.photo-thermal-badge { padding:6px 9px; position:absolute; right:9px; bottom:9px; border:1px solid rgb(255 255 255 / 62%); border-radius:999px; color:white; background:linear-gradient(90deg,#351153,#b31f3f,#f58c1f); box-shadow:0 2px 8px rgb(18 10 30 / 32%); font-size:.67rem; font-weight:900; }
.photo-card.is-radiometric .photo-card-preview::after { position:absolute; inset:0; content:""; background:linear-gradient(120deg,rgb(42 10 74 / 15%),transparent 44%,rgb(255 139 20 / 18%)); pointer-events:none; }
.photo-card > footer { min-height:82px; padding:12px 13px; display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.photo-card > footer > div:first-child { min-width:0; }
.photo-card h3 { margin:0; overflow:hidden; color:#173149; font-size:.86rem; text-overflow:ellipsis; white-space:nowrap; }
.photo-card p { margin:5px 0 0; overflow:hidden; color:#617689; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.photo-card-meta { flex:none; display:grid; justify-items:end; gap:7px; }
.photo-card time { color:#617689; font-size:.64rem; white-space:nowrap; }
.photo-card-meta form { margin:0; }
.photo-delete-button { width:25px; height:25px; padding:0; border:1px solid #e3c1bd; border-radius:6px; color:#9b352c; background:#fff; cursor:pointer; }
.photo-delete-button:hover { color:white; background:#a63830; }
.photo-empty-state { min-height:480px; display:grid; align-content:center; justify-items:center; text-align:center; }
.photo-empty-state > span { font-size:3.2rem; color:#75a6c2; }
.page-shell:has(.photo-viewer-page) { width:100%; max-width:none; padding:18px clamp(14px,2vw,32px) 40px; }
.photo-viewer-page { width:100%; min-height:calc(100dvh - 130px); margin:0; display:grid; grid-template-rows:auto minmax(500px,1fr) auto; color:#0d2740; background:#101a23; }
.photo-viewer-heading { min-height:76px; padding:10px 18px; display:flex; align-items:center; justify-content:space-between; gap:20px; background:white; }
.photo-viewer-heading > div:first-child { min-width:0; display:flex; align-items:center; gap:14px; }
.photo-viewer-heading h1 { max-width:58vw; margin:.12rem 0 0; overflow:hidden; font-size:1.25rem; text-overflow:ellipsis; white-space:nowrap; }
.photo-viewer-heading .eyebrow { margin:0; }
.photo-viewer-heading .actions { display:flex; align-items:center; gap:8px; }
.photo-viewer-heading form { margin:0; }
.panorama-viewer { min-height:500px; position:relative; overflow:hidden; background:#101a23; }
.panorama-viewer canvas { width:100%; height:100%; position:absolute; inset:0; display:block; opacity:0; cursor:grab; touch-action:none; outline:none; transition:opacity .2s ease; }
.panorama-viewer canvas.is-ready { opacity:1; }
.panorama-viewer canvas.is-dragging { cursor:grabbing; }
.panorama-viewer canvas:focus-visible { box-shadow:inset 0 0 0 3px #75c6ff; }
.panorama-fallback { width:100%; height:100%; position:absolute; inset:0; object-fit:contain; background:#101a23; }
.panorama-fallback[hidden] { display:none; }
.panorama-loading { position:absolute; z-index:3; inset:0; display:flex; align-items:center; justify-content:center; gap:10px; color:white; background:#101a23; font-size:.85rem; }
.panorama-loading[hidden] { display:none; }
.panorama-loading span { width:18px; height:18px; border:2px solid rgb(255 255 255 / 34%); border-top-color:white; border-radius:50%; animation:document-upload-spin .8s linear infinite; }
.panorama-controls { position:absolute; z-index:5; right:16px; bottom:16px; display:flex; overflow:hidden; border:1px solid rgb(255 255 255 / 35%); border-radius:9px; background:rgb(7 28 51 / 70%); backdrop-filter:blur(8px); }
.panorama-controls button { min-width:42px; min-height:40px; padding:7px 11px; border:0; color:white; background:transparent; font:inherit; font-weight:800; cursor:pointer; }
.panorama-controls button + button { border-left:1px solid rgb(255 255 255 / 22%); }
.panorama-controls button:hover { background:rgb(255 255 255 / 14%); }
.panorama-hint { margin:0; padding:7px 11px; position:absolute; z-index:4; left:16px; bottom:16px; border-radius:7px; color:white; background:rgb(7 28 51 / 65%); font-size:.68rem; backdrop-filter:blur(6px); pointer-events:none; }
.panorama-viewer:has(.panorama-playback) .panorama-hint { bottom:70px; }
.panorama-playback { min-width:min(620px,calc(100% - 190px)); padding:7px 9px; position:absolute; z-index:6; right:174px; bottom:16px; left:16px; display:grid; grid-template-columns:38px auto minmax(80px,1fr) auto 38px; align-items:center; gap:8px; border:1px solid rgb(255 255 255 / 35%); border-radius:9px; color:white; background:rgb(7 28 51 / 76%); backdrop-filter:blur(8px); font-size:.68rem; }
.panorama-playback button { width:34px; height:32px; padding:0; border:0; border-radius:6px; color:white; background:rgb(255 255 255 / 10%); cursor:pointer; }
.panorama-playback button:hover { background:rgb(255 255 255 / 20%); }
.panorama-playback input[type="range"] { width:100%; accent-color:#75c6ff; }
.panorama-viewer.is-fallback .panorama-playback,.panorama-viewer.is-fallback .panorama-controls,.panorama-viewer.is-fallback .panorama-hint { display:none; }
.standard-photo-viewer { min-height:500px; padding:18px; display:grid; place-items:center; overflow:auto; background:#101a23; }
.standard-photo-viewer img { max-width:100%; max-height:calc(100vh - 245px); object-fit:contain; box-shadow:0 12px 36px rgb(0 0 0 / 34%); }
.standard-video-viewer { min-height:500px; padding:18px; display:grid; place-items:center; background:#101a23; }
.standard-video-viewer video { width:100%; max-height:calc(100dvh - 245px); background:black; }
.radiometric-viewer { min-height:500px; display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,360px); background:#101a23; }
.radiometric-canvas-wrap { min-width:0; min-height:500px; position:relative; display:grid; place-items:center; overflow:hidden; background:#070d13; }
.radiometric-canvas-wrap canvas { max-width:calc(100% - 44px); max-height:calc(100% - 32px); display:block; opacity:0; outline:none; cursor:crosshair; touch-action:none; image-rendering:auto; transition:opacity .2s ease; }
.radiometric-canvas-wrap canvas.is-ready { opacity:1; }
.radiometric-canvas-wrap canvas:focus-visible { box-shadow:0 0 0 3px #75c6ff; }
.radiometric-loading,.radiometric-error { padding:24px; position:absolute; z-index:4; inset:0; display:flex; align-items:center; justify-content:center; gap:10px; color:white; background:#101a23; text-align:center; }
.radiometric-loading[hidden],.radiometric-error[hidden] { display:none; }
.radiometric-loading span { width:18px; height:18px; border:2px solid rgb(255 255 255 / 34%); border-top-color:#ffb32b; border-radius:50%; animation:document-upload-spin .8s linear infinite; }
.radiometric-error { color:#ffd9d3; }
.radiometric-crosshair { width:1px; height:1px; position:absolute; z-index:3; pointer-events:none; }
.radiometric-crosshair[hidden] { display:none; }
.radiometric-crosshair::before,.radiometric-crosshair::after { position:absolute; content:""; background:white; box-shadow:0 0 2px #111; }
.radiometric-crosshair::before { width:26px; height:1px; left:-13px; }
.radiometric-crosshair::after { width:1px; height:26px; top:-13px; }
.radiometric-crosshair span { width:10px; height:10px; position:absolute; left:-5px; top:-5px; border:1px solid white; border-radius:50%; box-shadow:0 0 3px #111; }
.radiometric-crosshair output { min-width:70px; padding:5px 7px; position:absolute; left:10px; top:10px; border:1px solid rgb(255 255 255 / 40%); border-radius:6px; color:white; background:rgb(7 28 51 / 80%); font-size:.68rem; font-weight:850; white-space:nowrap; }
.radiometric-scale { height:min(68%,380px); position:absolute; z-index:2; right:16px; top:50%; display:grid; grid-template-rows:auto 1fr auto; gap:5px; color:white; font-size:.62rem; font-weight:800; text-align:center; transform:translateY(-50%); text-shadow:0 1px 3px #000; pointer-events:none; }
.radiometric-scale i { width:13px; justify-self:center; border:1px solid rgb(255 255 255 / 65%); border-radius:999px; background:linear-gradient(to top,#000,#2a1248,#7e183d,#dc4014,#ffb82a,#ffffe6); }
.radiometric-scale[data-palette="rainbow"] i { background:linear-gradient(to top,#12125e,#005cbe,#00b4d2,hsl(116 60% 50%),#f4dc24,#e82d18); }
.radiometric-scale[data-palette="gray"] i { background:linear-gradient(to top,#000,#fff); }
.radiometric-panel { min-width:0; padding:20px; overflow:auto; color:#d8e5ed; background:#111f2b; }
.radiometric-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.radiometric-panel h2 { margin:.15rem 0 0; color:white; font-size:1.08rem; }
.radiometric-panel .eyebrow { margin:0; color:#ffb32b; }
.radiometric-panel-heading label { display:grid; gap:4px; color:#9db4c5; font-size:.62rem; font-weight:800; text-transform:uppercase; }
.radiometric-panel select { min-height:36px; padding:6px 28px 6px 8px; border:1px solid #476176; border-radius:7px; color:white; background:#1d3447; }
.radiometric-readings { margin:22px 0 16px; display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.radiometric-readings div { padding:12px; border:1px solid #30495d; border-radius:9px; background:#182a39; }
.radiometric-readings dt,.radiometric-metadata dt { color:#9db4c5; font-size:.62rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.radiometric-readings dd { margin:5px 0 0; color:white; font-size:1.05rem; font-weight:850; }
.radiometric-metadata { margin:0; border-top:1px solid #30495d; }
.radiometric-metadata div { padding:9px 0; display:flex; justify-content:space-between; gap:15px; border-bottom:1px solid #30495d; }
.radiometric-metadata dd { margin:0; color:white; font-size:.74rem; text-align:right; }
.radiometric-caution { margin:16px 0; color:#adc0ce; font-size:.68rem; line-height:1.45; }
.radiometric-panel details { border-top:1px solid #30495d; }
.radiometric-panel summary { padding:13px 0; color:#8fd0ef; font-size:.72rem; font-weight:800; cursor:pointer; }
.radiometric-panel details img { width:100%; max-height:260px; object-fit:contain; background:#071019; }
.photo-viewer-details { min-height:72px; padding:12px 18px; display:grid; grid-template-columns:minmax(180px,auto) 1fr; gap:28px; color:#c6d5e0; background:#0b151e; }
.photo-viewer-details div { display:grid; align-content:center; gap:4px; }
.photo-viewer-details strong { color:#75c6ff; font-size:.65rem; letter-spacing:.08em; text-transform:uppercase; }
.photo-viewer-details span { font-size:.78rem; line-height:1.4; }
.photo-folder-heading { margin:0 4px 10px; padding:2px 9px 12px; display:flex; justify-content:space-between; border-bottom:1px solid #d1dee8; color:#275f8c; font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; }
.photo-folder-row { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 30px; align-items:center; border-radius:8px; }
.photo-folder-row:hover,.photo-folder-row.active { background:#eaf2f7; }
.photo-folder-row > a { min-width:0; min-height:44px; padding:8px 3px 8px 12px; display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:8px; color:#124f7f; text-decoration:none; }
.photo-folder-row > a strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.photo-folder-row > a small { color:#617689; }
.photo-folder-row > details summary { width:28px; height:28px; display:grid; place-items:center; list-style:none; color:#275f8c; cursor:pointer; }
.photo-folder-row > details summary::-webkit-details-marker { display:none; }
.photo-folder-row > details > div { width:220px; padding:9px; position:absolute; z-index:60; top:37px; right:0; display:grid; gap:8px; border:1px solid #b7cad9; border-radius:9px; background:white; box-shadow:0 12px 30px rgb(7 28 51 / 18%); }
.photo-folder-rename { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; }
.photo-folder-rename input[type="text"] { min-width:0; width:100%; padding:7px; border:1px solid #b7cad9; border-radius:6px; }
.photo-folder-delete { width:100%; padding:7px; border:0; color:#9b352c; background:#fff1ef; cursor:pointer; }
.photo-folder-create { margin-top:12px; padding:10px 4px; display:grid; grid-template-columns:minmax(0,1fr) 34px; gap:5px; border-top:1px solid #d1dee8; }
.photo-folder-create input { min-width:0; padding:7px; border:1px solid #b7cad9; border-radius:6px; background:white; }
.photo-folder-create input[type="submit"] { padding:0; color:white; border-color:#124f7f; background:#124f7f; cursor:pointer; }
.photo-upload-workspace { padding:13px 18px; flex:0 0 auto; border-bottom:1px solid #b7cad9; background:#eef5f9; }
.photo-upload-workspace[hidden] { display:none; }
.photo-upload-settings { display:grid; grid-template-columns:minmax(170px,.7fr) 160px minmax(240px,1.4fr) 34px; align-items:end; gap:10px; }
.photo-upload-settings label { min-width:0; display:grid; gap:4px; color:#275f8c; font-size:.69rem; font-weight:800; }
.photo-upload-settings input,.photo-upload-settings select { min-width:0; width:100%; min-height:36px; padding:6px 8px; border:1px solid #b7cad9; border-radius:6px; background:white; }
.photo-upload-close { width:34px; height:34px; padding:0; border:1px solid #cad7e1; border-radius:50%; color:#275f8c; background:white; font-size:1.25rem; cursor:pointer; }
.photo-drop-zones { margin-top:11px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.photo-drop-zone { min-height:94px; padding:11px 18px; display:grid; grid-template-columns:62px minmax(0,1fr); grid-template-rows:auto auto; align-content:center; column-gap:14px; border:2px dashed #9bb9cd; border-radius:11px; color:#124f7f; background:white; cursor:pointer; transition:.15s ease; }
.photo-drop-zone:hover,.photo-drop-zone.is-dragging,.photo-library.is-global-dragging .photo-drop-zone { color:#083e62; border-color:#1582b2; background:#e5f5fc; }
.photo-drop-zone input { width:1px; height:1px; position:absolute; overflow:hidden; opacity:0; }
.photo-drop-zone strong { align-self:end; font-size:.86rem; }
.photo-drop-zone small { align-self:start; color:#617689; font-size:.68rem; line-height:1.35; }
.photo-drop-shape { grid-row:1 / 3; align-self:center; justify-self:center; display:grid; place-items:center; color:#1582b2; }
.photo-drop-shape.rectangle { width:54px; height:38px; border:2px solid currentColor; border-radius:5px; font-size:1.2rem; }
.photo-drop-shape.sphere { width:52px; height:52px; border:2px solid currentColor; border-radius:50%; font-size:.72rem; font-weight:900; background:radial-gradient(circle at 35% 30%,#fff 0 5%,#dff3fb 30%,#7fc4df 68%,#167ba5 100%); }
.photo-drop-shape.video { width:54px; height:38px; border:2px solid currentColor; border-radius:7px; font-size:1rem; background:#edf7fb; }
.photo-drop-shape.video-sphere { font-size:.6rem; }
.photo-drop-zone.radiometric { grid-column:1 / -1; }
.photo-drop-shape.thermal { width:54px; height:44px; border:2px solid #b52b43; border-radius:8px; color:white; background:linear-gradient(135deg,#241040,#81214c,#e44e1a,#ffc238); font-size:.72rem; font-weight:900; box-shadow:inset 0 0 0 3px rgb(255 255 255 / 24%); }
.photo-upload-queue { margin-top:10px; overflow:hidden; border:1px solid #cad7e1; border-radius:9px; background:white; }
.photo-upload-queue[hidden] { display:none; }
.photo-upload-queue > header { min-height:34px; padding:7px 10px; display:flex; justify-content:space-between; color:#275f8c; background:#f7fafc; font-size:.7rem; }
.photo-upload-queue > div { max-height:174px; overflow:auto; }
.photo-queue-item { min-height:56px; padding:7px 10px; display:grid; grid-template-columns:42px minmax(0,1fr) minmax(70px,auto); align-items:center; gap:9px; border-top:1px solid #e2eaf0; }
.photo-queue-thumbnail { width:40px; height:34px; overflow:hidden; border-radius:4px; background:#dfe8ee; }
.photo-queue-thumbnail.is-panorama { width:36px; height:36px; border-radius:50%; }
.photo-queue-thumbnail.is-radiometric { box-shadow:inset 0 -4px 0 #ef8520; }
.photo-queue-thumbnail img,.photo-queue-thumbnail video { width:100%; height:100%; object-fit:cover; }
.photo-queue-item > div:nth-child(2) { min-width:0; display:grid; gap:2px; }
.photo-queue-item strong { overflow:hidden; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.photo-queue-item small,.photo-queue-item > span { color:#617689; font-size:.63rem; }
.photo-queue-item[data-state="complete"] > span { color:#155b8f; font-weight:800; }
.photo-queue-item[data-state="error"] > span { color:#a63830; font-weight:800; }
.photo-queue-progress { height:4px; overflow:hidden; border-radius:999px; background:#dfe8ee; }
.photo-queue-progress > span { width:0; height:100%; display:block; background:#1582b2; transition:width .12s linear; }
.photo-card.is-panorama { background:linear-gradient(180deg,#edf7fb 0 206px,#fff 206px); }
.photo-card.is-panorama .photo-card-preview { width:178px; height:178px; margin:16px auto; border:4px solid white; border-radius:50%; box-shadow:0 5px 20px rgb(7 28 51 / 20%); }
.photo-card.is-panorama .photo-card-preview img { border-radius:50%; }
.photo-card.is-panorama .photo-card-preview video { border-radius:50%; }
.photo-card.is-panorama:hover .photo-card-preview img { transform:scale(1.06); }
.photo-card.is-panorama .photo-360-badge { right:50%; bottom:7px; transform:translateX(50%); }
.photo-folder-label { margin-top:6px; display:block; overflow:hidden; color:#4c84ae; font-size:.62rem; text-overflow:ellipsis; white-space:nowrap; }
.photo-card-move { padding:8px 12px; border-top:1px solid #e2eaf0; background:#f7fafc; }
.photo-card-move select { width:100%; min-height:30px; padding:4px 7px; border:1px solid #cad7e1; border-radius:6px; color:#275f8c; background:white; font-size:.67rem; }

@media (min-width:901px) and (min-height:620px) {
  .document-workspace-shell .photo-library-body { min-height:0; flex:1 1 auto; overflow:hidden; }
  .document-workspace-shell .photo-library-folders { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
  .document-workspace-shell .photo-library-content { min-height:0; display:flex; flex-direction:column; overflow:hidden; }
  .document-workspace-shell .photo-library-toolbar { flex:0 0 auto; }
  .document-workspace-shell .photo-card-grid,
  .document-workspace-shell .photo-empty-state { min-height:0; flex:1 1 auto; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
}

@media (max-width:900px) {
  .photo-library-body { min-height:0; display:block; }
  .photo-library-folders { padding:10px 14px; display:flex; overflow-x:auto; border-right:0; border-bottom:1px solid #d1dee8; }
  .photo-library-folders a { min-width:190px; }
  .photo-library-toolbar { align-items:flex-start; }
  .photo-upload-panel form { position:fixed; z-index:600; top:50%; right:auto; left:50%; transform:translate(-50%,-50%); }
  .photo-card-grid { grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); padding:14px; }
  .page-shell:has(.photo-viewer-page) { padding:14px; }
  .photo-viewer-page { min-height:calc(100dvh - 110px); grid-template-rows:auto minmax(360px,1fr) auto; }
  .photo-viewer-heading { align-items:flex-start; flex-direction:column; }
  .photo-viewer-heading h1 { max-width:82vw; }
  .panorama-viewer { min-height:360px; }
  .radiometric-viewer { grid-template-columns:1fr; }
  .radiometric-canvas-wrap { min-height:360px; }
  .panorama-hint { right:12px; bottom:68px; left:12px; text-align:center; }
  .panorama-controls { right:12px; bottom:12px; }
  .panorama-playback { min-width:0; right:12px; bottom:62px; left:12px; }
  .panorama-viewer:has(.panorama-playback) .panorama-hint { bottom:116px; }
  .photo-viewer-details { grid-template-columns:1fr; gap:10px; }
  .photo-upload-settings { grid-template-columns:1fr 150px 34px; }
  .photo-upload-description { grid-column:1 / 3; grid-row:2; }
  .photo-upload-close { grid-column:3; grid-row:1; }
}

@media (max-width:560px) {
  .photo-library-toolbar { flex-direction:column; }
  .photo-upload-panel { width:100%; }
  .photo-upload-panel > summary { width:100%; text-align:center; }
  .photo-upload-panel form { grid-template-columns:1fr; }
  .photo-upload-panel .span-2 { grid-column:auto; }
  .photo-card-grid { grid-template-columns:1fr; }
  .photo-viewer-heading .actions { width:100%; flex-wrap:wrap; }
  .photo-upload-settings { grid-template-columns:1fr 34px; }
  .photo-upload-settings label { grid-column:1; }
  .photo-upload-description { grid-column:1; grid-row:auto; }
  .photo-upload-close { grid-column:2; grid-row:1; }
  .photo-drop-zones { grid-template-columns:1fr; }
  .photo-drop-zone { min-height:84px; }
  .photo-drop-zone.radiometric { grid-column:auto; }
}

/* Root access — consola interna de operación */
.root-access-body { overflow-x:hidden; background:#f3f7fa; }
.root-access-body .page-shell { width:100%; max-width:1680px; min-width:0; padding-top:28px; }
.root-access-header { position:relative; justify-content:space-between; }
.root-console-heading,.root-client-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.root-console-heading h1,.root-client-heading h1 { margin:3px 0 6px; font-size:clamp(2.2rem,4vw,4rem); }
.root-console-heading p,.root-client-heading p { margin:0; color:var(--muted); }
.root-metric-grid,.root-client-summary { display:grid; grid-template-columns:repeat(6,minmax(145px,1fr)); gap:12px; }
.root-metric-grid article,.root-client-summary article { min-height:126px; padding:21px; display:flex; flex-direction:column; justify-content:center; border:1px solid var(--line); border-radius:15px; background:white; }
.root-metric-grid span,.root-client-summary span { color:var(--muted); font-size:.78rem; font-weight:750; }
.root-metric-grid strong,.root-client-summary strong { margin:5px 0; font-size:1.9rem; letter-spacing:-.04em; }
.root-metric-grid small,.root-client-summary small { color:#74889a; }
.root-system-strip { margin:16px 0 24px; padding:13px 17px; display:flex; align-items:center; justify-content:space-between; gap:20px; border:1px solid #b7cad9; border-radius:11px; background:#e7eff6; color:#124f7f; font-size:.78rem; }
.root-system-strip > div { display:flex; align-items:center; gap:9px; }
.root-system-strip small { color:#4c84ae; }
.root-maintenance-panel { margin:18px 0 24px; padding:22px; border:1px solid #d1dee8; border-radius:16px; background:#fff; box-shadow:0 12px 35px rgb(18 79 127 / 7%); }
.root-maintenance-panel > header { display:flex; align-items:start; justify-content:space-between; gap:20px; }
.root-maintenance-panel > header h2 { margin:2px 0 4px; }
.root-maintenance-panel > header p:last-child { margin:0; color:var(--muted); }
.root-maintenance-panel form { margin-top:18px; }
.root-maintenance-toggle { display:flex; align-items:center; gap:13px; padding:14px 16px; border:1px solid #d1dee8; border-radius:12px; background:#f3f7fa; cursor:pointer; }
.root-maintenance-toggle > input { position:absolute; inline-size:1px; block-size:1px; opacity:0; pointer-events:none; }
.root-maintenance-toggle > span:last-child { display:grid; gap:2px; }
.root-maintenance-toggle small { color:var(--muted); font-weight:500; }
.root-toggle-track { position:relative; flex:0 0 48px; width:48px; height:27px; border-radius:999px; background:#94aec2; transition:.2s ease; }
.root-toggle-track i { position:absolute; top:3px; left:3px; width:21px; height:21px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgb(0 0 0 / 25%); transition:.2s ease; }
.root-maintenance-toggle > input:checked + .root-toggle-track { background:#124f7f; }
.root-maintenance-toggle > input:checked + .root-toggle-track i { transform:translateX(21px); }
.root-maintenance-toggle > input:focus-visible + .root-toggle-track { outline:3px solid #b7cad9; outline-offset:2px; }
.root-maintenance-fields { margin-top:14px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.root-maintenance-fields label { display:grid; gap:6px; font-weight:750; color:#275f8c; }
.root-maintenance-fields .span-2 { grid-column:span 2; }
.root-maintenance-fields textarea { min-height:84px; resize:vertical; }
.root-maintenance-fields small { color:var(--muted); font-weight:500; }
.root-maintenance-actions { margin-top:14px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.root-maintenance-preview { flex:1; min-width:0; display:flex; align-items:center; gap:11px; color:#573e00; }
.root-maintenance-preview > span { display:grid; place-items:center; flex:0 0 27px; height:27px; border-radius:50%; background:#f1c448; color:#402d00; font-weight:900; }
.root-maintenance-preview > div { display:grid; gap:1px; min-width:0; }
.root-maintenance-preview small { color:#765d1c; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.root-maintenance-history { margin-top:16px; border-top:1px solid #e7eff6; padding-top:12px; }
.root-maintenance-history summary { width:max-content; color:#124f7f; font-weight:800; cursor:pointer; }
.root-maintenance-history > div { margin-top:8px; display:grid; gap:6px; }
.root-maintenance-history p { margin:0; display:flex; gap:8px; font-size:.78rem; }
.root-maintenance-history p span { color:var(--muted); }
.maintenance-notice { position:relative; width:min(1120px,calc(100% - 28px)); margin:8px auto 0; padding:9px 12px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; border:1px solid #e4bd4d; border-radius:8px; background:#fff9e4; color:#4e3900; box-shadow:0 5px 14px rgb(60 43 0 / 8%); }
.maintenance-notice[hidden] { display:none; }
.maintenance-notice-icon { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#e5ae16; color:#fff; font-size:.78rem; font-weight:950; }
.maintenance-notice > div { min-width:0; }
.maintenance-notice p { margin:1px 0; color:#4e3900; font-size:.82rem; }
.maintenance-notice small { color:#765f20; font-size:.7rem; }
.maintenance-notice button { padding:6px 9px; border:1px solid #b88b16; border-radius:6px; background:transparent; color:#5f4708; font-size:.72rem; font-weight:800; cursor:pointer; }
.maintenance-notice button:hover { background:#f4e3a8; }
.root-product-announcement-editor { margin-top:14px; display:grid; grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr); gap:18px; align-items:start; }
.root-product-announcement-image { overflow:hidden; border:1px solid #b7cad9; border-radius:13px; background:#071c33; }
.root-product-announcement-image img { width:100%; height:auto; display:block; }
.root-product-announcement-fields { display:grid; gap:14px; }
.root-product-announcement-fields label { display:grid; gap:6px; color:#275f8c; font-weight:750; }
.root-product-announcement-fields small { color:var(--muted); font-weight:500; }
.root-product-announcement-fields .button { width:max-content; }
.product-announcement-dialog { width:min(1240px,calc(100% - 40px)); max-width:none; max-height:calc(100vh - 40px); padding:0; overflow:auto; border:0; border-radius:20px; background:#fff; color:var(--ink); box-shadow:0 28px 90px rgb(0 20 38 / 42%); }
.product-announcement-dialog::backdrop { background:rgb(3 18 33 / 72%); backdrop-filter:blur(5px); }
.product-announcement-dialog > article { position:relative; margin:0; }
.product-announcement-image { width:100%; height:auto; display:block; background:#0a3454; }
.product-announcement-dialog footer { padding:18px 22px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-top:1px solid #d1dee8; }
.product-announcement-dialog footer > div { min-width:0; }
.product-announcement-dialog footer .eyebrow { margin:0 0 3px; color:#2f8bc5; }
.product-announcement-dialog footer h2 { margin:0; color:#0d2740; font-size:1.35rem; }
.product-announcement-dialog footer p:last-child { margin:4px 0 0; color:var(--muted); }
.product-announcement-close { position:absolute; z-index:1; top:12px; right:12px; width:40px; height:40px; display:grid; place-items:center; border:1px solid rgb(255 255 255 / 58%); border-radius:50%; background:rgb(7 28 51 / 80%); color:#fff; font-size:1.5rem; line-height:1; cursor:pointer; backdrop-filter:blur(8px); }
.product-announcement-close:hover { background:#071c33; }
.root-health-dot { width:10px; height:10px; border-radius:50%; background:#275f8c; box-shadow:0 0 0 4px rgb(99 198 213 / 13%); }
.faro-summary { margin:16px 0 24px; overflow:hidden; border:1px solid #d1dee8; border-radius:16px; background:#fff; box-shadow:0 12px 35px rgb(18 79 127 / 7%); }
.faro-summary > header,.faro-summary > footer { padding:15px 18px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.faro-summary > header { border-bottom:1px solid #e7eff6; }.faro-summary h2 { margin:2px 0; }
.faro-state { display:inline-flex; align-items:center; gap:7px; padding:7px 11px; border-radius:999px; color:#124f7f; background:#e7eff6; font-size:.72rem; font-weight:900; letter-spacing:.04em; }
.faro-state i,.faro-service-row > span:nth-child(2) i { width:8px; height:8px; border-radius:50%; background:currentColor; }
.faro-status-degraded .faro-state { color:#93620d; background:#fff2ce; }.faro-status-critical .faro-state,.faro-status-offline .faro-state { color:#a63d32; background:#fde9e6; }
.faro-attention { padding:12px 18px; display:grid; gap:7px; border-bottom:1px solid #e7eff6; background:#f3f7fa; }.faro-attention article { padding:10px 12px; display:grid; grid-template-columns:9px 1fr; align-items:start; gap:9px; border:1px solid #e7eff6; border-radius:9px; background:#fff; }.faro-attention article > i { width:9px; height:9px; margin-top:4px; border-radius:50%; background:#4c84ae; }.faro-attention article > div { display:grid; gap:2px; }.faro-attention article strong { font-size:.76rem; }.faro-attention article span { color:#275f8c; font-size:.7rem; }.faro-attention article small { color:#74889a; font-size:.66rem; }.faro-attention article.severity-critical { border-color:#e5b2ac; background:#fff7f5; }.faro-attention article.severity-critical > i { background:#b74338; }.faro-attention article.severity-warning { border-color:#e5cf94; background:#fffbef; }.faro-attention article.severity-warning > i { background:#d39a18; }.faro-attention-clear { margin:0; padding:11px 18px; border-bottom:1px solid #e7eff6; color:#275f8c; background:#f3f7fa; font-size:.72rem; }
.faro-kpis { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); }.faro-kpis article { min-width:0; padding:16px 18px; display:grid; gap:3px; border-right:1px solid #e7eff6; }.faro-kpis article:last-child { border-right:0; }
.faro-kpis span { color:#617689; font-size:.66rem; font-weight:850; text-transform:uppercase; }.faro-kpis strong { font-size:1.25rem; }.faro-kpis small { color:var(--muted); font-size:.65rem; }
.faro-summary > footer { border-top:1px solid #e7eff6; color:var(--muted); font-size:.7rem; }.faro-empty,.faro-install-note { padding:24px; display:grid; gap:5px; }.faro-empty span { color:var(--muted); }
.faro-windows { margin:0 0 12px; display:flex; gap:5px; }.faro-windows a { padding:7px 12px; border:1px solid var(--line); border-radius:8px; color:#275f8c; text-decoration:none; font-size:.72rem; font-weight:800; }.faro-windows a.active { color:#fff; background:#124f7f; }
.faro-coverage { margin-bottom:12px; padding:9px 12px; display:flex; flex-wrap:wrap; gap:7px 18px; border:1px solid #d1dee8; border-radius:10px; color:#4c84ae; background:#f3f7fa; font-size:.68rem; }.faro-coverage strong { color:#124f7f; }
.faro-period-kpis { margin-bottom:12px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }.faro-period-kpis article { min-width:0; padding:12px 14px; display:grid; gap:2px; border:1px solid var(--line); border-radius:11px; background:#fff; }.faro-period-kpis span { color:#617689; font-size:.62rem; font-weight:850; text-transform:uppercase; }.faro-period-kpis strong { color:#124f7f; font-size:1.05rem; }.faro-period-kpis small { color:var(--muted); font-size:.58rem; }
.faro-storage-panel { margin-bottom:18px; padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; }.faro-storage-panel > header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }.faro-storage-panel > header h2 { margin:2px 0; }.faro-storage-panel > header p:last-child { max-width:760px; margin:5px 0 0; color:var(--muted); font-size:.72rem; }.faro-storage-panel > header > span { padding:7px 10px; border-radius:999px; color:#124f7f; background:#e7eff6; font-size:.75rem; font-weight:900; }
.faro-storage-kpis { margin-top:15px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }.faro-storage-kpis article { min-width:0; padding:12px 14px; display:grid; gap:3px; border:1px solid #e7eff6; border-radius:11px; background:#f3f7fa; }.faro-storage-kpis span { color:var(--muted); font-size:.62rem; font-weight:850; text-transform:uppercase; }.faro-storage-kpis strong { font-size:1.15rem; }.faro-storage-kpis small { color:#617689; font-size:.62rem; }
.faro-storage-meter { height:10px; margin:12px 0 16px; overflow:hidden; border-radius:999px; background:#e7eff6; }.faro-storage-meter i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#124f7f,#75c6ff); }
.faro-storage-table { overflow:hidden; border:1px solid #e7eff6; border-radius:11px; }.faro-storage-table > header { padding:11px 13px; background:#f3f7fa; }.faro-storage-head,.faro-storage-row { padding:9px 13px; display:grid; grid-template-columns:minmax(180px,1.2fr) minmax(220px,1.6fr) minmax(100px,.55fr) minmax(80px,.45fr); align-items:center; gap:12px; }.faro-storage-head { color:var(--muted); background:#f3f7fa; font-size:.62rem; font-weight:850; text-transform:uppercase; }.faro-storage-row { border-top:1px solid #e7eff6; font-size:.72rem; }.faro-storage-row > span:first-child { display:grid; gap:2px; }.faro-storage-row small,.faro-storage-row > span:nth-child(2) { color:var(--muted); }.faro-storage-waiting { margin:0; padding:14px; border-radius:10px; color:#6d581f; background:#fff5d8; font-size:.72rem; }
.faro-chart-grid { width:100%; min-width:0; margin-bottom:18px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }.faro-chart-grid article { min-width:0; padding:15px; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; }.faro-chart-grid header { display:flex; justify-content:space-between; gap:8px; }.faro-chart-grid header span { color:#124f7f; font-weight:850; white-space:nowrap; }
.faro-chart-grid-expanded { grid-template-columns:repeat(4,minmax(0,1fr)); }.faro-chart-stats { margin-top:7px; display:flex; justify-content:space-between; gap:5px; color:var(--muted); font-size:.58rem; }.faro-chart-stats span { min-width:0; display:grid; }.faro-chart-stats strong { color:#275f8c; font-size:.65rem; }
.faro-bars { min-width:0; height:82px; margin-top:12px; display:flex; align-items:end; gap:1px; overflow:hidden; border-bottom:1px solid #d1dee8; }.faro-bars i { min-width:0; flex:1 1 0; border-radius:2px 2px 0 0; background:#4c84ae; }
.faro-detail-grid { width:100%; min-width:0; display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); align-items:start; gap:16px; }.faro-detail-grid > * { width:100%; min-width:0; }.faro-services,.faro-network-card,.faro-events,.faro-install-note { border:1px solid var(--line); border-radius:14px; background:#fff; }.faro-services { max-width:100%; overflow:hidden; }.faro-services > header,.faro-events > header { padding:17px; display:flex; align-items:start; justify-content:space-between; }.faro-services h2,.faro-network-card h2,.faro-events h2 { margin:2px 0; }
.faro-service-head,.faro-service-row { padding:10px 16px; display:grid; grid-template-columns:minmax(180px,1.7fr) minmax(105px,.8fr) minmax(80px,.5fr) minmax(75px,.6fr) minmax(85px,.7fr) minmax(88px,.55fr); align-items:center; gap:10px; }.faro-service-head { color:var(--muted); background:#f3f7fa; font-size:.65rem; font-weight:850; text-transform:uppercase; }.faro-service-row { border-top:1px solid #e7eff6; font-size:.72rem; }.faro-service-row > span:first-child { display:grid; }.faro-service-row small { color:var(--muted); }.faro-service-row > span:nth-child(2) { display:flex; align-items:center; gap:5px; color:#124f7f; }.faro-service-row .service-stopped,.faro-service-row .service-unhealthy,.faro-service-row .service-failed { color:#b13b30; }
.faro-service-control form { margin:0; }.faro-service-control button { width:100%; min-height:31px; padding:5px 9px; border:1px solid #b7cad9; border-radius:7px; color:#124f7f; background:#fff; font:inherit; font-weight:850; cursor:pointer; }.faro-service-control button:hover { background:#f3f7fa; }.faro-service-control .faro-service-stop { color:#9d342b; border-color:#e0aaa5; }.faro-service-control .faro-service-stop:hover { background:#fff1ef; }.faro-service-control button:disabled { color:#74889a; border-color:#d1dee8; background:#f3f7fa; cursor:wait; }
.faro-agent-state { margin:12px 0; padding:12px 16px; display:flex; align-items:flex-start; gap:10px; border:1px solid #b7cad9; border-radius:12px; background:#f3f7fa; }.faro-agent-state > i { width:11px; height:11px; margin-top:4px; flex:0 0 auto; border-radius:50%; background:#275f8c; box-shadow:0 0 0 4px #e7eff6; }.faro-agent-state div { display:grid; gap:2px; }.faro-agent-state strong { font-size:.78rem; }.faro-agent-state span { color:var(--muted); font-size:.7rem; }.faro-agent-state.is-offline { border-color:#e2aea7; background:#fff5f3; }.faro-agent-state.is-offline > i { background:#b74338; box-shadow:0 0 0 4px #f8deda; }
.faro-service-control { display:grid; gap:5px; }.faro-service-control .faro-service-restart { color:#805e0d; border-color:#e5cf94; background:#fffbef; }
.faro-service-control .faro-service-repair { color:#fff; border-color:#236b9a; background:#236b9a; }.faro-service-control .faro-service-repair:hover { background:#174f75; }
.faro-signal-green { color:#275f8c !important; }.faro-signal-yellow { color:#b87b0b !important; }.faro-signal-red { color:#b74338 !important; }
.faro-service-diagnostics { border-top:1px solid #e7eff6; background:#f8fbfd; }.faro-service-diagnostics summary { padding:8px 16px; color:#275f8c; font-size:.68rem; font-weight:800; cursor:pointer; }.faro-diagnostic-grid { padding:4px 16px 16px; display:grid; grid-template-columns:minmax(240px,.8fr) minmax(280px,1.2fr); gap:18px; }.faro-diagnostic-grid dl { margin:0; display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 12px; }.faro-diagnostic-grid dt { color:var(--muted); font-size:.66rem; }.faro-diagnostic-grid dd { margin:0; overflow-wrap:anywhere; font-size:.68rem; font-weight:750; }.faro-diagnostic-grid > div { display:grid; gap:5px; align-content:start; }.faro-diagnostic-grid p { margin:0 0 5px; overflow-wrap:anywhere; font-size:.67rem; }.faro-health-output { max-height:90px; overflow:auto; padding:7px; border:1px solid #d7e3eb; border-radius:7px; white-space:pre-wrap; background:#fff; font-family:ui-monospace,monospace; }
.faro-live-probe { padding:7px; border:1px solid #d7e3eb; border-radius:7px; background:#fff; }.faro-live-probe i { display:inline-block; width:8px; height:8px; margin-right:4px; border-radius:50%; }.faro-live-probe.is-ok i { background:#2473a8; }.faro-live-probe.is-failed { border-color:#e5aaa5; background:#fff5f3; color:#9d342b; }.faro-live-probe.is-failed i { background:#b74338; }
.faro-network-card { padding:18px; }.faro-network-card dl { display:grid; grid-template-columns:1fr 1fr; gap:0; }.faro-network-card dt,.faro-network-card dd { margin:0; padding:9px 0; border-bottom:1px solid #e7eff6; font-size:.72rem; }.faro-network-card dd { text-align:right; font-weight:800; }
.faro-events { margin-top:16px; padding-bottom:8px; }.faro-events article { padding:9px 17px; display:grid; grid-template-columns:8px 125px 1fr; align-items:start; gap:10px; }.faro-events article > i { width:8px; height:8px; margin-top:4px; border-radius:50%; background:#4c84ae; }.faro-events article.severity-warning > i { background:#e4a92a; }.faro-events article.severity-critical > i,.faro-events article.severity-error > i { background:#d94a3f; }.faro-events time,.faro-events small { color:var(--muted); font-size:.65rem; }.faro-events article div { display:grid; gap:2px; font-size:.72rem; }.faro-install-note { margin-top:18px; }
@media (max-width:1100px) { .faro-chart-grid-expanded { grid-template-columns:repeat(3,minmax(0,1fr)); }.faro-period-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }.faro-storage-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .faro-chart-grid-expanded,.faro-period-kpis,.faro-storage-kpis { grid-template-columns:1fr; }.faro-detail-grid { grid-template-columns:1fr; }.faro-service-history,.faro-storage-table { overflow-x:auto; }.faro-service-history > * { min-width:790px; }.faro-storage-table > * { min-width:700px; } }
@media (max-width:760px) { .faro-service-diagnostics { min-width:790px; }.faro-diagnostic-grid { grid-template-columns:1fr; } }
.root-bucket-panel { margin-bottom:20px; padding:22px; border:1px solid var(--line); border-radius:17px; background:white; }
.root-bucket-panel > header { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.root-bucket-panel h2 { margin:2px 0; }
.root-bucket-panel > header > span { padding:6px 10px; border-radius:999px; color:#124f7f; background:#e7eff6; font-size:.72rem; font-weight:800; }
.root-bucket-usage { margin-top:15px; display:flex; align-items:baseline; gap:10px; }
.root-bucket-usage strong { font-size:1.75rem; }
.root-bucket-usage span,.root-bucket-panel > p,.root-bucket-panel > footer { color:var(--muted); font-size:.74rem; }
.root-bucket-panel.watch { border-color:#d7c276; }
.root-bucket-panel.warning { border-color:#dfaa5e; background:#fffbf2; }
.root-bucket-panel.critical { border-color:#d77d70; background:#fff7f5; }
.root-bucket-unconfigured { margin:15px 0; padding:14px; display:grid; gap:4px; border-radius:10px; color:#6d581f; background:#fff5d8; }
.root-bucket-unconfigured span { font-size:.75rem; }
.root-bucket-breakdown { margin:16px 0 12px; display:grid; grid-template-columns:repeat(4,1fr); gap:9px; }
.root-bucket-breakdown div { padding:12px; display:grid; gap:5px; border:1px solid var(--line); border-radius:10px; background:#f3f7fa; }
.root-bucket-breakdown span { color:var(--muted); font-size:.68rem; font-weight:750; }
.root-bucket-breakdown strong { font-size:.9rem; }
.root-console-grid { display:grid; grid-template-columns:minmax(680px,2fr) minmax(330px,1fr); gap:20px; }
.root-directory,.root-feedback-panel,.root-member-section,.root-audit-section { border:1px solid var(--line); border-radius:17px; background:white; overflow:hidden; }
.root-directory > header,.root-member-section > header { padding:22px 24px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.root-directory h2,.root-feedback-panel h2,.root-member-section h2 { margin:2px 0; }
.root-directory > header > span { min-width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:#e7eff6; font-weight:800; }
.root-directory-list { display:grid; }
.root-company-row { min-height:92px; padding:14px 20px; display:grid; grid-template-columns:44px minmax(210px,1fr) minmax(180px,.7fr) 90px 92px; align-items:center; gap:14px; border-bottom:1px solid #e7eff6; color:inherit; text-decoration:none; }
.root-company-row:hover { background:#f3f7fa; }
.root-company-row.archived { opacity:.65; }
.root-company-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; color:white; background:#0d2740; font-weight:850; }
.root-company-row > span:nth-child(2) { display:grid; gap:4px; }
.root-company-row small { overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }
.root-company-row .root-business-line { color:#124f7f; font-weight:700; }
.root-company-storage { display:grid; gap:5px; color:#275f8c; font-size:.7rem; }
.root-company-storage > span:first-child { display:flex; justify-content:space-between; gap:5px; }
.root-company-storage strong { color:var(--ink); }
.root-storage-meter { height:7px; display:block; overflow:hidden; border-radius:999px; background:#e7eff6; }
.root-storage-meter i { height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,#124f7f,#75c6ff); }
.root-company-storage.over small { color:#a23b30; font-weight:750; }
.root-storage-meter.over i,.root-company-storage.over .root-storage-meter i { background:linear-gradient(90deg,#b94839,#e3814a); }
.root-storage-meter.large { height:12px; margin:10px 0 6px; }
.root-plan { font-size:.78rem; font-weight:750; text-transform:capitalize; }
.root-state { width:max-content; padding:6px 10px; border-radius:999px; font-size:.7rem; font-weight:850; }
.root-state.active { color:#124f7f; background:#e7eff6; }
.root-state.inactive { color:#8b3f35; background:#fbe2dc; }
.root-feedback-panel { padding:22px; }
.root-feedback-panel header { margin-bottom:10px; }
.root-feedback-panel header p { margin:5px 0; color:var(--muted); }
.root-feedback-panel article { padding:14px 0; display:grid; gap:5px; border-top:1px solid var(--line); }
.root-feedback-panel article span,.root-feedback-panel article small { color:var(--muted); font-size:.72rem; }
.root-feedback-panel article p { margin:0; color:#275f8c; font-size:.82rem; }
.root-feedback-link { display:block; color:inherit; text-decoration:none; }
.root-feedback-link:hover { margin:0 -10px; padding:0 10px; background:#f3f7fa; }
.root-feedback-history { margin-top:14px; padding:11px 13px; display:block; border:1px solid var(--line); border-radius:9px; color:var(--forest); text-align:center; text-decoration:none; font-size:.78rem; font-weight:800; }
.root-dialog { width:min(760px,calc(100vw - 30px)); padding:0; border:0; border-radius:18px; box-shadow:0 30px 90px rgb(71 95 114 / 32%); }
.root-dialog::backdrop { background:rgb(71 95 114 / 65%); backdrop-filter:blur(3px); }
.root-dialog > form { padding:26px; }
.root-dialog header { margin-bottom:18px; display:flex; align-items:start; justify-content:space-between; }
.root-dialog header h2 { margin:2px 0; }
.root-dialog header button { width:34px; height:34px; border:0; border-radius:50%; background:#e7eff6; font-size:1.4rem; cursor:pointer; }
.root-dialog.compact { width:min(480px,calc(100vw - 30px)); }
.root-dialog label { display:grid; gap:6px; }
.root-form-note { padding:11px 13px; border-radius:9px; color:#275f8c; background:#f3f7fa; font-size:.78rem; }
.root-client-summary { grid-template-columns:repeat(4,1fr); margin-bottom:18px; }
.root-cost-panel { margin-bottom:18px; padding:22px; border:1px solid var(--line); border-radius:17px; background:white; }
.root-cost-panel > header { margin-bottom:16px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.root-cost-panel header h2 { margin:2px 0; }
.root-cost-panel header p { margin:4px 0; color:var(--muted); }
.root-storage-backend { padding:7px 11px; border-radius:999px; color:#124f7f; background:#e7eff6; font-size:.72rem; font-weight:800; }
.root-cost-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; }
.root-cost-grid article { min-height:116px; padding:16px; display:flex; flex-direction:column; justify-content:center; border:1px solid #e7eff6; border-radius:13px; background:#f3f7fa; }
.root-cost-grid article > span { color:var(--muted); font-size:.72rem; font-weight:750; }
.root-cost-grid article > strong { margin:5px 0; font-size:1.45rem; letter-spacing:-.035em; }
.root-cost-grid article > small,.root-cost-grid article > em { color:#74889a; font-size:.68rem; font-style:normal; }
.root-cost-grid .root-cost-storage { grid-column:span 2; background:#f3f7fa; }
.root-cost-panel > footer { margin-top:13px; color:#617689; font-size:.7rem; }
.root-business-panel { margin-bottom:18px; padding:22px; border:1px solid var(--line); border-radius:17px; background:white; }
.root-business-panel > header { margin-bottom:16px; }
.root-business-panel header h2 { margin:2px 0; }
.root-business-panel header p { margin:4px 0; color:var(--muted); }
.root-business-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.root-business-grid article { min-height:105px; padding:16px; display:flex; flex-direction:column; justify-content:center; border:1px solid #e7eff6; border-radius:13px; background:#f3f7fa; }
.root-business-grid article span { color:var(--muted); font-size:.72rem; font-weight:750; }
.root-business-grid article strong { margin:5px 0; font-size:1.35rem; }
.root-business-grid article small { color:#74889a; font-size:.68rem; }
.root-inactivity-history { margin-top:13px; padding:14px; display:grid; gap:6px; border-radius:11px; background:#fff7e8; font-size:.74rem; }
.root-inactivity-history span { color:#715c31; }
.root-feedback-history-list { overflow:hidden; border:1px solid var(--line); border-radius:17px; background:white; }
.root-feedback-history-list > a { display:block; color:inherit; text-decoration:none; }
.root-feedback-history-list article { padding:18px 22px; display:grid; grid-template-columns:1fr 220px; gap:22px; border-bottom:1px solid var(--line); }
.root-feedback-history-list a:hover article { background:#f3f7fa; }
.root-feedback-history-list article > div { display:grid; gap:5px; }
.root-feedback-history-list article span,.root-feedback-history-list article small { color:var(--muted); font-size:.72rem; }
.root-feedback-history-list article p { margin:0; color:#275f8c; }
.root-feedback-history-list article aside { display:grid; align-content:center; gap:5px; text-align:right; }
.root-feedback-detail { padding:26px; border:1px solid var(--line); border-radius:18px; background:white; }
.root-feedback-detail > header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.root-feedback-detail h1 { margin:5px 0; }
.root-feedback-detail header p { margin:4px 0; color:var(--muted); }
.root-feedback-message { margin:24px 0; padding:22px; border-radius:13px; background:#f3f7fa; font-size:1.05rem; line-height:1.65; }
.root-feedback-detail dl { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.root-feedback-detail dl div { padding:13px; border:1px solid var(--line); border-radius:10px; }
.root-feedback-detail dt { color:var(--muted); font-size:.7rem; font-weight:800; }
.root-feedback-detail dd { margin:5px 0 0; overflow-wrap:anywhere; }
.root-feedback-status { margin-top:20px; display:flex; align-items:flex-end; gap:10px; }
.root-feedback-status label { display:grid; gap:5px; color:var(--muted); font-size:.75rem; font-weight:750; }
.root-feedback-status select { min-width:190px; padding:10px; border:1px solid var(--line); border-radius:9px; background:white; }
.root-feedback-replies { margin-top:24px; padding-top:22px; display:grid; gap:14px; border-top:1px solid var(--line); }
.root-feedback-replies h2 { margin:0; }
.root-feedback-replies article { padding:15px; display:grid; gap:8px; border:1px solid var(--line); border-radius:11px; background:#f3f7fa; }
.root-feedback-replies article p,.root-feedback-replies article small { margin:0; }
.root-feedback-replies article small { color:var(--muted); }
.root-feedback-replies .form-card { margin:0; }
.root-header-nav { margin-left:auto; display:flex; align-items:center; gap:8px; }
.root-header-nav a { padding:9px 12px; border-radius:8px; color:#d1dee8; text-decoration:none; font-size:.78rem; font-weight:800; }
.root-header-nav a:hover { color:white; background:#0d2740; }
.root-deleted-list { overflow:hidden; border:1px solid var(--line); border-radius:17px; background:white; }
.root-deleted-list > header,.root-deleted-list > a { padding:15px 20px; display:grid; grid-template-columns:130px minmax(240px,1.4fr) 1fr 1fr 130px; align-items:center; gap:18px; }
.root-deleted-list > header { color:var(--muted); background:#f3f7fa; font-size:.7rem; font-weight:850; text-transform:uppercase; }
.root-deleted-list > a { border-top:1px solid var(--line); color:inherit; text-decoration:none; }
.root-deleted-list > a:hover { background:#f3f7fa; }
.root-deleted-list > a span { display:grid; gap:3px; }
.root-deleted-list small { color:var(--muted); }
.root-deleted-summary { margin-bottom:18px; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.root-deleted-summary article { padding:18px; display:grid; gap:6px; border:1px solid var(--line); border-radius:13px; background:white; }
.root-deleted-summary span { color:var(--muted); font-size:.72rem; font-weight:800; }
.root-deleted-grid { margin-bottom:18px; display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.root-deleted-card { padding:22px; border:1px solid var(--line); border-radius:16px; background:white; }
.root-deleted-card h2 { margin:3px 0 9px; }
.root-deleted-card > p { color:var(--muted); line-height:1.5; }
.root-deleted-card form { display:grid; gap:12px; }
.root-deleted-card form label:not(.root-toggle) { display:grid; gap:6px; color:#275f8c; font-weight:800; }
.root-verification { margin-top:14px; padding:13px 15px; display:grid; gap:4px; border-radius:10px; }
.root-verification.valid { color:#124f7f; background:#e7eff6; }
.root-verification.invalid { color:#b42318; background:#feeceb; }
.root-retention-manifest { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px; }
.root-retention-manifest span { padding:10px 12px; display:flex; justify-content:space-between; gap:10px; border-radius:8px; background:#f3f7fa; font-size:.75rem; }
.root-settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.root-settings-card { padding:22px; display:grid; gap:13px; border:1px solid var(--line); border-radius:16px; background:white; }
.root-settings-card h2 { margin-top:0; }
.root-settings-card label { display:grid; gap:6px; color:#275f8c; font-size:.78rem; font-weight:750; }
.root-settings-card .checkbox-label { display:flex; }
.root-member-section { margin-top:18px; overflow:visible; }
.root-member-section > header p { margin:4px 0; color:var(--muted); }
.root-member-head { padding:10px 18px; display:grid; grid-template-columns:1.55fr .7fr .45fr 1.2fr 100px; gap:12px; color:#617689; background:#f3f7fa; font-size:.7rem; font-weight:850; text-transform:uppercase; }
.root-member-row { position:relative; padding:16px 18px; border-top:1px solid var(--line); }
.root-member-form { display:grid; grid-template-columns:1.55fr .7fr .45fr 1.2fr 100px; align-items:center; gap:12px; }
.root-member-person { min-width:0; display:grid; gap:6px; }
.root-member-person > small { color:var(--muted); }
.root-member-form > div:first-child { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.root-member-form input,.root-member-form select { min-width:0; padding:8px; font-size:.76rem; }
.root-member-form fieldset { max-height:90px; padding:5px 8px; overflow:auto; border:1px solid var(--line); border-radius:8px; }
.root-member-form fieldset label { display:grid; grid-template-columns:18px 58px 1fr; align-items:center; gap:4px; font-size:.68rem; }
.root-member-form fieldset input { width:auto; }
.root-member-form fieldset small { overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }
.root-access-tags { display:flex; flex-wrap:wrap; gap:4px; }
.root-access-tags span { padding:3px 6px; border-radius:999px; color:#275f8c; background:#e7eff6; font-size:.62rem; }
.root-access-tags .good { color:#124f7f; background:#e7eff6; }
.root-access-tags .warn { color:#805e0d; background:#fff0bf; }
.root-access-tags .bad { color:#963d31; background:#fbe1dc; }
.root-toggle { display:grid; justify-items:start; gap:3px; font-size:.7rem; }
.root-toggle input { width:auto; }
.root-account-actions { margin-top:9px; margin-left:auto; width:max-content; position:relative; }
.root-account-actions[open] { z-index:30; }
.root-account-actions summary { cursor:pointer; color:#124f7f; font-size:.76rem; font-weight:750; }
.root-account-actions > div { position:absolute; z-index:30; top:calc(100% + 7px); right:0; width:270px; padding:7px; display:grid; border:1px solid var(--line); border-radius:10px; background:white; box-shadow:0 14px 35px rgb(18 79 127 / 22%); }
.root-account-actions form { margin:0; }
.root-account-actions button { width:100%; padding:9px; border:0; border-radius:7px; background:transparent; text-align:left; cursor:pointer; }
.root-account-actions button:hover { background:#f3f7fa; }
.root-account-actions .danger { color:#a3362b; }
.root-audit-section { margin-top:18px; padding:22px; }
.root-audit-section > article { padding:11px 0; display:grid; grid-template-columns:1fr 1fr auto; gap:12px; border-top:1px solid var(--line); font-size:.78rem; }
.root-audit-section small { color:var(--muted); }
.root-danger-zone { margin-top:18px; padding:24px; display:flex; align-items:center; justify-content:space-between; gap:40px; border:1px solid #e4b4ab; border-radius:17px; background:#fff7f5; }
.root-danger-zone p { margin:5px 0; color:#765b55; }
.root-danger-zone form { min-width:330px; display:grid; gap:9px; }
.root-danger-zone label { display:grid; gap:6px; font-size:.75rem; }
.button.danger { border:1px solid #d9b4ae; color:#884036; background:#fff8f6; }
.button.danger:hover { border-color:#c99088; color:#713128; background:#f8e9e6; }
.draft-record-actions { margin:0 0 18px; padding:13px 16px; display:flex; align-items:center; justify-content:space-between; gap:18px; border:1px solid #bed3e3; border-left:4px solid #1684ba; border-radius:12px; background:#f4f9fc; box-shadow:0 6px 18px rgb(18 79 127 / 6%); }
.draft-record-actions > div:first-child { min-width:0; display:flex; align-items:center; gap:10px; }
.draft-record-actions strong { color:#0d2740; }
.draft-record-actions small { color:#617689; line-height:1.35; }
.draft-record-actions__buttons { flex:0 0 auto; display:flex; align-items:center; gap:8px; }
.draft-record-actions__buttons form { margin:0; }
.draft-record-actions__buttons .button { min-height:38px; padding:8px 13px; border:1px solid transparent; cursor:pointer; font-size:12px; }
.draft-record-form { max-width:1180px; }
.draft-record-form .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.draft-record-form label.full { grid-column:1 / -1; }
.draft-record-form label > span { display:block; margin-bottom:6px; color:#526b80; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
@media (max-width:760px) { .draft-record-actions,.draft-record-actions > div:first-child { align-items:flex-start; flex-direction:column; }.draft-record-actions__buttons { width:100%; }.draft-record-actions__buttons > *, .draft-record-actions__buttons form, .draft-record-actions__buttons .button { flex:1; justify-content:center; }.draft-record-form .form-grid { grid-template-columns:1fr; }.draft-record-form label.full { grid-column:auto; } }
.root-empty { padding:48px 24px; color:var(--muted); text-align:center; }
.root-log-heading { align-items:center; }
.root-log-heading form { margin:0; }
.root-log-metrics { grid-template-columns:repeat(5,minmax(145px,1fr)); }
.root-chain-status.valid { color:#2878b5; }
.root-chain-status.invalid { color:#c93c32; }
.root-monitor-panel,.root-log-console-section,.root-log-retention-note { margin-top:18px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.root-monitor-panel { padding:18px; }
.root-monitor-panel > header,.root-log-console-section > header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.root-monitor-panel h2,.root-log-console-section h2 { margin:2px 0; }
.root-monitor-panel > header > small,.root-log-console-section > header > p { max-width:570px; margin:4px 0 0; color:var(--muted); font-size:.74rem; text-align:right; }
.root-monitor-grid { margin-top:14px; display:grid; grid-template-columns:repeat(5,minmax(150px,1fr)); gap:8px; }
.root-monitor-grid article { min-width:0; padding:12px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; border:1px solid #e7eff6; border-radius:8px; background:#f3f7fa; }
.root-monitor-grid article > div { min-width:0; display:grid; gap:2px; }
.root-monitor-grid article strong,.root-monitor-grid article small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.root-monitor-grid article small { color:var(--muted); font-size:.64rem; }
.root-monitor-grid article b { font-size:.73rem; }
.root-monitor-dot { width:9px; height:9px; border-radius:50%; background:#74889a; box-shadow:0 0 0 3px rgb(116 136 154 / 12%); }
.root-monitor-grid article.healthy .root-monitor-dot { background:#275f8c; box-shadow:0 0 0 3px rgb(99 198 213 / 13%); }
.root-monitor-grid article.warning .root-monitor-dot,.root-monitor-grid article.degraded .root-monitor-dot { background:#e2a51a; box-shadow:0 0 0 3px rgb(226 165 26 / 14%); }
.root-monitor-grid article.critical .root-monitor-dot,.root-monitor-grid article.unavailable .root-monitor-dot { background:#df493e; box-shadow:0 0 0 3px rgb(223 73 62 / 14%); }
.root-log-console-section { padding:18px; }
.root-log-filters { margin:14px 0 12px; display:grid; grid-template-columns:minmax(220px,1fr) 190px 190px auto auto; gap:8px; }
.root-log-filters input,.root-log-filters select { min-width:0; }
.root-log-copy-bar { margin:0 0 10px; display:flex; align-items:center; justify-content:space-between; gap:16px; color:var(--muted); font-size:.7rem; }
.root-log-copy-bar p { margin:0; }
.root-log-copy-bar > div { min-height:30px; display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.root-log-copy-bar [role="status"] { color:#275f8c; font-weight:750; }
.root-terminal { max-height:64vh; overflow:auto; overscroll-behavior:contain; border:1px solid #0d2740; border-radius:8px; color:#d1dee8; background:#071c33; box-shadow:inset 0 1px 20px rgb(0 0 0 / 44%); font:500 .72rem/1.5 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace; scrollbar-color:#475f72 #071c33; }
.root-terminal-line { width:max-content; min-width:100%; padding:7px 10px; display:flex; align-items:center; gap:9px; box-sizing:border-box; border-bottom:1px solid #16344f; }
.root-terminal-line:last-child { border-bottom:0; }
.root-terminal-line:hover { background:#0b243d; }
.root-terminal-line code { color:#d1dee8; font:inherit; white-space:nowrap; }
.root-terminal-copy { position:sticky; left:8px; flex:0 0 auto; padding:3px 7px; border:1px solid #47647d; border-radius:5px; color:#bcd0df; background:#0d2b47; font:800 .6rem/1.25 var(--font-sans); cursor:pointer; }
.root-terminal-copy:hover,.root-terminal-copy:focus-visible { border-color:#89b1ce; color:#fff; background:#17466d; }
.root-terminal-line.severity-warning code { color:#f3dc93; }
.root-terminal-line.severity-error code { color:#ffb2a3; }
.root-terminal-line.severity-critical code { color:#ff7a7a; font-weight:800; }
.root-terminal-line.severity-security code { color:#efa2ff; font-weight:800; }
.root-terminal-empty { padding:40px 20px; color:#74889a; text-align:center; }
.root-log-more { margin-top:10px; display:block; padding:9px; border:1px solid #d1dee8; border-radius:7px; color:#124f7f; text-align:center; text-decoration:none; font-size:.75rem; font-weight:800; }
.root-log-retention-note { padding:14px 17px; display:grid; grid-template-columns:auto 1fr; align-items:start; gap:15px; color:#275f8c; font-size:.72rem; }
.root-log-retention-note p { margin:0; line-height:1.5; }
@media(max-width:1050px){
  .root-metric-grid { grid-template-columns:repeat(3,1fr); }
  .root-console-grid,.root-settings-grid { grid-template-columns:1fr; }
  .root-cost-grid { grid-template-columns:repeat(2,1fr); }
  .root-business-grid { grid-template-columns:repeat(2,1fr); }
  .root-bucket-breakdown { grid-template-columns:repeat(2,1fr); }
  .root-member-head { display:none; }
  .root-member-form { grid-template-columns:1fr 1fr; }
  .root-member-form fieldset { grid-column:1/-1; }
  .root-log-metrics { grid-template-columns:repeat(3,1fr); }
  .root-monitor-grid { grid-template-columns:repeat(2,1fr); }
  .root-log-filters { grid-template-columns:1fr 1fr; }
  .faro-kpis { grid-template-columns:repeat(3,1fr); }.faro-chart-grid { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:680px){
  .root-access-body .page-shell { padding:20px 12px 50px; }
  .root-console-heading,.root-client-heading,.root-danger-zone { align-items:stretch; flex-direction:column; }
  .root-metric-grid,.root-client-summary { grid-template-columns:1fr 1fr; }
  .root-company-row { grid-template-columns:42px 1fr; }
  .root-company-row .root-company-storage,.root-company-row .root-plan,.root-company-row .root-state { grid-column:2; }
  .root-cost-grid { grid-template-columns:1fr; }
  .root-cost-grid .root-cost-storage { grid-column:auto; }
  .root-business-grid,.root-feedback-detail dl { grid-template-columns:1fr; }
  .root-bucket-breakdown { grid-template-columns:1fr; }
  .root-feedback-history-list article { grid-template-columns:1fr; }
  .root-feedback-history-list article aside { text-align:left; }
  .root-member-form { grid-template-columns:1fr; }
  .root-member-form fieldset { grid-column:auto; }
  .root-danger-zone form { min-width:0; }
  .root-maintenance-panel > header,.root-maintenance-actions { align-items:stretch; flex-direction:column; }
  .root-maintenance-fields { grid-template-columns:1fr; }
  .root-maintenance-fields .span-2 { grid-column:auto; }
  .root-maintenance-preview small { white-space:normal; }
  .maintenance-notice { position:relative; top:auto; width:calc(100% - 20px); grid-template-columns:auto 1fr; }
  .maintenance-notice button { grid-column:2; width:max-content; }
  .root-product-announcement-editor { grid-template-columns:1fr; }
  .root-product-announcement-fields .button { width:100%; }
  .product-announcement-dialog { width:calc(100% - 18px); max-height:calc(100vh - 18px); border-radius:14px; }
  .product-announcement-dialog footer { padding:15px; align-items:stretch; flex-direction:column; gap:12px; }
  .product-announcement-dialog footer .button { width:100%; }
  .product-announcement-dialog footer h2 { font-size:1.1rem; }
  .root-log-heading,.root-monitor-panel > header,.root-log-console-section > header { align-items:stretch; flex-direction:column; }
  .root-log-metrics,.root-monitor-grid,.root-log-filters { grid-template-columns:1fr; }
  .root-log-copy-bar { align-items:stretch; flex-direction:column; gap:8px; }
  .root-log-copy-bar > div { justify-content:space-between; }
  .root-monitor-panel > header > small,.root-log-console-section > header > p { text-align:left; }
  .root-log-retention-note { grid-template-columns:1fr; }
  .faro-kpis,.faro-chart-grid,.faro-detail-grid { grid-template-columns:1fr; }.faro-kpis article { border-right:0; border-bottom:1px solid #e7eff6; }.faro-service-head { display:none; }.faro-service-row { grid-template-columns:1fr 1fr; }.faro-events article { grid-template-columns:8px 1fr; }.faro-events article time { grid-column:2; }
}
.current-document { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.current-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.current-heading h2 { margin-bottom: 0; }
.pdf-frame { width: 100%; height: min(72vh, 900px); border: 1px solid var(--line); border-radius: 10px; background: #526b80; }
.revision-list { display: grid; gap: 12px; }
.revision-list article { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.revision-list p { margin: 5px 0; }
.revision-actions { display: flex; align-items: center; gap: 12px; }
.revision-actions a { color: var(--forest-2); font-weight: 750; }
.button.small { min-height:32px; padding:6px 10px; font-size:13px; }
.empty-state { padding: 60px 24px; text-align: center; background: white; border: 1px dashed #b7cad9; border-radius: 16px; }
.metrics.compact { margin-bottom: 24px; }
.button.compact { min-height:auto; padding:6px 10px; font-size:.75rem; line-height:1.1; }
.status.record-meta-control,
.priority.record-meta-control,
.button.record-meta-control { min-height:29px; padding:5px 11px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; font-family:inherit; font-size:12px; font-weight:800; line-height:1; letter-spacing:normal; white-space:nowrap; }
.submittal-table .document-status-cell { display:grid; grid-template-columns:144px auto; align-items:center; gap:8px; white-space:normal; }
.submittal-table .submittal-status.record-meta-control { box-sizing:border-box; width:144px; min-width:144px; min-height:40px; padding:5px 10px; justify-content:center; text-align:center; line-height:1.15; white-space:normal; overflow-wrap:anywhere; }
.submittal-table .record-print-button { justify-self:start; }
.record-print-button { width:max-content; margin:0; }
.company-logo-control { display:flex; align-items:center; gap:20px; margin-top:8px; padding:16px; border:1px solid #d1dee8; border-radius:14px; background:#f3f7fa; }
.company-logo-control > span:last-child { display:grid; gap:7px; flex:1; }
.company-logo-preview,.company-logo-placeholder { width:150px; height:76px; border:1px solid #d1dee8; border-radius:10px; background:#fff; object-fit:contain; }
.company-logo-placeholder { display:grid; place-items:center; color:#74889a; font-weight:850; letter-spacing:.12em; }
.submittal-list { display: grid; gap: 12px; }
.submittal-row { display: grid; grid-template-columns: minmax(320px, 2fr) 1fr 1fr auto; align-items: center; gap: 24px; padding: 20px; color: inherit; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 15px; }
.submittal-row:hover { border-color: var(--forest-2); }
.submittal-row h2, .submittal-row p { margin: 3px 0; }
.submittal-row > div { display: flex; flex-direction: column; gap: 4px; }
.daily-report-row,
.daily-report-contribution { position: relative; overflow: hidden; }
.daily-report-row::before,
.daily-report-contribution::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: transparent; }
.daily-report-row.attention-attention,
.daily-report-contribution.attention-attention { border-color: #e2c45c; background: linear-gradient(90deg, #fff6ca 0, #fffdf2 18%, #fff 42%); }
.daily-report-row.attention-critical,
.daily-report-contribution.attention-critical { border-color: #d8756d; background: linear-gradient(90deg, #ffe0dc 0, #fff6f4 18%, #fff 42%); }
.daily-report-row.attention-attention::before,
.daily-report-contribution.attention-attention::before { background: #d4a400; }
.daily-report-row.attention-critical::before,
.daily-report-contribution.attention-critical::before { background: #b9362d; }
.daily-report-row.attention-attention:hover { border-color: #bd9200; }
.daily-report-row.attention-critical:hover { border-color: #a52f27; }
.daily-report-attention-badge { display: inline-flex; width: fit-content; margin-top: 5px; padding: 4px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 850; }
.daily-report-attention-badge.attention { color: #674b00; background: #ffe79a; }
.daily-report-attention-badge.critical { color: #8a211a; background: #ffd0cb; }
.daily-report-metric.attention { border-color: #e2c45c; background: #fff9df; }
.daily-report-metric.critical { border-color: #d8756d; background: #fff0ee; }
.daily-report-metric.attention strong { color: #765600; }
.daily-report-metric.critical strong { color: #992a22; }
.priority { display: inline-flex; width: fit-content; padding: 4px 9px; border-radius: 999px; background: #e7eff6; font-size: 11px; font-weight: 850; }
.priority.high { background: #fff0c7; color: #795500; }
.priority.urgent { background: #ffe0dc; color: #942d21; }
.overdue { color: #b23828; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.detail-grid article { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.detail-grid small, .muted { color: var(--muted); }
.detail-grid a { color: var(--forest-2); font-weight: 750; }
.review-panel { max-width: 900px; margin: 24px 0; padding: 28px; background: #f3f7fa; border: 1px solid #d1dee8; border-radius: 18px; }
.timeline { border-left: 2px solid #d1dee8; margin-left: 10px; padding-left: 26px; }
.timeline article { position: relative; padding: 0 0 24px; }
.timeline article p { margin: 6px 0; }
.timeline-dot { position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 3px solid var(--forest); }
.timeline-event-link { display: block; width: fit-content; max-width: 100%; color: inherit; text-decoration: none; border-radius: 8px; }
.timeline-event-link strong { color: var(--forest-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.timeline-event-link:hover strong, .timeline-event-link:focus-visible strong { text-decoration-color: currentColor; }
.timeline-event-link:focus-visible { outline: 3px solid rgba(117,198,255, .55); outline-offset: 4px; }
.change-set { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 5px 18px; max-width: 900px; margin: 12px 0 0; }
.change-set dt { color: var(--muted); font-weight: 750; }
.change-set dd { margin: 0; overflow-wrap: anywhere; }
.question-panel { margin: 18px 0; padding: 28px; background: #fff; border-left: 5px solid var(--lime); border-radius: 4px 16px 16px 4px; box-shadow: 0 8px 20px rgba(18,79,127, .05); }
.document-picker { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.document-picker legend { color: var(--muted); font-size: 13px; font-weight: 800; }
.document-picker label { display: flex; flex-direction: row; align-items: start; gap: 10px; padding: 8px 0; }
.document-picker input { width: auto; }
.recipient-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.recipient-grid article { display: flex; flex-direction: column; align-items: start; gap: 7px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.recipient-grid a { color: var(--forest-2); }
.gantt-icon { background: var(--forest-2); }
.gantt-shell { min-width: 900px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; }
.gantt-header, .gantt-row { display: grid; grid-template-columns: 360px 1fr 86px; }
.gantt-header { background: var(--forest); color: white; font-weight: 800; }
.gantt-header > div, .gantt-task-info, .gantt-track { padding: 12px; }
.gantt-header > div:nth-child(2) { display: flex; justify-content: space-between; }
.gantt-row { min-height: 58px; border-bottom: 1px solid var(--line); }
.gantt-task-info { display: flex; flex-direction: column; gap: 5px; }
.gantt-task-info small { color: var(--muted); }
.gantt-track { position: relative; background: repeating-linear-gradient(90deg, #f3f7fa 0, #f3f7fa 9.8%, #e7eff6 10%); }
.gantt-bar { position: absolute; top: 17px; height: 24px; min-width: 8px; overflow: hidden; border-radius: 5px; background: #6f93ae; }
.gantt-bar > span { display: block; height: 100%; background: var(--forest-2); }
.gantt-row.critical .gantt-bar { background: #f0aaa1; }
.gantt-row.critical .gantt-bar > span { background: #c43d2e; }
.gantt-bar.milestone { width: 18px !important; transform: rotate(45deg); border-radius: 2px; }
.gantt-toolbar { margin-top: 18px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px 14px 0 0; background: white; }
.gantt-toolbar span:first-of-type { flex: 1; color: var(--muted); font-size: 12px; }
.gantt-toolbar button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: white; cursor: pointer; }
.gantt-scroll { max-height: min(68vh, 720px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; background: white; scrollbar-gutter: stable; }
.gantt-board { --timeline-width: 620px; position: relative; width: max-content; min-width: 100%; transform-origin: left top; }
.gantt-board .gantt-header, .gantt-board .gantt-row { width: max-content; min-width: 100%; grid-template-columns: 280px 105px 105px var(--timeline-width) 120px 78px; }
.gantt-board .gantt-header { position: sticky; z-index: 12; top: 0; }
.gantt-board .gantt-header > div { padding: 8px 10px; }
.gantt-board .gantt-row { min-height: 42px; }
.gantt-board .gantt-task-info, .gantt-board .gantt-track { padding: 6px 10px; }
.gantt-board .gantt-task-info { gap: 1px; min-width: 0; }
.gantt-board .gantt-task-info strong, .gantt-board .gantt-task-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-board .gantt-task-info strong { font-size: 12px; }
.gantt-board .gantt-task-info small { font-size: 10px; }
.gantt-sticky { position: sticky; z-index: 8; background: white; }
.gantt-header .gantt-sticky { z-index: 14; background: var(--forest); }
.gantt-sticky.task-column { left: 0; }
.gantt-sticky.start-column { left: 280px; }
.gantt-sticky.finish-column { left: 385px; box-shadow: 5px 0 8px rgba(18,79,127,.05); }
.gantt-date-cell { display: flex; align-items: center; padding: 6px 8px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.gantt-calendar-heading { display: flex; justify-content: space-between; background: repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0,rgba(255,255,255,.05) 9.8%,rgba(255,255,255,.2) 10%); }
.gantt-links { position: absolute; z-index: 3; inset: 0; overflow: visible; pointer-events: none; }
.gantt-links g path { fill: none; stroke: #4c84ae; stroke-width: 1.8; opacity: .8; }
.gantt-links .link-preview { fill: none; stroke: #4c84ae; stroke-width: 2.5; stroke-dasharray: 6 4; }
.gantt-board .gantt-row { position: relative; }
.gantt-board .gantt-track { z-index: 1; user-select: none; }
.gantt-board .gantt-bar { z-index: 4; top: 10px; height: 22px; overflow: visible; cursor: grab; touch-action: none; box-shadow: 0 2px 5px rgba(7,28,51,.2); }
.gantt-board .gantt-row.automatic .gantt-bar { cursor: not-allowed; }
.gantt-board .gantt-row.automatic .gantt-resize { display: none; }
.gantt-board .gantt-bar:active { cursor: grabbing; }
.gantt-progress { overflow: hidden; border-radius: inherit; pointer-events: none; }
.gantt-resize { position: absolute; z-index: 6; top: 0; bottom: 0; width: 9px; padding: 0; border: 0; background: transparent; cursor: ew-resize; }
.gantt-resize.start { left: -3px; }
.gantt-resize.finish { right: -3px; }
.gantt-resize:hover { background: rgba(255,255,255,.55); }
.dependency-port { position: absolute; z-index: 7; top: 50%; width: 12px; height: 12px; padding: 0; border: 2px solid white; border-radius: 50%; transform: translateY(-50%); cursor: crosshair; box-shadow: 0 0 0 1px #275f8c; }
.dependency-in { left: -14px; background: white; }
.dependency-out { right: -14px; background: #275f8c; }
.gantt-bar.milestone .dependency-port { transform: translateY(-50%) rotate(-45deg); }
.gantt-board .progress-form, .gantt-board .mode-form { z-index: 5; background: white; }
.mode-form { display: flex; align-items: center; padding: 5px; }
.mode-form select { min-width: 0; padding: 5px 4px; font-size: 11px; }
.gantt-board .progress-form { padding: 5px 3px; }
.gantt-board .progress-form input { width: 42px; padding: 4px; font-size: 11px; }
.gantt-board .progress-form input[type="submit"] { width: 24px; }
.page-shell:has(.gantt-workspace) { max-width: none; padding: 18px 24px 28px; }
.page-shell:has(.drawing-viewer-page) { max-width:none; padding:0; }
.gantt-workspace { overflow: hidden; border: 1px solid #d1dee8; border-radius: 8px; background: white; box-shadow: 0 6px 24px rgba(18,79,127,.07); }
.gantt-workspace-header { min-height: 54px; display: grid; grid-template-columns: minmax(220px,1fr) auto minmax(220px,1fr); align-items: end; gap: 14px; padding: 6px 12px 0; border-bottom: 1px solid #e7eff6; }
.gantt-workspace-header h1 { margin: 1px 0 6px; font-size: 17px; }
.gantt-back { color: var(--muted); font-size: 11px; text-decoration: none; }
.gantt-workspace-header nav { height: 34px; display: flex; gap: 18px; align-items: end; color: #617689; font-size: 11px; }
.gantt-workspace-header nav > * { height: 34px; display: flex; align-items: center; border-bottom: 2px solid transparent; }
.gantt-workspace-header nav strong { color: var(--forest-2); border-color: var(--forest-2); }
.schedule-cutoff-header { padding:18px 20px; border-bottom:1px solid #d1dee8; background:linear-gradient(135deg,#f7fbff 0%,#eef7ff 100%); }
.schedule-cutoff-heading { display:grid; grid-template-columns:minmax(280px,1fr) minmax(480px,1.35fr); gap:24px; align-items:center; }
.schedule-cutoff-heading h2,.schedule-cutoff-details h2 { margin:2px 0 5px; color:#0d2740; font-size:22px; }
.schedule-cutoff-heading p:not(.eyebrow),.schedule-cutoff-details-heading p:not(.eyebrow) { margin:0; color:#526b80; }
.schedule-cutoff-steps { display:grid; grid-template-columns:repeat(4,minmax(110px,1fr)); gap:8px; margin:0; padding:0; list-style:none; }
.schedule-cutoff-steps li { display:flex; align-items:center; gap:7px; min-height:38px; padding:7px 9px; border:1px solid #c6d9e8; border-radius:9px; background:white; color:#275f8c; font-size:11px; font-weight:800; }
.schedule-cutoff-steps span { display:grid; place-items:center; flex:0 0 22px; height:22px; border-radius:50%; background:#17689f; color:white; }
.schedule-cutoff-form { display:grid; grid-template-columns:minmax(180px,240px) minmax(280px,1fr) auto; gap:12px; align-items:end; margin-top:16px; }
.schedule-cutoff-form label { display:grid; gap:6px; color:#275f8c; font-size:12px; font-weight:800; }
.schedule-cutoff-form input { width:100%; min-height:40px; padding:8px 10px; border:1px solid #9fbcd2; border-radius:8px; background:white; color:#0d2740; font:inherit; }
.schedule-cutoff-status { grid-column:1/-1; min-height:16px; color:#17689f; font-size:11px; font-weight:750; }
.schedule-cutoff-details { padding:22px 20px; border-top:1px solid #d1dee8; background:#f8fbfe; }
.schedule-cutoff-details-heading { margin-bottom:14px; }
.schedule-cutoff-details .table-wrap { background:white; }
.schedule-cutoff-details table input { min-width:130px; }
.schedule-cutoff-actions { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:16px 0; }
.schedule-cutoff-actions p { margin:0; color:#526b80; font-size:12px; }
.schedule-cutoff-history { padding-top:16px; border-top:1px solid #d1dee8; }
.schedule-cutoff-history h3 { margin:0 0 10px; color:#0d2740; }
.gantt-header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.gantt-header-actions a { padding: 7px 9px; color: var(--forest-2); font-size: 11px; font-weight: 750; text-decoration: none; }
.gantt-commandbar { min-height: 39px; display: flex; align-items: center; gap: 7px; padding: 4px 9px; border-bottom: 1px solid #e7eff6; background: #f3f7fa; }
.gantt-commandbar button { height: 30px; padding: 0 10px; border: 1px solid #d1dee8; border-radius: 5px; background: white; color: #124f7f; cursor: pointer; font: inherit; font-size: 11px; }
.gantt-commandbar button:first-child, .gantt-commandbar button.active { background: var(--forest-2); color: white; }
.gantt-command-group { display:flex; align-items:center; gap:5px; }
.gantt-command-right { margin-left:auto; }
.gantt-command-right > span { min-width:38px; color:#617689; font-size:9px; text-align:center; }
.gantt-command-summary { color: #275f8c; font-size: 10px; white-space:nowrap; }
.gantt-search { width:min(230px,19vw); height:30px; display:flex; align-items:center; gap:4px; padding:0 8px; border:1px solid #d1dee8; border-radius:5px; background:white; color:#74889a; font-size:13px; }
.gantt-search:focus-within { border-color:#6c99dc; box-shadow:0 0 0 2px rgba(79,135,220,.14); }
.gantt-search input { width:100%; min-width:0; padding:0; border:0; outline:0; background:transparent; font-size:10px; }
.gantt-hide-completed { display:flex; align-items:center; gap:5px; color:#617689; font-size:10px; white-space:nowrap; }
.gantt-hide-completed input { margin:0; }
.gantt-help { flex: 1; text-align: right; color: #74889a; font-size: 10px; }
.gantt-filter-panel { position:absolute; z-index:45; top:121px; left:178px; width:310px; max-height:min(540px,70vh); overflow:auto; padding:12px; border:1px solid #d1dee8; border-radius:8px; background:white; box-shadow:0 16px 42px rgba(7,28,51,.2); }
.gantt-filter-panel[hidden] { display:none; }
.gantt-filter-panel > div:first-child,.gantt-quick-heading { display:flex; justify-content:space-between; align-items:center; padding:3px 2px 8px; color:#275f8c; font-size:10px; }
.gantt-filter-panel > div > button,.gantt-quick-heading button { padding:0; border:0; background:transparent; color:#3776c4; font-size:9px; cursor:pointer; }
.gantt-filter-options { display:grid; gap:2px; padding-bottom:10px; border-bottom:1px solid #e7eff6; }
.gantt-filter-options label { min-height:34px; display:flex; align-items:center; gap:7px; padding:3px 5px; border-radius:5px; font-size:10px; cursor:pointer; }
.gantt-filter-options label:hover { background:#eef5fb; }
.gantt-filter-options input { margin:0; }
.gantt-filter-options .person-identity { font-size:10px; }
.gantt-filter-options .person-avatar { width:24px; height:24px; flex-basis:24px; }
.gantt-label-options { padding-top:3px; border-bottom:0; }
.gantt-label-dot { width:20px; height:20px; display:grid; place-items:center; border-radius:50%; background:#65c9d7; }
.gantt-workspace .gantt-scroll { height: clamp(480px, calc(100vh - 180px), 880px); max-height: none; min-height: 480px; border: 0; border-radius: 0; }
.gantt-workspace .gantt-board .gantt-header { min-height: 39px; background: #f3f7fa; color: #275f8c; border-bottom: 1px solid #d1dee8; font-size: 9px; }
.gantt-workspace .gantt-header .gantt-sticky { background: #f3f7fa; color: #275f8c; }
.gantt-workspace .gantt-board { --col-id:52px; --col-task:240px; --col-start:82px; --col-finish:82px; --col-mode:68px; --col-progress:48px; --col-status:34px; --col-dependencies:115px; }
.gantt-workspace .gantt-board .gantt-header, .gantt-workspace .gantt-board .gantt-row, .gantt-workspace .gantt-board .gantt-inline-row { grid-template-columns: var(--col-id) var(--col-task) var(--col-start) var(--col-finish) var(--col-mode) var(--col-progress) var(--col-status) var(--col-dependencies) var(--timeline-width); }
.gantt-workspace .gantt-board.compact-columns .gantt-header,.gantt-workspace .gantt-board.compact-columns .gantt-row,.gantt-workspace .gantt-board.compact-columns .gantt-inline-row { grid-template-columns:var(--col-id) var(--col-task) var(--col-progress) var(--timeline-width); }
.gantt-workspace .gantt-board.compact-columns :is(.start-column,.finish-column,.mode-column,.status-column,.dependencies-column) { display:none; }
.gantt-workspace .gantt-board.compact-columns .progress-column { left:calc(var(--col-id) + var(--col-task)); box-shadow:5px 0 8px rgba(18,79,127,.05); }
.gantt-workspace .gantt-sticky.id-column { left:0; }
.gantt-workspace .gantt-sticky.task-column { left:var(--col-id); }
.gantt-workspace .gantt-sticky.start-column { left:calc(var(--col-id) + var(--col-task)); }
.gantt-workspace .gantt-sticky.finish-column { left:calc(var(--col-id) + var(--col-task) + var(--col-start)); }
.gantt-sticky.mode-column { left:calc(var(--col-id) + var(--col-task) + var(--col-start) + var(--col-finish)); }
.gantt-sticky.progress-column { left:calc(var(--col-id) + var(--col-task) + var(--col-start) + var(--col-finish) + var(--col-mode)); }
.gantt-sticky.status-column { left:calc(var(--col-id) + var(--col-task) + var(--col-start) + var(--col-finish) + var(--col-mode) + var(--col-progress)); z-index:6; background:white; }
.gantt-sticky.dependencies-column { left:calc(var(--col-id) + var(--col-task) + var(--col-start) + var(--col-finish) + var(--col-mode) + var(--col-progress) + var(--col-status)); z-index:5; background:white; box-shadow:5px 0 8px rgba(18,79,127,.05); }
.gantt-row-id { min-height:30px; display:grid; grid-template-columns:24px 1fr; align-items:center; padding:0 4px; border-right:1px solid #e7eff6; background:#f3f7fa; color:#4c84ae; font-size:9px; font-variant-numeric:tabular-nums; font-weight:750; }
.gantt-row-id [data-row-number] { text-align:center; }
.gantt-row-grip { width:22px; height:24px; padding:0; border:0; border-radius:4px; background:transparent; color:#8fa0ae; cursor:grab; display:grid; place-items:center; touch-action:none; user-select:none; }
.gantt-row-grip::before { content:"⠿"; font-size:15px; line-height:1; letter-spacing:-2px; }
.gantt-row-grip:hover,.gantt-row-grip:focus-visible { color:#124f7f; background:#e7eff6; outline:none; }
.gantt-row-grip:active { cursor:grabbing; }
.gantt-column-resizer { position:absolute; z-index:20; top:0; right:-4px; width:8px; height:100%; padding:0; border:0; border-radius:0; background:transparent; cursor:col-resize; touch-action:none; }
.gantt-column-resizer::after { content:""; position:absolute; top:7px; bottom:7px; left:3px; width:1px; background:#b7cad9; opacity:.45; }
.gantt-column-resizer:hover::after,.gantt-column-resizer.resizing::after { width:2px; background:#3380df; opacity:1; }
body.gantt-resizing-columns { cursor:col-resize; user-select:none; }
.summary-mode { display:grid; place-items:center; color:var(--muted); font-size:10px; font-weight:750; background:#f3f7fa; }
.gantt-row.summary-task .gantt-bar { cursor:pointer !important; pointer-events:auto; }
.gantt-row.summary-task .gantt-resize { display:none; }
.gantt-bar-owner { position:absolute; z-index:5; top:4px; margin-left:7px; white-space:nowrap; pointer-events:none; }.gantt-bar-owner .person-identity { gap:4px; font-size:9px; }.gantt-bar-owner .person-avatar { width:20px; height:20px; flex-basis:20px; }
.dependency-notation-form { display:flex; align-items:center; gap:2px; padding:2px 3px; }.dependency-notation-form input[type="text"] { min-width:0; height:24px; padding:2px 4px; border:0; background:transparent; font-size:9px; }
.gantt-workspace .gantt-calendar-heading { min-width: 0; padding: 0 !important; display: block; background: white; overflow: hidden; }
.gantt-month-bands { height: 18px; display:grid; align-items:stretch; border-bottom:1px solid #d1dee8; color:#124f7f; font-size:8px; font-weight:800; text-transform:uppercase; }
.gantt-month-bands span { min-width:0; display:grid; place-items:center; padding:0 5px; border-right:1px solid #b7cad9; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; background:#f3f7fa; }
.gantt-month-bands span:nth-child(even) { background:#f3f7fa; }
.gantt-calendar-days { height: 21px; display: grid; align-items: center; }
.gantt-calendar-days span { height: 21px; display: grid; grid-template-rows:11px 8px; place-items: center; border-right: 1px solid #e7eff6; color: #74889a; font-size: 7px; line-height:1; }
.gantt-calendar-days b { font-size:8px; font-weight:800; }.gantt-calendar-days small { font-size:6px; color:#8fa0ae; }
.gantt-calendar-days span.weekend { background: #f3f7fa; }
.gantt-calendar-days span.today { position:relative; background:#dff0ff; color:#2466bb; }.gantt-calendar-days span.today::after { content:""; position:absolute; bottom:-1px; left:0; right:0; height:2px; background:#3d83e6; }
.gantt-board[data-gantt-day-density="alternate"] .gantt-calendar-days span:not(.day-alternate-marker):not(.today) > *,
.gantt-board[data-gantt-day-density="weekly"] .gantt-calendar-days span:not(.day-week-marker):not(.today) > *,
.gantt-board[data-gantt-day-density="landmarks"] .gantt-calendar-days span:not(.day-landmark):not(.today) > * { visibility:hidden; }
.gantt-board[data-gantt-day-density="weekly"] .gantt-calendar-days small,
.gantt-board[data-gantt-day-density="landmarks"] .gantt-calendar-days small { visibility:hidden; }
.gantt-board.overview .gantt-month-bands { font-size:7px; }
.gantt-board.overview .gantt-month-bands span { padding:0 2px; font-size:0; }
.gantt-board.overview .gantt-month-bands span::after { content:attr(data-short); font-size:7px; }
.gantt-workspace .gantt-board .gantt-row { min-height: 30px; outline: none; background: white; }
.gantt-workspace .gantt-board .gantt-row.reordering { opacity:.58; cursor:grabbing; }
.gantt-workspace .gantt-board .gantt-row.drop-before::before,.gantt-workspace .gantt-board .gantt-row.drop-after::after { content:""; position:absolute; z-index:40; left:0; right:0; height:3px; border-radius:2px; background:#124f7f; box-shadow:0 0 0 1px white,0 1px 5px rgba(18,79,127,.3); pointer-events:none; }
.gantt-workspace .gantt-board .gantt-row.drop-before::before { top:-2px; }
.gantt-workspace .gantt-board .gantt-row.drop-after::after { bottom:-2px; }
.gantt-workspace .gantt-board .gantt-row:hover, .gantt-workspace .gantt-board .gantt-row.selected { background: #f1f8ff; box-shadow: inset 0 0 0 1px #79aef5; }
.gantt-workspace .gantt-board .gantt-row[hidden] { display:none; }
.gantt-workspace .gantt-board .gantt-inline-row { position:relative; min-height:32px; display:grid; width:max-content; min-width:100%; border-bottom:1px solid #b7cad9; background:#f3f7fa; box-shadow:inset 0 1px 0 #d1dee8; }
.gantt-inline-row .gantt-sticky { z-index:8; min-width:0; border-right:1px solid #e7eff6; background:#f3f7fa; }
.gantt-inline-name { display:flex; align-items:center; gap:5px; padding:4px 7px; }
.gantt-inline-name > span { flex:0 0 auto; color:#124f7f; font-size:15px; font-weight:800; }
.gantt-inline-name input { width:100%; min-width:0; height:24px; padding:2px 4px; border:1px solid transparent; border-radius:2px; outline:0; background:transparent; color:#0d2740; font-size:10px; }
.gantt-inline-name input:hover { border-color:#b7cad9; background:white; }
.gantt-inline-name input:focus { border-color:#275f8c; background:white; box-shadow:0 0 0 2px rgba(40,120,181,.12); }
.gantt-inline-date { display:grid; grid-template-columns:1fr; align-content:center; padding:2px 5px; }
.gantt-inline-date > span { display:none; }
.gantt-inline-date input { width:100%; min-width:0; padding:3px 2px; border:0; outline:0; background:transparent; color:#124f7f; font-size:9px; }
.gantt-inline-value { display:grid; place-items:center; color:#617689; font-size:9px; }
.gantt-inline-save { display:grid; place-items:center; min-height:32px; padding:0; border:0; border-right:1px solid #e7eff6; border-radius:0; background:#f3f7fa; color:#124f7f; font-size:14px; font-weight:850; cursor:pointer; }
.gantt-inline-save:hover,.gantt-inline-save:focus-visible { background:#e7eff6; }
.gantt-inline-save:disabled { cursor:wait; opacity:.5; }
.gantt-inline-track { position:relative; cursor:crosshair; touch-action:none; user-select:none; }
body.gantt-creating-task,body.gantt-creating-task * { user-select:none !important; cursor:crosshair !important; }
.gantt-inline-hint { position:absolute; z-index:1; inset:0; display:flex; align-items:center; padding-left:10px; color:#74889a; font-size:9px; pointer-events:none; }
.gantt-inline-hint[hidden],.gantt-inline-draft-bar[hidden] { display:none; }
.gantt-inline-draft-bar { position:absolute; z-index:2; top:7px; height:16px; min-width:4px; overflow:hidden; border:1px solid #124f7f; border-radius:3px; background:#6f93ae; box-shadow:0 2px 5px rgba(18,79,127,.18); pointer-events:none; }
.gantt-inline-draft-bar span { position:absolute; inset:0; background:linear-gradient(90deg,rgba(255,255,255,.18),transparent); }
.gantt-inline-row:focus-within { box-shadow:inset 0 0 0 1px #4c84ae; }
.gantt-focus-notice { display:grid; grid-template-columns:minmax(260px,.8fr) minmax(320px,1.2fr); gap:18px; align-items:center; padding:10px 16px; border-bottom:1px solid #94aec2; background:#e7eff6; color:#0d2740; }
.gantt-focus-notice div { display:flex; flex-direction:column; gap:2px; }.gantt-focus-notice span { color:#275f8c; font-size:9px; font-weight:900; letter-spacing:.12em; }.gantt-focus-notice strong { font-size:12px; }.gantt-focus-notice p { margin:0; font-size:11px; line-height:1.4; }
.gantt-workspace .gantt-board .gantt-row.notification-focus { z-index:7; background:#e7eff6; box-shadow:inset 0 0 0 2px #4c84ae,0 3px 12px rgba(40,120,181,.2); }
.gantt-workspace .gantt-row.notification-focus .gantt-sticky { background:#e7eff6; }.gantt-workspace .gantt-row.notification-focus .gantt-bar { outline:3px solid #75c6ff; outline-offset:3px; box-shadow:0 0 0 6px rgba(117,198,255,.22); }
.gantt-workspace .gantt-board .gantt-task-info { min-height: 30px; display: grid; grid-template-columns: 12px minmax(0,1fr) 23px; grid-template-rows: 15px 9px; column-gap: 4px; padding: 2px 5px; border-right:1px solid #e7eff6; }
.gantt-workspace .gantt-task-info strong,.gantt-workspace .gantt-task-info .task-name { grid-column:2; grid-row:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }.gantt-workspace .gantt-task-info .task-name { font-weight:400; }
.gantt-workspace .gantt-row.subtask .gantt-task-info { padding-left:24px; }.gantt-workspace .gantt-row.summary-task .gantt-task-info strong { font-weight:850; }.gantt-workspace .gantt-row.summary-task .gantt-bar { height:7px; top:13px; border-radius:0; }
.gantt-status-cell { min-height:30px; display:grid; place-items:center; border-right:1px solid #d5e1ea; }
.task-status-dot { position:relative; width:18px; height:18px; display:grid; place-items:center; padding:0; border:0; background:transparent; }
.task-status-dot > span,.task-status-dot.clear::before { width:9px; height:9px; border-radius:50%; content:""; }
.task-status-dot.problem { cursor:pointer; }.task-status-dot.problem > span { background:#dc3434; box-shadow:0 0 0 3px #fde8e8; }
.task-status-dot.problem:hover > span,.task-status-dot.problem:focus-visible > span { box-shadow:0 0 0 4px #f6bcbc; }
.task-status-dot.clear::before { background:#bdccd8; }
.task-status-dot small { position:absolute; top:-5px; right:-6px; min-width:12px; height:12px; display:grid; place-items:center; padding:0 2px; border-radius:8px; background:#8f1f1f; color:white; font-size:7px; font-weight:850; }
.task-issues { margin:2px 0 16px; padding:12px; border:1px solid #f0b5b5; border-radius:10px; background:#fff4f4; color:#641f1f; }
.task-issues h4 { display:flex; align-items:center; gap:7px; margin:0 0 8px; color:#8f1f1f; }.task-issues h4 span,.task-issues-clear span { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:#dc3434; }
.task-issues ul { margin:0 0 8px; padding-left:17px; font-size:11px; line-height:1.45; }.task-issues p { margin:0; font-size:10px; color:#8b5656; }
.task-issues-clear { display:flex; align-items:center; gap:7px; margin:2px 0 14px; color:#617689; font-size:11px; }.task-issues-clear span { background:#6f93ae; }
.gantt-workspace .gantt-task-info small { grid-column: 2; grid-row: 2; font-size: 8px; }
.gantt-task-indent { grid-column:1; grid-row:1 / span 2; width:10px; }
.gantt-group-toggle { grid-column:1; grid-row:1 / span 2; align-self:center; width:14px; height:20px; padding:0; border:0; background:transparent; color:#275f8c; font-size:12px; cursor:pointer; transition:transform .15s ease; }
.gantt-group-toggle[aria-expanded="false"] { transform:rotate(-90deg); }
.gantt-row-menu { grid-column: 3; grid-row: 1 / span 2; opacity: 0; align-self: center; padding: 2px; border: 0; background: transparent; color: #275f8c; cursor: pointer; }
.gantt-row:hover .gantt-row-menu, .gantt-row.selected .gantt-row-menu { opacity: 1; }
.gantt-workspace .gantt-date-cell { min-height: 30px; padding: 3px 5px; font-size: 8px; }
.gantt-workspace .gantt-track { min-height: 30px; padding: 0; background-color:#fff; background-image:linear-gradient(to right,#e7eff6 1px,transparent 1px); background-size:calc(100% / var(--day-count)) 100%; }
.gantt-today-column { position:absolute; z-index:0; top:0; bottom:0; background:rgba(78,160,240,.12); border-left:1px solid rgba(45,120,207,.36); pointer-events:none; }
.gantt-workspace .gantt-board .gantt-bar { top: 7px; height: 15px; display:flex; align-items:center; border-radius: 3px; background: var(--task-color,#63c6d5); box-shadow: inset 0 0 0 1px rgba(18,79,127,.28); }
.gantt-workspace .gantt-board .gantt-progress { position:absolute; z-index:0; inset:0 auto 0 0; background: color-mix(in srgb,var(--task-color,#63c6d5) 65%,#0d2740); }
.gantt-bar-label { position:relative; z-index:2; max-width:100%; overflow:hidden; padding:0 5px; color:#0d2740; font-size:8px; font-weight:750; line-height:15px; text-overflow:ellipsis; white-space:nowrap; pointer-events:none; }
.gantt-row.summary-task .gantt-bar-label { width:100%; overflow:visible; color:#124f7f; text-align:center; }
.gantt-workspace .gantt-row.critical .gantt-bar { background:var(--task-color,#63c6d5); outline:1px solid #c43d2e; outline-offset:1px; }
.gantt-workspace .gantt-row.critical .gantt-bar > .gantt-progress { background:color-mix(in srgb,var(--task-color,#63c6d5) 65%,#0d2740); }
.gantt-workspace .gantt-row.critical .gantt-bar > .gantt-bar-label { background:transparent; }
.gantt-workspace .dependency-port { width:12px; height:20px; border:0; border-radius:0; background:transparent; box-shadow:none; opacity:0; }
.gantt-workspace .dependency-in { left:-8px; }
.gantt-workspace .dependency-out { right:-8px; }
.gantt-workspace .mode-form, .gantt-workspace .progress-form { min-height: 30px; padding: 2px; }
.gantt-workspace .mode-form select { padding: 3px; border: 0; background: transparent; font-size: 9px; }
.gantt-workspace .progress-form input { height: 24px; padding: 2px; border: 0; background: transparent; }
.gantt-workspace .progress-form input[type="submit"] { display: none; }
.gantt-workspace :is([data-gantt-mode],[data-gantt-progress],[data-gantt-dependencies-input]).is-saving { background:#fff8dd; box-shadow:inset 0 -2px 0 #e0ad32; }
.gantt-workspace :is([data-gantt-mode],[data-gantt-progress],[data-gantt-dependencies-input]).is-saved { background:#f3f7fa; box-shadow:inset 0 -2px 0 #275f8c; }
.gantt-workspace :is([data-gantt-mode],[data-gantt-progress],[data-gantt-dependencies-input]).is-error { background:#fff0ef; box-shadow:inset 0 -2px 0 #c95044; }
.gantt-row-actions { position:absolute; z-index:9; top:3px; display:none; align-items:center; gap:1px; margin-left:6px; padding:1px 2px; border:1px solid #b9cae0; border-radius:4px; background:white; box-shadow:0 3px 9px rgba(29,70,118,.15); white-space:nowrap; }
.gantt-row.selected .gantt-row-actions { display:flex; }
.gantt-row-actions button { width:22px; height:22px; display:grid; place-items:center; padding:0; border:0; border-radius:3px; background:transparent; color:#275f8c; cursor:pointer; font-size:11px; }
.gantt-row-actions button:hover { background:#eaf3ff; color:#2868bd; }
.gantt-action-color { width:11px; height:11px; display:block; border-radius:50%; background:var(--task-color); box-shadow:inset 0 0 0 1px rgba(0,0,0,.12); }
.gantt-row.selected .gantt-bar-owner { margin-left:112px; }
.gantt-bar-owner.is-unassigned { display:none; }
.gantt-workspace .gantt-row.selected .gantt-sticky { background:#f1f8ff; }
.gantt-row.summary-task .gantt-bar { background:#d7dcda; box-shadow:inset 0 -2px 0 #8fa0ae; }
.gantt-row.summary-task .gantt-progress { display:none; }
.gantt-bar.milestone .gantt-bar-label { display:none; }
.gantt-workload-dock { position:relative; z-index:22; border-top:1px solid #e5c8df; background:#fff7fc; }
.gantt-workload-dock > button { height:31px; display:flex; align-items:center; gap:6px; padding:0 18px; border:0; background:transparent; color:#a13787; font-size:10px; font-weight:800; cursor:pointer; }
.gantt-workload-dock > button span { transition:transform .15s ease; }.gantt-workload-dock > button[aria-expanded="true"] span { transform:rotate(180deg); }
.gantt-workload-panel { max-height:210px; display:grid; grid-template-columns:repeat(auto-fit,minmax(245px,1fr)); gap:1px; overflow:auto; border-top:1px solid #ead7e5; background:#e7eff6; }
.gantt-workload-panel[hidden] { display:none; }
.gantt-workload-panel article { min-height:78px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 14px; align-items:center; padding:10px 14px; background:white; font-size:10px; }
.gantt-workload-panel article > div { min-width:0; }.gantt-workload-panel article > span { color:#74889a; }.gantt-workload-panel progress { grid-column:1 / -1; width:100%; height:7px; accent-color:#6f93ae; }
.gantt-quick-editor { position:fixed; z-index:100; width:310px; max-height:min(560px,calc(100vh - 30px)); overflow:auto; padding:9px; border:1px solid #b7cad9; border-radius:8px; background:white; box-shadow:0 20px 55px rgba(71,95,114,.27); }
.gantt-quick-editor[hidden] { display:none; }
.gantt-quick-editor > header { display:flex; justify-content:space-between; align-items:center; padding:3px 3px 8px; color:#124f7f; font-size:11px; }
.gantt-quick-editor > header button { width:24px; height:24px; border:0; border-radius:4px; background:transparent; color:#617689; cursor:pointer; font-size:18px; }
.gantt-quick-search { display:flex; align-items:center; gap:5px; height:32px; margin-bottom:7px; padding:0 8px; border:1px solid #d1dee8; border-radius:5px; color:#74889a; }
.gantt-quick-search input { width:100%; min-width:0; padding:0; border:0; outline:0; font-size:10px; }
.gantt-quick-editor section[hidden] { display:none; }
.gantt-quick-list { display:grid; gap:2px; }
.gantt-quick-list > button { width:100%; min-height:38px; display:grid; grid-template-columns:17px minmax(0,1fr); align-items:center; gap:6px; padding:4px 7px; border:0; border-radius:5px; background:transparent; color:#124f7f; text-align:left; cursor:pointer; }
.gantt-quick-list > button:hover,.gantt-quick-list > button.selected { background:#eaf3ff; }
.gantt-quick-list .person-identity { font-size:10px; }.gantt-quick-list .person-avatar { width:27px; height:27px; flex-basis:27px; }
.gantt-quick-check { width:12px; height:12px; border:1px solid #94aec2; border-radius:3px; }.gantt-quick-list > button.selected .gantt-quick-check { border-color:#367bd5; background:#367bd5; box-shadow:inset 0 0 0 2px white; }
.gantt-color-grid { display:grid; grid-template-columns:repeat(9,1fr); gap:7px; padding:5px 3px 14px; }
.gantt-color-grid button { aspect-ratio:1; padding:0; border:2px solid white; border-radius:50%; background:var(--choice-color); box-shadow:0 0 0 1px #b7cad9; cursor:pointer; }
.gantt-color-grid button.selected { box-shadow:0 0 0 2px #367bd5; }
.gantt-quick-label-input { display:grid; grid-template-columns:1fr auto; gap:5px; }.gantt-quick-label-input input { min-width:0; padding:7px; font-size:10px; }.gantt-quick-label-input button { border:0; border-radius:5px; background:var(--forest-2); color:white; font-size:9px; cursor:pointer; }
.gantt-quick-editor > p { min-height:16px; margin:7px 2px 0; color:#275f8c; font-size:9px; }
.gantt-context-menu { position:fixed; z-index:110; width:245px; display:grid; gap:2px; margin:0; padding:6px; border:1px solid #b7cad9; border-radius:7px; background:white; box-shadow:0 18px 48px rgba(71,95,114,.25); }
.gantt-context-menu[hidden] { display:none; }
.gantt-context-menu button { min-height:34px; display:flex; justify-content:space-between; align-items:center; padding:5px 9px; border:0; border-radius:4px; background:transparent; color:#124f7f; font-size:10px; text-align:left; cursor:pointer; }
.gantt-context-menu button:hover { background:#eef5fb; }.gantt-context-menu button span { color:#74889a; }
@media (max-width:1200px) {
  .gantt-command-summary,.gantt-hide-completed { display:none; }
  .gantt-search { width:180px; }
}
.gantt-drawer { margin: 14px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #f3f7fa; }
.gantt-drawer[hidden] { display: none; }
.gantt-task-dialog { width: min(1120px,calc(100vw - 40px)); max-height: calc(100vh - 36px); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.gantt-task-dialog::backdrop { background: rgba(71,95,114,.46); backdrop-filter: blur(2px); }
.gantt-task-dialog h2 { margin-top: 4px; }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.task-dialog-top { padding: 22px 54px 18px 26px; border-top: 8px solid var(--task-color); background: color-mix(in srgb,var(--task-color) 20%,white); }
.task-dialog-top h2 { margin: 4px 0 16px; }
.task-dialog-top > div { display: grid; grid-template-columns: auto auto auto auto auto auto; gap: 8px; align-items: baseline; width: fit-content; }
.task-dialog-top > div span { margin-right: 20px; color: var(--muted); font-size: 11px; }
.task-dialog-grid { display: grid; grid-template-columns: minmax(0,2fr) 310px; min-height: 620px; }
.task-dialog-main { padding: 24px 28px 36px; overflow: auto; }
.task-dialog-sidebar { padding: 18px; border-left: 1px solid var(--line); background: #f3f7fa; overflow: auto; }
.task-dialog-sidebar nav { display: flex; gap: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.task-dialog-sidebar nav button { padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.task-dialog-sidebar nav button.active { color: var(--forest-2); border-bottom-color: var(--forest-2); font-weight: 800; }
.task-dialog-sidebar [data-task-panel][hidden] { display: none; }
.task-dialog-sidebar dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px; font-size: 12px; }
.task-dialog-sidebar dt { color: var(--muted); }
.task-dialog-sidebar dd { margin: 0; font-weight: 650; }
.task-dialog-sidebar h4 { margin: 22px 0 7px; }
.task-dialog-sidebar p { margin: 5px 0; font-size: 11px; }
.task-detail-form { display: grid; gap: 15px; }
.task-detail-form > label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.task-detail-form textarea { resize: vertical; }
.task-detail-form input[type="color"] { height: 42px; padding: 4px; }
.autosave-status { display: block; min-height: 20px; color: var(--muted); font-size: 11px; }
.autosave-status.saving { color: #8a6d1d; }
.autosave-status.saved { color:#2878b5; font-weight:750; }
.autosave-status.error { color: #b23828; font-weight: 750; }
.task-comments { margin-top:18px; }
.task-comments h3 { margin:0; padding-bottom:7px; display:flex; gap:7px; align-items:center; border-bottom:1px solid var(--line); }
.task-comments h3 span { min-width: 22px; padding: 2px 6px; border-radius: 99px; background: #e7eff6; font-size: 11px; text-align: center; }
.task-comments article { display:grid; grid-template-columns:30px 1fr; gap:8px; padding:8px 0; border-bottom:1px solid #e7eff6; }
.task-comments article > .person-identity { align-self: start; }
.task-comments article .person-avatar { width:30px; height:30px; flex-basis:30px; border-width:1px; }
.task-comments article small { margin-left:6px; color:var(--muted); font-size:10px; }
.task-comments article p { margin:2px 0; line-height:1.35; }
.task-comment-form { display:grid; grid-template-columns:1fr auto; gap:7px; margin-top:9px; }
.task-comment-form textarea { grid-column: 1 / -1; }
.task-history { margin-top: 28px; padding-top: 4px; border-top: 1px solid var(--line); }
.checklist-item { width: 100%; display: flex; gap: 8px; align-items: flex-start; padding: 8px 4px; border: 0; border-bottom: 1px solid #e7eff6; background: transparent; text-align: left; cursor: pointer; }
.checklist-item.done { color: var(--muted); text-decoration: line-through; }
.checklist-item:disabled { opacity: .55; }
.checklist-progress { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.checklist-new-input { width: 100%; margin-top: 10px; padding: 8px 4px; border: 0; border-bottom: 1px solid transparent; background: transparent; font-size: 11px; }
.checklist-new-input:focus { border-bottom-color: var(--forest-2); outline: none; }
.checklist-add { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 12px; }
.checklist-add input { min-width: 0; padding: 7px; }
.raci-form { display: grid; gap: 12px; }
.raci-person-row { display:grid; grid-template-columns:28px minmax(0,1fr); gap:8px; align-items:start; }
.raci-person-row > b { display:grid; place-items:center; width:28px; height:28px; margin-top:18px; border-radius:50%; background:var(--forest-2); color:white; font-size:12px; }
.raci-person-field { min-width:0; color:var(--muted); font-size:11px; }
.raci-person-field > span { display:block; margin-bottom:4px; }
.raci-person-picker { position:relative; }
.raci-person-current { width:100%; min-height:44px; padding:5px 10px; border:1px solid #b7cad9; border-radius:9px; background:white; text-align:left; cursor:pointer; }
.raci-person-current::after { content:"⌄"; position:absolute; right:10px; top:13px; color:#275f8c; }
.raci-person-current .person-identity { padding-right:22px; }
.raci-person-options { position:absolute; z-index:20; top:calc(100% + 4px); left:0; right:0; max-height:260px; overflow:auto; padding:5px; border:1px solid #b7cad9; border-radius:10px; background:white; box-shadow:0 14px 34px rgba(7,28,51,.18); }
.raci-person-options[hidden] { display:none; }
.raci-person-options button { width:100%; min-height:42px; padding:5px 7px; border:0; border-radius:7px; background:transparent; text-align:left; cursor:pointer; }
.raci-person-options button:hover { background:#f3f7fa; }
.raci-person-options .person-avatar,.raci-person-current .person-avatar { width:30px; height:30px; flex-basis:30px; }
.raci-unassigned { display:inline-flex; align-items:center; min-height:30px; color:#617689; }
.global-person-picker { position:relative; width:100%; }
.global-person-toggle { width:100%; min-height:48px; padding:6px 12px; display:flex; align-items:center; border:1px solid #b7cad9; border-radius:10px; background:white; color:var(--ink); text-align:left; cursor:pointer; }
.global-person-toggle::after { content:"⌄"; margin-left:auto; color:var(--muted); }
.global-person-toggle:hover,.global-person-toggle[aria-expanded="true"] { border-color:#4c84ae; box-shadow:0 0 0 3px rgba(40,120,181,.12); }
.global-person-toggle.invalid { border-color:#c74d42; }
.global-person-toggle small { display:none; }
.person-picker-empty { color:#74889a; }
.global-person-menu { position:absolute; z-index:90; top:calc(100% + 5px); left:0; right:0; padding:7px; border:1px solid #b7cad9; border-radius:12px; background:white; box-shadow:0 16px 38px rgba(7,28,51,.2); }
.global-person-menu[hidden] { display:none; }
.global-person-search { width:100%; margin-bottom:6px; }
.global-person-options { max-height:290px; overflow:auto; }
.global-person-options > button { width:100%; padding:7px 9px; display:grid; grid-template-columns:1fr; gap:1px; border:0; border-radius:8px; background:transparent; text-align:left; cursor:pointer; }
.global-person-options > button:hover { background:#f3f7fa; }
.global-person-options > button small { margin-left:50px; color:var(--muted); }
.global-person-options .person-avatar { width:38px; height:38px; flex-basis:38px; }
.lookahead-task-selector { margin:24px 0; padding:20px; border:1px solid var(--line); border-radius:14px; background:#f3f7fa; }
.lookahead-task-selector .section-heading { margin-bottom:14px; }
.lookahead-task-options { display:grid; gap:8px; max-height:360px; overflow:auto; }
.lookahead-task-options label { display:flex; align-items:flex-start; gap:12px; padding:12px; border:1px solid var(--line); border-radius:10px; background:white; cursor:pointer; }
.lookahead-task-options label:has(input:checked) { border-color:#4c84ae; background:#f3f7fa; }
.lookahead-task-options input { width:auto; margin-top:4px; }
.lookahead-task-options span { display:grid; gap:3px; }.lookahead-task-options small { color:var(--muted); }
.manual-lookahead-item { margin:18px 0; padding:14px; border:1px solid var(--line); border-radius:12px; }.manual-lookahead-item summary { cursor:pointer; font-weight:800; }.manual-lookahead-item .form-grid { margin-top:14px; }
@media (max-width: 800px) { .task-dialog-grid { grid-template-columns: 1fr; } .task-dialog-sidebar { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 900px) { .gantt-workspace-header { grid-template-columns: 1fr auto; } .gantt-workspace-header nav { display:none; } .gantt-help { display:none; } .schedule-cutoff-heading { grid-template-columns:1fr; } .schedule-cutoff-steps { grid-template-columns:repeat(2,1fr); } .schedule-cutoff-form { grid-template-columns:1fr 1fr; } .schedule-cutoff-form .button { width:100%; } }
.import-card { max-width: 760px; }
.import-card > label { display: grid; gap: 8px; font-weight: 750; }
.progress-form { display: flex; align-items: center; gap: 3px; padding: 10px 5px; }
.progress-form input { width: 48px; padding: 6px; }
.schedule-forms { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-top: 24px; align-items: start; }
.checkbox-label { flex-direction: row !important; align-items: center; }
.checkbox-label input { width: auto; }
.login-shell { min-height: 70vh; display: grid; place-items: center; }
.login-card { width: min(440px, 100%); padding: 38px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(71,95,114, .10); }
.login-card form { display: grid; gap: 18px; margin-top: 24px; }
.login-mark { width: 64px; height: 64px; border-radius: 15px; }
.auth-body { background:#f3f7fb; }
.auth-body .page-shell { width:100%; max-width:none; min-height:100vh; padding:0; }
.auth-body .flash { position:fixed; z-index:20; top:20px; right:24px; width:min(430px,calc(100vw - 48px)); margin:0; color:#123c5e; background:#dceffc; box-shadow:0 16px 40px rgb(12 50 85 / 18%); }
.auth-body .flash.alert { color:#8f2f22; background:#fff0ed; }
.auth-shell { min-height:100vh; display:grid; grid-template-columns:minmax(480px,1.15fr) minmax(440px,.85fr); background:white; }
.auth-story { position:relative; min-height:100vh; padding:46px clamp(42px,6vw,88px); display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; color:white; background:
  linear-gradient(112deg,rgb(7 28 51 / 98%) 0%,rgb(10 48 82 / 93%) 54%,rgb(18 79 127 / 74%) 100%),
  none 68% center / cover no-repeat; }
.auth-story::after { content:none; }
.auth-brand { position:relative; z-index:1; width:max-content; display:flex; align-items:center; gap:14px; color:white; font-size:1.75rem; font-weight:850; text-decoration:none; }
.auth-brand-mark { width:58px; height:58px; border-radius:14px; object-fit:cover; }
.auth-story .auth-brand-mark { filter:brightness(0) invert(1); }
.auth-story-copy { position:relative; z-index:1; max-width:700px; margin:80px 0; }
.auth-kicker { margin:0 0 13px; color:#75c6ff; font-size:.73rem; font-weight:900; letter-spacing:.17em; }
.auth-story h1 { max-width:680px; margin:0; color:white; font-size:clamp(2.65rem,5vw,5.25rem); line-height:1; letter-spacing:-.055em; }
.auth-story-copy > p:not(.auth-kicker) { max-width:610px; margin:25px 0 0; color:#d5e5f1; font-size:1.08rem; line-height:1.65; }
.auth-capabilities { margin-top:34px; display:flex; flex-wrap:wrap; gap:9px; }
.auth-capabilities span { padding:9px 13px; border:1px solid rgb(255 255 255 / 18%); border-radius:999px; color:#e7eff6; background:rgb(255 255 255 / 7%); font-size:.78rem; backdrop-filter:blur(5px); }
.auth-story > small { position:relative; z-index:1; color:#acc8dc; }
.auth-access { min-height:100vh; padding:48px clamp(34px,6vw,96px); display:grid; place-items:center; background:linear-gradient(135deg,#fcfdff,#f1f6fa); }
.auth-card { width:min(470px,100%); }
.auth-locale-switcher { width:max-content; margin:0 0 24px auto; padding:3px; display:flex; gap:2px; border:1px solid #cfdae4; border-radius:9px; background:#fff; }
.auth-locale-switcher a { min-width:34px; min-height:32px; padding:4px 7px; display:grid; place-items:center; border-radius:6px; color:#5f7181; font-size:1.12rem; line-height:1; text-decoration:none; }
.auth-locale-switcher a.active { color:#0d3c66; background:#e9f2f9; }
.auth-card h2 { margin:0; color:#0d2740; font-size:clamp(2.25rem,4vw,3.35rem); letter-spacing:-.045em; }
.auth-intro { margin:10px 0 0; color:#667889; line-height:1.55; }
.auth-form { margin-top:34px; display:grid; gap:20px; }
.auth-form label { display:grid; gap:8px; color:#27445e; font-size:.82rem; font-weight:800; }
.auth-field-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.auth-field-heading a { color:#175f96; font-size:.76rem; font-weight:750; text-decoration:none; }
.auth-field-heading a:hover { text-decoration:underline; }
.auth-form input { min-height:54px; padding:14px 16px; border:1px solid #bdcbd7; border-radius:11px; background:white; font-size:1rem; transition:border-color .15s,box-shadow .15s; }
.auth-form input:focus { border-color:#2878b5; outline:0; box-shadow:0 0 0 4px rgb(40 120 181 / 14%); }
.auth-form select { width:100%; min-height:54px; padding:14px 42px 14px 16px; border:1px solid #bdcbd7; border-radius:11px; color:#17344d; background:white; font-size:1rem; transition:border-color .15s,box-shadow .15s; }
.auth-form select:focus { border-color:#2878b5; outline:0; box-shadow:0 0 0 4px rgb(40 120 181 / 14%); }
.auth-password-field { position:relative; display:block; }
.auth-password-field input { width:100%; padding-right:82px; }
.auth-password-field button { position:absolute; top:50%; right:9px; padding:8px 10px; transform:translateY(-50%); border:0; border-radius:7px; color:#175f96; background:#eaf2f8; font-size:.73rem; font-weight:800; cursor:pointer; }
.auth-form input.auth-submit { min-height:54px; margin-top:5px; display:flex; align-items:center; justify-content:center; border:0; border-radius:11px; color:#fff; background:#124f7f; font-size:1rem; font-weight:800; -webkit-text-fill-color:#fff; box-shadow:0 8px 20px rgb(18 79 127 / 20%); cursor:pointer; }
.auth-form input.auth-submit:hover { background:#0b3d65; }
.auth-form input.auth-submit:focus { border:0; box-shadow:0 0 0 4px rgb(40 120 181 / 20%),0 8px 20px rgb(18 79 127 / 20%); }
.auth-first-access { margin-top:25px; padding:18px; border:1px solid #c8d7e3; border-radius:13px; background:white; }
.auth-first-access strong { display:block; color:#173b58; }
.auth-first-access p { margin:5px 0 13px; color:#617689; font-size:.82rem; }
.auth-first-access .button { width:100%; border-color:#ccd9e4; color:#124f7f; text-align:center; }
.auth-support { margin:25px 0 0; color:#74889a; font-size:.76rem; line-height:1.5; text-align:center; }
.auth-remembered-accounts { margin-top:30px; display:grid; gap:12px; }
.auth-remembered-account { position:relative; }
.auth-account-button { width:100%; min-height:92px; padding:16px 56px 16px 18px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; column-gap:14px; border:1px solid #b7cad9; border-radius:18px; color:#071c33; background:white; text-align:left; cursor:pointer; box-shadow:0 8px 24px rgb(18 79 127 / 8%); transition:border-color .15s,box-shadow .15s,transform .15s; }
.auth-account-button:hover,.auth-account-button[aria-expanded="true"] { border-color:#4c84ae; box-shadow:0 12px 30px rgb(18 79 127 / 13%); transform:translateY(-1px); }
.auth-account-copy { min-width:0; display:grid; gap:3px; }
.auth-account-copy strong { font-size:1.08rem; font-weight:850; line-height:1.2; }
.auth-account-copy small { color:#617689; font-size:.88rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auth-account-chevron { grid-column:3; grid-row:1 / 3; color:#617689; font-size:1.8rem; }
.auth-forget-form { position:absolute; z-index:2; top:50%; right:15px; margin:0; transform:translateY(-50%); }
.auth-forget-account { width:34px; height:34px; border:0; border-radius:50%; color:#617689; background:#f3f7fa; font-size:1.45rem; line-height:1; cursor:pointer; }
.auth-account-button .auth-account-chevron { margin-right:25px; }
.auth-remembered-form { margin-top:18px; padding:20px; border:1px solid #d1dee8; border-radius:15px; background:#f3f7fa; }
.auth-remembered-form[hidden] { display:none; }
.auth-remember-choice { grid-template-columns:auto 1fr !important; align-items:center; gap:11px !important; cursor:pointer; }
.auth-remember-choice input { width:19px; min-height:19px; margin:0; padding:0; accent-color:#17669f; box-shadow:none; }
.auth-remember-choice span { display:grid; gap:2px; }
.auth-remember-choice strong { color:#244661; font-size:.84rem; }
.auth-remember-choice small { color:#74889a; font-size:.73rem; font-weight:500; }
.auth-separator { margin:25px 0; display:flex; align-items:center; gap:13px; color:#74889a; }
.auth-separator::before,.auth-separator::after { content:""; height:1px; flex:1; background:#d1dee8; }
.auth-alternative { width:100%; min-height:50px; display:flex; align-items:center; justify-content:center; border-radius:11px; text-align:center; }
.setup-login-link { margin-top:18px; display:block; color:#175f96; font-size:.82rem; font-weight:750; text-align:center; }
.auth-registration-card { width:min(620px,100%); }
.auth-registration-form { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:18px; }
.auth-registration-form .auth-field-wide { grid-column:1 / -1; }
.auth-registration-form input.auth-submit { width:100%; }
.auth-inline-link { display:inline; margin:0; font-size:inherit; }
.auth-verification-state { margin:20px 0 0; padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid #d1dee8; border-radius:11px; color:#0d2740; background:#f3f7fa; font-size:.82rem; }
.auth-verification-state form { margin:0; }
.auth-inline-action { padding:0; border:0; color:#124f7f; background:transparent; font:inherit; font-weight:800; text-decoration:underline; cursor:pointer; }
.auth-security-note { margin:14px 0 0; color:#617689; font-size:.76rem; text-align:center; }
.auth-validation-errors { margin:0; padding:13px 16px 13px 34px; border:1px solid #efc3ba; border-radius:10px; color:#8f2f22; background:#fff4f1; font-size:.82rem; line-height:1.5; }
@media(max-width:900px){
  .auth-shell { grid-template-columns:1fr; }
  .auth-story { min-height:auto; padding:25px 24px 30px; }
  .auth-story-copy { margin:54px 0 24px; }
  .auth-story h1 { font-size:clamp(2.25rem,10vw,3.5rem); }
  .auth-story-copy > p:not(.auth-kicker),.auth-capabilities,.auth-story > small { display:none; }
  .auth-access { min-height:auto; padding:44px 22px 60px; }
  .auth-registration-form { grid-template-columns:1fr; }
  .auth-registration-form .auth-field-wide { grid-column:auto; }
  .auth-body .flash { top:12px; right:12px; width:calc(100vw - 24px); }
}
.global-navigation { flex:0 0 auto; justify-content:flex-start; gap:18px; }
.header-compact-menu { position:relative; flex:0 0 auto; align-self:stretch; display:none; align-items:center; }
.header-compact-menu > summary { height:100%; min-width:42px; display:grid; place-items:center; list-style:none; color:white; cursor:pointer; font-weight:850; letter-spacing:.08em; }
.header-compact-menu > summary::-webkit-details-marker { display:none; }
.header-compact-menu > div { position:absolute; z-index:132; top:calc(100% - 5px); left:0; width:240px; padding:8px; border:1px solid var(--line); border-radius:12px; background:white; color:var(--ink); box-shadow:0 18px 44px rgba(71,95,114,.24); }
.header-compact-menu > div > a { display:block; padding:10px 12px; border-radius:8px; color:var(--ink); text-decoration:none; font-weight:720; }
.header-compact-menu > div > a:hover { background:#f3f7fa; color:var(--forest); }
.nav-logout { border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.project-navigation { position:static; z-index:auto; min-width:0; flex:1 1 auto; align-self:stretch; overflow:visible; border:0; background:transparent; box-shadow:none; }
.project-navigation-inner { width:100%; min-width:0; min-height:60px; margin:0; padding:0; display:flex; align-items:stretch; justify-content:flex-end; gap:5px; }
.project-context { display:none; }
.project-context span { color: var(--forest-2); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.project-context strong { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-center-link { align-self:center; padding:8px 11px; border:1px solid transparent; border-radius:9px; color:#d1dee8; text-decoration:none; font-size:12px; font-weight:800; }
.pending-center-link:hover,.pending-center-link.active,.reports-center-link.active { border-color:#275f8c; background:#0d2740; color:white; }
.notification-link { position: relative; }
.notification-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 5px; padding: 0 5px; border-radius: 99px; background: #75c6ff; color: #071c33; font-size: 11px; font-weight: 900; }
.conversation-panel { margin-top:16px; }
.conversation-panel .section-heading { margin-bottom:8px; }
.conversation-list { display:grid; gap:6px; margin:8px 0 10px; }
.conversation-list article { display:grid; grid-template-columns:30px minmax(0,1fr); gap:8px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:white; }
.conversation-list article > .person-identity { align-self:start; }
.conversation-list article .person-avatar { width:30px; height:30px; flex-basis:30px; border-width:1px; }
.conversation-list small { display:block; color:var(--muted); font-size:11px; line-height:1.25; }
.conversation-content p { margin:2px 0 0; line-height:1.35; }
.comment-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: white; font-weight: 900; }
.comment-form { display:grid; grid-template-columns:minmax(280px,2fr) minmax(180px,1fr) minmax(180px,1fr) auto; gap:8px; align-items:end; }
.comment-form label { display:grid; gap:4px; }
.comment-composer { grid-template-columns:minmax(320px,2fr) minmax(240px,1fr); gap:12px; padding:14px; align-items:start; border:1px solid var(--line); border-radius:12px; background:white; }
.comment-composer label { min-width:0; gap:6px; color:var(--ink); font-size:12px; font-weight:800; }
.comment-composer :where(textarea,select,input[type="file"]) { width:100%; border:1px solid #b7cad9; border-radius:8px; color:var(--ink); background:white; font:inherit; }
.comment-form.comment-composer textarea,.comment-form.comment-composer select { min-height:76px; padding:9px 10px; resize:vertical; }
.comment-composer-footer { grid-column:1 / -1; display:flex; align-items:end; justify-content:space-between; gap:16px; padding-top:2px; }
.comment-composer-attachments { min-width:0; flex:1; }
.comment-composer input[type="file"] { min-height:42px; padding:5px 7px; color:var(--muted); font-size:12px; }
.comment-composer input[type="file"]::file-selector-button { margin-right:9px; padding:6px 9px; border:0; border-radius:6px; color:var(--forest); background:#e7eff6; font:inherit; font-weight:800; cursor:pointer; }
.comment-composer-footer .button { min-height:42px; }
.inline-create-option { width:max-content; margin-top:4px; color:var(--forest); font-size:12px; font-weight:780; line-height:1.2; text-decoration:none; }
.inline-create-option:hover { text-decoration:underline; }
.comment-form textarea { min-height:62px; padding:8px 10px; }
.attachment-link { display:inline-block; margin:3px 8px 0 0; font-size:12px; font-weight:700; }
.notification-list { display: grid; gap: 12px; }
.notification-list article { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.notification-list article.unread { border-left: 5px solid #275f8c; background: #f3f7fa; }
@media (max-width: 800px) { .comment-form { grid-template-columns: 1fr; } .comment-composer-footer { grid-column:auto; align-items:stretch; flex-direction:column; }.comment-composer-footer .button { justify-content:center; }.notification-list article { align-items: flex-start; flex-direction: column; } }
.amendment-panel { margin-top: 20px; }
.amendment-form { grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) minmax(240px,1fr) auto; }
.amendment-form :where(select,input[type="text"],textarea) { box-sizing:border-box; width:100%; height:40px; min-height:40px; padding:8px 10px; font:inherit; }
.comment-form.amendment-form textarea { resize:none; }
.amendment-form .button { height:40px; min-height:40px; white-space:nowrap; }
.amendment-list { display: grid; gap: 8px; margin: 16px 0; }
.amendment-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.amendment-list small { grid-column: 1 / -1; color: var(--muted); }
@media (max-width: 800px) { .amendment-form { grid-template-columns:1fr; }.comment-form.amendment-form textarea { height:62px; min-height:62px; resize:vertical; } }
.cancellation-panel, .cancellation-record { margin-top: 20px; border-color: #d9a7a1; }
.cancellation-panel summary { cursor: pointer; font-weight: 800; color: #8a2f24; }
.cancellation-record { background: #fff7f5; }
.network-status { position: sticky; top: 0; z-index: 100; padding: 8px 16px; background: #8a4b08; color: white; text-align: center; font-size: 12px; font-weight: 800; }
.offline-document-button.saved-offline { background: #d1dee8; color: #0d2740; border-color: #94aec2; }
.mobile-field-nav { display: none; }
@media (max-width: 760px) {
  html { --mobile-field-nav-clearance: calc(88px + env(safe-area-inset-bottom)); scroll-padding-bottom: var(--mobile-field-nav-clearance); }
  body { padding-bottom: var(--mobile-field-nav-clearance); }
  .page-shell :is(a,button,input,select,textarea,summary,[role="button"]) { scroll-margin-bottom: var(--mobile-field-nav-clearance); }
  .schedule-cutoff-header,.schedule-cutoff-details { padding:16px 12px; }
  .schedule-cutoff-steps,.schedule-cutoff-form { grid-template-columns:1fr; }
  .schedule-cutoff-status { grid-column:auto; }
  .schedule-cutoff-actions { align-items:stretch; flex-direction:column; }
  .schedule-cutoff-actions .button { width:100%; }
  .app-header { height: 58px; padding: 0 14px; }
  .app-header .brand { gap:6px; }
  .app-header .brand-name { font-size:13px; }
  .brand-mark { width: 38px; height: 38px; }
  .app-header nav { gap: 12px; }
  .app-header nav > a:not(.notification-link), .app-header .user-link, .app-header .user-name, .current-project-link { display: none; }
  .app-header .project-navigation { display:none !important; }
  .project-navigation-inner { min-height: 48px; padding: 0 12px; overflow-x: auto; gap: 10px; }
  .project-context { min-width: 150px; }
  .pending-center-link, .reports-center-link { display: none; }
  .project-module-groups { min-width: max-content; }
  .project-module-groups summary { padding: 0 9px; }
  .module-menu { position: fixed; z-index:120; top: 106px; left: 12px; right: 12px; max-height: calc(100vh - 190px); overflow: auto; border-radius: 12px; }
  .page-shell { padding: 22px 14px 46px; }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .page-heading, .current-heading, .section-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .actions, .current-heading .actions { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .section-heading .actions { max-width:100%; flex-wrap:wrap; }
  .button { min-height: 44px; align-items: center; justify-content: center; }
  .detail-grid, .workspace-overview, .form-grid, .schedule-forms { grid-template-columns: 1fr; }
  .submittal-row, .action-center-item, .document-card { grid-template-columns: 1fr; gap: 10px; }
  .document-state { align-items: flex-start; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-project { padding: 16px; }
  .portfolio-kpis { grid-template-columns: 1fr; }
  td:nth-child(2) { min-width: 220px; }
  .pdf-frame { height: 62vh; }
  .drawing-layout { grid-template-columns: 1fr; }
  .drawing-sidebar { position: static; }
  .drawing-workspace { display:flex; flex-direction:column; }
  .drawing-toolbar { position:static; width:auto; flex-direction:row; flex-wrap:nowrap; overflow-x:auto; border-radius:10px 10px 0 0; box-shadow:none; }
  .drawing-toolbar::before { display:none; }
  .drawing-toolbar .tool-button { width:auto; }
  .tool-button { min-width: max-content; min-height: 44px; }
  .page-controls { border-left:1px solid var(--line); border-radius:0; }
  .pdf-stage { min-height: 62vh; margin-inline:0; border-radius:0; }
  .drawing-viewer-page #viewer-message { border-radius:0 0 10px 10px; }
  .drawing-viewer-page .drawing-sidebar { position:static; width:auto; max-height:none; margin:12px; }
  .pdf-stage { padding:14px; }
  .drawing-viewer-heading { align-items:flex-start; flex-direction:column; }
  .mobile-field-nav { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; padding: 7px 5px max(7px, env(safe-area-inset-bottom)); background: #071c33; color: white; }
  .mobile-field-nav a { padding: 8px 2px; color: white; text-align: center; text-decoration: none; font-size: 11px; font-weight: 750; }
}
.reports-center-link { align-self:center; padding:8px 11px; border:1px solid transparent; border-radius:9px; color:#d1dee8; text-decoration:none; font-size:12px; font-weight:800; }
.project-module-groups { min-width: 0; display: flex; align-items: stretch; gap: 2px; }
.project-module-groups details { position: relative; display: flex; align-items: stretch; }
.project-module-groups summary { list-style:none; display:flex; align-items:center; padding:0 7px; color:#d1dee8; font-size:11px; font-weight:780; cursor:pointer; white-space:nowrap; }
.project-module-groups summary::-webkit-details-marker { display: none; }
.project-module-groups summary::after { content: "⌄"; margin-left: 6px; font-size: 11px; }
.project-module-groups details[open] summary, .project-module-groups summary:hover { color:white; background:#0d2740; }
.project-module-groups details.active-section summary { color:white; background:#0d2740; }
.module-menu { position:absolute; z-index:120; top:calc(100% - 1px); left:0; min-width:245px; padding:9px; display:grid; gap:3px; background:white; border:1px solid var(--line); border-radius:0 0 13px 13px; box-shadow:0 18px 38px rgba(71,95,114,.22); }
.module-menu-right { left: auto; right: 0; }
.module-menu a { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 680; }
.module-menu a:hover { color: var(--forest); background: #f3f7fa; }
.workspace-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 30px; }
.workspace-overview a { padding: 18px; display: flex; flex-direction: column; gap: 5px; background: white; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.workspace-overview a:hover { border-color: var(--forest-2); }
.workspace-overview strong { font-size: 24px; }
.workspace-overview span { color: var(--muted); font-size: 12px; }
.action-center-list { display: grid; gap: 10px; }
.action-center-item { display: grid; grid-template-columns: minmax(320px, 2fr) 1fr auto; align-items: center; gap: 22px; padding: 18px 20px; background: white; border: 1px solid var(--line); border-left: 5px solid #94aec2; border-radius: 14px; color: inherit; text-decoration: none; }
.action-center-item.high { border-left-color: #dc6803; }
.action-center-item.critical { border-left-color: #b42318; background: #fffaf9; }
.action-center-item h2, .action-center-item p { margin: 3px 0; }
.action-center-item small, .action-center-item span { color: var(--muted); }
.priority.critical { background: #fee4e2; color: #b42318; }
.portfolio-page .page-shell { max-width:1600px; padding-top:20px; }
.portfolio-hero { margin-bottom: 12px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(18,79,127,.035); }
.portfolio-hero h1 { margin: 1px 0 0; font-size: 30px; line-height: 1.05; }
.portfolio-hero .eyebrow { margin:0; color:var(--muted); font-size:10px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(600px, 1fr)); gap: 12px; }
.portfolio-project { position:relative; min-width:0; overflow:hidden; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(18,79,127, .035); }
.organization-logo { width:56px; height:56px; flex:0 0 56px; display:grid; place-items:center; overflow:hidden; border:1px solid #c4d5e2; border-radius:11px; color:#124f7f; background:rgba(255,255,255,.94); box-shadow:0 3px 10px rgb(7 28 51 / 8%); }
.organization-logo__image { width:100%; height:100%; display:block; padding:6px; object-fit:contain; }
.organization-logo__fallback { width:100%; height:100%; display:grid; place-items:center; background:#e7eff6; font-size:17px; font-weight:900; letter-spacing:.08em; }
.portfolio-project-background { position:absolute; inset:0; background:white; }
.portfolio-project-background img { display:block; width:100%; height:100%; object-fit:cover; opacity:var(--project-background-opacity,.4); }
.portfolio-project-content { position:relative; z-index:1; min-width:0; flex:1; display:flex; flex-direction:column; }
.portfolio-project.has-background-photo .portfolio-project-heading { padding:7px 8px; background:rgba(255,255,255,.62); border-radius:9px; }
.portfolio-project.has-background-photo .portfolio-performance { padding:4px; background:rgba(255,255,255,.56); border-radius:9px; }
.portfolio-project.attention,.portfolio-project.critical { border-color:var(--line); }
.portfolio-project-heading { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:start; gap:16px; }
.portfolio-project-brand { min-width:0; display:grid; grid-template-columns:56px minmax(0,1fr); align-items:start; gap:12px; }
.portfolio-project-logo { width:56px; height:56px; }
.portfolio-project-identity { min-width:0; }
.portfolio-project-heading h2 { min-height:2.24em; margin-top:2px; display:-webkit-box; overflow:hidden; font-size:20px; line-height:1.12; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.portfolio-project-heading .eyebrow { margin:0; font-size:10px; }
.project-ownership { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:6px 0 0; color:#52697c; font-size:10px; font-weight:700; }
.portfolio-invitations { margin:12px 0 18px; }
.portfolio-invitations .section-heading { margin:0 0 10px; }
.portfolio-invitation-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:10px; }
.portfolio-invitation-card { min-width:0; padding:18px; background:white; border:1px solid #9fc3dc; border-radius:14px; box-shadow:0 5px 16px rgba(18,79,127,.06); }
.portfolio-invitation-identity { min-width:0; display:grid; grid-template-columns:48px minmax(0,1fr); align-items:start; gap:11px; }
.portfolio-invitation-logo { width:48px; height:48px; }
.portfolio-invitation-card .eyebrow { margin:0; font-size:9px; }
.portfolio-invitation-card h3 { margin:4px 0 5px; font-size:18px; }
.project-invitation-owner { margin:0 0 10px; color:var(--muted); font-size:11px; }
.project-membership-summary { display:flex; flex-wrap:wrap; gap:5px 12px; margin:8px 0 4px; color:#52697c; font-size:10px; }
.project-permissions { width:min(100%,440px); margin-top:6px; }
.project-permissions summary { width:max-content; color:#124f7f; font-size:10px; font-weight:800; cursor:pointer; }
.project-permissions ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:7px 0 0; padding:1px; overflow:hidden; list-style:none; background:var(--line); border:1px solid var(--line); border-radius:8px; }
.project-permissions li { display:flex; justify-content:space-between; gap:8px; padding:6px 7px; background:#f8fafc; color:#52697c; font-size:9px; }
.project-permissions li strong { color:#172b3d; white-space:nowrap; }
.portfolio-invitation-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.portfolio-invitation-actions form { margin:0; }
.portfolio-invitation-actions .button { min-height:34px; padding:8px 12px; font-size:11px; }
.project-leave-control { width:max-content; margin-top:8px; }
.project-leave-control summary { color:#9e3028; font-size:9px; font-weight:800; cursor:pointer; }
.project-leave-control form { margin:6px 0 0; }
.project-leave-control .button { min-height:28px; padding:5px 8px; font-size:9px; }
.health-dot { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; background: #275f8c; }
.attention .health-dot { background: #f79009; }
.critical .health-dot { background: #d92d20; }
.portfolio-progress { margin: 22px 0; }
.portfolio-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.progress-track { height: 9px; overflow: hidden; border-radius: 99px; background: #e7eff6; }
.progress-track span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--forest-2); }
.portfolio-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.portfolio-kpis > :is(div,a) { min-width: 0; padding: 13px; display: flex; flex-direction: column; gap: 4px; background: white; }
.portfolio-kpis small { color: var(--muted); }
.portfolio-kpis strong { overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.portfolio-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.portfolio-actions a { color: var(--forest-2); font-size: 13px; font-weight: 780; text-decoration: none; }
.portfolio-hero--compact { padding: 14px 18px; align-items: center; }
.portfolio-hero--compact h1 { font-size: 30px; letter-spacing: -.03em; }
.portfolio-hero-actions { display: flex; align-items: center; gap: 12px; }
.portfolio-hero-actions > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.portfolio-hero-actions .button { min-height:34px; padding:8px 12px; font-size:12px; }
.field-app-spotlight { position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,260px); align-items:center; gap:clamp(22px,5vw,70px); min-height:390px; margin:12px 0 20px; padding:clamp(24px,4vw,52px); color:white; background:linear-gradient(135deg,#071c33 0%,#124f7f 72%,#17699e 100%); border-radius:18px; box-shadow:0 18px 45px rgba(7,28,51,.16); }
.field-app-spotlight::before { content:""; position:absolute; width:380px; height:380px; right:-150px; top:-210px; border-radius:50%; border:80px solid rgba(117,198,255,.13); pointer-events:none; }
.field-app-spotlight__copy { position:relative; z-index:1; max-width:700px; }
.field-app-spotlight__copy .eyebrow { margin:0 0 9px; color:#75c6ff; }
.field-app-spotlight__copy h2 { max-width:620px; margin:0; color:white; font-size:clamp(30px,4vw,50px); line-height:1.02; letter-spacing:-.035em; }
.field-app-spotlight__copy > p { max-width:650px; margin:16px 0 20px; color:rgba(255,255,255,.78); font-size:clamp(15px,1.7vw,19px); line-height:1.5; }
.field-app-spotlight__copy ul { display:flex; flex-wrap:wrap; gap:10px 18px; margin:0 0 16px; padding:0; list-style:none; }
.field-app-spotlight__copy li { display:flex; align-items:center; gap:7px; font-weight:700; font-size:13px; }
.field-app-spotlight__copy li span { display:grid; place-items:center; width:20px; height:20px; color:#071c33; background:#75c6ff; border-radius:50%; }
.field-app-spotlight__copy small { color:rgba(255,255,255,.62); }
.field-app-device { position:relative; z-index:1; justify-self:center; margin:0; padding:0; filter:drop-shadow(0 24px 24px rgba(0,0,0,.28)); transform:rotate(2deg); }
.field-app-device__frame { width:clamp(178px,18vw,226px); padding:7px; background:linear-gradient(145deg,#0b0d10,#424851 45%,#07090c); border:1px solid rgba(255,255,255,.38); border-radius:34px; box-shadow:inset 0 0 0 2px #07090c; }
.field-app-device__frame img { display:block; width:100%; height:auto; border-radius:27px; background:#f3f6f9; }
.portfolio-overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 10px; margin-bottom: 18px; }
.portfolio-status-summary, .portfolio-money-summary { display: grid; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px rgba(18,79,127,.025); }
.portfolio-status-summary { grid-template-columns: repeat(3, 1fr); }
.portfolio-status-summary article { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-right: 1px solid var(--line); }
.portfolio-status-summary article:last-child { border-right: 0; }
.portfolio-status-summary strong { display: block; font-size: 22px; line-height: 1; }
.portfolio-status-summary small { display: block; margin-top: 3px; color: var(--muted); font-size:11px; }
.summary-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; font-size:12px; font-weight: 900; }
.summary-icon.healthy { color: #124f7f; background: #e7eff6; }.summary-icon.attention { color: #9a5b00; background: #fff3d6; }.summary-icon.critical { color: #b42318; background: #feeceb; }
.portfolio-money-summary { grid-template-columns: repeat(2, 1fr); }
.portfolio-money-summary > div { padding: 11px 14px; border-right: 1px solid var(--line); }.portfolio-money-summary > div:last-child { border: 0; }
.portfolio-money-summary .eyebrow { margin:0 0 5px; font-size:9px; }.portfolio-money-summary p:not(.eyebrow) { display: flex; justify-content: space-between; gap: 10px; margin: 3px 0; }.portfolio-money-summary p span { color: var(--muted); font-size: 11px; font-weight: 800; }.portfolio-money-summary p strong { font-size: 13px; }
.portfolio-section-heading { align-items: center; margin:14px 0 10px; }.portfolio-section-heading .eyebrow { margin:0; font-size:9px; }.portfolio-section-heading h2 { margin:1px 0 0; font-size:22px; }.portfolio-section-heading .button { min-height:34px; padding:8px 12px; font-size:12px; }
.portfolio-grid--executive { grid-template-columns: repeat(auto-fit,minmax(600px,1fr)); grid-auto-rows:1fr; align-items:stretch; }
.portfolio-grid--executive .portfolio-project { min-height:390px; height:100%; padding:15px 16px 0; display:flex; }
.project-health-actions { min-width:max-content; flex:0 0 auto; display:flex; align-items:center; gap:7px; }.health-badge { min-height:30px; display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:var(--radius-pill); color:#124f7f; background:#e7eff6; font-size:10px; font-weight:850; line-height:1; white-space:nowrap; }.health-badge i { width:6px; height:6px; flex:0 0 6px; border-radius:50%; background:currentColor; }.health-badge.attention { color:#9a5b00; background:#fff3d6; }.health-badge.critical { color:#b42318; background:#feeceb; }.project-health-actions .project-open-button { min-height:30px; align-items:center; padding:5px 9px; border-radius:var(--radius-pill); font-size:10px; line-height:1; white-space:nowrap; }
.portfolio-performance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }.portfolio-metric-link { color:inherit; text-decoration:none; transition:background .15s,border-color .15s,box-shadow .15s; }.portfolio-performance > .portfolio-metric-link { padding:7px; border:1px solid transparent; border-radius:8px; }.portfolio-performance > .portfolio-metric-link > span { color: var(--muted); font-size: 10px; }.portfolio-performance > .portfolio-metric-link > strong { float: right; font-size: 12px; }.portfolio-performance .progress-track { clear: both; height: 5px; margin-top: 6px; }.portfolio-performance .progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--forest-2); }.portfolio-metric-link:hover,.portfolio-metric-link:focus-visible,.portfolio-alert-link:hover,.portfolio-alert-link:focus-visible { background:#f3f7fa; }.portfolio-metric-link:focus-visible,.portfolio-alert-link:focus-visible { outline:2px solid #4c84ae; outline-offset:-2px; }.portfolio-kpis--executive > .portfolio-metric-link { position:relative; }.portfolio-kpis--executive > .portfolio-metric-link::after { content:"→"; position:absolute; top:8px; right:8px; color:#74889a; opacity:0; transition:opacity .15s; }.portfolio-kpis--executive > .portfolio-metric-link:hover::after,.portfolio-kpis--executive > .portfolio-metric-link:focus-visible::after { opacity:1; }
.portfolio-kpis--executive { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius:9px; }.portfolio-kpis--executive > :is(div,a) { padding:9px 10px; }.portfolio-kpis--executive small { font-size:10px; }.portfolio-kpis--executive strong { font-size:12px; }
.portfolio-alert-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }.portfolio-alert-link { display:flex; align-items:center; gap:8px; min-height:46px; padding:7px 9px; color:inherit; background:#f3f7fa; text-decoration:none; transition:background .15s; }.portfolio-alert-link > span:nth-child(2) { min-width:0; }.metric-arrow { margin-left:auto; color:#617689; font-weight:850; }.alert-count { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: #b42318; background: #feeceb; font-size:11px; font-weight: 900; }.alert-count.currency { width: auto; min-width: 38px; padding: 0 7px; color: #9a5b00; background: #fff3d6; font-size: 10px; }.portfolio-alert-strip strong { display: block; overflow:hidden; font-size: 11px; text-overflow:ellipsis; white-space:nowrap; }
.portfolio-project-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.portfolio-grid--executive .portfolio-project-footer { margin:auto -16px 0; padding:8px 16px; border-top:1px solid var(--line); background:#f3f7fa; border-radius:0 0 12px 12px; }
.portfolio-grid--executive .portfolio-actions { margin:0; gap:14px; }.portfolio-grid--executive .portfolio-actions a { font-size:11px; }
.portfolio-lifecycle-actions { flex:0 0 auto; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; margin-left:auto; }
.portfolio-lifecycle-actions form { margin:0; }
.portfolio-lifecycle-actions .button { min-height:30px; align-items:center; padding:5px 9px; border-radius:var(--radius-pill); font-size:10px; line-height:1; white-space:nowrap; }
.project-background-settings { margin-bottom:30px; padding-bottom:30px; border-bottom:1px solid var(--line); }
.project-background-settings .section-heading { margin-top:0; }
.project-background-preview { height:220px; margin:0 0 16px; overflow:hidden; background:#e7eff6; border:1px solid var(--line); border-radius:12px; }
.project-background-preview img { display:block; width:100%; height:100%; object-fit:cover; opacity:var(--project-background-opacity,.4); }
.project-background-settings label small { color:var(--muted); font-weight:500; }
.project-background-opacity { display:grid; gap:7px; margin-top:14px; }
.project-background-opacity > label { margin:0; }
.project-background-opacity > div { display:flex; align-items:center; gap:14px; }
.project-background-opacity input[type="range"] { flex:1; margin:0; cursor:pointer; }
.project-background-opacity output { min-width:52px; padding:7px 9px; border:1px solid var(--line); border-radius:8px; background:#f3f7fa; color:#0d2740; font-weight:850; text-align:center; }
.project-background-opacity small { color:var(--muted); }
.project-background-remove { width:max-content; margin-top:14px; color:#b42318 !important; }
@media (max-width: 1280px) { .portfolio-grid--executive { grid-template-columns:1fr; grid-auto-rows:auto; } }
@media (max-width: 980px) { .portfolio-overview { grid-template-columns: 1fr; }.portfolio-performance, .portfolio-kpis--executive { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .portfolio-status-summary, .portfolio-money-summary, .portfolio-performance, .portfolio-kpis--executive, .portfolio-alert-strip, .project-permissions ul { grid-template-columns: 1fr; }.portfolio-status-summary article, .portfolio-money-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }.portfolio-hero-actions { align-items:flex-start; flex-direction:column; }.portfolio-grid--executive .portfolio-project { min-height:0; }.portfolio-project-heading { grid-template-columns:1fr; gap:10px; }.portfolio-project-heading h2 { min-height:0; }.portfolio-project-brand { grid-template-columns:48px minmax(0,1fr); gap:10px; }.portfolio-project-logo { width:48px; height:48px; }.project-health-actions { align-items:center; flex-direction:row; }.portfolio-project-footer { align-items:flex-end; }.portfolio-actions { gap:10px 14px; }.portfolio-invitation-grid { grid-template-columns:1fr; }.field-app-spotlight { grid-template-columns:1fr; padding:30px 22px; text-align:left; }.field-app-device { margin-top:8px; transform:rotate(0); }.field-app-spotlight__copy ul { display:grid; }.field-app-spotlight__copy h2 { font-size:34px; }.project-background-preview { height:170px; } }
.feedback-form { max-width: 920px; }
.feedback-context { margin: 20px 0; padding: 16px 18px; display: grid; gap: 5px; background: var(--surface, #f3f7fa); border: 1px solid var(--line); border-radius: 12px; }
.feedback-context span, .feedback-context code { color: var(--muted); overflow-wrap: anywhere; }
.header-help > div a { display: block; }
.report-selector { max-width: 520px; margin-bottom: 18px; padding: 14px 18px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.report-selector label { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 780; }
.report-selector select { flex: 1; padding: 10px; border: 1px solid #b7cad9; border-radius: 9px; background: white; }
.report-sheet { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.report-brand { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.report-brand > div { display: flex; align-items: center; gap: 12px; }
.report-brand img { width: 44px; height: 44px; border-radius: 10px; }
.report-brand div div { display: flex; flex-direction: column; }
.report-brand span, .report-brand small, .report-sheet footer { color: var(--muted); font-size: 12px; }
.report-table td:nth-child(2) { min-width: 180px; }
.report-sheet footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.report-controls { margin-bottom:18px; padding:14px 18px; border:1px solid var(--line); border-radius:14px; background:white; }
.report-controls form { display:flex; gap:20px; }
.report-controls label { min-width:260px; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:10px; color:var(--muted); font-size:12px; font-weight:800; }
.report-controls select { min-width:0; padding:9px 10px; border:1px solid #b7cad9; border-radius:8px; background:white; }
.report-document { overflow:hidden; border:1px solid #d1dee8; border-radius:18px; color:#071c33; background:white; box-shadow:0 16px 45px rgb(7 28 51 / 8%); }
.report-document-cover { min-height:300px; padding:34px 42px 30px; display:grid; grid-template-columns:1fr auto; grid-template-rows:auto 1fr auto; gap:32px; color:white; background:linear-gradient(135deg,#071c33 0%,#0d2740 72%,#275f8c 140%); }
.report-document--residency .report-document-cover { background:linear-gradient(135deg,#071c33,#124f7f 72%,#275f8c 140%); }
.report-document--board .report-document-cover { background:linear-gradient(135deg,#071c33 0%,#0d2740 64%,#8b742c 140%); }
.report-document-brand { display:flex; align-items:center; gap:11px; }.report-owner-logo { width:44px; height:44px; flex-basis:44px; border-color:rgb(255 255 255 / 45%); border-radius:10px; box-shadow:none; }.report-document-brand img { width:100%; height:100%; border-radius:inherit; }.report-document-brand div { display:grid; }.report-document-brand strong { font-size:17px; letter-spacing:.08em; }.report-document-brand span { color:#d1dee8; font-size:10px; text-transform:uppercase; letter-spacing:.13em; }
.report-document-meta { display:grid; justify-items:end; align-content:start; gap:4px; }.report-document-meta span { color:#d1dee8; font-size:10px; font-weight:850; letter-spacing:.13em; }.report-document-meta strong { font-size:13px; }
.report-document-title { grid-column:1 / -1; align-self:center; }.report-document-title p { margin:0 0 8px; color:#b7cad9; font-size:13px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.report-document-title h1 { max-width:850px; margin:0 0 9px; color:white; font-size:38px; }.report-document-title span { color:#e7eff6; font-size:16px; }
.report-document-cover dl { grid-column:1 / -1; margin:0; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }.report-document-cover dl div { padding-top:12px; border-top:1px solid rgb(255 255 255 / 25%); }.report-document-cover dt { color:#b7cad9; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }.report-document-cover dd { margin:5px 0 0; font-weight:750; }
.report-executive-summary { padding:30px 40px 24px; display:flex; justify-content:space-between; align-items:start; gap:30px; }.report-executive-summary h2 { margin:3px 0 8px; }.report-executive-summary p:last-child { max-width:900px; margin:0; color:#275f8c; line-height:1.55; }
.report-health { padding:8px 12px; display:inline-flex; align-items:center; gap:7px; border-radius:99px; color:#124f7f; background:#e7eff6; font-size:11px; font-weight:850; white-space:nowrap; }.report-health i { width:7px; height:7px; border-radius:50%; background:currentColor; }.report-health.critical { color:#b42318; background:#feeceb; }
.report-kpi-grid { padding:0 40px 30px; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }.report-kpi-grid article { min-height:128px; padding:18px; display:grid; align-content:start; border:1px solid #d1dee8; border-top:4px solid #6f93ae; border-radius:12px; background:#f3f7fa; }.report-kpi-grid article.attention { border-top-color:#d79a22; }.report-kpi-grid article.critical { border-top-color:#d64c42; }.report-kpi-grid article.healthy { border-top-color:#275f8c; }.report-kpi-grid span { color:#617689; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }.report-kpi-grid strong { margin:12px 0 5px; font-size:25px; line-height:1.05; }.report-kpi-grid small { color:#617689; }
.report-section { padding:28px 40px; border-top:1px solid #e7eff6; }.report-section-heading { margin-bottom:17px; display:flex; justify-content:space-between; align-items:end; gap:20px; }.report-section-heading h2 { margin:2px 0 0; }.report-section-heading > span { color:#617689; font-size:12px; font-weight:750; }
.report-priority-list { display:grid; gap:7px; }.report-priority-list article { min-height:62px; padding:11px 15px; display:grid; grid-template-columns:5px minmax(240px,1fr) minmax(145px,.35fr) minmax(120px,.25fr); align-items:center; gap:15px; border:1px solid #e7eff6; border-radius:9px; }.report-priority-list > article > i { width:5px; height:34px; border-radius:4px; background:#d79a22; }.report-priority-list > article > i.critical { background:#d64c42; }.report-priority-list span { display:grid; gap:2px; }.report-priority-list small { color:#74889a; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }.report-priority-list strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.report-clear-state { padding:22px; border:1px solid #d1dee8; border-radius:10px; color:#124f7f; background:#f3f7fa; font-weight:750; }
.report-detail-section { padding-bottom:36px; }.report-detail-section .table-shell { border-radius:10px; }.report-detail-section table { font-size:11px; }.report-detail-section th { color:white; background:#0d2740; }.report-detail-section td { padding:10px; }
.report-document > footer { padding:18px 40px; display:flex; justify-content:space-between; gap:20px; color:#617689; background:#f3f7fa; font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.attendance-heading { margin-bottom:16px; display:flex; align-items:flex-end; justify-content:space-between; gap:24px; }
.attendance-heading h1 { margin:4px 0 3px; }.attendance-heading p { margin:0; color:var(--muted); }
.attendance-heading-actions { display:flex; align-items:center; gap:10px; }
.attendance-private-badge { padding:7px 10px; border:1px solid #d1b96b; border-radius:var(--radius-pill); color:#604a05; background:#fff8dc; font-size:11px; font-weight:850; white-space:nowrap; }
.attendance-heading-actions .record-meta-control { min-height:29px; }
.attendance-date-bar { margin-bottom:12px; padding:8px 10px; display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:var(--radius-card); background:white; }
.attendance-date-bar > form { display:flex; align-items:center; gap:7px; }.attendance-date-bar > form input[type="date"] { min-height:38px; padding:7px 9px; border:1px solid #b7cad9; background:white; }
.attendance-date-step { width:36px; height:36px; display:grid; place-items:center; border:1px solid var(--line); border-radius:var(--radius-control); color:var(--forest); background:#f3f7fa; font-size:23px; font-weight:700; text-decoration:none; }
.attendance-week-navigation { display:flex; align-items:center; gap:5px; }.attendance-workweek-settings { position:relative; }.attendance-workweek-settings > summary { cursor:pointer; list-style:none; }.attendance-workweek-settings > summary::-webkit-details-marker { display:none; }.attendance-workweek-settings[open] > summary { border-color:var(--forest); }.attendance-workweek-settings form { width:310px; position:absolute; z-index:12; top:42px; left:0; padding:12px; display:grid; gap:9px; border:1px solid var(--line); border-radius:var(--radius-overlay); background:white; box-shadow:var(--shadow-overlay); }.attendance-workweek-settings fieldset { margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; border:0; }.attendance-workweek-settings legend { grid-column:1 / -1; margin-bottom:6px; color:var(--ink); font-size:10px; font-weight:850; }.attendance-workweek-settings label { padding:5px 6px; display:flex; align-items:center; gap:6px; border-radius:5px; background:#f3f7fa; color:var(--ink); font-size:9px; font-weight:750; }.attendance-workweek-settings input { margin:0; accent-color:var(--forest); }.attendance-workweek-settings p { margin:0; color:var(--muted); font-size:8px; line-height:1.35; }.attendance-workweek-settings .button { justify-self:start; }.attendance-workweek-summary { margin:3px 0 0!important; color:var(--muted); font-size:9px; }
.attendance-today-link { margin-left:auto; color:var(--forest); font-size:12px; font-weight:800; }
.attendance-metrics { margin-bottom:12px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.attendance-metrics article { min-width:0; padding:12px 14px; display:flex; flex-direction:column; gap:4px; border:1px solid var(--line); border-radius:var(--radius-card); background:white; box-shadow:var(--shadow-card); }
.attendance-metrics span { overflow:hidden; color:var(--muted); font-size:10px; font-weight:800; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }.attendance-metrics strong { font-size:24px; font-variant-numeric:tabular-nums; }
.attendance-review-alert { margin-bottom:12px; padding:10px 13px; display:flex; align-items:center; gap:10px; border:1px solid #e2bf76; border-left:4px solid #c47a09; border-radius:var(--radius-card); color:#684500; background:#fff8e8; font-size:12px; }.attendance-review-alert span { color:#765f32; }
.attendance-table-shell { border-radius:var(--radius-card); }.attendance-table { min-width:1040px; font-size:12px; }.attendance-table th { padding:9px 10px; font-size:11px; }.attendance-table td { padding:8px 10px; vertical-align:middle; }.attendance-table td:nth-child(2) { min-width:0; }
.attendance-table td:first-child { min-width:190px; }.attendance-table td:first-child strong,.attendance-table td:first-child small,.attendance-table td:last-child small { display:block; }.attendance-table td small { margin-top:2px; color:var(--muted); font-size:10px; }
.attendance-entry-note { display:-webkit-box; min-width:210px; max-width:300px; overflow:hidden; color:#124f7f; font-size:10px; line-height:1.3; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.attendance-status,.attendance-ok { display:inline-flex; padding:4px 7px; border-radius:var(--radius-pill); color:#124f7f; background:#e8f1f7; font-size:10px; font-weight:850; white-space:nowrap; }.attendance-status-absent { color:#8d251f; background:#fee9e7; }.attendance-status-leave,.attendance-status-sick { color:#6f5007; background:#fff3cf; }.attendance-status-rest { color:#445b68; background:#eaf0f3; }
.attendance-flags { position:relative; }.attendance-flags summary { display:inline-flex; padding:4px 7px; border-radius:var(--radius-pill); color:#8a3c05; background:#fff0da; cursor:pointer; font-size:10px; font-weight:850; list-style:none; }.attendance-flags summary::-webkit-details-marker { display:none; }.attendance-flags ul { width:280px; position:absolute; z-index:5; right:0; top:24px; margin:0; padding:12px 12px 12px 28px; border:1px solid #e2bf76; border-radius:var(--radius-overlay); color:#5e4d29; background:white; box-shadow:var(--shadow-overlay); line-height:1.4; }
.attendance-empty { height:120px; color:var(--muted); text-align:center; }
.attendance-section-heading { margin-bottom:9px; display:flex; align-items:flex-end; justify-content:space-between; gap:18px; flex-wrap:wrap; }.attendance-section-heading .eyebrow { margin:0 0 2px; }.attendance-section-heading h2 { margin:0; font-size:19px; }
.attendance-weekly-report,.attendance-personnel { margin-top:12px; padding:13px; border:1px solid var(--line); border-radius:var(--radius-card); background:white; box-shadow:var(--shadow-card); }
.attendance-weekly-totals { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }.attendance-weekly-totals span { padding:5px 8px; border-radius:var(--radius-pill); color:var(--muted); background:#f3f7fa; font-size:10px; white-space:nowrap; }.attendance-weekly-totals strong { color:var(--ink); font-size:11px; font-variant-numeric:tabular-nums; }
.attendance-weekly-table-shell { border-radius:8px; box-shadow:none; }.attendance-weekly-table { min-width:1040px; font-size:10px; }.attendance-weekly-table th { padding:6px 7px; font-size:9px; }.attendance-weekly-table td { padding:6px 7px; vertical-align:middle; }.attendance-weekly-table td:first-child { min-width:155px; }.attendance-weekly-table td strong,.attendance-weekly-table td small { display:block; }.attendance-weekly-table td small { margin-top:1px; color:var(--muted); font-size:9px; }.attendance-week-marks { min-width:205px; }.attendance-week-marks span { margin:1px 3px 1px 0; padding:2px 4px; display:inline-block; border-radius:4px; color:#124f7f; background:#f3f7fa; white-space:nowrap; }.attendance-report-note { margin:7px 1px 0; color:var(--muted); font-size:9px; line-height:1.35; }
.attendance-worker-form { max-width:100%; }.attendance-worker-form > summary { margin-left:auto; cursor:pointer; list-style:none; }.attendance-worker-form > summary::-webkit-details-marker { display:none; }.attendance-worker-form[open] { width:100%; }.attendance-worker-form form { margin-top:9px; padding:11px; border:1px solid var(--line); border-radius:8px; background:#f3f7fa; }.attendance-worker-grid { display:grid; grid-template-columns:repeat(5,minmax(120px,1fr)); gap:7px; }.attendance-worker-grid label { color:var(--muted); font-size:9px; font-weight:800; }.attendance-worker-grid input,.attendance-worker-grid select { width:100%; min-height:31px; margin-top:3px; padding:5px 7px; border:1px solid #b7cad9; border-radius:6px; background:white; font:inherit; color:var(--ink); }.attendance-worker-actions { margin-top:8px; display:flex; align-items:center; justify-content:space-between; gap:12px; }.attendance-worker-actions span { color:var(--muted); font-size:9px; }
.attendance-personnel-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }.attendance-personnel-list article { min-width:0; padding:8px 9px; display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid var(--line); border-radius:8px; background:#f3f7fa; }.attendance-worker-identity { min-width:0; display:flex; align-items:center; gap:8px; }.attendance-worker-identity div { min-width:0; }.attendance-worker-identity strong,.attendance-worker-identity small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.attendance-worker-identity strong { font-size:11px; }.attendance-worker-identity small,.attendance-biometric-state small { color:var(--muted); font-size:9px; }.attendance-worker-photo { width:34px; height:34px; flex:0 0 34px; border-radius:50%; object-fit:cover; }.attendance-worker-initials { display:grid; place-items:center; color:white; background:var(--forest); font-size:10px; font-weight:850; }.attendance-biometric-state { min-width:168px; display:flex; align-items:flex-end; flex-direction:column; gap:3px; text-align:right; }.attendance-biometric-state small { max-width:180px; line-height:1.2; }.attendance-biometric-actions { display:flex; align-items:center; justify-content:flex-end; gap:4px; }.attendance-biometric-actions .record-meta-control { min-height:26px; padding:4px 7px; font-size:9px; }
.attendance-worker-link { color:var(--ink); text-decoration:none; }.attendance-worker-link:hover { color:var(--forest); text-decoration:underline; text-underline-offset:2px; }
.attendance-reference { margin-top:12px; padding:14px 16px; display:grid; grid-template-columns:180px minmax(420px,1fr); gap:12px 24px; border:1px solid var(--line); border-radius:var(--radius-card); background:#f3f7fa; }.attendance-reference h2 { font-size:18px; }.attendance-reference .eyebrow { margin:0; }.attendance-reference dl { margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }.attendance-reference dl div { padding:9px; border-radius:7px; background:white; }.attendance-reference dt { color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; }.attendance-reference dd { margin:3px 0 0; font-size:12px; font-weight:850; }.attendance-reference > p { grid-column:1 / -1; margin:0; color:var(--muted); font-size:10px; line-height:1.45; }
.attendance-form-heading { max-width:960px; align-items:center; }.attendance-form-heading h1 { font-size:30px; }.attendance-form { max-width:960px; padding:16px; }.attendance-form section + section { margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }.attendance-form h2 { margin:0 0 9px; font-size:16px; }.attendance-form label small { display:block; color:#74889a; font-size:9px; font-weight:600; }.attendance-notes-label { display:block; }.attendance-notes-label textarea { width:100%; min-height:70px; padding:8px 10px; border:1px solid #b7cad9; background:white; font:inherit; }.attendance-form-actions { margin-top:14px; padding-top:11px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid var(--line); }.attendance-form-actions span { color:var(--muted); font-size:9px; }
@media (max-width:1450px) { .attendance-personnel-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.attendance-biometric-state { min-width:145px; }.attendance-biometric-state small { max-width:220px; } }
@media (max-width:900px) { .attendance-heading { align-items:flex-start; flex-direction:column; }.attendance-heading-actions { width:100%; justify-content:space-between; }.attendance-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.attendance-reference { grid-template-columns:1fr; }.attendance-reference dl { grid-template-columns:repeat(2,minmax(0,1fr)); }.attendance-reference > p { grid-column:auto; }.attendance-worker-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.attendance-personnel-list { grid-template-columns:1fr; } }
@media (max-width:560px) { .attendance-heading-actions { align-items:stretch; flex-direction:column; }.attendance-heading-actions .button { justify-content:center; }.attendance-date-bar { flex-wrap:wrap; }.attendance-date-bar > form { flex:1 1 auto; }.attendance-date-bar > form input[type="date"] { min-width:0; flex:1; }.attendance-today-link { margin-left:0; }.attendance-workweek-settings form { width:min(310px,calc(100vw - 48px)); left:auto; right:0; }.attendance-metrics { grid-template-columns:1fr 1fr; }.attendance-review-alert { align-items:flex-start; flex-direction:column; }.attendance-reference dl { grid-template-columns:1fr 1fr; }.attendance-form-actions,.attendance-worker-actions { align-items:stretch; flex-direction:column; }.attendance-form-actions .button { justify-content:center; }.attendance-worker-grid { grid-template-columns:1fr; }.attendance-personnel-list article { align-items:flex-start; flex-direction:column; }.attendance-biometric-state { align-items:flex-start; text-align:left; } }

.employee-dossier-page { display:grid; gap:12px; }.employee-dossier-header { padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:24px; border:1px solid var(--line); border-radius:var(--radius-card); background:white; box-shadow:var(--shadow-card); }.employee-dossier-identity { min-width:0; display:flex; align-items:center; gap:13px; }.employee-dossier-photo { width:68px; height:68px; flex:0 0 68px; border-radius:50%; object-fit:cover; border:2px solid #d5e1ea; }.employee-dossier-initials { display:grid; place-items:center; color:white; background:var(--forest); font-size:19px; font-weight:850; }.employee-dossier-header .eyebrow { margin:0 0 3px; }.employee-dossier-header h1 { margin:0; font-size:28px; }.employee-dossier-header p:last-child { margin:3px 0 0; color:var(--muted); font-size:12px; }.employee-dossier-header-actions { display:flex; align-items:center; gap:7px; }.employee-active-status { color:#124f7f; background:#e8f1f7; }.employee-suspended-status { color:#8b3028; background:#fde9e6; }
.employee-dossier-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }.employee-dossier-metrics article { padding:10px 12px; display:grid; gap:3px; border:1px solid var(--line); border-radius:9px; background:white; }.employee-dossier-metrics small { color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }.employee-dossier-metrics strong { font-size:16px; }
.employee-dossier-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,360px); gap:10px; align-items:start; }.employee-dossier-card { padding:14px; border:1px solid var(--line); border-radius:var(--radius-card); background:white; box-shadow:var(--shadow-card); }.employee-dossier-card h2 { margin:2px 0 0; font-size:19px; }.employee-dossier-section-heading { margin-bottom:10px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }.employee-dossier-section-heading .eyebrow { margin:0; }.employee-dossier-editor,.employee-document-form { max-width:100%; }.employee-dossier-editor > summary,.employee-document-form > summary { cursor:pointer; list-style:none; }.employee-dossier-editor > summary::-webkit-details-marker,.employee-document-form > summary::-webkit-details-marker { display:none; }.employee-dossier-editor[open],.employee-document-form[open] { width:100%; }.employee-dossier-editor[open] > summary,.employee-document-form[open] > summary { margin-left:auto; width:max-content; }.employee-profile-form,.employee-document-form form { margin-top:9px; padding:11px; border:1px solid var(--line); border-radius:8px; background:#f7faf8; }.employee-profile-form label,.employee-document-form label,.employee-status-form label { color:var(--muted); font-size:10px; font-weight:800; }.employee-profile-form input,.employee-document-form input,.employee-document-form select,.employee-status-form input { width:100%; min-height:32px; margin-top:4px; padding:6px 8px; border:1px solid #bdccd8; border-radius:6px; color:var(--ink); background:white; font:inherit; }.employee-profile-form label small,.employee-document-form label small { display:block; margin-top:3px; font-size:8px; font-weight:600; }.employee-document-required { display:flex!important; align-items:center; flex-direction:row!important; gap:7px; }.employee-document-required input { width:auto; min-height:0; margin:0; }.employee-dossier-data { margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }.employee-dossier-data div { min-width:0; padding:9px 10px; border-radius:7px; background:#f4f7f5; }.employee-dossier-data dt { color:var(--muted); font-size:8px; font-weight:850; text-transform:uppercase; }.employee-dossier-data dd { margin:3px 0 0; overflow:hidden; font-size:11px; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.employee-status-card > p:not(.eyebrow) { color:var(--muted); font-size:10px; line-height:1.4; }.employee-status-form { margin-top:10px; display:grid; gap:7px; }.employee-status-form .button { justify-self:start; }.employee-status-history { margin-top:12px; padding-top:8px; display:grid; gap:7px; border-top:1px solid var(--line); }.employee-status-history div { padding-left:9px; border-left:3px solid #bdccd8; }.employee-status-history strong,.employee-status-history small { display:block; }.employee-status-history strong { font-size:10px; }.employee-status-history small { color:var(--muted); font-size:8px; }.employee-status-history p { margin:2px 0 0!important; color:var(--ink)!important; font-size:9px!important; }
.employee-documents-card { overflow:hidden; }.employee-document-summary { margin-bottom:9px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }.employee-document-summary article { padding:8px 10px; display:flex; align-items:center; justify-content:space-between; gap:8px; border-radius:7px; background:#f1f5f3; }.employee-document-summary span { color:var(--muted); font-size:9px; font-weight:800; }.employee-document-summary strong { font-size:14px; }.employee-document-list { display:grid; gap:6px; }.employee-document-list > article { min-width:0; padding:9px; display:grid; grid-template-columns:minmax(210px,1.2fr) 105px auto minmax(150px,.7fr) minmax(210px,.85fr); align-items:center; gap:10px; border:1px solid var(--line); border-radius:8px; }.employee-document-main { min-width:0; }.employee-document-main .eyebrow { margin:0; font-size:8px; }.employee-document-main h3 { margin:2px 0; overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.employee-document-main p:last-child { margin:0; overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.employee-document-validity { display:grid; gap:2px; }.employee-document-validity small { color:var(--muted); font-size:8px; text-transform:uppercase; }.employee-document-validity strong { font-size:10px; }.employee-document-validity span { color:var(--muted); font-size:8px; }.employee-document-status { font-size:9px; white-space:nowrap; }.employee-document-status-verified { color:#124f7f; background:#e8f1f7; }.employee-document-status-submitted { color:#275973; background:#e2f0f7; }.employee-document-status-rejected,.employee-document-status-revoked,.employee-document-status-expired { color:#8a3028; background:#fde8e5; }.employee-document-files { min-width:0; display:grid; gap:3px; }.employee-file-link { min-width:0; display:flex; align-items:center; gap:5px; overflow:hidden; color:var(--forest); font-size:9px; font-weight:750; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }.employee-file-link span { padding:2px 3px; border-radius:3px; color:white; background:#c94840; font-size:7px; }.employee-document-controls form { display:grid; grid-template-columns:minmax(100px,1fr) auto; gap:5px; }.employee-document-controls input { width:100%; min-height:28px; padding:4px 6px; border:1px solid #bdccd8; border-radius:5px; font-size:9px; }.employee-dossier-empty { padding:26px; border:1px dashed #bdccd8; border-radius:8px; color:var(--muted); text-align:center; }.employee-dossier-empty strong { color:var(--ink); }.employee-dossier-empty p { margin:4px 0 0; font-size:10px; }
@media (max-width:1150px) { .employee-dossier-layout { grid-template-columns:1fr; }.employee-document-list > article { grid-template-columns:minmax(220px,1.2fr) 100px auto minmax(170px,.8fr); }.employee-document-controls { grid-column:1 / -1; }.employee-document-controls form { grid-template-columns:1fr auto; } }
@media (max-width:760px) { .employee-dossier-header,.employee-dossier-section-heading { align-items:flex-start; flex-direction:column; }.employee-dossier-header-actions { width:100%; flex-wrap:wrap; }.employee-dossier-metrics,.employee-document-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.employee-dossier-data { grid-template-columns:repeat(2,minmax(0,1fr)); }.employee-document-list > article { grid-template-columns:1fr; align-items:start; }.employee-document-controls { grid-column:auto; }.employee-dossier-editor,.employee-document-form { width:100%; }.employee-dossier-editor > summary,.employee-document-form > summary { width:100%; justify-content:center; } }

.biometric-grid { display:grid; grid-template-columns:minmax(360px,1.15fr) minmax(320px,.85fr); gap:22px; align-items:start; }
.biometric-quick-enroll { margin:18px 0; padding:20px; display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,.8fr); align-items:end; gap:24px; border:1px solid #b7cad9; border-radius:16px; background:linear-gradient(120deg,#f3f7fa,#e7eff6); }.biometric-quick-enroll h2 { margin:3px 0 6px; }.biometric-quick-enroll p:last-child { margin:0; color:#617689; }.biometric-quick-enroll form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; }.biometric-quick-enroll label { display:grid; gap:6px; color:#4c84ae; font-size:12px; font-weight:800; }.biometric-quick-enroll select { width:100%; padding:11px; border:1px solid #b7cad9; border-radius:9px; background:white; }
.biometric-camera-card { padding:18px; border:1px solid var(--line); border-radius:18px; background:#071c33; color:white; text-align:center; }
.camera-frame { aspect-ratio:4/3; position:relative; overflow:hidden; border-radius:14px; background:#071c33; }
.camera-frame video { width:100%; height:100%; object-fit:cover; transform:scaleX(-1); }
.face-guide,.kiosk-face-guide { position:absolute; inset:12%; display:grid; place-items:center; pointer-events:none; }
.face-guide span,.kiosk-face-guide span { width:48%; height:78%; border:3px solid rgb(255 255 255 / 75%); border-radius:48%; box-shadow:0 0 0 999px rgb(0 0 0 / 22%); }
.biometric-camera-card p { min-height:40px; color:#d1dee8; }
.consent-check { margin:22px 0; padding:14px; display:flex!important; flex-direction:row!important; align-items:start; gap:10px; border:1px solid #d1dee8; border-radius:10px; background:#f3f7fa; }
.consent-check input { width:auto!important; margin-top:3px; }
.attendance-kiosk { position:fixed; z-index:1000; inset:0; min-height:100dvh; display:grid; grid-template-rows:auto 1fr auto; color:white; background:#071c33; }
.attendance-kiosk header { min-height:84px; padding:14px 22px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; border-bottom:1px solid rgb(255 255 255 / 13%); background:#071c33; }
.kiosk-brand { display:flex; align-items:center; gap:12px; }.kiosk-brand img { width:48px; height:48px; border-radius:11px; }.kiosk-brand div { display:grid; }.kiosk-brand span { color:#94aec2; font-size:12px; }
.kiosk-clock { display:grid; text-align:center; }.kiosk-clock strong { font-size:28px; }.kiosk-clock span { color:#94aec2; font-size:11px; text-transform:capitalize; }
.kiosk-exit { justify-self:end; color:#d1dee8; font-size:12px; text-decoration:none; }
.attendance-kiosk main { min-height:0; display:grid; grid-template-columns:minmax(0,1.45fr) minmax(330px,.55fr); align-items:center; gap:30px; padding:24px; }
.kiosk-camera { height:min(72dvh,760px); position:relative; overflow:hidden; border:1px solid #124f7f; border-radius:24px; background:#071c33; box-shadow:0 24px 60px rgb(0 0 0 / 35%); }
.kiosk-camera video { width:100%; height:100%; object-fit:cover; transform:scaleX(-1); }
.kiosk-face-guide { inset:8%; }.kiosk-face-guide span { width:min(48%,420px); height:78%; border-width:4px; }
.kiosk-scanner { position:absolute; left:26%; right:26%; top:20%; height:2px; background:#75c6ff; box-shadow:0 0 18px #75c6ff; animation:kiosk-scan 2.2s ease-in-out infinite alternate; }
@keyframes kiosk-scan { to { transform:translateY(42dvh); } }
.kiosk-message,.kiosk-result { padding:30px; text-align:center; }.kiosk-message h1 { margin:8px 0 12px; color:white; font-size:38px; line-height:1.05; }.kiosk-message > p:last-child { color:#94aec2; }
.kiosk-camera-button { margin:18px auto 0; color:#071c33; background:#75c6ff; border-color:#75c6ff; }
.kiosk-result-icon { width:86px; height:86px; margin:0 auto 20px; display:grid; place-items:center; border-radius:50%; color:#071c33; background:#75c6ff; font-size:48px; font-weight:900; }.kiosk-result.error .kiosk-result-icon { color:white; background:#d64c42; }.kiosk-result h2 { margin:8px 0; color:white; font-size:34px; }.kiosk-result p { color:#75c6ff; font-weight:850; text-transform:uppercase; letter-spacing:.08em; }.kiosk-result.error p { color:#ff8a80; }.kiosk-result strong { display:block; font-size:25px; }.kiosk-result small { color:#94aec2; }
.attendance-kiosk footer { padding:13px 22px; display:flex; justify-content:space-between; gap:20px; color:#9eb8cc; border-top:1px solid rgb(255 255 255 / 13%); font-size:11px; }.status-dot { width:8px; height:8px; margin-right:7px; display:inline-block; border-radius:50%; background:#63c6d5; box-shadow:0 0 9px #63c6d5; }
.status-dot.error { background:#e55c50; box-shadow:0 0 9px #e55c50; }
@media (max-width:800px) { .biometric-grid,.biometric-quick-enroll { grid-template-columns:1fr; }.biometric-quick-enroll form { grid-template-columns:1fr; }.attendance-kiosk header { grid-template-columns:1fr auto; }.kiosk-clock { grid-row:2; grid-column:1/-1; }.attendance-kiosk main { grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) auto; padding:12px; gap:4px; }.kiosk-camera { height:auto; min-height:48dvh; }.kiosk-message,.kiosk-result { padding:12px; }.kiosk-message h1 { font-size:26px; }.attendance-kiosk footer span:last-child { display:none; } }
@media (max-width:900px) { .report-controls form,.report-executive-summary { flex-direction:column; }.report-controls label { min-width:0; }.report-kpi-grid { grid-template-columns:repeat(2,1fr); }.report-priority-list article { grid-template-columns:5px 1fr; }.report-priority-list article span:nth-of-type(n+2) { padding-left:20px; } }
.drawing-layout { position:relative; padding:0; display:block; }
.drawing-viewer-page { min-height:calc(100vh - 136px); color:#071c33; background:#f3f7fa; }
.drawing-viewer-heading { min-height:60px; padding:8px 16px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid #d1dee8; color:#071c33; background:#fff; }
.drawing-viewer-heading > div:first-child { min-width:0; display:grid; grid-template-columns:auto 1fr; align-items:center; column-gap:16px; }
.drawing-viewer-heading strong { overflow:hidden; color:#071c33; text-overflow:ellipsis; white-space:nowrap; }
.drawing-viewer-heading span { grid-column:2; color:#526b80; font-size:.7rem; }
.drawing-back-link { grid-row:1 / 3; color:#124f7f; font-size:.76rem; font-weight:800; text-decoration:none; }
.drawing-workspace { min-width:0; position:relative; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(650px,calc(100vh - 196px)) auto; align-items:stretch; }
.drawing-toolbar { position:absolute; z-index:11; top:68px; right:16px; width:50px; padding:5px; display:flex; align-content:center; align-items:center; flex-direction:column; flex-wrap:nowrap; gap:4px; border:1px solid #bdccd8; border-radius:10px; color:#071c33; background:rgb(255 255 255 / 97%); box-shadow:0 8px 24px rgb(71 95 114 / 16%); }
.drawing-toolbar.dragging { box-shadow:0 12px 30px rgb(71 95 114 / 24%); }
.drawing-toolbar-handle { width:36px; height:18px; padding:0; display:grid; place-items:center; flex:0 0 18px; border:0; border-radius:5px; color:#617689; background:transparent; cursor:grab; touch-action:none; }
.drawing-toolbar-handle:hover { color:#071c33; background:#e7eff6; }
.drawing-toolbar-handle:active,.drawing-toolbar.dragging .drawing-toolbar-handle { cursor:grabbing; }
.drawing-toolbar-handle svg { width:24px; height:12px; fill:currentColor; }
.drawing-toolbar .tool-button { position:relative; width:38px; height:36px; min-height:0; padding:0; display:grid; place-items:center; flex:0 0 36px; border:1px solid transparent; border-radius:7px; color:#071c33; background:transparent; cursor:pointer; }
.drawing-toolbar .tool-button:hover { border-color:#d1dee8; background:#f3f7fa; }
.drawing-toolbar .tool-button.active { border-color:#6f93ae; color:#0d2740; background:#e7eff6; box-shadow:inset 0 0 0 1px rgb(255 255 255 / 65%); }
.drawing-toolbar .tool-button:focus-visible,.drawing-toolbar-handle:focus-visible { outline:3px solid rgb(40 120 181 / 25%); outline-offset:1px; }
.drawing-toolbar .tool-button:disabled { opacity:.32; cursor:default; }
.drawing-tool-icon { width:20px; height:20px; overflow:visible; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.tool-label { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.drawing-fullscreen-button { margin-bottom:2px; border-bottom-color:#d1dee8!important; }
.drawing-fullscreen-button[aria-pressed="true"] { border-color:#6f93ae!important; color:#0d2740!important; background:#e7eff6!important; }
.page-controls { grid-column:1; grid-row:1; min-height:46px; padding:6px 12px; display:flex; align-items:center; justify-content:center; gap:10px; border:0; border-bottom:1px solid #d1dee8; border-radius:0; color:#071c33; background:#fff; }
.page-controls button { min-height:30px; padding:5px 9px; border:1px solid #d1dee8; border-radius:6px; color:#0d2740; background:#fff; font-size:.72rem; font-weight:750; cursor:pointer; }
.page-controls button:hover { background:#f3f7fa; }
.page-controls button:disabled { opacity:.38; cursor:default; }
.page-controls strong { color:#071c33; font-size:.78rem; }
.page-controls-divider { width:1px; height:22px; background:#d1dee8; }
.drawing-rotate-button { width:34px; padding:5px!important; display:grid; place-items:center; }
.drawing-rotate-button svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.drawing-page-selection { position:relative; }
.drawing-page-selection > summary { min-height:30px; padding:5px 9px; display:flex; align-items:center; border:1px solid #d1dee8; border-radius:6px; color:#0d2740; background:#fff; font-size:.72rem; font-weight:750; cursor:pointer; list-style:none; }
.drawing-page-selection > summary::-webkit-details-marker { display:none; }
.drawing-page-selection > summary:hover,.drawing-page-selection[open] > summary { background:#f3f7fa; }
.drawing-page-selection > div { position:absolute; z-index:15; top:calc(100% + 6px); left:50%; width:190px; max-height:280px; padding:8px; overflow:auto; display:grid; gap:2px; transform:translateX(-50%); border:1px solid #bdccd8; border-radius:8px; background:#fff; box-shadow:0 10px 28px rgb(71 95 114 / 20%); }
.drawing-page-selection label { min-height:32px; padding:5px 7px; display:flex; align-items:center; gap:8px; border-radius:5px; color:#0d2740; font-size:.72rem; cursor:pointer; }
.drawing-page-selection label:hover { background:#edf4f8; }
.drawing-page-selection input { width:16px; height:16px; margin:0; accent-color:#155b8f; }
.pdf-stage { grid-column:1; grid-row:2; position:relative; min-height:650px; overflow:auto; padding:18px 76px 18px 52px; background:#dfe3e1; text-align:center; border-radius:0; }
.pdf-page { position:relative; width:max-content; margin:0 auto; touch-action:none; }
.drawing-workspace:has(.pdf-reading-controls) { grid-template-rows:auto auto minmax(650px,calc(100vh - 250px)) auto; }
.drawing-workspace:has(.pdf-reading-controls) .page-controls { grid-row:2; }
.drawing-workspace:has(.pdf-reading-controls) .pdf-stage { grid-row:3; }
.drawing-workspace:has(.pdf-reading-controls) .drawing-toolbar { top:126px; }
.pdf-reading-controls { grid-row:1; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; padding:9px 12px; background:#fff; border-bottom:1px solid #d1dee8; font-size:.75rem; }
.pdf-reading-controls label,.pdf-reading-controls form { display:flex; align-items:center; gap:5px; margin:0; }
.pdf-reading-controls button { min-height:34px; padding:6px 9px; background:white; color:#0d2740; border:1px solid #bdccd8; border-radius:6px; cursor:pointer; }
.pdf-reading-controls button:disabled { opacity:.45; cursor:default; }
.pdf-reading-controls button[aria-pressed="true"] { background:#e7eff6; border-color:#155b8f; }
.pdf-reading-controls input { min-height:34px; width:64px; padding:5px; border:1px solid #bdccd8; border-radius:6px; }
.pdf-reading-controls select { width:auto; max-width:220px; min-height:34px; border:1px solid #bdccd8; border-radius:6px; padding:5px; }
.pdf-reading-controls #pdf-wheel-hint { color:#526b80; font-size:.7rem; }
.pdf-reading-controls input[type="search"] { width:190px; }
.pdf-reading-controls output { max-width:250px; color:#526b80; }
.pdf-navigation-panel { position:absolute; z-index:12; top:112px; left:8px; width:170px; max-height:65vh; overflow:auto; background:white; border:1px solid #bdccd8; border-radius:8px; padding:10px; box-shadow:0 8px 24px rgb(71 95 114 / 16%); }
.pdf-navigation-panel[hidden] { display:none; }
.pdf-navigation-panel summary { cursor:pointer; font-weight:700; padding:8px 0; }
.pdf-navigation-panel button { display:block; width:100%; text-align:center; padding:8px; margin:5px 0; border:1px solid #d1dee8; border-radius:5px; background:white; color:#0d2740; cursor:pointer; overflow-wrap:anywhere; }
.pdf-navigation-panel button[aria-current="page"] { border:2px solid #155b8f; background:#edf4f8; }
.pdf-navigation-panel canvas { display:block; max-width:100%; margin:auto; }
.pdf-bookmark-children { padding-left:10px; }
.pdf-organizer-panel { grid-row:2; padding:14px; border:1px solid #bdccd8; border-radius:8px; background:white; z-index:14; position:absolute; top:80px; left:8px; width:min(580px,calc(100% - 16px)); max-height:65vh; overflow:auto; box-shadow:0 8px 24px rgb(71 95 114 / 16%); }
.pdf-page-order-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:8px; max-height:30vh; overflow:auto; margin:12px 0; }
.pdf-order-card { border:1px solid #bdccd8; border-radius:6px; padding:8px; background:#f3f7fa; cursor:grab; }
.pdf-order-card strong { display:block; margin-bottom:8px; }
.pdf-order-card button { margin-right:4px; }
.pdf-organizer-panel[hidden] { display:none; }
.pdf-organizer-panel p { color:#526b80; font-size:.8rem; }
.pdf-organizer-panel form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.pdf-organizer-panel label { width:100%; }
.pdf-organizer-panel input[type=text] { flex:1; min-width:130px; }
.pdf-organizer-panel button { min-height:36px; padding:6px; border:1px solid #bdccd8; background:white; color:#0d2740; border-radius:6px; cursor:pointer; }
.drawing-toolbar { max-height:calc(100dvh - 240px); overflow-y:auto; }
.pdf-stage[data-active-tool="ink"] svg,.pdf-stage[data-active-tool="highlight"] svg,.pdf-stage[data-active-tool="rectangle"] svg,.pdf-stage[data-active-tool="ellipse"] svg { cursor:crosshair; }
@media (max-width:900px) { .drawing-toolbar { max-height:none; overflow-y:hidden; } }
.pdf-text-layer { --scale-round-x:1px; --scale-round-y:1px; position:absolute; inset:0; overflow:clip; text-align:initial; line-height:1; text-size-adjust:none; forced-color-adjust:none; opacity:1; z-index:2; pointer-events:none; transform-origin:0 0; }
.pdf-text-layer[data-main-rotation="90"] { transform:rotate(90deg) translateY(-100%); }
.pdf-text-layer[data-main-rotation="180"] { transform:rotate(180deg) translate(-100%,-100%); }
.pdf-text-layer[data-main-rotation="270"] { transform:rotate(270deg) translateX(-100%); }
.pdf-text-layer span,.pdf-text-layer br { position:absolute; color:transparent; white-space:pre; cursor:text; transform-origin:0 0; }
.pdf-text-layer span { --scale-x:1; --rotate:0deg; font-size:calc(var(--font-height) * var(--total-scale-factor)); transform:rotate(var(--rotate)) scaleX(var(--scale-x)); }
.pdf-text-layer ::selection { background:rgb(40 120 181 / 35%); }
.pdf-text-layer .pdf-search-match { background:rgb(255 221 0 / 40%); }
.pdf-text-layer .pdf-search-current { background:rgb(255 125 0 / 55%); }
.pdf-selecting-text .pdf-text-layer { pointer-events:auto; }
.pdf-selecting-text #markup-layer { pointer-events:none; }
.pdf-selecting-text .pdf-page { touch-action:auto; }
.drawing-layout:fullscreen .drawing-workspace:has(.pdf-reading-controls),.drawing-layout.drawing-focus-mode .drawing-workspace:has(.pdf-reading-controls) { grid-template-rows:auto auto minmax(0,1fr) auto; }
.drawing-viewer-page .drawing-workspace:has(.pdf-reading-controls) #viewer-message { grid-row:4; }
@media (max-width:900px) {
  .pdf-reading-controls { justify-content:flex-start; }
  .pdf-reading-controls form { flex-wrap:wrap; width:100%; }
  .pdf-reading-controls input[type="search"] { width:min(190px,45vw); }
  .drawing-workspace:has(.pdf-reading-controls) .pdf-reading-controls { order:0; }
  .pdf-reading-controls button { min-height:44px; }
  .pdf-navigation-panel { top:180px; max-height:55vh; }
}
.pdf-stage canvas { display:block; margin:0; background:#fff; box-shadow:0 3px 15px rgb(71 95 114 / 19%); }
.pdf-stage svg { position:absolute; inset:0; pointer-events:none; }
.pdf-stage .pdf-page,.pdf-stage svg.active { cursor:default; }
.pdf-stage[data-active-tool="pan"] .pdf-page,.pdf-stage[data-active-tool="pan"] svg.active { cursor:grab; }
.pdf-stage[data-active-tool="note"] .pdf-page,.pdf-stage[data-active-tool="note"] svg.active,
.pdf-stage[data-active-tool="pin"] .pdf-page,.pdf-stage[data-active-tool="pin"] svg.active,
.pdf-stage[data-active-tool="line"] .pdf-page,.pdf-stage[data-active-tool="line"] svg.active,
.pdf-stage[data-active-tool="area"] .pdf-page,.pdf-stage[data-active-tool="area"] svg.active,
.pdf-stage[data-active-tool="volume"] .pdf-page,.pdf-stage[data-active-tool="volume"] svg.active,
.pdf-stage[data-active-tool="count"] .pdf-page,.pdf-stage[data-active-tool="count"] svg.active,
.pdf-stage[data-active-tool="calibration"] .pdf-page,.pdf-stage[data-active-tool="calibration"] svg.active { cursor:crosshair; }
.pdf-stage.panning .pdf-page,.pdf-stage.panning .pdf-page * { cursor:grabbing!important; user-select:none; }
.pdf-stage svg.active { pointer-events:auto; }
#pdf-loading { position:absolute; inset:40px; display:grid; place-items:center; color:#0d2740; font-weight:750; }
#pdf-loading[hidden] { display: none; }
.drawing-markup.resolved { opacity: .35; stroke-dasharray: 7 5; }
.drawing-viewer-page #viewer-message { grid-column:1; grid-row:3; margin:0; padding:8px 13px; border:0; border-top:1px solid #d1dee8; border-radius:0; color:#0d2740; background:#fff; font-size:.72rem; }
.drawing-readonly-badge { display:inline-flex; align-items:center; min-height:34px; padding:0 12px; border-radius:999px; background:#e7eff6; color:#124f7f; font-size:.78rem; font-weight:800; }
.drawing-viewer-page .drawing-sidebar { position:absolute; z-index:10; top:54px; left:0; width:360px; max-height:calc(100vh - 210px); overflow:hidden; border:1px solid #d1dee8; border-left:0; border-radius:0 9px 9px 0; color:#071c33; background:rgb(255 255 255 / 98%); box-shadow:0 8px 24px rgb(71 95 114 / 14%); }
.drawing-sidebar-heading { min-height:43px; padding:6px 7px 6px 10px; display:grid; grid-template-columns:24px minmax(0,1fr) 28px; align-items:center; gap:7px; border-bottom:1px solid #e7eff6; background:#f3f7fa; }
.drawing-sidebar-heading-icon { width:24px; height:24px; display:grid; place-items:center; color:#124f7f; }
.drawing-sidebar-heading-icon svg,.drawing-sidebar-toggle svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.drawing-sidebar-summary { min-width:0; display:grid; gap:1px; text-align:left; }
.drawing-sidebar-summary strong { overflow:hidden; color:#071c33; font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }
.drawing-sidebar-summary small { color:#617689; font-size:.62rem; }
.drawing-sidebar-toggle { width:28px; height:28px; padding:0; display:grid; place-items:center; border:0; border-radius:6px; color:#124f7f; background:transparent; cursor:pointer; }
.drawing-sidebar-toggle:hover { color:#124f7f; background:#e7eff6; }
.drawing-sidebar-toggle:focus-visible { outline:3px solid rgb(40 120 181 / 28%); outline-offset:2px; }
.drawing-sidebar-content { max-height:calc(100vh - 254px); padding:8px; overflow:auto; }
.drawing-viewer-page .drawing-sidebar.collapsed { width:38px!important; min-height:43px; overflow:hidden; }
.drawing-sidebar.collapsed .drawing-sidebar-heading { min-height:41px; padding:5px; display:flex; justify-content:center; border-bottom:0; }
.drawing-sidebar.collapsed .drawing-sidebar-heading-icon,.drawing-sidebar.collapsed .drawing-sidebar-summary,.drawing-sidebar.collapsed .drawing-sidebar-content { display:none!important; }
.drawing-sidebar.collapsed .drawing-sidebar-toggle svg { transform:rotate(180deg); }
.drawing-sidebar .form-card { margin:0 0 8px; padding:11px; border-radius:8px; box-shadow:none; }
.drawing-sidebar .form-card h2 { margin:0 0 8px; color:#071c33; font-size:.84rem; }
.drawing-sidebar .form-card p { margin:5px 0; color:#526b80; font-size:.68rem; line-height:1.4; }
.drawing-sidebar .form-card form { display:grid; gap:8px; }
.drawing-sidebar label { display:flex; flex-direction:column; gap:4px; color:#475f72; font-size:.67rem; font-weight:750; }
.drawing-sidebar input,.drawing-sidebar select,.drawing-sidebar textarea { width:100%; padding:7px; border:1px solid #bdccd8; border-radius:6px; color:#071c33; background:#fff; font-size:.72rem; }
.drawing-sidebar .button,.drawing-sidebar input[type="submit"] { min-height:30px; padding:6px 9px; font-size:.68rem; }
.drawing-markup-section { min-width:0; }
.markup-list { display:grid; gap:6px; }
.markup-card { padding:9px; color:#071c33; background:#fff; border:1px solid #d1dee8; border-radius:8px; font-size:.7rem; }
.markup-card.selected { border-color:#275f8c; box-shadow:0 0 0 3px rgb(40 120 181 / 16%); }
.markup-card.resolved { border-style:dashed; }
.markup-card.void { opacity:.58; }
.markup-card p { margin:5px 0; color:#526b80; line-height:1.35; }
.markup-card small { display:block; margin:5px 0; color:#617689; font-size:.62rem; }
.markup-color { width:9px; height:9px; border-radius:50%; flex:none; }
.markup-card-focus { width:100%; padding:0; display:grid; grid-template-columns:10px minmax(0,1fr) auto; align-items:center; gap:7px; border:0; color:#071c33; background:transparent; text-align:left; cursor:pointer; }
.markup-card-focus > span:nth-child(2) { min-width:0; display:grid; gap:2px; }
.markup-card-focus strong,.markup-card-focus small { margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.markup-status { padding:4px 7px; border-radius:999px; color:#124f7f; background:#e7eff6; font-size:.58rem; font-weight:850; white-space:nowrap; }
.markup-status.in_progress { color:#775300; background:#fff3cf; }.markup-status.resolved { color:#145d8f; background:#e5f1f8; }.markup-status.void { color:#6b7280; background:#eef0f2; }
.markup-tracking-summary { margin:7px 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
.markup-tracking-summary div { min-width:0; padding:6px; border-radius:5px; background:#f3f7fa; }
.markup-tracking-summary dt { color:#617689; font-size:.55rem; font-weight:800; text-transform:uppercase; }.markup-tracking-summary dd { margin:2px 0 0; overflow:hidden; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.markup-note-body { margin:6px 0; padding:6px 7px; border-radius:6px; background:#f3f7fa; }
.markup-note-body p { margin:0; }
.markup-action-fields { display:grid; grid-template-columns:1fr 1fr; gap:7px; }.markup-action-fields .full { grid-column:1 / -1; }
.markup-evidence { margin:7px 0; display:flex; gap:6px; overflow-x:auto; }.markup-evidence img { width:68px; height:52px; display:block; object-fit:cover; border:1px solid #d1dee8; border-radius:6px; }
.markup-related-records { margin:7px 0; padding:7px; display:grid; gap:3px; border-left:3px solid #6f93ae; background:#f3f7fa; }.markup-related-records span { color:#526b80; }
.markup-resolution { padding:7px; border-radius:6px; background:#e7f2f8; }.markup-audit-line { color:#617689!important; font-size:.6rem; }
.markup-workflow-panel,.markup-comments { margin-top:7px; border-top:1px solid #e7eff6; }.markup-workflow-panel > summary,.markup-comments > summary { padding:7px 0 2px; color:#124f7f; font-weight:800; cursor:pointer; }
.markup-metadata-form { margin-top:6px; display:grid; grid-template-columns:1fr 1fr; gap:6px; }.markup-metadata-form label:first-of-type { grid-column:1 / -1; }.markup-metadata-form .button { justify-self:start; }
.markup-lifecycle-actions { margin-top:7px; display:grid; gap:6px; }.markup-lifecycle-actions form { display:grid; gap:5px; }
.markup-comment { margin-top:6px; padding:7px; border-radius:6px; background:#f3f7fa; }.markup-comment strong { display:inline; }.markup-comment small { float:right; margin:1px 0; }.markup-comment p { clear:both; }
.markup-comment-form { margin-top:7px; display:grid; gap:5px; }
.drawing-revision-banner { margin:0; border-width:0 0 1px; border-radius:0; }
.drawing-markup-empty { margin:8px; color:#617689; font-size:.7rem; line-height:1.45; text-align:left; }
.drawing-note-text { height:100%; overflow:hidden; font-weight:700; line-height:1.25; white-space:pre-wrap; overflow-wrap:anywhere; }
#markup-layer [data-markup-id] { cursor:inherit; }
#markup-layer [data-markup-id].selected rect { stroke-width:5; filter:drop-shadow(0 3px 4px rgb(0 0 0 / 25%)); }
.note-resize-handle { fill:#fff; stroke:#124f7f; stroke-width:3; cursor:nwse-resize; }
.note-resize-handle[data-corner="ne"],.note-resize-handle[data-corner="sw"] { cursor:nesw-resize; }
.note-style-fields { display:grid; grid-template-columns:1fr 90px; gap:10px; }
#note-edit-panel > small { display:block; margin-top:10px; color:var(--muted); }
.drawing-layout.note-inline-mode .drawing-sidebar { display:none; }
body.drawing-focus-active { overflow:hidden; }
.drawing-layout:fullscreen,
.drawing-layout.drawing-focus-mode { width:100vw; height:100dvh; margin:0; padding:0; overflow:hidden; background:#f3f7fa; }
.drawing-layout.drawing-focus-mode { position:fixed; z-index:10000; inset:0; }
.drawing-layout:fullscreen .drawing-workspace,
.drawing-layout.drawing-focus-mode .drawing-workspace { height:100dvh; grid-template-rows:auto minmax(0, 1fr) auto; }
.drawing-layout:fullscreen .pdf-stage,
.drawing-layout.drawing-focus-mode .pdf-stage { height:auto; min-height:0; }
.drawing-layout:fullscreen .drawing-sidebar,
.drawing-layout.drawing-focus-mode .drawing-sidebar { top:54px; max-height:calc(100dvh - 70px); }
.drawing-layout:fullscreen .drawing-sidebar-content,
.drawing-layout.drawing-focus-mode .drawing-sidebar-content { max-height:calc(100dvh - 115px); }
.drawing-layout:fullscreen .drawing-toolbar,
.drawing-layout.drawing-focus-mode .drawing-toolbar { top:18px; }
.inline-note-editor { --note-text-color:#0d2740; --note-background:#fff7a8; position:absolute; z-index:12; min-width:170px; min-height:105px; padding:8px; display:flex; flex-direction:column; overflow:visible; border:3px solid var(--note-text-color); border-radius:8px; background:var(--note-background); box-shadow:0 5px 18px rgb(0 0 0 / 28%); text-align:left; }
.inline-note-editor[hidden] { display:none; }
.inline-note-editor textarea { flex:1; min-height:42px; width:100%; padding:0; resize:none; border:0; outline:0; color:var(--note-text-color); background:transparent; font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
.inline-note-footer { display:flex; align-items:center; gap:5px; min-height:26px; color:var(--note-text-color); }
.inline-note-footer small { flex:1; min-width:35px; overflow:hidden; font-size:9px; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.inline-note-mentions { position:relative; }
.inline-note-mentions > summary { width:25px; height:25px; display:grid; place-items:center; border:1px solid currentColor; border-radius:4px; background:rgb(255 255 255 / 45%); font-size:11px; font-weight:900; cursor:pointer; list-style:none; }
.inline-note-mentions > summary::-webkit-details-marker { display:none; }
.inline-note-mentions > div { position:absolute; z-index:4; right:0; bottom:31px; width:220px; max-height:180px; padding:9px; overflow:auto; border:1px solid #b7cad9; border-radius:7px; color:#071c33; background:#fff; box-shadow:0 8px 22px rgb(0 0 0 / 20%); }
.inline-note-mentions > div > strong { display:block; margin:0 0 6px; font-size:10px; }
.inline-note-mentions label { min-height:25px; display:flex; align-items:center; gap:6px; font-size:10px; font-weight:650; cursor:pointer; }
.inline-note-mentions input { margin:0; accent-color:#124f7f; }
.inline-note-footer select { width:43px; height:25px; padding:1px; border:1px solid currentColor; border-radius:4px; background:rgb(255 255 255 / 45%); color:inherit; font-size:10px; }
.inline-note-footer label { width:25px; height:25px; position:relative; display:grid; place-items:center; border:1px solid currentColor; border-radius:4px; cursor:pointer; font-size:11px; font-weight:900; }
.inline-note-footer input[type="color"] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.inline-note-footer button { height:25px; padding:2px 7px; border:0; border-radius:4px; color:white; background:#124f7f; font-size:10px; font-weight:800; cursor:pointer; }
.inline-note-footer #delete-inline-note { background:#ad392e; }
.inline-note-footer #cancel-inline-note { width:25px; padding:0; color:var(--note-text-color); background:transparent; border:1px solid currentColor; }
.markup-mentioned-users { color:#124f7f!important; font-weight:700; }
.inline-note-handle { position:absolute; z-index:2; width:13px; height:13px; border:2px solid #124f7f; border-radius:50%; background:white; box-shadow:0 1px 3px rgb(0 0 0 / 30%); }
.inline-note-handle.nw { top:-7px; left:-7px; cursor:nwse-resize; }.inline-note-handle.ne { top:-7px; right:-7px; cursor:nesw-resize; }.inline-note-handle.se { right:-7px; bottom:-7px; cursor:nwse-resize; }.inline-note-handle.sw { bottom:-7px; left:-7px; cursor:nesw-resize; }
.inline-calibration-editor { position:absolute; z-index:14; width:280px; padding:12px; display:grid; gap:5px; transform:translate(-50%,-50%); border:2px solid #124f7f; border-radius:10px; color:#0d2740; background:white; box-shadow:0 8px 24px rgb(0 0 0 / 30%); text-align:left; }
.inline-calibration-editor[hidden] { display:none; }.inline-calibration-editor > span { color:var(--muted); font-size:11px; }.inline-calibration-editor > div { display:flex; gap:5px; }.inline-calibration-editor input { min-width:0; width:105px; }.inline-calibration-editor select { width:54px; }.inline-calibration-editor input,.inline-calibration-editor select,.inline-calibration-editor button { height:30px; padding:4px 7px; border:1px solid #b7cad9; border-radius:5px; }.inline-calibration-editor button { color:white; background:#124f7f; font-weight:800; cursor:pointer; }
.drawing-dimension-label { font-size:13px; font-weight:900; paint-order:stroke; stroke:white; stroke-width:4px; stroke-linejoin:round; }
.drawing-markup[data-dimension-id] { cursor:inherit; }.drawing-markup.selected line { stroke:#f05a28; stroke-width:5; }.drawing-markup.selected circle { fill:#f05a28; }
@media (max-width:900px) {
  .drawing-workspace { display:flex; flex-direction:column; }
  .drawing-toolbar { position:static; width:auto; padding:5px 8px; flex-direction:row; overflow-x:auto; border-width:0 0 1px; border-radius:0; box-shadow:none; }
  .drawing-toolbar-handle { display:none; }
  .drawing-toolbar .tool-button { width:48px; height:48px; flex:0 0 48px; }
  .page-controls { min-height:52px; gap:5px; overflow-x:auto; justify-content:flex-start; }
  .page-controls button { min-width:44px; min-height:44px; }
  .drawing-page-selection > summary { min-height:44px; white-space:nowrap; }
  .drawing-page-selection > div { position:fixed; top:auto; right:8px; bottom:12px; left:8px; width:auto; max-height:55dvh; transform:none; }
  .page-controls { order:1; }
  .pdf-stage { order:2; min-height:62vh; padding:14px; }
  .drawing-viewer-page #viewer-message { order:3; }
  .drawing-viewer-page .drawing-sidebar { position:fixed; z-index:40; right:8px; bottom:calc(58px + env(safe-area-inset-bottom)); left:8px; width:auto; max-height:58dvh; margin:0; border:1px solid #d1dee8; border-radius:9px; box-shadow:0 10px 32px rgb(7 28 51 / 24%); }
  .drawing-sidebar-content { max-height:calc(58dvh - 44px); }
  .drawing-viewer-page .drawing-sidebar.collapsed { right:auto; width:38px!important; }
  .drawing-viewer-heading { align-items:flex-start; flex-direction:column; }
  .markup-tracking-summary { grid-template-columns:1fr; }
}

.header-help { position: relative; align-self: stretch; display: flex; align-items: center; }
.header-help summary { height: 100%; display: flex; align-items: center; list-style: none; cursor: pointer; font-weight: 700; }
.header-help summary::-webkit-details-marker { display: none; }
.header-help summary::after { content: "⌄"; margin-left: 6px; }
.header-help > div { position: absolute; z-index: 120; top: calc(100% - 5px); right: 0; width: 245px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px rgba(71,95,114,.18); }
.header-help > div a { display: block; padding: 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.header-help > div a:hover { background: #f3f7fa; color: var(--forest); }
.project-switcher { position:relative; align-self:stretch; margin-left:0; display:flex; align-items:center; }
.project-switcher > summary { height:100%; min-width:172px; max-width:235px; padding:0 13px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:center; column-gap:8px; list-style:none; border-left:1px solid #526b80; cursor:pointer; }
.project-switcher > summary::-webkit-details-marker { display:none; }
.project-switcher-label { color:#94aec2; font-size:.61rem; font-weight:850; letter-spacing:.12em; line-height:1.1; text-transform:uppercase; }
.project-switcher-name { overflow:hidden; color:white; font-size:.88rem; font-weight:800; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.project-switcher > summary > span:last-child { grid-column:2; grid-row:1 / 3; align-self:center; color:white; }
.project-switcher > div { position:absolute; z-index:131; top:calc(100% - 5px); right:0; width:330px; max-height:min(480px,70vh); padding:8px; overflow:auto; border:1px solid var(--line); border-radius:14px; background:white; color:var(--ink); box-shadow:0 18px 44px rgba(71,95,114,.24); }
.project-switcher-heading { padding:10px 12px; color:var(--muted); font-size:.72rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.project-switcher > div > a { padding:11px 12px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-radius:9px; color:var(--ink); text-decoration:none; }
.project-switcher > div > a:hover, .project-switcher > div > a.is-current { background:#f3f7fa; color:var(--forest); }
.project-switcher > div > a > span:first-child { min-width:0; display:grid; gap:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.project-switcher > div > a strong { color:var(--muted); font-size:.64rem; letter-spacing:.1em; }
.user-menu { position:relative; align-self:stretch; display:flex; align-items:center; }
.user-menu > summary { height:100%; padding:0 2px 0 13px; display:flex; align-items:center; gap:7px; list-style:none; border-left:1px solid #526b80; cursor:pointer; }
.user-menu > summary::-webkit-details-marker { display:none; }
.user-menu > summary .person-avatar { border-color:rgba(255,255,255,.38); }
.user-menu > summary .person-identity-name { max-width:180px; color:white; }
.user-menu > div { position:absolute; z-index:130; top:calc(100% - 5px); right:0; width:300px; padding:8px; border:1px solid var(--line); border-radius:14px; background:white; color:var(--ink); box-shadow:0 18px 44px rgba(71,95,114,.24); }
.user-menu-heading { padding:11px 12px 13px; display:grid; gap:3px; border-bottom:1px solid var(--line); }
.user-menu-heading small { color:var(--muted); overflow:hidden; text-overflow:ellipsis; }
.user-menu > div > a { display:block; padding:11px 12px; border-radius:8px; text-decoration:none; font-weight:700; }
.user-menu > div > a:hover { background:#f3f7fa; color:var(--forest); }
.user-menu hr { margin:6px 4px; border:0; border-top:1px solid var(--line); }
.user-menu form { margin:0; }
.user-menu-logout { width:100%; padding:11px 12px; border:0; border-radius:8px; background:transparent; color:#9b2c22; text-align:left; font:inherit; font-weight:760; cursor:pointer; }
.user-menu-logout:hover { background:#fff0ee; }

@media (max-width: 1200px) {
  .app-header { padding-inline:16px; gap:12px; }
  .app-header .brand-name { font-size:15px; }
  .global-navigation { gap:12px; }
  .reports-center-link { display:none; }
  .project-module-groups summary { padding-inline:6px; font-size:11px; }
  .project-switcher > summary { min-width:150px; max-width:185px; padding-inline:10px; }
  .user-menu > summary .person-identity-name { display:none; }
}

@media (max-width: 2100px) {
  .global-navigation { display:none; }
  .header-compact-menu { display:flex; }
}

@media (max-width: 1500px) {
  .app-header { padding-inline:16px; gap:12px; }
  .app-header .brand-name { font-size:15px; }
  .reports-center-link { display:none; }
  .project-module-groups summary { padding-inline:6px; font-size:11px; }
  .project-switcher > summary { min-width:150px; max-width:185px; padding-inline:10px; }
  .user-menu > summary .person-identity-name { display:none; }
}

@media (max-width: 940px) and (min-width: 761px) {
  .global-navigation { display:none; }
}
.organization-settings-page { max-width:1380px; margin:0 auto; }
.organization-settings-tabs { margin:0 0 22px; display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; }
.organization-settings-tab { min-height:92px; padding:17px 19px; display:grid; align-content:center; gap:5px; border:1px solid var(--line); border-radius:14px; color:var(--ink); background:white; text-decoration:none; box-shadow:0 5px 14px rgb(7 28 51 / 4%); }
.organization-settings-tab:hover { border-color:#94aec2; color:var(--forest); }
.organization-settings-tab.active { border-color:#0d2740; color:white; background:#0d2740; box-shadow:0 10px 24px rgb(7 28 51 / 16%); }
.organization-settings-tab small { color:var(--muted); font-size:.74rem; line-height:1.35; }
.organization-settings-tab.active small { color:#d1dee8; }
.organization-settings-panel { padding:24px; border:1px solid var(--line); border-radius:18px; background:#f3f7fa; }
.organization-settings-panel > .form-card,.organization-settings-panel > .storage-card { max-width:none; }
.organization-chart-settings { display:grid; gap:20px; }
.organization-chart-heading { margin-bottom:0; }
.organization-chart-heading-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.organization-position-create { padding:0; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:white; }
.organization-position-create > summary { padding:15px 18px; cursor:pointer; color:#155b8f; font-weight:850; }
.organization-position-create[open] > summary { border-bottom:1px solid var(--line); }
.organization-position-create > .organization-position-form { padding:18px; }
.organization-chart-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.organization-chart-zoom { display:flex; align-items:center; gap:8px; }
.organization-chart-navigation-hint { color:#526b80; font-size:.76rem; font-weight:750; }
.organization-chart-canvas { min-height:420px; max-height:72vh; padding:26px; overflow:auto; overflow-anchor:none; overscroll-behavior:contain; border:1px solid var(--line); border-radius:16px; background:linear-gradient(#f9fbfc,#eef4f7); }
.organization-chart-canvas.is-panning { cursor:grabbing; user-select:none; }
.organization-chart-surface { width:max-content; min-width:100%; transform-origin:top left; }
.organization-chart-roots,.organization-chart-children { --organization-chart-gap:20px; --organization-chart-half-gap:10px; display:flex; align-items:flex-start; justify-content:center; gap:var(--organization-chart-gap); }
.organization-chart-branch { --organization-chart-level-gap:28px; --organization-chart-half-level-gap:14px; min-width:260px; position:relative; display:grid; justify-items:center; gap:var(--organization-chart-level-gap); }
.organization-chart-children { width:100%; position:relative; }
.organization-chart-children::before { content:""; width:2px; height:var(--organization-chart-half-level-gap); position:absolute; top:calc(-1 * var(--organization-chart-level-gap)); left:calc(50% - 1px); background:#789fb8; }
.organization-chart-children > .organization-chart-branch::before { content:""; width:2px; height:var(--organization-chart-half-level-gap); position:absolute; z-index:0; top:calc(-1 * var(--organization-chart-half-level-gap)); left:calc(50% - 1px); background:#789fb8; }
.organization-chart-children > .organization-chart-branch::after { content:""; width:calc(100% + var(--organization-chart-gap)); position:absolute; z-index:0; top:calc(-1 * var(--organization-chart-half-level-gap)); left:calc(-1 * var(--organization-chart-half-gap)); border-top:2px solid #789fb8; }
.organization-chart-children > .organization-chart-branch:first-child::after { width:calc(50% + var(--organization-chart-half-gap)); left:50%; }
.organization-chart-children > .organization-chart-branch:last-child::after { width:calc(50% + var(--organization-chart-half-gap)); }
.organization-chart-children > .organization-chart-branch:only-child::after { display:none; }
.organization-position-card { width:260px; padding:16px; position:relative; border:1px solid #b9d0df; border-top:4px solid #155b8f; border-radius:13px; background:white; box-shadow:0 8px 18px rgb(7 28 51 / 7%); }
.organization-position-card.inactive { opacity:.62; border-top-color:#8295a3; }
.organization-position-card > header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.organization-position-code { color:#527086; font-size:.68rem; font-weight:900; letter-spacing:.07em; }
.organization-position-card h3 { margin:7px 0 4px; font-size:1rem; line-height:1.2; }
.organization-position-identity { margin-top:8px; display:flex; align-items:center; gap:11px; }
.organization-position-identity > div { min-width:0; }
.organization-position-identity h3 { margin-top:0; }
.organization-position-photo { width:52px; height:52px; flex:0 0 52px; display:grid; place-items:center; overflow:hidden; border:2px solid #d5e1ea; border-radius:50%; color:white; background:#155b8f; font-size:.8rem; font-weight:900; }
.organization-position-photo img { width:100%; height:100%; object-fit:cover; }
.organization-position-department,.organization-position-person { margin:3px 0; color:#526b80; font-size:.78rem; }
.organization-position-person { color:#163d5b; font-weight:750; }
.organization-position-compensation { margin:13px 0 0; padding-top:11px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--line); }
.organization-position-compensation dt { color:#617689; font-size:.68rem; font-weight:800; }
.organization-position-compensation dd { margin:0; color:#163d5b; font-size:.8rem; font-weight:900; }
.status-chip { padding:4px 7px; border-radius:999px; color:#5d6e7c; background:#edf0f2; font-size:.62rem; font-weight:850; }
.organization-position-edit { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
.organization-position-edit > summary { cursor:pointer; color:#155b8f; font-size:.74rem; font-weight:850; }
.organization-position-form { display:grid; gap:14px; }
.organization-position-form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.organization-position-form-grid label { min-width:0; display:grid; gap:5px; color:#365d78; font-size:.72rem; font-weight:800; }
.organization-position-form-grid label.wide { grid-column:span 2; }
.organization-position-form-grid input,.organization-position-form-grid select,.organization-position-form-grid textarea { width:100%; min-width:0; }
.organization-position-form-grid small { color:#647f92; font-size:.68rem; font-weight:600; line-height:1.3; }
.organization-position-form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.organization-position-person-link { display:inline-flex; margin-top:10px; color:#155b8f; font-size:.74rem; font-weight:800; }
.organization-position-card .organization-position-form { margin-top:12px; }
.organization-position-card .organization-position-form-grid { grid-template-columns:1fr; }
.organization-position-card .organization-position-form-grid label.wide { grid-column:auto; }
.organization-position-form-error { margin:0; color:#9b3c32; font-size:.72rem; font-weight:750; }
.organization-position-card.is-updated { animation:organization-position-updated 1.1s ease-out; }
.organization-chart-save-status { margin:0; color:#42647b; font-size:.75rem; font-weight:750; }
@keyframes organization-position-updated { 0% { box-shadow:0 0 0 4px rgb(31 140 196 / 22%); } 100% { box-shadow:0 8px 18px rgb(7 28 51 / 7%); } }
.organization-position-lifecycle { margin-top:8px; }
.organization-chart-empty { padding:36px; text-align:center; border:1px dashed #a8c2d3; border-radius:14px; background:white; }
.organization-chart-empty p { margin:6px 0 0; color:var(--muted); }
@media (max-width:760px) {
  .organization-chart-toolbar { align-items:stretch; flex-direction:column; }
  .organization-chart-zoom { width:100%; flex-wrap:wrap; }
  .organization-chart-navigation-hint { flex:1; }
  .organization-chart-canvas { min-height:0; max-height:none; padding:16px; overflow:visible; }
  .organization-chart-surface { width:100%; zoom:1!important; }
  .organization-chart-roots,.organization-chart-children { width:100%; align-items:stretch; flex-direction:column; }
  .organization-chart-branch,.organization-position-card { width:100%; min-width:0; }
  .organization-chart-children { padding-left:18px; border-left:2px solid #9eb9ca; }
  .organization-chart-children::before,.organization-chart-children > .organization-chart-branch::before,.organization-chart-children > .organization-chart-branch::after { display:none; }
  .organization-position-form-grid { grid-template-columns:1fr; }
  .organization-position-form-grid label.wide { grid-column:auto; }
}
.data-lifecycle-heading { margin-bottom:20px; display:flex; align-items:flex-end; justify-content:space-between; gap:24px; }
.data-lifecycle-heading h2,.data-lifecycle-card h3 { margin:3px 0 8px; }
.data-lifecycle-heading p:last-child,.data-lifecycle-card > p { color:var(--muted); line-height:1.55; }
.data-lifecycle-card { padding:22px; border:1px solid var(--line); border-radius:16px; background:white; box-shadow:0 7px 20px rgb(18 79 127 / 4%); }
.data-lifecycle-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.data-export-list { margin-top:18px; overflow:hidden; border:1px solid var(--line); border-radius:12px; }
.data-export-list article { padding:15px 17px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:18px; border-bottom:1px solid var(--line); }
.data-export-list article:last-child { border-bottom:0; }
.data-export-list article > div { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.data-export-list article small { width:100%; color:#a2392d; }
.data-export-meta { justify-content:flex-end; color:var(--muted); font-size:.76rem; }
.data-status { padding:5px 8px; border-radius:999px; color:#52697c; background:#edf3f7; font-size:.68rem; font-weight:850; text-transform:uppercase; }
.data-status.ready { color:#124f7f; background:#e8f1f7; }
.data-status.failed { color:#b42318; background:#feeceb; }
.data-status.expired { color:#617689; background:#ecefed; }
.empty-note { margin:0; padding:18px; color:var(--muted); }
.data-danger-grid { margin-top:18px; display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.reset-card { border-top:4px solid #e6a328; }
.closure-card { border-top:4px solid #b42318; }
.data-lifecycle-card > .button { margin-top:12px; }
.data-operation-lock { width:min(680px,calc(100% - 40px)); margin:90px auto; padding:34px; border:1px solid var(--line); border-radius:20px; background:white; box-shadow:0 18px 55px rgb(18 79 127 / 10%); }
.data-operation-lock h1 { margin:5px 0 12px; }
.data-operation-lock > p:not(.eyebrow) { color:var(--muted); line-height:1.6; }
.data-retention-note { margin:15px 0; padding:13px 15px; display:grid; gap:4px; color:#6b4d0d; background:#fff7e8; border-radius:10px; font-size:.78rem; }
.button.danger-outline { border:1px solid #d9b4ae; color:#884036; background:#fff8f6; }
.button.danger-outline:hover { border-color:#c99088; color:#713128; background:#f8e9e6; }
.button.danger-outline:focus-visible { outline:3px solid rgb(163 49 38 / 32%); outline-offset:2px; }
.archived-projects { margin-top:24px; padding:20px; border:1px solid var(--line); border-radius:var(--radius-card); background:#fff; box-shadow:var(--shadow-card); }
.archived-projects .section-heading p:not(.eyebrow) { margin:5px 0 0; color:var(--muted); }
.archived-projects-form { display:grid; gap:14px; }
.archived-project-list { display:grid; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.archived-project-row { padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); }
.archived-project-row:last-child { border-bottom:0; }.archived-project-row label { min-width:0; flex:1; display:flex; align-items:center; gap:12px; cursor:pointer; }.archived-project-row input { width:18px; height:18px; accent-color:#155b8f; }
.archived-project-row span { display:grid; gap:2px; }.archived-project-row small,.quarantined-projects small { color:#526b80; }
.archived-project-restore.button.secondary { flex:0 0 auto; border:2px solid #155b8f; color:#104b75; background:#fff; }
.archived-project-restore.button.secondary:hover { color:#fff; background:#104b75; border-color:#104b75; }
.archived-project-restore.button.secondary:focus-visible { outline:3px solid rgb(21 91 143 / 30%); outline-offset:2px; }
.archived-project-actions { display:flex; align-items:flex-start; flex-wrap:wrap; gap:10px; }
.archived-project-actions > .button.secondary { border:2px solid #155b8f; color:#104b75; background:#fff; }
.archived-project-actions > .button.secondary:hover { color:#fff; background:#104b75; border-color:#104b75; }
.archived-project-actions > .button.secondary:focus-visible { outline:3px solid rgb(21 91 143 / 30%); outline-offset:2px; }
.permanent-project-deletion { position:relative; }.permanent-project-deletion > summary { cursor:pointer; list-style:none; }.permanent-project-deletion > summary::-webkit-details-marker { display:none; }
.permanent-project-deletion-panel { width:min(560px,calc(100vw - 48px)); margin-top:8px; padding:16px; position:absolute; z-index:10; right:0; display:grid; gap:12px; border:1px solid #d28a82; border-radius:10px; background:white; box-shadow:var(--shadow-overlay); }
.permanent-project-deletion-panel h3 { margin:0; }.permanent-project-deletion-panel > label:last-of-type { display:grid; gap:5px; font-weight:750; }.permanent-project-deletion-panel input[type=text] { width:100%; }
.deletion-warning { padding:10px; display:grid; grid-template-columns:auto 1fr; gap:9px; border-radius:8px; color:#79251e; background:#fff0ee; }.deletion-warning input { margin-top:3px; }.deletion-warning span { display:grid; gap:2px; }
.quarantined-projects { margin-top:18px; }.quarantined-projects h3 { margin-bottom:8px; }.quarantined-projects > div { padding:11px 12px; display:flex; justify-content:space-between; gap:16px; border-top:1px solid var(--line); }.quarantined-projects span { display:grid; }.quarantined-projects time { color:#79251e; font-weight:750; }
@media (max-width:680px) { .archived-projects { padding:14px; }.archived-project-row { align-items:flex-start; flex-direction:column; }.archived-project-restore { width:100%; justify-content:center; }.archived-project-actions { display:grid; }.permanent-project-deletion-panel { position:static; width:100%; }.quarantined-projects > div { flex-direction:column; gap:5px; } }
.danger-dialog { width:min(720px,calc(100vw - 32px)); padding:0; border:0; border-radius:18px; color:var(--ink); box-shadow:0 26px 80px rgb(71 95 114 / 32%); }
.danger-dialog::backdrop { background:rgb(71 95 114 / 58%); backdrop-filter:blur(3px); }
.danger-dialog form { padding:25px; display:grid; gap:16px; }
.danger-dialog header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.danger-dialog header h2 { margin:3px 0 0; }
.danger-dialog header button { width:38px; height:38px; border:0; border-radius:50%; background:#e7eff6; font-size:24px; cursor:pointer; }
.danger-dialog ol { margin:0; padding:16px 18px 16px 38px; display:grid; gap:7px; border-radius:11px; color:#6e3e18; background:#fff7e8; line-height:1.45; }
.danger-dialog label:not(.danger-check) { display:grid; gap:6px; color:#275f8c; font-weight:800; }
.danger-check { display:flex; align-items:flex-start; gap:10px; line-height:1.4; }
.danger-check input { margin-top:3px; flex:0 0 auto; }
.settings-section-heading { margin:0 0 20px; display:flex; align-items:flex-end; justify-content:space-between; gap:22px; }
.settings-section-heading h2 { margin:3px 0 0; }
.settings-section-heading > p,.settings-section-heading > div > p:last-child { max-width:740px; margin:7px 0 0; color:var(--muted); }
.settings-card { max-width:840px; }
.storage-card { max-width:840px; margin-bottom:20px; scroll-margin-top:110px; }
.storage-card-heading,.storage-summary { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.storage-card-heading h2 { margin:.2rem 0 1rem; }
.storage-summary { margin:8px 0; color:var(--muted); }
.storage-summary strong { color:var(--ink); font-size:1.05rem; }
.storage-meter { height:14px; overflow:hidden; border-radius:999px; background:#e7eff6; box-shadow:inset 0 1px 2px rgb(71 95 114 / 10%); }
.storage-meter span { height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,#0d2740,#75c6ff); transition:width .3s ease; }
.storage-meter.over span { background:linear-gradient(90deg,#b94839,#e3814a); }
.storage-card > p { margin:14px 0 4px; color:var(--muted); }
.storage-card > small { color:#617689; }
@media (max-width:640px) {
  .organization-settings-tabs { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
  .organization-settings-tab { min-width:250px; scroll-snap-align:start; }
  .organization-settings-panel { padding:16px; }
  .settings-section-heading { align-items:flex-start; flex-direction:column; }
  .storage-card-heading,.storage-summary { align-items:flex-start; flex-direction:column; gap:8px; }
}
.preference-list { display:grid; gap:0; padding:0; overflow:hidden; border:1px solid var(--line); border-radius:12px; }
.preference-list legend { padding:0 10px; font-weight:850; }
.preference-list label { padding:13px 15px; display:flex; align-items:center; flex-direction:row; gap:10px; border-bottom:1px solid var(--line); }
.preference-list label:last-child { border-bottom:0; }
.preference-list input { width:auto; }

.profile-settings-form .digest-preferences { gap:0; min-width:0; margin:0 0 16px; }
.digest-preferences > legend { padding-inline:8px; }
.digest-preferences:not(:has(#user_daily_summary_email:checked)) .digest-options { display:none; }
.digest-preference-group > .profile-group-label {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.preference-matrix label span { overflow-wrap:anywhere; }
.digest-preferences > .digest-master-toggle { border-bottom:1px solid var(--line); }
.digest-master-toggle span { display:grid; gap:3px; }
.digest-master-toggle small, .digest-content-matrix small { color:var(--muted); font-weight:500; }
.digest-preference-group { padding:15px; border-bottom:1px solid var(--line); }
.digest-preference-group:last-child { border-bottom:0; }
.digest-preference-group > strong { display:block; margin-bottom:10px; }
.preference-matrix { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:8px; }
.preference-list .preference-matrix label { min-width:0; padding:10px; border:1px solid var(--line); border-radius:9px; background:var(--surface); align-items:flex-start; }
.preference-list .preference-matrix label:has(input:checked) { border-color:var(--brand-primary); background:var(--surface-soft); }
.digest-content-matrix { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.digest-content-matrix span { display:grid; gap:3px; }
.immediate-notifications .digest-content-matrix { grid-template-columns:repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .preference-matrix, .digest-content-matrix, .immediate-notifications .digest-content-matrix { grid-template-columns:1fr; }
}
.contextual-help-preferences label > span { display:grid; gap:3px; }
.contextual-help-preferences label small { color:var(--muted); font-weight:550; line-height:1.4; }
.contextual-help-reset-card { max-width:900px; margin:14px 0 24px; padding:17px 19px; display:flex; align-items:center; justify-content:space-between; gap:20px; border:1px solid var(--line); border-radius:12px; background:#f3f7fa; }
.contextual-help-reset-card p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.contextual-help-reset-card form { margin:0; }
.contextual-help-popover { width:min(330px,calc(100vw - 24px)); z-index:220; position:fixed; padding:17px; border:1px solid #9eb4c5; border-radius:12px; color:var(--ink); background:#fff; box-shadow:var(--shadow-overlay); }
.contextual-help-popover[hidden] { display:none; }
.contextual-help-popover-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.contextual-help-popover-heading strong { padding-top:2px; color:#0d2740; font-size:14px; line-height:1.35; }
.contextual-help-popover-close { width:25px; height:25px; flex:0 0 25px; padding:0; display:grid; place-items:center; border:0; border-radius:50%; color:#52697b; background:#edf3f7; cursor:pointer; font-size:18px; line-height:1; }
.contextual-help-popover > p { margin:9px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.contextual-help-popover-actions { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.contextual-help-dismiss { padding:0; border:0; color:#124f7f; background:transparent; cursor:pointer; font:800 11px/1.4 Inter,ui-sans-serif,system-ui,sans-serif; text-align:left; }
.contextual-help-dismiss:disabled { cursor:wait; opacity:.55; }
.contextual-help-popover .contextual-help-popover-error { color:#9f3022; font-weight:700; }
@media (max-width:600px) { .contextual-help-reset-card { align-items:stretch; flex-direction:column; }.contextual-help-reset-card .button { width:100%; justify-content:center; }.contextual-help-popover { padding:15px; } }
@media print { .contextual-help-popover,.contextual-help-reset-card { display:none!important; } }
.locale-selector { margin:0; padding:14px; border:1px solid var(--line); border-radius:12px; }
.locale-selector legend { padding:0 8px; font-weight:850; }
.locale-selector > p { margin:0 0 12px; color:var(--muted); font-size:.9rem; }
.locale-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.locale-option { padding:12px 14px; display:flex; align-items:center; flex-direction:row; gap:11px; border:1px solid var(--line); border-radius:10px; cursor:pointer; background:#fff; }
.locale-option:has(input:checked) { border-color:var(--brand); box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 18%,transparent); }
.locale-option input { width:auto; margin:0; }
.locale-option span:last-child { display:grid; gap:2px; }
.locale-option small { color:var(--muted); font-weight:500; }
.breadcrumb { display:flex; gap:9px; color:var(--muted); }
.breadcrumb a { color:var(--forest-2); text-decoration:none; font-weight:750; }
.help-hero { margin-bottom: 24px; padding: 42px; display: flex; justify-content: space-between; align-items: end; gap: 24px; color: white; background: linear-gradient(135deg,#071c33,#124f7f); border-radius: 22px; }
.help-hero h1 { margin: 4px 0 10px; font-size: clamp(36px,5vw,58px); }
.help-hero p:last-child { max-width: 760px; margin: 0; color: #d1dee8; }
.help-hero > span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; white-space: nowrap; }
.help-search { position:relative; z-index:30; width:min(880px,calc(100% - 32px)); margin:-10px auto 26px; padding:10px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px 16px; border:1px solid #b8cad8; border-radius:17px; background:#fff; box-shadow:0 14px 34px rgb(7 28 51 / 12%); }
.help-search-control { min-width:0; display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:10px; }
.help-search-icon { width:17px; height:17px; margin-left:4px; display:block; border:2px solid #52697b; border-radius:50%; }
.help-search-icon::after { content:""; width:7px; height:2px; display:block; background:#52697b; transform:translate(12px,12px) rotate(45deg); transform-origin:left center; }
.help-search input { width:100%; min-height:42px; padding:7px 2px; border:0; outline:0; background:transparent; box-shadow:none; font-size:16px; }
.help-search input:focus { border:0; box-shadow:none; }
.help-search kbd { padding:5px 8px; border:1px solid #d1dee8; border-bottom-width:2px; border-radius:7px; color:#52697b; background:#f3f7fa; font:750 11px/1 Inter,ui-sans-serif,system-ui,sans-serif; }
.help-search-status { color:var(--muted); white-space:nowrap; font-size:12px; }
.help-search-results { position:absolute; top:calc(100% + 8px); right:0; left:0; max-height:min(480px,65vh); overflow:auto; padding:8px; border:1px solid #b8cad8; border-radius:15px; background:#fff; box-shadow:var(--shadow-overlay); }
.help-search-results[hidden] { display:none; }
.help-search-results a { padding:12px 14px; display:grid; gap:3px; border-radius:10px; color:var(--ink); text-decoration:none; }
.help-search-results a:hover,.help-search-results a:focus,.help-search-results a.is-active { outline:0; background:#eaf2f8; }
.help-search-results strong { color:var(--brand-primary); font-size:14px; }
.help-search-results span { overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.help-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 28px; align-items: start; }
.help-toc { position: sticky; top: 145px; padding: 18px; display: grid; gap: 4px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.help-toc strong { margin-bottom: 8px; color: var(--forest); }
.help-toc a { padding: 7px 8px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 12px; }
.help-toc a:hover { color: var(--forest); background: #f3f7fa; }
.help-manual { min-width:0; display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
.help-manual section { scroll-margin-top: 150px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 17px; }
.help-manual h2 { margin: 3px 0 16px; font-size: 28px; }
.help-manual h3 { margin-top: 0; }
.help-manual p, .help-manual li { line-height: 1.65; }
.help-topic-block { margin:20px 0 0; padding:18px 0 0; border-top:1px solid var(--line); }
.help-topic-block h3 { margin:0 0 7px; color:#0d2740; font-size:17px; }
.help-topic-block p:last-child { margin-bottom:0; }
.help-callout, .help-warning { margin: 18px 0; padding: 18px 20px; border-left: 5px solid #4c84ae; border-radius: 10px; background: #f3f7fa; }
.help-warning { border-left-color: #f79009; background: #fff7e8; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.help-role-list, .help-flow-list { min-width:0; display:grid; grid-template-columns:minmax(0,1fr); gap:20px; margin-top:22px; }
.help-content-entry { min-width:0; scroll-margin-top:150px; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; }
.help-role-card > header,.help-flow-card > header { padding:16px 18px; display:flex; align-items:center; gap:14px; border-bottom:1px solid var(--line); background:#f8fafc; }
.help-role-card > header { display:grid; gap:3px; }
.help-role-card > header h3,.help-flow-card > header h3 { margin:0; color:#0d2740; font-size:17px; }
.help-role-card > header p,.help-flow-card > header small { margin:0; color:var(--muted); font-weight:500; line-height:1.45; }
.help-flow-card > header > span:nth-child(2) { display:grid; gap:3px; }
.help-role-body { padding:18px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.help-role-body h3 { margin-bottom: 6px; font-size: 15px; }
.help-role-body ul, .help-role-body ol { margin: 0; padding-left: 20px; }
.help-handoff { padding: 14px 16px; border-radius: 10px; }
.help-handoff p, .help-flow-intro p, .help-flow-result p { margin: 4px 0 0; }
.help-handoff-in { background: #eef5f7; border-left: 4px solid #4b91a5; }
.help-handoff-out { background: #f3f7fa; border-left: 4px solid #4c84ae; }
.help-role-limit { grid-column: 1 / -1; padding: 12px 14px; color: #7a4d00; background: #fff7e8; border-radius: 9px; }
.help-flow-number { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: white; background: var(--forest); border-radius: 10px; font-size: 13px; }
.help-flow-body { min-width:0; padding:18px; }
.help-flow-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 16px; }
.help-flow-intro > div, .help-flow-result { padding: 14px 16px; background: #f3f7fa; border-radius: 10px; }
.help-step-table { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.help-step-row { display: grid; grid-template-columns: minmax(150px,.85fr) minmax(220px,1.5fr) minmax(160px,1fr) minmax(140px,.9fr); }
.help-step-row > span { padding: 12px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); line-height: 1.45; }
.help-step-row > span:last-child { border-right: 0; }
.help-step-row:first-child > span { border-top: 0; }
.help-step-head { color: white; background: var(--forest); font-size: 12px; font-weight: 800; }
.help-step-row:not(.help-step-head) > span:first-child { display: grid; grid-template-columns: 26px 1fr; align-content: start; gap: 4px; }
.help-step-row:not(.help-step-head) > span:first-child b { grid-row: 1 / 3; display: grid; place-items: center; width: 24px; height: 24px; color: var(--forest); background: #e7eff6; border-radius: 50%; font-size: 11px; }
.help-next-owner { color: var(--forest); font-weight: 800; }
.help-flow-result { margin-top: 14px; border-left: 4px solid #4c84ae; }
.workflow-steps { padding-left: 0; list-style: none; counter-reset: help-step; }
.workflow-steps li { position: relative; margin: 10px 0; padding: 12px 15px 12px 52px; border: 1px solid var(--line); border-radius: 10px; counter-increment: help-step; }
.workflow-steps li::before { content: counter(help-step); position: absolute; left: 13px; top: 11px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-weight: 800; }
.help-permissions td:first-child { min-width: 170px; font-weight: 800; }
.settings-section { margin:0 0 34px; }
.section-heading { margin:0 0 14px; display:flex; justify-content:space-between; align-items:end; gap:18px; }
.section-heading h2 { margin:3px 0; }
.section-heading p:last-child { margin:5px 0 0; color:var(--muted); }
.permission-template-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.permission-template-card { padding:18px 20px; display:flex; align-items:center; justify-content:space-between; gap:18px; border:1px solid #d1dee8; border-radius:14px; background:#fff; }
.permission-template-card > div:first-child { display:grid; gap:5px; }
.permission-template-card small { color:var(--muted); }
.permission-template-card .actions { flex-wrap:nowrap; }
.permission-template-card form { margin:0; }
.permission-template-list { display:grid; gap:12px; }
.permission-template-matrix-card { padding:0; display:block; overflow:hidden; }
.permission-template-matrix-card > summary { min-height:82px; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:18px; cursor:pointer; list-style:none; }
.permission-template-matrix-card > summary::-webkit-details-marker { display:none; }
.permission-template-matrix-card > summary::before { content:"›"; flex:0 0 auto; color:#155b8f; font-size:1.55rem; font-weight:850; transform:rotate(0); transition:transform .15s ease; }
.permission-template-matrix-card[open] > summary::before { transform:rotate(90deg); }
.permission-template-matrix-card > summary > span:first-of-type { min-width:0; flex:1; display:grid; gap:4px; }
.permission-template-matrix-card > summary small { display:block; color:#526b80; }
.permission-template-matrix-card > summary:focus-visible { outline:3px solid rgb(21 91 143 / 28%); outline-offset:-3px; }
.permission-template-meta { flex:0 0 auto; display:grid; justify-items:end; color:#274f70; font-weight:750; }
.permission-template-matrix-shell { margin:0; border-width:1px 0 0; border-radius:0; }
.permission-template-matrix input[type="checkbox"]:disabled { opacity:1; }
.permission-template-matrix input[type="checkbox"]:not(:disabled) { cursor:pointer; }
.permission-template-inline-form { border-top:1px solid #d1dee8; }
.permission-template-inline-form .permission-template-matrix-shell { border-top:0; }
.permission-template-save { padding:12px 16px; display:flex; justify-content:flex-end; background:#f3f7fa; border-top:1px solid #d1dee8; }
.permission-restricted-row { background:#f5f7f9; }
.permission-restricted-row input[type="checkbox"] { filter:grayscale(1); }
.permission-role-limit { color:#7d241c !important; font-weight:750 !important; }
.bid-estimate-company-scope { margin:14px 0 18px; padding:13px 15px; display:flex; align-items:baseline; gap:12px; border:1px solid #b7cad9; border-radius:10px; color:#173f60; background:#edf5fa; }
.bid-estimate-company-scope span { color:#526b80; }
.permission-profile-form { max-width:980px; }
.permission-matrix-shell { margin:22px 0; }
.permission-matrix td:first-child { width:70%; }
.permission-matrix td:first-child small { margin-top:4px; display:block; color:var(--muted); font-weight:400; }
.permission-matrix th:not(:first-child),.permission-matrix td:not(:first-child) { width:15%; text-align:center; }
.permission-matrix input[type="checkbox"] { width:22px; height:22px; accent-color:#124f7f; }
.project-access-settings { margin-bottom:22px; padding:0; overflow:hidden; scroll-margin-top:80px; }
.page-shell.project-settings-page > .form-card,.page-shell.project-settings-page > .project-access-settings,.page-shell.project-settings-page > .attendance-device-settings { width:100%; max-width:none; }
.project-access-settings .section-heading { padding:22px 24px 12px; }
.project-access-legend { padding:0 24px 14px; display:flex; align-items:center; gap:18px; color:var(--muted); font-size:12px; }
.project-access-legend span { display:flex; align-items:center; gap:6px; }
.project-access-legend [data-project-access-global-status] { margin-left:auto; color:#124f7f; font-weight:700; }
.access-key { width:12px; height:12px; border:2px solid #85a4bd; border-radius:3px; }
.access-key.write { border-color:#124f7f; background:#124f7f; }
.project-access-matrix-shell { border-width:1px 0 0; border-radius:0; box-shadow:none; }
/* Explicit sticky columns, uniform module pairs. */
.project-access-matrix { --access-person-width:224px; --access-assignment-width:104px; width:100%; min-width:calc(var(--access-person-width) + var(--access-assignment-width) + var(--access-module-count) * 96px); table-layout:fixed; border-collapse:separate; border-spacing:0; font-size:12px; }
.project-access-person-column { width:var(--access-person-width); }
.project-access-assignment-column { width:var(--access-assignment-width); }
.project-access-matrix th,.project-access-matrix td { min-width:0; padding:10px 8px; text-align:center; vertical-align:middle; border-bottom:1px solid #dce3e9; }
.interior-light .project-access-matrix thead th { position:static; left:auto; z-index:auto; background:#eef2f5; color:#34495e; white-space:normal; line-height:1.4; font-weight:600; letter-spacing:normal; }
.project-access-matrix thead tr:first-child th[scope="colgroup"] { border-left:1px solid #dce3e9; }
.project-access-matrix thead tr:last-child th { padding:6px 8px; font-size:11px; }
.project-access-matrix .project-access-person-cell { position:sticky; left:0; z-index:2; background:#fff; text-align:left; }
.project-access-matrix .project-access-assignment-cell { position:sticky; left:var(--access-person-width); z-index:2; background:#fff; border-right:1px solid #dce3e9; }
.interior-light .project-access-matrix thead .project-access-person-cell { position:sticky; left:0; z-index:3; }
.interior-light .project-access-matrix thead .project-access-assignment-cell { position:sticky; left:var(--access-person-width); z-index:3; }
.project-access-matrix .access-read { border-left:1px solid #e5eaf0; }
.project-access-matrix tbody tr:hover > :is(th,td) { background:#f8fafb; }
.project-access-person { display:flex; align-items:center; gap:9px; }
.project-access-person span:last-child { display:grid; text-align:left; }
.project-access-person small { color:var(--muted); font-weight:400; }
.project-access-matrix input[type="checkbox"] { appearance:none; width:18px; height:18px; margin:0; display:inline-grid; place-content:center; vertical-align:middle; border:1.5px solid #8293a2; border-radius:3px; background:#fff; cursor:pointer; }
.project-access-matrix input[type="checkbox"]:checked { background:#24567c; border-color:#24567c; }
.project-access-matrix input[type="checkbox"]:checked::after { content:""; width:8px; height:4px; margin-top:-2px; border:solid #fff; border-width:0 0 2px 2px; transform:rotate(-45deg); }
.project-access-matrix input[type="checkbox"]:disabled { opacity:1; background:#f2f4f6; border-color:#aebac4; cursor:default; }
.project-access-matrix input[type="checkbox"]:disabled:checked { background:#6f7f8d; border-color:#6f7f8d; }
.project-access-matrix input[type="checkbox"]:focus-visible { outline:2px solid #24567c; outline-offset:3px; }
.project-access-matrix tr.is-unassigned { opacity:1; }
.project-access-matrix tr.is-unassigned .project-access-person { color:#697c8b; }
.project-access-matrix tr.is-saving { opacity:.68; }
.project-access-matrix td small { display:block; margin-top:5px; color:#526779; font-size:10px; }
.project-access-person { min-width:0; }
.project-access-person strong { font-weight:600; overflow-wrap:anywhere; }
.project-access-settings .section-heading { margin:0; padding:18px 20px 10px; }
.project-access-settings .section-heading p { margin:6px 0 0; }
.project-access-legend { padding:0 20px 12px; gap:14px; }
.project-access-legend strong { color:#34495e; }
.project-access-footnote { margin:0; padding:12px 24px 18px; color:var(--muted); font-size:12px; }
@media (max-width: 720px) {
  .project-access-settings .section-heading,.project-access-legend,.project-access-footnote { padding-left:16px; padding-right:16px; }
  .project-access-matrix { --access-person-width:160px; --access-assignment-width:80px; }
  .project-access-legend { align-items:flex-start; flex-wrap:wrap; }
  .project-access-legend [data-project-access-global-status] { width:100%; margin-left:0; }
}
@media (max-width:680px) {
  .organization-chart-heading-actions { align-items:stretch; flex-direction:column; }
  .organization-chart-heading-actions .button { justify-content:center; width:100%; }
  .permission-template-matrix-card > summary { align-items:flex-start; flex-wrap:wrap; }
  .permission-template-matrix-card > summary > .button,.permission-template-matrix-card > summary > .actions { margin-left:34px; }
  .permission-template-meta { width:100%; margin-left:34px; justify-items:start; }
  .permission-template-matrix-shell { overflow-x:auto; }
  .permission-template-matrix { min-width:620px; }
  .permission-template-save .button { width:100%; justify-content:center; }
  .bid-estimate-company-scope { align-items:flex-start; flex-direction:column; gap:4px; }
}
.help-glossary { display: grid; grid-template-columns: minmax(130px, .3fr) 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.help-glossary dt, .help-glossary dd { margin: 0; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.help-glossary dt { color: var(--forest); background: #f3f7fa; font-weight: 850; }
.check-list { list-style: "✓  "; }
.check-list li { padding: 4px 0 4px 6px; }

/* Folios y emisores son datos de sistema, nunca entradas editables. */
.person-identity { display: inline-flex; align-items: center; gap: 10px; min-width: 0; vertical-align: middle; }
.person-avatar { position: relative; width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; overflow: hidden; border: 2px solid #d1dee8; border-radius: 50%; background: linear-gradient(145deg, #124f7f, #124f7f); color: white; box-shadow: 0 2px 7px rgba(18,79,127, .16); }
.person-avatar-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.person-avatar-generated { image-rendering:auto; }
.person-avatar-image.is-broken { display: none; }
.person-avatar-initials { font-size: 13px; font-weight: 850; letter-spacing: .04em; }
.person-avatar-initials::before { content: attr(data-initials); }
.person-identity-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 750; white-space: nowrap; }
.person-identity.is-retired .person-avatar { border-color:#c7cfd6; background:#e5e9ed; color:#66727d; box-shadow:none; }
.deleted-account-name { display:inline-flex; align-items:baseline; gap:7px; color:#66727d; }
.deleted-account-name small { font-size:.72em; font-weight:700; white-space:nowrap; }
.direct-chat-retired-notice { margin:0; padding:12px 14px; border-top:1px solid #dce5ec; background:#f4f6f8; color:#5d6872; font-size:.82rem; }
.person-identity-small .person-avatar { width: 30px; height: 30px; flex-basis: 30px; }
.person-identity-large .person-avatar { width: 72px; height: 72px; flex-basis: 72px; }
.person-identity-large .person-avatar-initials { font-size: 22px; }
[data-chat-user-id] { cursor:pointer; border-radius:7px; transition:background .15s,color .15s,box-shadow .15s; }
[data-chat-user-id]:hover,[data-chat-user-id]:focus-visible { color:#124f7f; background:#e7eff6; outline:0; box-shadow:0 0 0 3px rgb(40 120 181 / 13%); }
.person-identity[data-chat-user-id] { padding:3px 5px 3px 3px; margin:-3px -5px -3px -3px; }
.chat-user-name-trigger { display:inline; padding:1px 2px; margin:-1px -2px; font:inherit; font-weight:inherit; }
.direct-chat { position:fixed; z-index:500; width:min(390px,calc(100vw - 20px)); min-width:min(320px,calc(100vw - 20px)); max-width:calc(100vw - 20px); height:min(510px,calc(100vh - 20px)); min-height:min(360px,calc(100vh - 20px)); max-height:calc(100vh - 20px); display:grid; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden; border:1px solid #b7cad9; border-radius:17px; color:#071c33; background:#fff; box-shadow:0 24px 70px rgb(71 95 114 / 28%); }
.direct-chat[data-chat-resizable] .direct-chat-header { padding-left:31px; }
.direct-chat-resize-handle { position:absolute; z-index:8; top:5px; left:5px; width:22px; height:22px; padding:0; touch-action:none; border:0; border-radius:7px 0 7px 0; background:linear-gradient(135deg,#6f8da4 0 2px,transparent 2px 5px,#6f8da4 5px 7px,transparent 7px); opacity:.62; cursor:nwse-resize; }
.direct-chat-resize-handle:hover,.direct-chat-resize-handle:focus-visible { outline:2px solid #2878b5; outline-offset:1px; opacity:1; }
body.direct-chat-resizing { cursor:nwse-resize; user-select:none; }
.direct-chat-header { min-height:58px; padding:10px 12px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #d1dee8; background:#f3f7fa; }
.direct-chat-header .person-identity-name { max-width:270px; color:#071c33; }
.direct-chat-close { width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center; border:0; border-radius:50%; color:#124f7f; background:#e7eff6; font-size:24px; line-height:1; cursor:pointer; }
.direct-chat-close:hover { color:#fff; background:#124f7f; }
.direct-chat-history { min-height:0; padding:13px; overflow-y:auto; overscroll-behavior:contain; background:#f3f7fa; }
.direct-chat-messages { display:flex; flex-direction:column; gap:10px; }
.direct-chat-message { max-width:84%; display:grid; gap:4px; }
.direct-chat-message.is-mine { align-self:flex-end; justify-items:end; }
.direct-chat-message.is-theirs { align-self:flex-start; justify-items:start; }
.direct-chat-bubble { padding:9px 12px; border-radius:14px; color:#071c33; background:#e7eff6; line-height:1.4; overflow-wrap:anywhere; }
.direct-chat-message.is-mine .direct-chat-bubble { color:#fff; background:#124f7f; border-bottom-right-radius:4px; }
.direct-chat-message.is-theirs .direct-chat-bubble { border-bottom-left-radius:4px; }
.direct-chat-bubble p { margin:0; }
.direct-chat-message time { padding:0 3px; color:#74889a; font-size:10px; }
.direct-chat-attachments { width:100%; display:grid; gap:5px; }
.direct-chat-attachment { min-width:190px; padding:8px 10px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid #d1dee8; border-radius:10px; color:#0d2740; background:#fff; text-decoration:none; }
.direct-chat-attachment span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.direct-chat-attachment small { flex:0 0 auto; color:#74889a; }
.direct-chat-older { margin:0 auto 12px; padding:6px 10px; display:block; border:0; border-radius:8px; color:#275f8c; background:#e7eff6; font-size:11px; font-weight:750; cursor:pointer; }
.direct-chat-empty { margin:45px 20px; color:#617689; font-size:13px; text-align:center; }
.direct-chat-composer { padding:10px; border-top:1px solid #d1dee8; background:#fff; }
.direct-chat-composer textarea { width:100%; max-height:100px; min-height:54px; padding:10px 12px; resize:none; border:1px solid #b7cad9; border-radius:11px; color:#071c33; background:#fff; font:inherit; }
.direct-chat-composer textarea:focus { border-color:#275f8c; outline:0; box-shadow:0 0 0 3px rgb(40 120 181 / 12%); }
.direct-chat-compose-actions { margin-top:7px; display:flex; align-items:center; gap:8px; }
.direct-chat-attach { width:34px; height:34px; display:grid; place-items:center; border:1px solid #d1dee8; border-radius:9px; color:#124f7f; background:#f3f7fa; font-size:20px; cursor:pointer; }
.direct-chat-attach input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.direct-chat-file-count { min-width:0; flex:1; overflow:hidden; color:#617689; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.direct-chat-send { min-height:34px; padding:7px 14px; border:0; border-radius:9px; color:#fff; background:#124f7f; font-weight:800; cursor:pointer; }
.direct-chat-send:disabled { opacity:.55; cursor:wait; }
.direct-chat-error { margin-top:7px; padding:7px 9px; border-radius:7px; color:#8b2e23; background:#fff0ed; font-size:11px; }
.workspace-density { --floating-control-size:58px; --floating-control-inset:22px; --floating-control-bottom:22px; }
.direct-chat-launcher { position:fixed; z-index:490; right:var(--floating-control-inset); bottom:var(--floating-control-bottom); display:grid; justify-items:end; }
/* keep module entries clear of the floating launcher. */
body:has(.project-workspace-menu[open], .mobile-modules-menu[open]) .direct-chat-launcher { visibility:hidden; }
.direct-chat-launcher-button { position:relative; width:var(--floating-control-size); height:var(--floating-control-size); padding:13px; display:grid; place-items:center; border:1px solid #b7cad9; border-radius:0; color:#124f7f; background:#fff; box-shadow:0 12px 32px rgb(71 95 114 / 20%); cursor:pointer; transition:transform .15s,background .15s,color .15s,border-color .15s; }
.direct-chat-launcher-button:hover,.direct-chat-launcher-button:focus-visible { transform:translateY(-2px); outline:0; box-shadow:0 14px 38px rgb(71 95 114 / 26%); }
.direct-chat-launcher-button svg { width:100%; height:100%; overflow:visible; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.direct-chat-launcher.has-unread .direct-chat-launcher-button { border-color:#c22d24; color:#fff; background:#d5362d; }
.direct-chat-launcher-count { position:absolute; top:-5px; right:-5px; min-width:24px; height:24px; padding:0 6px; display:grid; place-items:center; border:2px solid #fff; border-radius:999px; color:#fff; background:#a91f18; font-size:10px; font-weight:900; }
.direct-chat-launcher-count[hidden] { display:none; }
.direct-inbox-menu { position:absolute; right:0; bottom:70px; width:min(360px,calc(100vw - 20px)); max-height:min(520px,calc(100vh - 110px)); display:grid; grid-template-rows:auto minmax(0,1fr); overflow:hidden; border:1px solid #b7cad9; border-radius:17px; color:#071c33; background:#fff; box-shadow:0 22px 64px rgb(71 95 114 / 26%); }
.direct-inbox-menu[hidden] { display:none; }
.direct-inbox-heading { min-height:62px; padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #d1dee8; background:#f3f7fa; }
.direct-inbox-heading > div { display:grid; gap:2px; }
.direct-inbox-heading strong { font-size:16px; }
.direct-inbox-heading small { color:#617689; font-size:11px; }
.direct-inbox-heading button { width:32px; height:32px; padding:0; display:grid; place-items:center; border:0; border-radius:50%; color:#124f7f; background:#e7eff6; font-size:22px; cursor:pointer; }
.direct-inbox-menu [data-chat-inbox-content] { min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden; }
.direct-inbox-search { margin:12px 12px 8px; padding:0 10px; display:flex; align-items:center; gap:8px; border:1px solid #d1dee8; border-radius:10px; color:#275f8c; background:#fff; }
.direct-inbox-search input { width:100%; min-width:0; height:38px; padding:0; border:0; outline:0; color:#071c33; background:transparent; font:inherit; font-size:13px; }
.direct-inbox-contacts { min-height:0; padding:4px 8px 10px; display:grid; align-content:start; gap:3px; overflow-y:auto; overscroll-behavior:contain; }
.direct-inbox-contact { width:100%; padding:8px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; border:0; border-radius:11px; color:#071c33; background:#fff; text-align:left; cursor:pointer; }
.direct-inbox-contact:hover,.direct-inbox-contact:focus-visible { outline:0; background:#f3f7fa; }
.direct-inbox-contact.has-unread { background:#fff2f0; }
.direct-inbox-contact-copy { min-width:0; display:grid; gap:2px; }
.direct-inbox-contact-copy strong,.direct-inbox-contact-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.direct-inbox-contact-copy strong { font-size:13px; }
.direct-inbox-contact-copy small { color:#617689; font-size:10px; font-weight:500; }
.direct-inbox-unread { min-width:22px; height:22px; padding:0 6px; display:grid; place-items:center; border-radius:999px; color:#fff; background:#cf3027; font-size:10px; font-weight:900; }
.direct-inbox-loading,.direct-inbox-empty,.direct-inbox-no-results { margin:28px 16px; color:#617689; font-size:12px; text-align:center; }
.direct-inbox-no-results[hidden],.direct-inbox-contact[hidden] { display:none; }
.alice-contact { border:1px solid #d1dee8; background:linear-gradient(135deg,#f3f7fa,#fff); }
.alice-avatar { position:relative; display:grid; place-items:center; border-color:#5cbffa; color:#fff; background:#071c33; }
.alice-avatar .alice-avatar-image { object-fit:cover; object-position:center; }
.alice-avatar::after { content:""; position:absolute; right:0; bottom:0; width:8px; height:8px; border:2px solid #fff; border-radius:50%; background:#63c6d5; }
.alice-status-dot { width:9px; height:9px; border-radius:50%; background:#63c6d5; box-shadow:0 0 0 4px #e4f2f7; }
.alice-chat { grid-template-rows:auto auto minmax(0,1fr) auto auto; }
.alice-chat-header { background:linear-gradient(135deg,#f3f7fa,#f3f7fa); }
.alice-header-actions { display:flex; align-items:center; gap:6px; }
.alice-header-actions button { width:32px; height:32px; padding:0; display:grid; place-items:center; border:0; border-radius:50%; color:#124f7f; background:#e7eff6; cursor:pointer; }
.alice-header-actions button:hover,.alice-header-actions button:focus-visible { outline:0; color:#fff; background:#124f7f; }
.alice-header-actions .alice-new-session { font-size:18px; font-weight:800; }
.alice-heading { min-width:0; display:grid; gap:1px; }
.alice-heading small { max-width:255px; overflow:hidden; color:#4c84ae; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.alice-scope { padding:6px 12px; display:flex; align-items:center; gap:6px; color:#275f8c; background:#e7eff6; font-size:10px; font-weight:750; }
.alice-welcome { margin:28px 12px; display:grid; gap:6px; color:#617689; text-align:center; }
.alice-welcome[hidden] { display:none; }
.alice-welcome strong { color:#124f7f; font-size:14px; }
.alice-welcome span { font-size:11px; line-height:1.45; }
.alice-message.is-theirs .direct-chat-bubble { border:1px solid #d1dee8; background:#fff; }
.alice-visual-badge { margin:0 0 6px; padding:4px 7px; width:max-content; display:flex; align-items:center; gap:5px; border-radius:999px; color:#0d2740; background:#dbeaf4; font-size:10px; font-weight:800; }
.alice-message.is-mine .alice-visual-badge { color:#fff; background:rgb(255 255 255 / 18%); }
.alice-console-attach { display:inline-grid; vertical-align:middle; }
.direct-chat-bubble a { color:inherit; font-weight:800; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; }
.alice-message.is-theirs .direct-chat-bubble a { color:#124f7f; }
.alice-message[data-alice-status="queued"] .direct-chat-bubble,.alice-message[data-alice-status="processing"] .direct-chat-bubble { display:flex; align-items:center; gap:9px; color:#526b80; background:#f4f8f6; }
.alice-message[data-alice-status="queued"] .direct-chat-bubble::before,.alice-message[data-alice-status="processing"] .direct-chat-bubble::before { content:""; width:10px; height:10px; flex:0 0 auto; border:2px solid #acc5d8; border-top-color:#124f7f; border-radius:50%; animation:alice-working .8s linear infinite; }
.alice-message[data-alice-status="failed"] .direct-chat-bubble { border-color:#efc9c2; color:#96372d; background:#fff2ef; }
@keyframes alice-working { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .alice-message[data-alice-status="queued"] .direct-chat-bubble::before,.alice-message[data-alice-status="processing"] .direct-chat-bubble::before { animation:none; } }
.download-center-heading { align-items:end; }
.download-project-filter { margin:0 0 14px; display:flex; flex-wrap:wrap; gap:6px; }.download-project-filter a { padding:7px 11px; border:1px solid var(--line); border-radius:999px; color:#275f8c; background:#fff; font-size:.7rem; font-weight:800; text-decoration:none; }.download-project-filter a.active { color:#fff; border-color:#124f7f; background:#124f7f; }
.download-center { overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 12px 34px rgb(7 28 51 / 7%); }.download-center > header,.download-artifact-row { padding:12px 18px; display:grid; grid-template-columns:minmax(280px,1.8fr) minmax(150px,.8fr) minmax(145px,.7fr) 110px 105px 92px; align-items:center; gap:14px; }.download-center > header { color:#65798a; background:#edf3f7; font-size:.62rem; font-weight:900; text-transform:uppercase; }.download-artifact-row { min-height:74px; border-top:1px solid #dce6ed; font-size:.73rem; }.download-artifact-row > div { min-width:0; display:grid; gap:3px; }.download-artifact-row small { overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }.download-artifact-file { grid-template-columns:42px 1fr; align-items:center; }.download-artifact-file > span { width:38px; height:42px; display:grid; place-items:center; border-radius:8px; color:#fff; background:#124f7f; font-size:.58rem; font-weight:900; letter-spacing:.04em; }.download-status { width:max-content; display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border-radius:999px; color:#124f7f; background:#e8f1f7; font-size:.65rem; font-weight:850; }.download-status i { width:7px; height:7px; border-radius:50%; background:currentColor; }.download-status.status-generating,.download-status.status-queued { color:#8b630f; background:#fff3d5; }.download-status.status-failed { color:#a84137; background:#fde9e6; }.download-empty { padding:58px 24px; display:grid; justify-items:center; gap:8px; text-align:center; }.download-empty > span { width:48px; height:48px; display:grid; place-items:center; border-radius:50%; color:#124f7f; background:#e8f1f7; font-size:1.5rem; }.download-empty h2,.download-empty p { margin:0; }.download-empty p { color:var(--muted); }
@media (max-width:900px) { .download-center { overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }.download-center > header { display:none; }.download-artifact-row { margin-bottom:10px; padding:16px; display:grid; grid-template-columns:1fr auto; gap:12px; min-height:0; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 8px 24px rgb(18 79 127 / 5%); }.download-artifact-file { grid-column:1 / -1; }.download-artifact-row > div:nth-child(3),.download-artifact-row > div:nth-child(4) { display:none; }.download-artifact-row > div:nth-child(5),.download-artifact-row > div:nth-child(6) { align-self:end; justify-self:end; }.download-empty { border:1px solid var(--line); border-radius:14px; background:#fff; } }
.assistant-message-list-item { display:block; padding-left:12px; position:relative; }
.assistant-message-list-item::before { content:"•"; position:absolute; left:1px; color:#275f8c; }
.alice-quick-actions { padding:7px 10px; display:flex; gap:6px; overflow-x:auto; border-top:1px solid #e7eff6; background:#f3f7fa; }
.alice-quick-actions button { padding:5px 9px; flex:0 0 auto; border:1px solid #b7cad9; border-radius:999px; color:#124f7f; background:#fff; font-size:10px; font-weight:750; cursor:pointer; }
.alice-quick-actions button:hover { color:#fff; background:#124f7f; }
.alice-usage { min-width:0; flex:1; color:#617689; font-size:10px; }
.alice-action-card { margin:2px 0; padding:12px; display:grid; gap:8px; align-self:stretch; border:1px solid #b7cad9; border-radius:13px; background:#f3f7fa; }
.alice-action-kicker { color:#275f8c; font-size:9px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.alice-action-card > strong { color:#0d2740; font-size:13px; }
.alice-action-card dl { margin:0; display:grid; gap:4px; }
.alice-action-card dl div { display:grid; grid-template-columns:100px minmax(0,1fr); gap:8px; font-size:10px; }
.alice-action-card dt { color:#617689; }
.alice-action-card dd { margin:0; overflow-wrap:anywhere; color:#0d2740; font-weight:700; }
.alice-action-card p { margin:0; color:#617689; font-size:9px; }
.alice-action-buttons { display:flex; justify-content:flex-end; gap:7px; }
.alice-action-buttons .button { min-height:30px; padding:6px 10px; font-size:10px; }
.alice-action-card.is-complete { border-color:#9eb8cc; background:#eef5fa; }
.alice-action-card.is-complete .alice-action-buttons { display:none; }
.identity-email { margin-left: 50px; }
.user-link { display: inline-flex; align-items: center; text-decoration: none; }
.user-link .person-avatar { border-color: rgba(255,255,255,.35); }
.user-link .person-identity-name { max-width: 150px; color: inherit; }
.profile-editor { margin-bottom: 22px; padding-bottom: 20px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.profile-editor label { flex: 1; }
.avatar-storage-warning { margin-top: 0; }
.avatar-editor { width: min(92vw, 760px); max-height: 92vh; padding: 0; overflow: auto; border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 28px 80px rgba(71,95,114,.35); }
.avatar-editor::backdrop { background: rgba(71,95,114,.72); backdrop-filter: blur(4px); }
.avatar-editor > form { padding: 26px; }
.avatar-editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.avatar-editor-heading h2 { margin: 3px 0; }
.avatar-close { width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--ink); background: #e7eff6; font-size: 26px; cursor: pointer; }
.avatar-stage { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 22px auto; overflow: hidden; border-radius: 50%; background: #e7eff6; box-shadow: 0 0 0 10px #f3f7fa, 0 0 0 11px #d1dee8; touch-action: none; cursor: grab; }
.avatar-stage:active { cursor: grabbing; }
.avatar-stage canvas { width: 100%; height: 100%; display: block; }
.avatar-guide { position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 32px rgba(0,0,0,.16); }
.avatar-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.avatar-controls label { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; color: var(--muted); font-size: 13px; font-weight: 750; }
.avatar-controls input { grid-column: 1 / -1; width: 100%; accent-color: var(--forest); }
.avatar-controls output { color: var(--ink); font-variant-numeric: tabular-nums; }
.avatar-editor .actions { margin-top: 24px; justify-content: flex-end; }

label:has(input[name$="[number]"]),
label:not(.manual-code-field):has(input[name$="[code]"]),
label:has(input[name$="[raised_by]"]),
label:has(input[name$="[sender_name]"]),
label:has(input[name$="[buyer_name]"]),
label:has(input[name$="[received_by]"]),
label:has(input[name$="[reported_by]"]),
label:has(input[name="author_name"]),
label:has(input[name="reviewed_by"]),
label:has(input[name="approved_by"]) { display: none !important; }

@media (max-width: 760px) {
  .avatar-editor > form { padding: 20px 16px; }
  .avatar-stage { width: min(88vw, 360px); }
  .avatar-controls { grid-template-columns: 1fr; }
  .help-hero { padding: 28px 22px; align-items: flex-start; flex-direction: column; }
  .help-search { width:100%; grid-template-columns:1fr; }
  .help-search kbd { display:none; }
  .help-search-status { padding:0 7px 4px; }
  .help-search-results { top:calc(100% + 6px); }
  .help-layout { grid-template-columns: 1fr; }
  .help-toc { position: static; max-height: 260px; overflow: auto; }
  .help-manual section { padding: 22px 18px; }
  .help-grid { grid-template-columns: 1fr; }
  .help-role-body, .help-flow-intro { grid-template-columns: 1fr; }
  .help-role-card > header,.help-flow-card > header,.help-role-body,.help-flow-body { padding:15px; }
  .help-step-table { overflow:visible; border:0; }
  .help-step-row { min-width:0; margin-top:12px; grid-template-columns:1fr; overflow:hidden; border:1px solid var(--line); border-radius:10px; }
  .help-step-row.help-step-head { display:none; }
  .help-step-row > span { border-top:1px solid var(--line); border-right:0; }
  .help-step-row > span:first-child { border-top:0; background:#f8fafc; }
  .app-header { padding: 0 16px; }
  .project-switcher { min-width:0; margin-left:auto; }
  .project-switcher > summary { min-width:0; max-width:150px; padding:0 10px; border-left:0; }
  .project-switcher-label { display:none; }
  .project-switcher-name { font-size:.76rem; }
  .project-switcher > summary > span:last-child { grid-row:1; }
  .project-switcher > div { position:fixed; top:56px; right:10px; left:10px; width:auto; max-height:65vh; }
  .user-menu > summary { padding-left:10px; }
  .user-menu > summary .person-identity-name { display:none; }
  nav { display: none; }
  .app-header nav { display: flex; gap: 12px; }
  .app-header nav > *:not(.current-project-link):not(form) { display: none; }
  .current-project-link { font-size: 13px; }
  .project-navigation { display:none !important; }
  .project-navigation-inner { width: max-content; min-width: 100%; padding: 0 16px; gap: 12px; }
  .project-context { min-width: 150px; }
  .project-module-groups { display: flex; }
  .module-menu { position: fixed; z-index:120; top: 106px; left: 12px; right: 12px; max-height: calc(100vh - 178px); overflow: auto; border-radius: 13px; }
  .workspace-overview { grid-template-columns: 1fr 1fr; }
  .action-center-item { grid-template-columns: 1fr; gap: 12px; }
  .portfolio-hero { padding: 28px 22px; align-items: stretch; flex-direction: column; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-project { padding: 18px; }
  .page-shell { padding: 24px 16px 60px; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 40px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .form-grid, .split-layout { grid-template-columns: 1fr; }
  .filter-bar, .bulk-bar { align-items: stretch; flex-direction: column; }
  .filter-bar label, .filter-bar .search-field, .bulk-bar select { width: 100%; min-width: 0; }
  .filter-bar:has(input[type="search"]) input[type="search"] { padding-right: 58px; }
  .spotlight-shortcut { font-size: 0; }
  .spotlight-shortcut::after { content: "⌘K"; font-size: 10px; }
  .span-2 { grid-column: auto; }
  .document-card { grid-template-columns: 48px 1fr; }
  .document-icon { width: 44px; height: 54px; }
  .document-state { grid-column: 2; align-items: start; }
  .current-heading, .revision-list article, .revision-actions { align-items: stretch; flex-direction: column; }
  .pdf-frame { height: 62vh; }
  .submittal-row { grid-template-columns: 1fr; gap: 14px; }
  .document-state { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .drawing-layout { grid-template-columns: 1fr; }
  .drawing-sidebar { position: static; }
  .pdf-stage { min-height: 360px; }
}

@media (max-width: 520px) { .detail-grid { grid-template-columns: 1fr; } }
@page { margin: 14mm 13mm 15mm; }
@media print {
  *, *::before, *::after { color:#111 !important; background:transparent !important; box-shadow:none !important; text-shadow:none !important; }
  html, body { background:#fff !important; font-size:9.5pt; }
  body { line-height:1.35; }
  img { filter:grayscale(1) contrast(1.08); }
  a { color:#111 !important; text-decoration:none !important; }
  .app-header, .project-navigation, .cookie-notice, .privacy-footer, .report-heading .actions, .report-selector, .report-controls, .no-print, .flash, button, .button, input[type="submit"] { display:none !important; }
  .page-shell { max-width:none; padding:0; }
  .page-heading { margin:0 0 14px; padding:0 0 10px; border-bottom:1.5px solid #111; }
  .page-heading h1 { margin:2px 0; font-size:19pt; }
  .eyebrow { color:#333 !important; letter-spacing:.09em; }
  .report-sheet { padding:0; border:0; }
  .report-document, .form-card, .module-card, .detail-grid article, .table-shell { border:0; border-radius:0; box-shadow:none; }
  .report-document-cover { min-height:auto; padding:0 0 16px; display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto auto; gap:16px 24px; border-bottom:2px solid #111; }
  .report-document-brand { align-items:flex-start; }
  .report-owner-logo { width:34px; height:34px; flex-basis:34px; border-radius:0; }
  .report-document-brand img { width:100%; height:100%; padding:2px; object-fit:contain; border-radius:0; }
  .report-document-brand strong { font-size:11pt; letter-spacing:.02em; }
  .report-document-brand span { color:#444 !important; font-size:7.5pt; }
  .report-document-meta { text-align:right; }
  .report-document-title { align-self:auto; }
  .report-document-title p { margin-bottom:4px; color:#333 !important; font-size:8pt; }
  .report-document-title h1 { margin:0 0 4px; color:#111 !important; font-size:22pt; line-height:1.08; }
  .report-document-title span { color:#333 !important; font-size:10pt; }
  .report-document-cover dl { gap:12px; }
  .report-document-cover dl div { padding-top:7px; border-top:1px solid #777; }
  .report-document-cover dt { color:#444 !important; font-size:6.5pt; }
  .report-document-cover dd { margin-top:3px; font-size:8.5pt; }
  .report-executive-summary,.report-section { padding:15px 0; border-bottom:1px solid #bbb; }
  .report-section-heading { margin-bottom:10px; padding-left:9px; border-left:3px solid #111; }
  .report-section-heading h2,.report-executive-summary h2 { font-size:14pt; }
  .report-kpi-grid { padding:10px 0 15px; gap:0; border-bottom:1px solid #bbb; }
  .report-kpi-grid article { padding:9px 12px; border:0; border-right:1px solid #bbb; border-radius:0; }
  .report-kpi-grid article:last-child { border-right:0; }
  .report-kpi-grid article,.report-priority-list article { break-inside:avoid; }
  .report-priority-list article { border:0; border-bottom:1px solid #ccc; border-radius:0; }
  .report-priority-list article > i { width:2px; background:#111 !important; }
  .report-clear-state { border:1px solid #aaa; border-radius:0; }
  .report-health { padding:4px 8px; border:1px solid #777; border-radius:0; }
  .report-health i { background:#111 !important; }
  .report-document > footer { padding:10px 0 0; border-top:1px solid #111; font-size:7pt; }
  .table-shell { overflow:visible; }
  table { width:100%; border-collapse:collapse; font-size:8pt; }
  th { position:static; background:#f1f1f1 !important; color:#111 !important; border-top:1px solid #555; border-bottom:1px solid #555; }
  td { border-bottom:1px solid #ccc; }
  tr { break-inside:avoid; }
  .status, .status-pill, .status-badge, .health-badge, .badge { padding:2px 6px; border:1px solid #777; border-radius:999px; }
  .progress-track { border:1px solid #777; }
  .progress-track i { background:#222 !important; }
  .daily-report-print-cover { margin:0 0 2mm; padding:0 0 2mm; display:grid; grid-template-columns:minmax(48mm,.7fr) minmax(0,1.3fr); gap:5mm; border-bottom:1.5px solid #111; border-radius:0; }
  .daily-report-print-identity { gap:2.5mm; }
  .daily-report-owner-logo { width:10mm; height:10mm; flex-basis:10mm; border-radius:0; }
  .daily-report-owner-logo .organization-logo__image { padding:.8mm; }
  .daily-report-owner-name { margin-bottom:.5mm; color:#333 !important; font-size:6pt; }
  .daily-report-print-cover .eyebrow { margin-bottom:1mm; font-size:6.5pt; }
  .daily-report-print-cover h1 { margin:0; font-size:13pt; line-height:1.05; }
  .daily-report-print-cover h2 { margin-top:1mm; font-size:8.5pt; }
  .daily-report-print-cover h2, .daily-report-print-cover dt { color:#333 !important; }
  .daily-report-print-cover dl { grid-template-columns:2fr 1.2fr .55fr .8fr .9fr; align-items:start; gap:3mm; }
  .daily-report-print-cover dl div { display:block; }
  .daily-report-print-cover dt { font-size:6pt; }
  .daily-report-print-cover dd { margin-top:.5mm; font-size:6.5pt; line-height:1.15; }
  .daily-report-print-sheet { margin:0; padding:1.8mm 0; border:0; border-bottom:1px solid #777; border-radius:0; break-inside:avoid; page-break-inside:avoid; }
  .daily-report-print-sheet:last-child { border-bottom:0; }
  .daily-report-print-sheet > header { padding-bottom:1mm; }
  .daily-report-print-sheet > header .eyebrow { margin:0 0 .5mm; font-size:6pt; }
  .daily-report-print-sheet h2 { margin:0; font-size:11.5pt; }
  .daily-report-print-status { min-height:0; padding:1mm 2mm!important; border:1px solid #777; border-radius:999px!important; font-size:6.5pt!important; line-height:1!important; }
  .daily-report-print-facts { margin:1mm 0; grid-template-columns:repeat(4,1fr); gap:0; border:1px solid #aaa; }
  .daily-report-print-facts div { padding:.7mm 1.3mm; border-right:1px solid #aaa; border-radius:0; }
  .daily-report-print-facts div:last-child { border-right:0; }
  .daily-report-print-facts small { font-size:5.8pt; }
  .daily-report-print-facts strong { font-size:7pt; }
  .daily-report-print-event { margin:1mm 0; padding:1mm 1.5mm; border:1px solid #999; border-left:2px solid #111; font-size:7pt; }
  .daily-report-print-grid { grid-template-columns:repeat(3,1fr); gap:.8mm; }
  .daily-report-print-grid section { padding:1mm 1.2mm; border:1px solid #aaa; border-radius:0; break-inside:avoid; }
  .daily-report-print-grid h3 { margin:0 0 .6mm; font-size:7pt; }
  .daily-report-print-grid p { font-size:6.5pt; line-height:1.2; }
  .daily-report-print-table { margin-top:1mm; }
  .daily-report-print-table th { padding:.7mm 1.3mm; background:#f1f1f1 !important; color:#111 !important; font-size:6.5pt; }
  .daily-report-print-table td { padding:.7mm 1.3mm; font-size:6.5pt; }
  .daily-report-print-evidence { margin-top:.8mm; font-size:6pt; }
}

/* Schedule views */
.schedule-view-tabs { display:flex; align-self:stretch; align-items:flex-end; gap:1.9rem; }
.schedule-view-tabs a { color:#617689; padding:.85rem 0 .72rem; border-bottom:3px solid transparent; font-weight:650; text-decoration:none; }
.schedule-view-tabs a:hover { color:#0d2740; }
.schedule-view-tabs a.active { color:#0d2740; border-bottom-color:#0d2740; }
.schedule-alt-view { padding:1.25rem 1.5rem 2rem; background:#f3f7fa; min-height:520px; }
.schedule-alt-view[hidden] { display:none; }
.schedule-alt-heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.schedule-alt-heading h2 { margin:.1rem 0 0; }
.schedule-alt-heading > span { color:#617689; font-size:.92rem; }
.schedule-alt-view .table-wrap { background:white; border:1px solid #d1dee8; border-radius:14px; overflow:auto; }
.schedule-alt-view table { margin:0; }
.schedule-alt-view tbody tr:hover { background:#f3f7fa; }
.schedule-calendar { background:white; border:1px solid #d1dee8; border-radius:14px; overflow:hidden; }
.schedule-calendar-filters { display:flex; align-items:center; gap:.7rem; padding:.8rem 1rem; border-bottom:1px solid #e7eff6; }
.schedule-calendar-search { display:flex; align-items:center; gap:.45rem; min-width:240px; padding:.42rem .7rem; border:1px solid #d1dee8; border-radius:8px; background:#f3f7fa; }
.schedule-calendar-search input { width:100%; padding:0; border:0; background:transparent; outline:0; }
.schedule-calendar-completed { margin-left:auto; color:#526b80; font-size:.85rem; }
.schedule-calendar-toolbar { min-height:70px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:.6rem 1rem; }
.schedule-calendar-toolbar > button { justify-self:start; padding:.42rem .8rem; border:0; background:transparent; color:#2464cf; font-weight:750; cursor:pointer; }
.schedule-calendar-toolbar > div { display:flex; align-items:center; gap:1rem; }
.schedule-calendar-toolbar h2 { min-width:180px; margin:0; text-align:center; }
.schedule-calendar-toolbar > div button { width:34px; height:34px; border:0; border-radius:8px; background:transparent; color:#2464cf; font-size:1.7rem; cursor:pointer; }
.schedule-calendar-toolbar > div button:hover { background:#eef4ff; }
.schedule-calendar-toolbar > span { justify-self:end; color:#617689; font-size:.82rem; }
.schedule-calendar-weekdays { display:grid; grid-template-columns:repeat(7,1fr); color:#617689; font-size:.8rem; text-align:center; }
.schedule-calendar-weekdays span { padding:.6rem; border-bottom:1px solid #d1dee8; }
.schedule-calendar-month { position:relative; min-width:760px; }
.schedule-calendar-days,.schedule-calendar-events { display:grid; grid-template-columns:repeat(7,1fr); grid-template-rows:repeat(6,minmax(112px,1fr)); }
.schedule-calendar-days { min-height:672px; }
.schedule-calendar-events { position:absolute; inset:0; pointer-events:none; }
.schedule-calendar-day { position:relative; padding:.5rem; border-right:1px solid #e7eff6; border-bottom:1px solid #e7eff6; color:#124f7f; background:white; text-align:right; }
.schedule-calendar-day:nth-child(7n),.schedule-calendar-day:nth-child(7n+1) { background:#f3f7fa; }
.schedule-calendar-day.outside { color:#8fa0ae; background:#f3f7fa; }
.schedule-calendar-day span { display:inline-grid; place-items:center; min-width:24px; height:24px; border-radius:50%; }
.schedule-calendar-day.today { border-top:3px solid #2563eb; }
.schedule-calendar-day.today span { background:#2563eb; color:white; font-weight:800; }
.schedule-calendar-day small { float:left; color:#74889a; font-size:.72rem; }
.schedule-calendar-event { z-index:2; align-self:start; height:21px; min-width:0; margin-inline:4px; padding:2px 7px; border:0; border-left:4px solid color-mix(in srgb,var(--task-color) 65%,#0d2740); border-radius:4px; background:var(--task-color); color:#0d2740; font-size:.72rem; font-weight:750; overflow:hidden; text-align:left; text-overflow:ellipsis; white-space:nowrap; pointer-events:auto; cursor:pointer; box-shadow:0 1px 2px rgb(7 28 51 / 15%); }
.schedule-calendar-event:hover { filter:brightness(.96); box-shadow:0 3px 8px rgba(7,28,51,.22); }
.schedule-kanban-column > header { display:flex; justify-content:space-between; align-items:center; padding:.85rem 1rem; border-bottom:1px solid #e7eff6; background:#f3f7fa; }
.schedule-kanban-column > header span { display:grid; place-items:center; min-width:1.7rem; height:1.7rem; border-radius:999px; background:#e7eff6; color:#0d2740; font-size:.8rem; font-weight:750; }
.schedule-kanban-card { width:100%; text-align:left; border:1px solid #d5dee7; border-left:5px solid var(--task-color,#63c6d5); border-radius:9px; padding:.65rem .75rem; background:white; color:#0d2740; cursor:pointer; }
.schedule-kanban-card:hover { border-color:#94aec2; transform:translateY(-1px); box-shadow:0 5px 14px rgb(18 79 127 / 10%); }
.schedule-kanban-card[draggable="true"] { cursor:grab; }
.schedule-kanban-card.dragging { opacity:.42; transform:rotate(1deg) scale(.98); cursor:grabbing; }
.schedule-kanban-card small,.schedule-kanban-card strong,.schedule-kanban-card span { display:block; }
.schedule-kanban-card small,.schedule-kanban-card span { color:#617689; font-size:.78rem; }
.schedule-kanban-card strong { margin:.2rem 0; }
.schedule-kanban { display:grid; grid-template-columns:repeat(4,minmax(240px,1fr)); gap:1rem; overflow-x:auto; align-items:start; }
.schedule-kanban-column { background:#e7eff6; border:1px solid #d1dee8; border-radius:14px; min-height:360px; overflow:hidden; }
.schedule-kanban-column > div { min-height:300px; display:grid; align-content:start; gap:.75rem; padding:.75rem; transition:background .15s,box-shadow .15s; }
.schedule-kanban-column > div.drag-over { background:#e7eff6; box-shadow:inset 0 0 0 2px #275f8c; }
.schedule-board-toolbar { margin-bottom:1rem; padding:.75rem 1rem; display:flex; align-items:center; gap:1rem; border:1px solid var(--line); border-radius:12px; background:white; }
.schedule-board-search { flex:1; max-width:420px; display:flex; align-items:center; gap:.5rem; }
.schedule-board-search input { width:100%; }
.schedule-board-toolbar > span { margin-left:auto; color:#124f7f; font-size:.85rem; font-weight:750; }
.schedule-card-owner { margin-top:.45rem; display:flex!important; align-items:center; gap:.4rem; }
.schedule-card-owner .person-identity { font-size:.78rem; }

/* Subscription plans: informative only until commercial rules are approved. */
.subscription-page { max-width:1420px; margin:0 auto; padding:34px 28px 64px; }
.subscription-hero { min-height:220px; padding:38px 42px; display:flex; align-items:center; justify-content:space-between; gap:36px; border-radius:24px; color:white; background:radial-gradient(circle at 90% 15%,#275f8c 0,transparent 30%),linear-gradient(125deg,#071c33,#0d2740 68%,#124f7f); box-shadow:0 18px 46px rgb(7 28 51 / 18%); }
.subscription-hero h1 { max-width:760px; margin:.35rem 0 .75rem; color:white; font-size:clamp(2rem,4vw,3.6rem); line-height:1.02; }
.subscription-hero p { max-width:760px; margin:0; color:#e7eff6; font-size:1.05rem; }
.subscription-hero .eyebrow { color:#75c6ff; font-size:.78rem; font-weight:850; letter-spacing:.16em; }
.subscription-current { min-width:210px; padding:20px 24px; display:grid; gap:4px; border:1px solid rgb(255 255 255 / 24%); border-radius:17px; background:rgb(255 255 255 / 10%); backdrop-filter:blur(8px); }
.subscription-current span,.subscription-current small { color:#d1dee8; }
.subscription-current strong { font-size:1.55rem; }
.subscription-notice { margin:22px 0; padding:16px 20px; border:1px solid #b7cad9; border-radius:13px; color:#124f7f; background:#f3f7fa; }
.subscription-notice strong { margin-right:.25rem; color:#0d2740; }
.subscription-notice.warning { border-color:#e3c88d; color:#71551c; background:#fff8e8; }
.subscription-summary-grid { margin:22px 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.subscription-summary-grid article { padding:18px 20px; display:grid; gap:7px; border:1px solid #d1dee8; border-radius:14px; background:white; }
.subscription-summary-grid span { color:#617689; font-size:.8rem; font-weight:750; }
.subscription-summary-grid strong { color:#071c33; font-size:1rem; }
.subscription-renewal-control { margin:0 0 22px; padding:16px 20px; border:1px solid #b7cad9; border-radius:14px; background:white; }
.subscription-renewal-control label { display:flex; align-items:center; gap:12px; cursor:pointer; }
.subscription-renewal-control input { width:20px; height:20px; accent-color:#0d2740; }
.subscription-renewal-control span { display:grid; gap:2px; }
.subscription-renewal-control small { color:#617689; }
.subscription-history { margin-top:34px; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; align-items:stretch; }
.pricing-card { position:relative; padding:30px; display:flex; flex-direction:column; border:1px solid #d1dee8; border-radius:20px; background:white; box-shadow:0 8px 24px rgb(18 79 127 / 7%); overflow:hidden; }
.pricing-card.featured { border:2px solid #4c84ae; box-shadow:0 16px 40px rgb(40 120 181 / 16%); }
.pricing-card.business { background:linear-gradient(180deg,#f3f7fa,#fff 42%); }
.plan-ribbon { position:absolute; top:0; right:0; padding:8px 17px; border-radius:0 0 0 14px; color:#0d2740; background:#75c6ff; font-size:.74rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.pricing-card header { min-height:148px; }
.pricing-card h2 { margin:.35rem 0 .55rem; font-size:1.75rem; }
.pricing-card header p { margin:0; color:#617689; line-height:1.5; }
.plan-kicker { color:#124f7f; font-size:.72rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.plan-price { margin:18px 0 4px; display:flex; align-items:baseline; gap:8px; }
.plan-price strong { color:#071c33; font-size:2.35rem; line-height:1; }
.plan-price span,.billing-note { color:#617689; }
.billing-note { min-height:20px; display:block; font-size:.78rem; }
.plan-capacity { margin:20px 0 14px; display:grid; grid-template-columns:repeat(2,1fr); border-block:1px solid #e7eff6; }
.plan-capacity div { padding:14px 8px; text-align:center; }
.plan-capacity div:nth-child(even) { border-left:1px solid #e7eff6; }
.plan-capacity div:nth-child(n+3) { border-top:1px solid #e7eff6; }
.plan-capacity dt { color:#617689; font-size:.7rem; }
.plan-capacity dd { margin:4px 0 0; color:#0d2740; font-size:.95rem; font-weight:850; }
.plan-benefits { margin:0 0 24px; padding:0; display:grid; gap:9px; list-style:none; color:#124f7f; font-size:.83rem; line-height:1.4; }
.plan-benefits li { position:relative; padding-left:20px; }
.plan-benefits li::before { content:"✓"; position:absolute; left:0; color:#275f8c; font-weight:900; }
.plan-features { min-height:240px; margin:0 0 24px; padding:0; display:grid; align-content:start; gap:11px; list-style:none; }
.plan-features li { position:relative; padding-left:25px; color:#124f7f; line-height:1.35; }
.plan-features li::before { content:"✓"; position:absolute; left:0; color:#275f8c; font-weight:900; }
.pricing-card .button { width:100%; margin-top:auto; text-align:center; }
.pricing-card .button:disabled { cursor:default; opacity:.82; }
.pricing-footnote { margin:22px auto 0; max-width:1000px; color:#617689; font-size:.83rem; text-align:center; }

/* Visual geofence editor */
/* Leaflet's structural rules are kept locally so the map never depends on a remote stylesheet. */
.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer { position:absolute; left:0; top:0; }
.leaflet-container { position:relative; overflow:hidden; background:#e7eff6; outline-offset:1px; font:12px/1.5 Inter,ui-sans-serif,system-ui,sans-serif; -webkit-tap-highlight-color:transparent; }
.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow { user-select:none; -webkit-user-drag:none; }
.leaflet-marker-icon,.leaflet-marker-shadow { display:block; }
.leaflet-container .leaflet-overlay-pane svg { max-width:none!important; max-height:none!important; }
.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container .leaflet-tile { width:auto; max-width:none!important; max-height:none!important; padding:0; }
.leaflet-tile { visibility:hidden; filter:inherit; }
.leaflet-tile-loaded { visibility:inherit; }
.leaflet-zoom-animated { transform-origin:0 0; }
.leaflet-zoom-anim .leaflet-zoom-animated { transition:transform .25s cubic-bezier(0,0,.25,1); }
.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile { transition:none; }
.leaflet-zoom-anim .leaflet-zoom-hide { visibility:hidden; }
.leaflet-pane { z-index:400; }.leaflet-tile-pane { z-index:200; }.leaflet-overlay-pane { z-index:400; }.leaflet-shadow-pane { z-index:500; }.leaflet-marker-pane { z-index:600; }.leaflet-tooltip-pane { z-index:650; }.leaflet-popup-pane { z-index:700; }
.leaflet-map-pane canvas { z-index:100; }.leaflet-map-pane svg { z-index:200; }
.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container { pointer-events:none; }
.leaflet-marker-icon.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive { pointer-events:auto; }
.leaflet-interactive { cursor:pointer; }.leaflet-grab { cursor:grab; }.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-marker-draggable { cursor:grabbing; }
.leaflet-control { position:relative; z-index:800; pointer-events:auto; }
.leaflet-top,.leaflet-bottom { position:absolute; z-index:1000; pointer-events:none; }.leaflet-top { top:0; }.leaflet-right { right:0; }.leaflet-bottom { bottom:0; }.leaflet-left { left:0; }
.leaflet-control { float:left; clear:both; }.leaflet-right .leaflet-control { float:right; }.leaflet-top .leaflet-control { margin-top:10px; }.leaflet-bottom .leaflet-control { margin-bottom:10px; }.leaflet-left .leaflet-control { margin-left:10px; }.leaflet-right .leaflet-control { margin-right:10px; }
.leaflet-bar { border:2px solid rgb(18 79 127 / 16%); border-radius:9px; background-clip:padding-box; box-shadow:0 3px 12px rgb(7 28 51 / 16%); overflow:hidden; }
.leaflet-bar a { width:34px; height:34px; display:block; border-bottom:1px solid #d1dee8; color:#0d2740; background:white; font:bold 19px/34px ui-monospace,monospace; text-align:center; text-decoration:none; }
.leaflet-bar a:last-child { border-bottom:0; }.leaflet-bar a:hover,.leaflet-bar a:focus { background:#f3f7fa; }.leaflet-bar a.leaflet-disabled { color:#a9bac8; background:#f3f7fa; cursor:default; }
.leaflet-container .leaflet-control-attribution { margin:0; padding:2px 6px; color:#275f8c; background:rgb(255 255 255 / 88%); }.leaflet-control-attribution a { color:#124f7f; text-decoration:none; }
.geofence-settings { margin-bottom:30px; padding-bottom:30px; border-bottom:1px solid var(--line); }
.attendance-device-settings { max-width:900px; margin-top:24px; display:grid; gap:18px; }
.attendance-adms-address { display:grid; grid-template-columns:1fr auto; gap:4px 14px; padding:16px; border-radius:14px; background:#f3f7fa; }
.attendance-adms-address span,.attendance-adms-address small { grid-column:1/-1; color:var(--muted); }
.attendance-adms-address strong { font-size:1.15rem; overflow-wrap:anywhere; }
.attendance-adms-address code { padding:4px 9px; border-radius:7px; background:#0d2740; color:white; }
.attendance-device-card { display:grid; gap:12px; padding:18px; border:1px solid var(--line); border-radius:14px; }
.attendance-device-card header,.attendance-device-card header div { display:flex; justify-content:space-between; gap:10px; }
.attendance-device-card header div { flex-direction:column; }
.attendance-device-state { align-self:start; padding:5px 9px; border-radius:999px; background:#f5e9e7; color:#8b362e; font-weight:800; }
.attendance-device-state.online { background:#e8f1f7; color:#124f7f; }
.attendance-device-users { display:grid; gap:8px; }
.attendance-device-users > div { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.attendance-device-users span { display:grid; gap:3px; }
.attendance-device-enrollment { color:var(--muted); font-weight:700; }
.attendance-device-form,.attendance-device-user-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:12px; margin-top:12px; }
.attendance-device-form label,.attendance-device-user-form label { display:grid; gap:6px; color:var(--muted); font-weight:750; }
.attendance-device-warning,.attendance-device-empty { display:grid; gap:4px; padding:14px; border-radius:12px; background:#fff5dc; color:#6b5112; }
.attendance-compatible-catalog { margin-top:8px; padding-top:24px; display:grid; gap:18px; border-top:1px solid var(--line); }
.attendance-compatible-catalog-heading { max-width:720px; }
.attendance-compatible-catalog-heading h3 { margin:2px 0 7px; font-size:1.45rem; }
.attendance-compatible-catalog-heading p:last-child { margin:0; color:var(--muted); }
.attendance-compatible-device-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.attendance-compatible-device-card { min-width:0; display:grid; grid-template-columns:minmax(130px,.75fr) minmax(0,1.25fr); border:1px solid var(--line); border-radius:16px; background:white; overflow:hidden; }
.attendance-compatible-device-card.is-recommended { border-color:#75c6ff; box-shadow:0 0 0 2px rgb(117 198 255 / 14%); }
.attendance-compatible-device-image { min-height:245px; position:relative; display:grid; place-items:center; padding:14px; background:linear-gradient(145deg,#f3f7fa,#e7eff6); }
.attendance-compatible-device-image img { width:100%; height:auto; max-height:225px; object-fit:contain; mix-blend-mode:multiply; }
.attendance-compatible-device-badge { position:absolute; top:12px; left:12px; padding:5px 9px; border-radius:999px; color:#0d2740; background:#75c6ff; font-size:.72rem; font-weight:900; letter-spacing:.02em; }
.attendance-compatible-device-content { min-width:0; padding:18px; display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.attendance-compatible-device-content h4 { margin:2px 0 6px; font-size:1.2rem; }
.attendance-compatible-device-content p { margin:0; color:var(--muted); font-size:.88rem; line-height:1.45; }
.attendance-compatible-device-brand { color:#124f7f !important; font-size:.7rem !important; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.attendance-compatible-device-features { margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; list-style:none; }
.attendance-compatible-device-features li { padding:5px 8px; border-radius:999px; color:#124f7f; background:#f3f7fa; font-size:.72rem; font-weight:800; }
.attendance-compatible-device-link { margin-top:auto; width:100%; justify-content:center; text-align:center; }
.attendance-compatible-device-content small { color:var(--muted); font-size:.68rem; }
.attendance-compatible-purchase-note { padding:14px 16px; display:grid; gap:4px; border-left:4px solid #dfac22; border-radius:10px; color:#654b0b; background:#fff8e5; }
@media (max-width:700px) {
  .attendance-device-form,.attendance-device-user-form,.attendance-device-users > div { grid-template-columns:1fr; }
  .attendance-device-card header { align-items:flex-start; }
  .attendance-compatible-device-grid,.attendance-compatible-device-card { grid-template-columns:1fr; }
  .attendance-compatible-device-image { min-height:220px; }
}
.geofence-location-name { max-width:820px; margin:18px 0; display:flex; flex-direction:column; gap:7px; color:#124f7f; font-weight:800; }
.geofence-location-name input { width:100%; padding:11px 12px; border:1px solid #b7cad9; border-radius:10px; background:white; font:inherit; }
.geofence-location-name small { color:var(--muted); font-weight:500; }
.geofence-heading { margin-bottom:16px; display:flex; align-items:flex-end; justify-content:space-between; gap:20px; }
.geofence-heading h2 { margin:0 0 5px; }
.geofence-heading p { margin:0; color:#617689; }
.geofence-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,.8fr); gap:18px; }
.geofence-map-shell { position:relative; min-height:430px; border:1px solid #d1dee8; border-radius:16px; background:#e7eff6; overflow:hidden; }
.geofence-map { width:100%; height:430px; z-index:1; }
.geofence-map-message { position:absolute; z-index:500; top:18px; left:50%; min-width:min(430px,calc(100% - 36px)); padding:12px 16px; display:grid; gap:2px; transform:translateX(-50%); border:1px solid rgb(18 79 127 / 20%); border-radius:11px; color:#0d2740; background:rgb(255 255 255 / 94%); text-align:center; box-shadow:0 8px 24px rgb(7 28 51 / 14%); pointer-events:none; }
.geofence-map-message[hidden] { display:none; }
.geofence-map-message span { color:#617689; font-size:.8rem; }
.geofence-controls { padding:22px; display:flex; flex-direction:column; border:1px solid #d1dee8; border-radius:16px; background:#f3f7fa; }
.geofence-controls > label { color:#124f7f; font-weight:800; }
.geofence-radius-field { margin-top:7px; display:grid; grid-template-columns:1fr auto; align-items:center; border:1px solid #b7cad9; border-radius:10px; background:white; overflow:hidden; }
.geofence-radius-field input { width:100%; padding:12px 13px; border:0; border-radius:0; box-shadow:none; font-size:1.25rem; font-weight:800; }
.geofence-radius-field span { padding-right:14px; color:#617689; }
.geofence-controls input[type="range"] { width:100%; margin:18px 0 24px; accent-color:#275f8c; cursor:pointer; }
.geofence-facts { display:grid; gap:0; border-block:1px solid #d1dee8; }
.geofence-facts > div { padding:14px 0; display:grid; gap:4px; }
.geofence-facts > div + div { border-top:1px solid #e7eff6; }
.geofence-facts span { color:#74889a; font-size:.75rem; }
.geofence-facts strong { color:#0d2740; font-size:.94rem; overflow-wrap:anywhere; }
.geofence-help { margin:auto 0 0; padding-top:22px; color:#617689; font-size:.8rem; line-height:1.45; }
.geofence-map .leaflet-control-attribution { font-size:10px; }
.project-platform-map-pin { position:relative; filter:drop-shadow(0 5px 5px rgb(18 79 127 / 30%)); }
.project-platform-map-pin::before { content:""; position:absolute; inset:0 2px 8px; transform:rotate(45deg); border:3px solid white; border-radius:50% 50% 50% 8%; background:#0d2740; }
.project-platform-map-pin span { position:absolute; z-index:1; top:8px; left:10px; width:14px; height:14px; display:block; border:3px solid #75c6ff; border-radius:50%; background:white; }

/* Controlled document sets, submittal packages and revision comparison */
.collection-page { max-width:1500px; margin:0 auto; }
.collection-page .page-heading { align-items:flex-start; }
.collection-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:18px; }
.collection-card { padding:22px; display:flex; flex-direction:column; gap:13px; border:1px solid #d1dee8; border-radius:16px; color:inherit; background:white; text-decoration:none; box-shadow:0 6px 18px rgb(7 28 51 / 5%); }
.collection-card:hover { border-color:#94aec2; box-shadow:0 10px 24px rgb(7 28 51 / 9%); }
.collection-card h2 { margin:0; font-size:1.2rem; }
.collection-card p { margin:0; color:#617689; line-height:1.45; }
.collection-card-meta { margin-top:auto; display:flex; align-items:center; justify-content:space-between; color:#124f7f; font-size:.82rem; font-weight:750; }
.collection-create { margin-bottom:22px; padding:18px; display:flex; align-items:end; gap:14px; border:1px solid #d1dee8; border-radius:14px; background:#f3f7fa; }
.collection-create label { flex:1; }
.collection-create input { width:100%; margin-top:5px; }

.revision-compare { min-height:calc(100vh - 118px); padding:20px 24px 36px; background:#e7eff6; }
.revision-compare-header { padding:20px 24px; display:flex; align-items:flex-end; justify-content:space-between; gap:24px; border:1px solid #d1dee8; border-radius:16px 16px 0 0; background:white; }
.revision-compare-header h1 { margin:.2rem 0 0; font-size:clamp(1.5rem,3vw,2.2rem); }
.revision-compare-back { color:#275f8c; font-size:.85rem; text-decoration:none; }
.revision-compare-selectors { display:flex; align-items:flex-end; gap:10px; }
.revision-compare-selectors label { display:grid; gap:5px; color:#617689; font-size:.72rem; font-weight:800; }
.revision-compare-selectors select { min-width:105px; }
.revision-compare-toolbar { padding:11px 16px; display:flex; align-items:center; gap:20px; border-inline:1px solid #d1dee8; border-bottom:1px solid #d1dee8; background:#f3f7fa; }
.revision-compare-modes { display:flex; border:1px solid #d1dee8; border-radius:9px; overflow:hidden; }
.revision-compare-modes button { padding:8px 12px; border:0; background:white; color:#275f8c; font-weight:750; cursor:pointer; }
.revision-compare-modes button + button { border-left:1px solid #d1dee8; }
.revision-compare-modes button.active { color:white; background:#0d2740; }
.revision-opacity { flex:1; display:flex; align-items:center; justify-content:center; gap:10px; color:#275f8c; font-size:.8rem; font-weight:750; }
.revision-opacity input { width:min(260px,28vw); accent-color:#124f7f; }
.revision-page-controls { display:flex; align-items:center; gap:9px; color:#275f8c; font-size:.82rem; }
.revision-page-controls button { width:34px; height:34px; border:1px solid #d1dee8; border-radius:8px; color:#0d2740; background:white; font-size:1.25rem; cursor:pointer; }
.revision-compare-stage { position:relative; min-height:600px; padding:24px; display:grid; place-items:start center; border:1px solid #d1dee8; border-top:0; background:#c7d5e0; overflow:auto; }
.revision-sheet { position:relative; grid-area:1 / 1; margin:0; box-shadow:0 8px 24px rgb(0 0 0 / 18%); }
.revision-sheet canvas { display:block; max-width:none; background:white; }
.revision-sheet-label { position:absolute; z-index:3; top:12px; left:12px; padding:6px 9px; border-radius:7px; color:#0d2740; background:rgb(255 255 255 / 92%); box-shadow:0 2px 8px rgb(0 0 0 / 14%); font-size:.72rem; font-weight:800; pointer-events:none; }
.revision-sheet-label span { margin-right:5px; color:#124f7f; }
.revision-compare-stage.overlay .revision-sheet-target { mix-blend-mode:multiply; }
.revision-compare-stage.overlay .revision-sheet-target .revision-sheet-label { display:none; }
.revision-compare-stage.split { grid-template-columns:repeat(2,max-content); place-items:start; gap:24px; }
.revision-compare-stage.split .revision-sheet { grid-area:auto; }
.revision-compare-loading { position:sticky; z-index:8; top:20px; grid-area:1 / 1; padding:12px 16px; border-radius:10px; color:white; background:#0d2740; box-shadow:0 8px 20px rgb(0 0 0 / 18%); }
.revision-compare-loading[hidden] { display:none; }
.revision-compare-note { margin:10px 4px 0; color:#617689; font-size:.8rem; }
.exchange-rate-grid { display:grid; gap:14px; margin-bottom:28px; }
.exchange-rate-grid article { display:grid; gap:16px; max-width:none; margin:0; min-width:0; }
.exchange-rate-grid article > div { display:grid; gap:4px; }
.exchange-rate-grid article span { color:#275f8c; font-size:.8rem; font-weight:800; letter-spacing:.04em; }
.exchange-rate-grid article strong { color:#0d2740; font-size:1.45rem; }
.exchange-rate-grid article small { color:#617689; overflow-wrap:anywhere; }


/* Permission-aware WhatsApp and AI assistant */
.assistant-page,.assistant-settings-page { max-width:1380px; margin:0 auto; }
.assistant-access-strip,.assistant-metrics { margin:0 0 22px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.assistant-metrics { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.assistant-access-strip > div,.assistant-metrics article { min-height:92px; padding:17px 19px; display:grid; align-content:center; gap:6px; border:1px solid #d1dee8; border-radius:14px; background:white; box-shadow:0 5px 14px rgb(7 28 51 / 4%); }
.assistant-access-strip span,.assistant-metrics span { color:#617689; font-size:.72rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.assistant-access-strip strong,.assistant-metrics strong { color:#0d2740; font-size:1.02rem; overflow-wrap:anywhere; }
.assistant-console { border:1px solid #d1dee8; border-radius:18px; background:white; box-shadow:0 14px 34px rgb(7 28 51 / 8%); overflow:hidden; }
.assistant-console > header { padding:21px 24px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid #d1dee8; background:#f3f7fa; }
.assistant-console h2 { margin:3px 0 0; }
.assistant-readonly-badge { padding:7px 11px; border-radius:999px; color:#124f7f; background:#e7eff6; font-size:.72rem; font-weight:850; text-transform:uppercase; }
.assistant-transcript { min-height:380px; max-height:620px; padding:26px; display:flex; flex-direction:column; gap:14px; overflow:auto; background:linear-gradient(180deg,#f3f7fa 0,#f3f7fa 100%); }
.assistant-message { width:min(760px,88%); padding:15px 17px; border:1px solid #d1dee8; border-radius:15px 15px 15px 4px; color:#0d2740; background:white; box-shadow:0 5px 14px rgb(7 28 51 / 6%); }
.assistant-message.inbound { margin-left:auto; border-color:#124f7f; border-radius:15px 15px 4px 15px; color:white; background:#0d2740; }
.assistant-message small { display:block; margin-bottom:8px; color:#617689; font-size:.68rem; font-weight:800; }
.assistant-message.inbound small { color:#d1dee8; }
.assistant-message > div { line-height:1.55; overflow-wrap:anywhere; }
.assistant-message a { color:#124f7f; font-weight:750; }
.assistant-message.inbound a { color:#75c6ff; }
.assistant-message footer { margin-top:10px; padding-top:8px; border-top:1px solid #e7eff6; color:#617689; font-size:.68rem; }
.assistant-empty { margin:auto; max-width:620px; padding:26px; color:#275f8c; text-align:center; }
.assistant-empty strong { color:#0d2740; font-size:1.2rem; }
.assistant-composer { padding:18px 20px; display:grid; grid-template-columns:1fr auto; align-items:end; gap:12px; border-top:1px solid #d1dee8; }
.assistant-composer textarea { min-height:82px; resize:vertical; }
.assistant-composer .button { min-height:48px; }
.assistant-disclaimer { margin:0; padding:0 20px 18px; color:#74889a; font-size:.72rem; }
.assistant-settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.assistant-settings-grid .form-card { margin:0; }
.assistant-settings-grid .form-card > label { margin-top:14px; display:grid; gap:6px; color:#275f8c; font-weight:800; }
.assistant-quota-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.assistant-quota-grid .assistant-quota-card { margin-bottom:20px; }
.assistant-simulator-heading { margin:34px 0 18px; padding-top:30px; display:flex; align-items:flex-end; justify-content:space-between; gap:22px; border-top:1px solid #d1dee8; }
.assistant-simulator-heading h2 { margin:3px 0 0; }
.assistant-simulator-heading > p { max-width:620px; margin:0; color:var(--muted); }
.assistant-whatsapp-card { grid-column:1 / -1; }
.assistant-security-card { grid-column:1 / -1; }
.assistant-security-card ul { margin:14px 0 0; padding-left:20px; display:grid; grid-template-columns:1fr 1fr; gap:9px 26px; color:#275f8c; line-height:1.45; }
.assistant-settings-submit { grid-column:1 / -1; justify-self:end; min-width:260px; }
.assistant-quota-card,.assistant-quota-compact { margin:0 0 20px; padding:18px 20px; border:1px solid #d1dee8; border-radius:15px; background:#fff; }
.assistant-quota-card header { display:flex; justify-content:space-between; align-items:center; gap:18px; }
.assistant-quota-card h2 { margin:2px 0; }
.assistant-quota-card p { margin:9px 0 0; color:var(--muted); }
.assistant-quota-meter { height:10px; overflow:hidden; border-radius:999px; background:#e7eff6; }
.assistant-quota-meter i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#0d2740,#6f93ae); }
.assistant-quota-meter.warning i { background:linear-gradient(90deg,#e8ad26,#c94d34); }
.assistant-quota-compact { display:grid; grid-template-columns:minmax(240px,auto) 1fr; align-items:center; gap:18px; }
.assistant-quota-compact div:first-child { display:flex; align-items:baseline; gap:8px; }
.assistant-quota-compact span { color:var(--muted); font-size:.78rem; }
.assistant-status-list { margin:12px 0; display:grid; gap:9px; }
.assistant-status-list div { padding:10px 0; display:flex; justify-content:space-between; gap:18px; border-bottom:1px solid #d5e1ea; }
.assistant-status-list dt { color:var(--muted); }
.assistant-status-list dd { margin:0; color:#124f7f; font-weight:800; }
.assistant-authorized-users { grid-column:1 / -1; }
.assistant-authorized-users > header { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.assistant-authorized-users article { padding:13px 0; display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:18px; border-bottom:1px solid #e7eff6; }
.assistant-authorized-users article div { display:grid; gap:3px; }
.assistant-authorized-users article small { color:var(--muted); }
.root-member-toggles { display:grid; gap:5px; }
.root-ai-platform-panel { margin:18px 0; padding:20px; border:1px solid #d1dee8; border-radius:16px; background:#fff; }
.root-ai-platform-panel > header { margin-bottom:14px; display:flex; justify-content:space-between; align-items:center; gap:18px; }
.root-ai-platform-panel h2 { margin:2px 0; }
.root-ai-platform-panel > p { margin:13px 0 0; color:var(--muted); }
.root-plan small { display:block; margin-top:4px; color:var(--muted); font-weight:700; }
.field-help { margin:11px 0 0; color:#617689; font-size:.75rem; line-height:1.45; }
.webhook-box { margin-top:18px; padding:16px; display:grid; grid-template-columns:130px minmax(0,1fr) auto; align-items:center; gap:10px; border:1px solid #d1dee8; border-radius:13px; background:#f3f7fa; }
.webhook-box label { color:#275f8c; font-size:.75rem; font-weight:850; }
.webhook-box code { padding:10px 12px; border:1px solid #d1dee8; border-radius:8px; color:#0d2740; background:white; font-size:.72rem; overflow-wrap:anywhere; }
.assistant-inline-actions { margin-top:14px; display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
@media (max-width:900px) {
  .permission-template-grid { grid-template-columns:1fr; }
  .permission-template-card { align-items:flex-start; flex-direction:column; }
  .root-deleted-list > header { display:none; }
  .root-deleted-list > a,.root-deleted-summary,.root-deleted-grid { grid-template-columns:1fr; }
  .root-header-nav { display:none; }
  .data-lifecycle-heading,.data-lifecycle-card > header { align-items:flex-start; flex-direction:column; }
  .data-danger-grid { grid-template-columns:1fr; }
  .data-export-list article { grid-template-columns:1fr; }
  .data-export-meta { justify-content:flex-start; }
  .schedule-view-tabs { order:3; width:100%; overflow-x:auto; }
  .schedule-kanban { grid-template-columns:repeat(4,280px); }
  .schedule-alt-heading { align-items:start; flex-direction:column; }
  .subscription-page { padding:20px 14px 48px; }
  .subscription-hero { padding:28px 24px; align-items:flex-start; flex-direction:column; }
  .subscription-current { width:100%; }
  .subscription-summary-grid { grid-template-columns:1fr 1fr; }
  .pricing-grid { grid-template-columns:1fr; }
  .pricing-card header,.plan-features { min-height:0; }
  .document-manager { margin:-12px -14px 0; }
  .quality-filter-panel { grid-template-columns:1fr 1fr; }
  .quality-search-field { grid-column:1 / -1; }
  .quality-record-row { grid-template-columns:1fr 1fr; }
  .quality-record-title { grid-column:1 / -1; }
  .quality-detail-grid { grid-template-columns:1fr 1fr; }
  .document-manager-heading { padding:22px 18px 16px; align-items:flex-start; flex-direction:column; }
  .document-tabs { padding:0 18px; }
  .document-manager-shell { grid-template-columns:1fr; }
  .document-folder-tree { display:none; }
  .document-register-toolbar { align-items:stretch; flex-wrap:wrap; }
  .document-search { width:100%; flex-basis:100%; }
  .document-thumbnail-grid { grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); }
  .document-register-footer { align-items:flex-start; flex-direction:column; }
  .geofence-heading { align-items:flex-start; flex-direction:column; }
  .geofence-layout { grid-template-columns:1fr; }
  .geofence-map-shell,.geofence-map { min-height:350px; height:350px; }
  .geofence-controls { min-height:280px; }
  .revision-compare { padding:10px; }
  .revision-compare-header { align-items:flex-start; flex-direction:column; }
  .revision-compare-selectors { width:100%; flex-wrap:wrap; }
  .revision-compare-toolbar { align-items:flex-start; flex-wrap:wrap; }
  .revision-opacity { order:3; width:100%; justify-content:flex-start; }
  .revision-compare-stage { min-height:460px; padding:12px; }
  .assistant-access-strip,.assistant-metrics { grid-template-columns:1fr 1fr; }
  .assistant-settings-grid { grid-template-columns:1fr; }
  .assistant-quota-grid { grid-template-columns:1fr; }
  .assistant-simulator-heading { align-items:flex-start; flex-direction:column; }
  .assistant-whatsapp-card,.assistant-security-card,.assistant-settings-submit { grid-column:auto; }
  .assistant-security-card ul { grid-template-columns:1fr; }
  .webhook-box { grid-template-columns:1fr; }
  .assistant-composer { grid-template-columns:1fr; }
  .assistant-message { width:94%; }
}
@media (max-width:560px) {
  .quality-filter-panel,.quality-record-row,.quality-detail-grid { grid-template-columns:1fr; }
  .quality-search-field { grid-column:auto; }
  .quality-filter-actions { align-items:stretch; flex-direction:column; }
  .quality-filter-actions .button { width:100%; text-align:center; }
  .quality-group > header { align-items:flex-start; flex-direction:column; gap:4px; }
  .document-thumbnail-grid-shell { padding:12px; }
  .document-thumbnail-grid { grid-template-columns:1fr; }
}

/*
 * Platafort visual system
 * ---------------------
 * This final screen layer is intentionally centralized. It normalizes legacy
 * modules without changing print layouts or semantic colors used for alerts,
 * weather, drawings and data visualizations.
 */
@media screen {
  body { background:var(--paper); }
  .page-shell { padding:var(--space-page) var(--space-page) 56px; }
  h1 { margin-bottom:18px; font-size:clamp(32px,3vw,40px); }
  h2 { font-size:clamp(23px,2vw,28px); }
  .page-heading { gap:16px; margin-bottom:18px; }
  .section-heading { margin:var(--space-section) 0 12px; }
  .metrics { gap:var(--space-grid); margin:18px 0 30px; }
  .cards,
  .module-grid,
  .project-module-access-list,
  .project-quick-groups,
  .project-live-overview,
  .detail-grid,
  .privacy-provider-grid,
  .assistant-settings-grid,
  .assistant-quota-grid { gap:var(--space-grid); }

  :where(
    .project-card,
    .module-card,
    .form-card,
    .info-panel,
    .error-panel,
    .success-panel,
    .table-shell,
    .filter-bar,
    .bulk-bar,
    .project-quick-panel,
    .project-weather-card,
    .project-generalities-card,
    .automatic-weather-panel,
    .daily-report-print-sheet,
    .document-card,
    .current-document,
    .revision-list article,
    .empty-state,
    .company-logo-control,
    .submittal-row,
    .detail-grid article,
    .review-panel,
    .recipient-grid article,
    .gantt-shell,
    .lookahead-task-selector,
    .notification-list article,
    .workspace-overview a,
    .action-center-item,
    .portfolio-hero,
    .portfolio-project,
    .report-selector,
    .report-sheet,
    .report-controls,
    .report-document,
    .organization-settings-tab,
    .organization-settings-panel,
    .data-lifecycle-card,
    .help-search,
    .help-toc,
    .help-manual section,
    .permission-template-card,
    .schedule-alt-view .table-wrap,
    .schedule-calendar,
    .schedule-kanban-column,
    .subscription-notice,
    .subscription-summary-grid article,
    .subscription-renewal-control,
    .pricing-card,
    .geofence-map-shell,
    .geofence-controls,
    .collection-card,
    .collection-create,
    .exchange-rate-grid article,
    .assistant-access-strip > div,
    .assistant-metrics article,
    .assistant-console,
    .assistant-quota-card,
    .assistant-quota-compact,
    .root-ai-platform-panel,
    .webhook-box,
    .root-metric-grid article,
    .root-client-summary article,
    .root-maintenance-panel,
    .root-bucket-panel,
    .root-directory,
    .root-feedback-panel,
    .root-member-section,
    .root-audit-section,
    .root-cost-panel,
    .root-business-panel,
    .root-feedback-history-list,
    .root-feedback-detail,
    .root-deleted-list,
    .root-deleted-summary article,
    .root-deleted-card,
    .root-settings-card,
    .root-danger-zone
  ) { border-radius:var(--radius-card); box-shadow:var(--shadow-card); }

  :where(
    .privacy-summary,
    .privacy-detail,
    .privacy-preferences,
    .privacy-choice,
    .privacy-provider-grid article,
    .weather-exception-fields,
    .weather-event-callout,
    .document-move-dialog,
    .root-dialog,
    .danger-dialog,
    .data-operation-lock,
    .avatar-editor,
    .project-switcher > div,
    .user-menu > div,
    .header-help > div,
    .header-compact-menu > div,
    .module-menu
  ) { border-radius:var(--radius-overlay); }

  :where(
    .project-switcher > div,
    .user-menu > div,
    .header-help > div,
    .header-compact-menu > div,
    .module-menu,
    .document-move-dialog,
    .root-dialog,
    .danger-dialog,
    .avatar-editor
  ) { box-shadow:var(--shadow-overlay); }

  :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea,
    .global-person-toggle,
    .document-search
  ) { border-radius:var(--radius-field); }

  :where(.button, button.button, input.button, .tool-button) { border-radius:var(--radius-control); }
  :where(
    .status,
    .priority,
    .badge,
    .health-badge,
    .assistant-readonly-badge,
    .portfolio-health,
    .privacy-toggle span,
    .assistant-quota-meter,
    .progress-track
  ) { border-radius:var(--radius-pill); }

  :where(
    .project-card,
    .module-card,
    .form-card,
    .info-panel,
    .error-panel,
    .success-panel,
    .project-quick-panel,
    .project-weather-card,
    .project-generalities-card,
    .privacy-summary,
    .privacy-detail,
    .privacy-preferences,
    .organization-settings-panel,
    .data-lifecycle-card,
    .root-settings-card
  ) { padding:var(--space-card); }

  .form-card { margin-bottom:var(--space-section); }
  .form-grid { gap:14px; }
  .form-grid label { gap:6px; }
  .form-grid :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height:40px;
    padding:9px 11px;
  }
  .form-grid textarea { min-height:78px; }
  .actions { gap:8px; margin-top:18px; }
  .button { min-height:38px; padding:9px 14px; background:var(--brand-primary); }
  .button.secondary { color:var(--brand-primary); background:var(--surface); }
  .button:not(.secondary):not(.danger):hover { background:var(--brand-primary-dark); }

  .filter-bar,
  .bulk-bar { gap:10px; margin-bottom:12px; padding:12px; }
  .filter-bar:has(input[type="search"]) { padding:12px; border-radius:var(--radius-card); box-shadow:var(--shadow-card); }
  .filter-bar input[type="search"] { min-height:46px; }

  .table-shell { box-shadow:var(--shadow-card); }
  th { padding:11px 13px; background:var(--brand-primary); }
  td { padding:10px 13px; }

  :where(.hero, .privacy-heading, .help-hero, .subscription-hero, .daily-report-print-cover) {
    border-radius:var(--radius-card);
    background:var(--brand-gradient);
    box-shadow:none;
  }
  .hero { padding:40px; }
  .hero h1 { font-size:clamp(36px,4.5vw,58px); }
  .privacy-heading,
  .help-hero,
  .subscription-hero { padding:26px; }

  .project-quick-link.featured,
  .assistant-message.inbound { border-color:var(--brand-primary); background:var(--brand-primary); }
  .project-quick-link:hover,
  .project-card:hover,
  .project-module-access:hover { border-color:var(--brand-primary); }
  .project-quick-link,
  .project-module-access > span,
  .table-link,
  .privacy-provider-grid a,
  .privacy-rights a { color:var(--brand-primary); }
  .progress-track i,
  .assistant-quota-meter i { background:var(--brand-gradient); }
  .assistant-quota-meter.warning i { background:linear-gradient(90deg,#e8ad26,#c94d34); }

  .schedule-calendar-toolbar button { color:var(--brand-primary); }
  .schedule-view-tabs a:hover,
  .schedule-view-tabs a.active,
  .schedule-kanban-column > header span,
  .leaflet-bar a,
  .subscription-notice strong,
  .exchange-rate-grid article strong,
  .assistant-access-strip strong,
  .assistant-metrics strong,
  .assistant-empty strong,
  .assistant-status-list dd,
  .webhook-box code { color:var(--brand-primary); }
  .organization-settings-tab.active { border-color:var(--brand-primary); background:var(--brand-primary); }
  .subscription-renewal-control input { accent-color:var(--brand-primary); }
  .storage-meter span { background:var(--brand-gradient); }
  .schedule-calendar-day.today { border-color:var(--brand-primary); }
  .schedule-calendar-day.today > span { background:var(--brand-primary); }
  .document-drop-overlay { border-color:var(--brand-primary); color:var(--brand-primary); background:rgb(18 79 127 / 8%); }

  .privacy-center { gap:var(--space-section); }
  .privacy-choice { gap:18px; padding:16px; }
  .privacy-provider-grid article { padding:16px; background:var(--surface-soft); }
  .privacy-accept { background:var(--brand-primary); }

  .conversation-panel { margin-top:12px; }
  .conversation-panel .section-heading { margin-bottom:6px; }
  .conversation-list { gap:5px; margin:6px 0 8px; }
  .conversation-list article { padding:7px 9px; border-radius:var(--radius-card); }

  .assistant-access-strip,
  .assistant-metrics { margin-bottom:var(--space-section); gap:var(--space-grid); }
  .assistant-access-strip > div,
  .assistant-metrics article { min-height:82px; padding:14px 16px; }
  .assistant-console > header { padding:16px 18px; }
  .assistant-transcript { padding:18px; }
  .assistant-message { padding:12px 14px; border-radius:var(--radius-card); }
  .assistant-composer { padding:14px 16px; }

  .project-quick-panel { margin:20px 0 26px; }
  .project-quick-heading { margin-bottom:14px; }
  .project-quick-group { gap:6px; padding:12px; border-radius:var(--radius-card); background:var(--surface-soft); }
  .project-quick-link { min-height:54px; padding:9px 11px; border-radius:var(--radius-control); }
  .project-live-overview { margin:18px 0; }
  .project-weather-current { margin:14px 0; }
  .project-weather-icon { border-radius:var(--radius-card); }
  .automatic-weather-icon,
  .privacy-shield { border-radius:var(--radius-overlay); }
  .project-weather-facts div,
  .project-generality-grid div,
  .project-weather-forecast-days article { border-radius:var(--radius-control); }

  .metrics article { gap:4px; padding:16px 18px; border-radius:var(--radius-card); box-shadow:var(--shadow-card); }
  .metrics strong { font-size:25px; }
}

@media screen and (max-width:760px) {
  :root {
    --space-page:16px;
    --space-section:18px;
    --space-card:16px;
    --space-grid:10px;
  }
  .page-shell { padding:18px 14px 64px; }
  h1 { font-size:clamp(29px,9vw,36px); }
  h2 { font-size:clamp(21px,7vw,26px); }
  .page-heading,
  .section-heading { align-items:flex-start; }
  :where(.hero, .privacy-heading, .help-hero, .subscription-hero) { padding:20px; }
  .hero h1 { font-size:clamp(34px,10vw,44px); }
  .project-live-overview,
  .privacy-summary { grid-template-columns:1fr; }
  .project-quick-groups { grid-template-columns:1fr; }
  .metrics article { padding:14px; }
}

/* Terms and conditions of service */
.terms-page { max-width:1040px; margin:0 auto; display:grid; gap:14px; color:#34383a; font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif; }
.terms-heading { padding:26px 30px; display:flex; align-items:flex-end; justify-content:space-between; gap:24px; border:1px solid #c9cdcf; border-top:3px solid #4a4f51; border-radius:3px; background:#fff; }
.terms-classification { margin:0; color:#6b7072; font-size:10px; font-weight:750; letter-spacing:.14em; }
.terms-heading h1 { max-width:700px; margin:8px 0 7px; color:#303436; font-family:inherit; font-size:clamp(30px,4.6vw,41px); font-weight:650; line-height:1.08; letter-spacing:-.025em; }
.terms-heading p { margin:0; color:#666b6d; font-size:12px; }
.terms-document-scope { margin-top:14px; display:flex; flex-wrap:wrap; gap:0; color:#626769; font-size:10px; font-weight:650; }
.terms-document-scope span { padding:0 10px; border-left:1px solid #c9cdcf; }
.terms-document-scope span:first-child { padding-left:0; border-left:0; }
.terms-heading-actions { display:flex; align-items:center; gap:10px; }
.terms-language { display:flex; border:1px solid #a9bac8; border-radius:3px; overflow:hidden; }
.terms-language a { min-width:70px; padding:7px 10px; color:#44494b; background:#fff; font-size:11px; font-weight:700; text-align:center; text-decoration:none; }
.terms-language a + a { border-left:1px solid #a9bac8; }
.terms-language a.active { color:#fff; background:#4a4f51; }
.terms-print { min-height:31px; padding:7px 12px; border:1px solid #969b9d; border-radius:3px; color:#3b4042; background:#fff; font:inherit; font-size:11px; font-weight:700; cursor:pointer; }
.terms-required,.terms-accepted { padding:15px 18px; display:flex; align-items:center; justify-content:space-between; gap:18px; border:1px solid #c8ccce; border-left:3px solid #5a5f61; border-radius:3px; background:#f6f6f5; }
.terms-required strong { flex:0 0 auto; }
.terms-required p { margin:0; color:#575c5e; font-size:12px; line-height:1.5; }
.terms-accepted span { color:#676c6e; font-size:12px; }
.terms-reader { border:1px solid #c3c7c9; border-radius:3px; background:#fff; }
.terms-reader > summary { padding:18px 20px; display:flex; align-items:center; justify-content:space-between; gap:18px; cursor:pointer; list-style:none; }
.terms-reader > summary::-webkit-details-marker { display:none; }
.terms-reader > summary > span:first-child { display:grid; gap:3px; }
.terms-reader > summary strong { color:#34383a; font-family:inherit; font-size:17px; font-weight:650; }
.terms-reader > summary small { color:#707577; font-size:10px; }
.terms-reader-action { padding:6px 9px; border:1px solid #a3a8aa; border-radius:2px; color:#424749; font-size:10px; font-weight:750; white-space:nowrap; }
.terms-reader[open] > summary { border-bottom:1px solid #c3c7c9; }
.terms-reader[open] .terms-reader-action { color:#fff; background:#4a4f51; }
.terms-document { padding:34px 42px; background:#fff; }
.terms-document section { padding:0 0 23px; margin:0 0 23px; border-bottom:1px solid #e0e2e3; }
.terms-document section:last-child { padding-bottom:0; margin-bottom:0; border-bottom:0; }
.terms-document h2 { margin:0 0 11px; color:#303436; font-family:inherit; font-size:18px; font-weight:650; line-height:1.3; letter-spacing:-.012em; }
.terms-document p { margin:0 0 10px; color:#414648; font-family:inherit; font-size:12.5px; line-height:1.68; }
.terms-document p:last-child { margin-bottom:0; }
.terms-document a { color:#34383a; font-weight:750; text-decoration:underline; text-underline-offset:2px; }
.terms-acceptance { padding:20px 22px; border:1px solid #4a4f51; border-radius:3px; background:#fff; }
.terms-acceptance > p { margin:10px 0 16px 29px; color:#676c6e; font-size:11px; }
.terms-acceptance .button { border-color:#4a4f51; border-radius:3px; background:#4a4f51; }
.terms-checkbox { display:flex!important; flex-direction:row!important; align-items:flex-start!important; gap:10px!important; color:var(--ink)!important; font-size:13px!important; font-weight:650!important; line-height:1.5; }
.terms-checkbox input[type="checkbox"] { width:18px!important; height:18px; flex:0 0 18px; margin:2px 0 0; accent-color:var(--forest); }
.terms-checkbox a { color:var(--forest); font-weight:850; text-decoration:underline; text-underline-offset:2px; }
[data-terms-submit]:disabled { opacity:.42; cursor:not-allowed!important; box-shadow:none!important; }
@media (max-width:700px) {
  .terms-heading { padding:24px; align-items:flex-start; flex-direction:column; }
  .terms-heading-actions { width:100%; justify-content:space-between; }
  .terms-document-scope { align-items:flex-start; flex-direction:column; gap:3px; }
  .terms-document-scope span { padding:0; border-left:0; }
  .terms-required,.terms-accepted { align-items:flex-start; flex-direction:column; }
  .terms-reader > summary { align-items:flex-start; flex-direction:column; }
  .terms-document { padding:25px 21px; }
  .terms-document h2 { font-size:20px; }
  .terms-acceptance > p { margin-left:0; }
}

@media print {
  .terms-page { max-width:none; display:block; }
  .terms-heading { padding:0 0 8mm; border:0; border-bottom:2px solid #111; }
  .terms-required,.terms-acceptance,.terms-accepted,.terms-reader > summary { display:none!important; }
  .terms-reader { display:block!important; border:0; }
  .terms-document { display:block!important; padding:8mm 0 0; }
  .terms-document section { break-inside:avoid; }
}

/* Persistent Gantt presentation controls */
.gantt-board {
  --gantt-row-height:38px;
}
.gantt-workspace .gantt-board :is(.gantt-row,.gantt-inline-row) {
  height:var(--gantt-row-height);
  min-height:var(--gantt-row-height);
}
.gantt-workspace .gantt-board .gantt-row > * {
  min-height:0;
  height:100%;
  box-sizing:border-box;
}
.gantt-workspace .gantt-board .gantt-bar {
  top:calc((var(--gantt-row-height) - 18px) / 2);
  height:18px;
}
.gantt-workspace .gantt-board .gantt-inline-draft-bar { top:calc((var(--gantt-row-height) - 16px) / 2); }
.gantt-workspace .gantt-board .gantt-bar-owner { top:50%; transform:translateY(-50%); }
.gantt-workspace .gantt-board .gantt-row-actions { top:50%; transform:translateY(-50%); }
.gantt-board.hide-bar-labels .gantt-bar-label { display:none; }

/* Compact Gantt progress control */
.gantt-overall-progress {
  min-width:150px;
  flex:1 1 240px;
  display:grid;
  grid-template-columns:auto minmax(70px,1fr) auto;
  align-items:center;
  gap:7px;
  color:#275f8c;
  font-size:8px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.gantt-overall-progress strong { color:#0d2740; font-size:10px; letter-spacing:0; }
.gantt-overall-progress progress { width:100%; height:7px; overflow:hidden; border:0; border-radius:99px; background:#e7eff6; accent-color:#124f7f; }
.gantt-overall-progress progress::-webkit-progress-bar { border-radius:99px; background:#e7eff6; }
.gantt-overall-progress progress::-webkit-progress-value { border-radius:99px; background:linear-gradient(90deg,#124f7f,#4c84ae); }
.gantt-workspace .gantt-board { --col-progress:66px; }
.gantt-row { --gantt-state-color:#8fa0ae; }
.gantt-row.gantt-state-completed { --gantt-state-color:#2878b5; }.gantt-row.gantt-state-in-progress { --gantt-state-color:#2f76bd; }.gantt-row.gantt-state-overdue { --gantt-state-color:#ca4d43; }.gantt-row.gantt-state-not-started { --gantt-state-color:#d0982f; }.gantt-row.gantt-state-upcoming { --gantt-state-color:#8fa0ae; }.gantt-row.gantt-state-suspended { --gantt-state-color:#806a95; }
.gantt-workspace .gantt-row .gantt-task-info { box-shadow:inset 3px 0 0 var(--task-color,#8fa0ae); }
.gantt-workspace .gantt-row.summary-task .gantt-sticky { background:color-mix(in srgb,var(--task-color,#8fa0ae) 8%,white); }
.gantt-workspace .gantt-board .gantt-bar {
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--task-color,#8fa0ae) 72%,#294457);
  background:color-mix(in srgb,var(--task-color,#8fa0ae) 30%,white);
  box-shadow:0 1px 3px rgba(7,28,51,.16);
}
.gantt-workspace .gantt-board .gantt-progress { background:var(--gantt-state-color); opacity:.9; }
.gantt-workspace .gantt-bar-label { flex:1; min-width:0; padding-right:32px; color:#0d2740; text-shadow:0 1px rgba(255,255,255,.55); }
.gantt-bar-progress-label { position:absolute; z-index:3; right:3px; min-width:26px; padding:1px 3px; border-radius:3px; background:rgba(255,255,255,.84); color:color-mix(in srgb,var(--gantt-state-color) 78%,#0d2740); font-size:7px; font-weight:900; line-height:12px; text-align:center; pointer-events:none; }
.gantt-workspace .gantt-row.critical .gantt-bar { outline:2px solid #c7443c; outline-offset:1px; }
.gantt-workspace .gantt-row.gantt-state-overdue .gantt-bar { border-color:#b53b34; box-shadow:0 0 0 2px rgba(202,77,67,.12); }
.gantt-workspace .gantt-row.gantt-state-upcoming .gantt-bar { border-style:dashed; }
.gantt-workspace .gantt-row.gantt-state-suspended .gantt-bar { filter:saturate(.55); }
.gantt-row.summary-task .gantt-bar { height:12px; border-radius:2px; background:color-mix(in srgb,var(--task-color,#8fa0ae) 22%,white); box-shadow:inset 0 -2px 0 color-mix(in srgb,var(--task-color,#8fa0ae) 70%,#294457); }
.gantt-row.summary-task .gantt-progress { display:block; }
.gantt-row.summary-task .gantt-bar-label { color:#0d2740; line-height:12px; text-align:left; }
.gantt-row.summary-task .gantt-bar-progress-label { line-height:9px; }
.gantt-progress-input { display:flex; align-items:center; justify-content:center; color:var(--gantt-state-color); font-size:8px; font-weight:850; }
.gantt-workspace .progress-form .gantt-progress-input input { width:36px; height:19px; padding:0 1px; color:#0d2740; font-size:9px; font-weight:800; text-align:right; }
.gantt-workspace .progress-form input[type="number"] { appearance:textfield; -moz-appearance:textfield; }
.gantt-workspace .progress-form input[type="number"]::-webkit-inner-spin-button,
.gantt-workspace .progress-form input[type="number"]::-webkit-outer-spin-button { margin:0; -webkit-appearance:none; }
.gantt-progress-mini { position:absolute; right:5px; bottom:3px; left:5px; height:3px; overflow:hidden; border-radius:5px; background:#e7eff6; }
.gantt-progress-mini i { display:block; height:100%; border-radius:inherit; background:var(--gantt-state-color); transition:width .18s ease; }

/* Reference-driven bar language: pastel activities and bracket summaries */
.gantt-workspace .gantt-row:not(.summary-task) .gantt-bar {
  border:1.5px solid color-mix(in srgb,var(--task-color,#63c6d5) 88%,#294457);
  border-radius:5px;
  background:color-mix(in srgb,var(--task-color,#63c6d5) 24%,white);
  box-shadow:0 1px 2px rgba(7,28,51,.12);
}
.gantt-workspace .gantt-row:not(.summary-task) .gantt-progress {
  background:var(--task-progress-color,#57aebe) !important;
  opacity:1;
  filter:none;
}
.gantt-workspace .gantt-row:not(.summary-task) .gantt-bar-label {
  color:color-mix(in srgb,var(--task-color,#63c6d5) 38%,#0d2740);
  text-shadow:none;
}
.gantt-workspace .gantt-row:not(.summary-task) .gantt-bar-progress-label {
  border:1px solid color-mix(in srgb,var(--task-color,#63c6d5) 35%,transparent);
  background:rgba(255,255,255,.9);
  color:color-mix(in srgb,var(--task-color,#63c6d5) 60%,#0d2740);
}
.gantt-workspace .gantt-row.gantt-state-upcoming:not(.summary-task) .gantt-bar {
  border-style:solid;
  background:color-mix(in srgb,var(--task-color,#63c6d5) 18%,white);
}
.gantt-workspace .gantt-row.gantt-state-overdue:not(.summary-task) .gantt-bar {
  border-color:#c64a42;
  box-shadow:0 0 0 2px rgba(198,74,66,.1);
}
.gantt-workspace .gantt-row.summary-task {
  background:#fff;
}
.gantt-workspace .gantt-row.summary-task .gantt-sticky {
  background:#fff;
}
.gantt-workspace .gantt-row.summary-task .gantt-bar {
  top:calc((var(--gantt-row-height) - 13px) / 2);
  height:13px;
  overflow:visible;
  border:0;
  border-top:2px solid #526b80;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.gantt-workspace .gantt-row.summary-task .gantt-bar::before,
.gantt-workspace .gantt-row.summary-task .gantt-bar::after {
  position:absolute;
  z-index:3;
  top:-2px;
  width:2px;
  height:10px;
  content:"";
  background:#526b80;
}
.gantt-workspace .gantt-row.summary-task .gantt-bar::before { left:0; }
.gantt-workspace .gantt-row.summary-task .gantt-bar::after { right:0; }
.gantt-workspace .gantt-row.summary-task .gantt-progress {
  top:4px;
  bottom:auto;
  height:6px;
  border-radius:0;
  background:var(--task-progress-color,#57aebe) !important;
  opacity:.95;
  box-shadow:0 1px 4px color-mix(in srgb,var(--task-color,#63c6d5) 28%,transparent);
}
.gantt-workspace .gantt-row.summary-task .gantt-bar-label,
.gantt-workspace .gantt-row.summary-task .gantt-bar-progress-label {
  display:none;
}
.gantt-workspace .gantt-row.summary-task.critical .gantt-bar {
  outline:0;
  border-top-color:#b94740;
}
.gantt-workspace .gantt-row.summary-task.critical .gantt-bar::before,
.gantt-workspace .gantt-row.summary-task.critical .gantt-bar::after {
  background:#b94740;
}
.gantt-workspace .gantt-bar.milestone {
  width:12px !important;
  height:12px !important;
  top:calc((var(--gantt-row-height) - 12px) / 2) !important;
  border:2px solid var(--task-color,#e9a33b) !important;
  border-radius:1px !important;
  background:color-mix(in srgb,var(--task-color,#e9a33b) 22%,white) !important;
  box-shadow:none !important;
  transform:rotate(45deg);
  transform-origin:center;
}
.gantt-workspace .gantt-bar.milestone :is(.gantt-progress,.gantt-bar-label,.gantt-bar-progress-label) { display:none; }

/* Activity bars use a dedicated fill class to preserve status colors. */
.gantt-workspace .gantt-board .gantt-row:not(.summary-task) .gantt-bar {
  height:18px;
  overflow:hidden;
  border:1px solid var(--task-color,#49b9df);
  border-radius:5px;
  background:var(--task-track-color,#ddf3f7);
  box-shadow:none;
}
.gantt-workspace .gantt-board .gantt-row:not(.summary-task) .gantt-completion-fill {
  position:absolute;
  z-index:1;
  inset:0 auto 0 0;
  display:block;
  height:100%;
  border-radius:3px 0 0 3px;
  background:var(--task-progress-color,#57aebe);
  pointer-events:none;
}
.gantt-workspace .gantt-board .gantt-row:not(.summary-task) .gantt-bar-label { display:none; }
.gantt-workspace .gantt-board .gantt-row:not(.summary-task) .gantt-bar-progress-label {
  position:absolute;
  z-index:3;
  right:5px;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:#124f7f;
  font-size:8px;
  line-height:16px;
  text-shadow:0 1px rgba(255,255,255,.6);
}
.gantt-workspace .gantt-board .gantt-row.critical:not(.summary-task) .gantt-bar,
.gantt-workspace .gantt-board .gantt-row.gantt-state-overdue:not(.summary-task) .gantt-bar {
  outline:0;
  border-color:var(--task-color,#49b9df);
  box-shadow:none;
}
.gantt-workspace .gantt-board .gantt-row.summary-task .gantt-bar {
  top:calc((var(--gantt-row-height) - 10px) / 2);
  height:10px;
  overflow:visible;
  border:0;
  border-top:2px solid #526b80;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.gantt-workspace .gantt-board .gantt-row.summary-task .gantt-completion-fill {
  position:absolute;
  z-index:1;
  inset:4px auto auto 0;
  display:block;
  height:4px;
  background:var(--task-progress-color,#57aebe);
  pointer-events:none;
}
.gantt-workspace .gantt-board .gantt-row.summary-task .gantt-bar::before,
.gantt-workspace .gantt-board .gantt-row.summary-task .gantt-bar::after {
  top:-2px;
  width:1px;
  height:11px;
  background:#526b80;
}
.gantt-workspace .gantt-board .gantt-row.summary-task .gantt-bar-label,
.gantt-workspace .gantt-board .gantt-row.summary-task .gantt-bar-progress-label { display:none; }
.gantt-workspace .gantt-board .gantt-row.summary-task.critical .gantt-bar { border:0; border-top:2px solid #b94740; outline:0; background:transparent; }
.gantt-workspace .gantt-board .gantt-row.summary-task.critical .gantt-bar::before,
.gantt-workspace .gantt-board .gantt-row.summary-task.critical .gantt-bar::after { background:#b94740; }
.gantt-workspace .gantt-board .gantt-bar.milestone {
  width:14px !important;
  height:14px !important;
  top:calc((var(--gantt-row-height) - 14px) / 2) !important;
  overflow:hidden;
  border:2px solid var(--task-color,#f4a62f) !important;
  border-radius:1px !important;
  background:var(--task-track-color,#fff0cd) !important;
  transform:rotate(45deg);
}
.gantt-workspace .gantt-board .gantt-bar.milestone .gantt-completion-fill { display:none; }

@media (max-width:1100px) {
  .gantt-overall-progress > span { display:none; }
  .gantt-overall-progress { min-width:90px; grid-template-columns:minmax(60px,1fr) auto; }
}

.task-constraint-fields {
  margin:12px 0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:var(--radius-control);
  background:var(--surface-soft);
}
.task-constraint-fields legend {
  padding:0 6px;
  color:var(--text);
  font-size:13px;
  font-weight:800;
}
.task-constraint-fields small { display:block; margin-top:7px; color:var(--text-muted); }

.gantt-layout-dialog {
  width:min(720px,calc(100vw - 32px));
  max-height:calc(100vh - 40px);
  padding:0;
  border:0;
  border-radius:var(--radius-card);
  color:var(--text);
  background:var(--surface);
  box-shadow:0 24px 80px rgba(71,95,114,.32);
}
.gantt-layout-dialog::backdrop { background:rgba(71,95,114,.48); backdrop-filter:blur(2px); }
.gantt-layout-dialog form { display:grid; gap:16px; padding:22px; }
.gantt-layout-dialog header,
.gantt-layout-dialog footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.gantt-layout-dialog header h2,
.gantt-layout-dialog header p,
.gantt-layout-dialog footer,
.gantt-layout-dialog fieldset { margin:0; }
.gantt-layout-dialog header > button {
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  color:var(--text);
  background:transparent;
  font-size:25px;
  cursor:pointer;
}
.gantt-layout-dialog fieldset { padding:12px; border:1px solid var(--line); border-radius:var(--radius-control); }
.gantt-layout-dialog legend { padding:0 6px; font-weight:800; }
.gantt-link-style-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.gantt-link-style-options label {
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:var(--radius-control);
  background:var(--surface-soft);
}
.gantt-layout-dialog .checkbox-row { display:flex; align-items:center; gap:8px; font-weight:700; }
.gantt-layout-dialog footer { justify-content:flex-end; padding-top:4px; }

@media screen and (max-width:640px) {
  .gantt-link-style-options { grid-template-columns:1fr; }
}

/* Progress estimates: draft editing, source traceability and configurable retentions */
.estimate-source-panel,
.estimate-source-summary,
.project-retention-settings {
  margin:18px 0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  background:var(--surface);
  box-shadow:var(--shadow-card);
}

.estimate-report-selector,
.project-retention-list {
  display:grid;
  gap:8px;
  margin:10px 0 14px;
}

.estimate-report-option {
  display:grid;
  grid-template-columns:auto minmax(190px,.7fr) minmax(260px,1.3fr);
  align-items:center;
  gap:12px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius-control);
  background:var(--surface-soft);
  cursor:pointer;
}

.estimate-report-option:hover { border-color:var(--brand-primary); }
.estimate-report-option > span { display:grid; gap:2px; }
.estimate-report-option small,
.estimate-report-contribution { color:var(--text-muted); }
.estimate-report-contribution { font-size:13px; line-height:1.35; }

.estimate-report-chips {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.estimate-report-chip {
  display:grid;
  gap:2px;
  min-width:190px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius-control);
  color:var(--text);
  background:var(--surface-soft);
  text-decoration:none;
}

.estimate-report-chip:hover { border-color:var(--brand-primary); }
.estimate-report-chip span { color:var(--text-muted); font-size:12px; }
.estimate-reconciliation { margin:18px 0; padding:18px 20px; display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,.8fr); gap:24px; border:1px solid; border-radius:14px; }
.estimate-reconciliation.balanced { border-color:#9eb8cc; background:#eef5fa; }
.estimate-reconciliation.unbalanced { border-color:#dfa69c; background:#fff5f2; }
.estimate-reconciliation h2 { margin:2px 0 5px; font-size:20px; }
.estimate-reconciliation p { margin:0; }
.estimate-reconciliation ul { margin:0; padding:0; list-style:none; }
.estimate-reconciliation li { padding:7px 0; border-bottom:1px solid rgb(0 0 0 / 10%); font-size:12px; }
.estimate-reconciliation li:last-child { border-bottom:0; }
.estimate-certification { margin:18px 0; padding:18px 20px; display:flex; align-items:center; justify-content:space-between; gap:24px; border:1px solid #b7cad9; border-left:6px solid #0d2740; border-radius:14px; background:#f3f7fa; }
.estimate-certification h2 { margin:2px 0 0; font-size:20px; }
.estimate-certification dl { margin:0; display:flex; gap:28px; }
.estimate-certification dl div { display:grid; gap:3px; }
.estimate-certification dt { color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; }
.estimate-certification dd { margin:0; font-weight:800; }
.estimate-reversal-panel { margin:18px 0; padding:16px 18px; border:1px solid #d8b6af; border-radius:12px; background:#fff9f7; }
.estimate-reversal-panel summary { color:#8a2f24; font-weight:850; cursor:pointer; }
.estimate-reversal-panel p { color:var(--text-muted); font-size:12px; }
.estimate-reversal-panel form { display:grid; grid-template-columns:minmax(260px,1fr) auto; gap:10px; }
.estimate-reversal-panel input[type="text"] { min-height:42px; padding:8px 10px; border:1px solid #c9aaa4; border-radius:8px; }
.estimate-period-lock { margin:18px 0; padding:14px 18px; display:flex; align-items:center; gap:14px; border:1px solid #d9b56c; border-left:6px solid #8a5a08; border-radius:12px; color:#684506; background:#fff8e8; }
.estimate-period-lock span { font-size:12px; }
.estimate-source-submit {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.estimate-source-submit p { max-width:760px; margin:0; color:var(--text-muted); font-size:13px; }

.record-flow {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  margin:16px 0 20px;
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  overflow:hidden;
  background:var(--surface);
  box-shadow:var(--shadow-card);
}
.record-flow-step {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:13px 14px;
  border-right:1px solid var(--line);
  color:var(--text);
  text-decoration:none;
}
.record-flow-step:last-child { border-right:0; }
.record-flow-step > span:last-child { display:grid; min-width:0; gap:2px; }
.record-flow-step strong,
.record-flow-step small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.record-flow-step small { color:var(--text-muted); font-size:11px; }
.record-flow-step.current { background:var(--surface-soft); box-shadow:inset 0 3px 0 var(--brand-primary); }
.record-flow-step.complete .record-flow-number { background:var(--brand-primary); color:#fff; }
.record-flow-step.pending { opacity:.55; }
.record-flow-number {
  flex:0 0 25px;
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border:1px solid var(--line-strong);
  border-radius:50%;
  font-size:12px;
  font-weight:800;
}
.estimate-next-action {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:18px 0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  background:var(--surface-soft);
}
.estimate-next-action h2,
.estimate-next-action p { margin-top:0; }
.estimate-next-action p:last-child { margin-bottom:0; color:var(--text-muted); }
.daily-report-actions { align-items:center; flex-wrap:wrap; }
.estimate-table { margin-top:18px; overflow:auto; }
.estimate-table table { min-width:1040px; }
.estimate-table .numeric { text-align:right; white-space:nowrap; }

.estimate-totals {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:8px;
  margin:10px 0 20px;
}

.estimate-totals article {
  display:grid;
  gap:5px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  background:var(--surface);
}

.estimate-totals small { color:var(--text-muted); }
.estimate-totals strong { font-size:18px; }
.estimate-grand-total { border-color:var(--brand-primary) !important; }

.proposal-letterhead {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:24px;
  padding-bottom:14px;
  border-bottom:3px solid #145784;
}

.proposal-letterhead__brand { min-width:0; display:flex; align-items:center; gap:13px; }
.proposal-letterhead__logo { width:62px; height:62px; flex-basis:62px; border-radius:8px; box-shadow:none; }
.proposal-letterhead__brand-mark { padding:6px; object-fit:contain; }
.proposal-letterhead__initials { display:grid; place-items:center; color:#fff; background:#155b87; font-size:20px; font-weight:900; letter-spacing:.04em; }
.proposal-letterhead__logo .organization-logo__image { padding:6px; }
.proposal-letterhead__brand > div { min-width:0; display:grid; gap:3px; }
.proposal-letterhead__brand strong { font-size:17px; }
.proposal-letterhead__brand span { color:#516b7e; font-size:11px; }
.proposal-letterhead__document { display:grid; justify-items:end; gap:3px; text-align:right; }
.proposal-letterhead__document > span { color:#597286; font-size:10px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.proposal-letterhead__document strong { font-size:17px; }
.proposal-letterhead__document time { color:#516b7e; }
.proposal-identity { margin:18px 0; }
.proposal-identity__title p { margin:0 0 4px; color:#597286; font-size:10px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.proposal-identity__title h1 { margin:0; font-size:25px; line-height:1.15; }
.proposal-parties { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:14px; border:1px solid #bfd3e1; }
.proposal-parties article { min-width:0; padding:11px 12px; border-left:1px solid #bfd3e1; }
.proposal-parties article:first-child { border-left:0; }
.proposal-parties article > span { display:block; margin-bottom:5px; color:#597286; font-size:9px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.proposal-parties article > strong { display:block; margin-bottom:4px; font-size:13px; }
.proposal-parties p { margin:2px 0; color:#385469; }
.proposal-parties__terms p { display:flex; justify-content:space-between; gap:10px; }
.proposal-parties__terms p strong { color:#132f46; text-align:right; }
.proposal-introduction { max-width:1020px; margin:14px 0 0; color:#29485f; font-size:12px; line-height:1.55; }

@media (max-width:720px) {
  .proposal-letterhead { grid-template-columns:1fr; }
  .proposal-letterhead__document { justify-items:start; text-align:left; }
  .proposal-parties { grid-template-columns:1fr; }
  .proposal-parties article,.proposal-parties article:first-child { border-left:0; border-top:1px solid #bfd3e1; }
  .proposal-parties article:first-child { border-top:0; }
}

.project-retention-row {
  display:grid;
  grid-template-columns:minmax(240px,1fr) minmax(150px,.35fr) auto;
  align-items:end;
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:var(--radius-control);
  background:var(--surface-soft);
}

.project-retention-row label { display:grid; gap:5px; }
.project-retention-remove { display:flex !important; align-items:center; min-height:40px; }

.estimate-print-sheet {
  --print-line:#1b1b1b;
  --print-soft:#f0f2f1;
  width:431.8mm;
  min-height:279.4mm;
  margin:0 auto;
  padding:11mm 12mm 9mm;
  color:#111;
  background:#fff;
  font:8.5pt/1.3 Arial,sans-serif;
}

.estimate-print-body { margin:0; color:#111; background:#ecefed; }
.estimate-print-header { min-height:16mm; padding-bottom:4mm; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:12mm; border-bottom:1.5px solid #111; }
.estimate-print-brand { min-width:0; display:flex; align-items:center; gap:4mm; }
.estimate-print-logo { width:12mm; height:12mm; flex-basis:12mm; border:1px solid #777; border-radius:1.5mm; box-shadow:none; }
.estimate-print-logo .organization-logo__image { padding:1mm; }
.estimate-print-logo .organization-logo__fallback { font-size:10pt; }
.estimate-print-brand > div,.estimate-print-document-id { display:grid; gap:1mm; }
.estimate-print-brand strong { font-size:11pt; letter-spacing:.02em; text-transform:uppercase; }
.estimate-print-brand span { color:#333; font-size:8.5pt; }
.estimate-print-client-brand { grid-column:2; display:flex; align-items:center; gap:3mm; color:#333; font-size:7.5pt; font-weight:700; text-transform:uppercase; }
.estimate-print-client-brand img { width:12mm; height:12mm; padding:1mm; border:1px solid #777; border-radius:1.5mm; object-fit:contain; }
.estimate-print-document-id { grid-column:3; min-width:48mm; grid-template-columns:auto auto; align-items:baseline; column-gap:3mm; text-align:right; }
.estimate-print-document-id small { grid-column:1 / -1; color:#555; font-size:7pt; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.estimate-print-document-id strong { font-size:12pt; }
.estimate-print-document-id span { padding:1mm 2mm; border:1px solid #777; border-radius:99px; font-size:7.5pt; font-weight:700; }
.estimate-print-heading { padding:5mm 0 4mm; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10mm; }
.estimate-print-heading p { margin:0 0 1mm; color:#555; font-size:7pt; font-weight:800; letter-spacing:.16em; }
.estimate-print-heading h1 { margin:0; font-size:19pt; line-height:1.05; }
.estimate-print-heading dl { min-width:73mm; margin:0; display:grid; gap:1.5mm; }
.estimate-print-heading dl div { display:grid; grid-template-columns:18mm 1fr; gap:3mm; }
.estimate-print-reconciliation { margin:0 0 4mm; padding:2.5mm 3mm; display:flex; align-items:center; justify-content:space-between; gap:8mm; border:1px solid #111; font-size:7pt; }
.estimate-print-reconciliation div { display:grid; gap:.5mm; }
.estimate-print-reconciliation strong { font-size:7.5pt; letter-spacing:.08em; }
.estimate-print-reconciliation.balanced { border-left:4mm solid #124f7f; }
.estimate-print-reconciliation.unbalanced { border:2px solid #8a2f24; background:#fff4f1; }
.estimate-print-reconciliation.unbalanced strong { color:#8a2f24; }
.estimate-print-certification { margin:0 0 4mm; padding:2mm 3mm; display:flex; justify-content:space-between; gap:8mm; border:1px solid #111; font-size:7pt; }
.estimate-print-certification.certified { color:#fff; background:#124f7f; }
.estimate-print-certification.draft { border:2px solid #111; background:#f0f2f1; }
.estimate-print-certification strong { letter-spacing:.08em; }
.estimate-print-heading dt { color:#555; font-size:7pt; font-weight:800; text-transform:uppercase; }
.estimate-print-heading dd { margin:0; font-size:8.5pt; font-weight:700; text-align:right; }
.estimate-print-contract-summary { margin-bottom:4mm; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); border:1px solid var(--print-line); }
.estimate-print-contract-summary article { min-width:0; padding:2.5mm 2.2mm; display:grid; align-content:center; gap:1mm; border-left:1px solid var(--print-line); }
.estimate-print-contract-summary article:first-child { border-left:0; }
.estimate-print-contract-summary article.current { color:#fff; background:#124f7f; }
.estimate-print-contract-summary span { color:inherit; font-size:6.5pt; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.estimate-print-contract-summary strong { overflow:hidden; font-size:9pt; text-overflow:ellipsis; white-space:nowrap; }
.estimate-print-meta { display:table; width:100%; border-collapse:collapse; }
.estimate-print-meta th,
.estimate-print-meta td { padding:2mm 2.2mm; border:1px solid var(--print-line); color:#111; background:#fff; }
.estimate-print-meta th { width:12%; font-size:6.5pt; text-align:left; text-transform:uppercase; }
.estimate-print-meta td { font-size:8pt; }
.estimate-print-detail { margin-top:4mm; }
.estimate-print-section-title { padding:2mm 2.3mm; display:flex; align-items:baseline; justify-content:space-between; gap:8mm; color:#fff; background:#124f7f; }
.estimate-print-section-title strong { font-size:7.5pt; letter-spacing:.1em; }
.estimate-print-section-title span { color:#d5e1ea; font-size:7pt; }
.estimate-print-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:7.2pt; }
.estimate-print-table col.code { width:5%; }
.estimate-print-table col.description { width:17%; }
.estimate-print-table col.status { width:5%; }
.estimate-print-table col.unit { width:3%; }
.estimate-print-table col.price { width:6%; }
.estimate-print-table col.quantity { width:4.6%; }
.estimate-print-table col.amount { width:7.5%; }
.estimate-print-table th,
.estimate-print-table td { padding:1.8mm 1.5mm; border:1px solid var(--print-line); color:#111; background:#fff; vertical-align:top; }
.estimate-print-table th { padding:1.7mm 1.3mm; border:1px solid var(--print-line); color:#111; background:var(--print-soft); font-size:6.5pt; font-weight:800; line-height:1.15; text-align:left; text-transform:uppercase; vertical-align:middle; }
.estimate-print-table th.group { text-align:center; }
.estimate-print-table .numeric { text-align:right; }
.estimate-print-table .center { text-align:center; }
.estimate-print-table td.current { background:#eef5fa; }
.estimate-print-table tbody tr { break-inside:avoid; page-break-inside:avoid; }
.estimate-print-options { display:inline-flex; align-items:center; flex-wrap:wrap; gap:7px; }
.estimate-print-options label { display:inline-flex; align-items:center; gap:6px; padding:7px 9px; border:1px solid #cbdde7; border-radius:8px; color:#31536a; background:#fff; font-size:.76rem; font-weight:750; }
.estimate-print-options input { width:auto; }
@media (max-width:720px) { .estimate-print-options { width:100%; } .estimate-print-options label { flex:1 1 100%; } }
.estimate-print-empty { padding:7mm!important; color:#555!important; text-align:center; }
.estimate-print-contributions { margin-top:5mm; break-before:page; page-break-before:always; }
.estimate-print-contribution-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:7.4pt; }
.estimate-print-contribution-table th,
.estimate-print-contribution-table td { padding:1.6mm 2mm; border:1px solid var(--print-line); color:#111; background:#fff; vertical-align:top; }
.estimate-print-contribution-table th { background:var(--print-soft); font-size:6.5pt; text-align:left; text-transform:uppercase; }
.estimate-print-contribution-table th:nth-child(1) { width:11%; }
.estimate-print-contribution-table th:nth-child(2) { width:16%; }
.estimate-print-contribution-table th:nth-child(3) { width:11%; }
.estimate-print-contribution-table th:nth-child(5) { width:7%; }
.estimate-print-contribution-table th:nth-child(6) { width:9%; }
.estimate-print-contribution-table .numeric { text-align:right; }
.estimate-print-contribution-table .center { text-align:center; }
.estimate-print-contribution-table tbody tr { break-inside:avoid; page-break-inside:avoid; }
.estimate-print-concept-log { margin-top:5mm; break-inside:auto; page-break-inside:auto; }
.estimate-print-concept-log-header { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:5mm; border:1px solid var(--print-line); background:var(--print-soft); break-inside:avoid; page-break-inside:avoid; }
.estimate-print-concept-log-header > div { padding:3mm; display:grid; align-content:start; gap:1mm; }
.estimate-print-concept-log-header > div strong { font-size:10pt; }
.estimate-print-concept-log-header > div span { font-size:8pt; line-height:1.35; }
.estimate-print-concept-log-header dl { margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.estimate-print-concept-log-header dl div { padding:2.5mm 2mm; display:grid; align-content:center; gap:.7mm; border-left:1px solid var(--print-line); }
.estimate-print-concept-log-header dt,.estimate-print-daily-log-card dt { color:#444; font-size:6pt; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.estimate-print-concept-log-header dd,.estimate-print-daily-log-card dd { margin:0; font-size:8pt; font-weight:800; }
.estimate-print-daily-log-card { margin-top:3mm; padding:3mm; border:1px solid #777; break-inside:auto; page-break-inside:auto; }
.estimate-print-daily-log-card > header { display:grid; grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr); gap:5mm; break-inside:avoid; page-break-inside:avoid; }
.estimate-print-daily-log-card > header > div { display:grid; align-content:start; gap:.5mm; }
.estimate-print-daily-log-card > header > div strong { font-size:9pt; }
.estimate-print-daily-log-card > header > div span { font-size:7pt; }
.estimate-print-daily-log-card > header dl { margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:2mm; }
.estimate-print-daily-log-card > header dl div { display:grid; align-content:start; gap:.5mm; }
.estimate-print-daily-log-narrative { margin:3mm 0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2mm; break-inside:avoid; page-break-inside:avoid; }
.estimate-print-daily-log-narrative > div { min-width:0; padding:2mm; border:1px solid #aaa; }
.estimate-print-daily-log-narrative strong { font-size:6.2pt; letter-spacing:.05em; text-transform:uppercase; }
.estimate-print-daily-log-narrative p { margin:1mm 0 0; font-size:7pt; line-height:1.35; white-space:pre-wrap; }
.estimate-print-evidence-grid { margin-top:3mm; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3mm; }
.estimate-print-evidence-grid figure { margin:0; display:grid; grid-template-rows:44mm auto; gap:1mm; break-inside:avoid; page-break-inside:avoid; }
.estimate-print-evidence-grid img { display:block; width:100%; height:44mm; max-height:44mm; border:1px solid #999; background:#f5f5f5; object-fit:contain; }
.estimate-print-evidence-grid figcaption { overflow-wrap:anywhere; color:#444; font-size:6.2pt; }
.estimate-print-evidence-files { margin:3mm 0 0; padding:2mm; border:1px solid #aaa; font-size:7pt; break-inside:avoid; page-break-inside:avoid; }
.estimate-print-evidence-appendix { margin-top:5mm; break-before:page; page-break-before:always; }
.estimate-print-evidence-report { margin-top:3mm; padding:3mm; border:1px solid #777; break-inside:avoid; page-break-inside:avoid; }
.estimate-print-evidence-report > header { display:flex; align-items:baseline; justify-content:space-between; gap:5mm; }
.estimate-print-evidence-report > header strong { font-size:9pt; }
.estimate-print-evidence-report > header span { font-size:7pt; }
.estimate-print-closing { margin-top:4mm; display:grid; grid-template-columns:minmax(0,1fr) 92mm; align-items:start; gap:10mm; break-inside:avoid; page-break-inside:avoid; }
.estimate-print-notes { min-height:24mm; padding:3mm; border:1px solid #888; }
.estimate-print-notes strong { font-size:7pt; letter-spacing:.1em; }
.estimate-print-notes p { margin:2mm 0 0; color:#333; font-size:7.5pt; line-height:1.45; }
.estimate-print-totals { display:grid; grid-template-columns:1fr auto; }
.estimate-print-totals div { display:contents; }
.estimate-print-totals span,
.estimate-print-totals strong { padding:1.5mm 2mm; border-bottom:1px solid #777; }
.estimate-print-totals span { text-align:left; }
.estimate-print-totals strong { min-width:35mm; text-align:right; }
.estimate-print-totals .subtotal span,.estimate-print-totals .subtotal strong { font-weight:800; background:#f0f2f1; }
.estimate-print-totals .total span,.estimate-print-totals .total strong { padding-top:2mm; padding-bottom:2mm; color:#fff; background:#124f7f; border-bottom-color:#124f7f; font-size:9pt; }
.estimate-print-signatures { margin-top:8mm; display:grid; grid-template-columns:repeat(var(--signature-count,3),minmax(0,1fr)); gap:8mm; break-inside:avoid; page-break-inside:avoid; }
.estimate-print-signatures div { min-height:14mm; padding-top:8mm; display:grid; align-content:end; gap:1mm; border-bottom:1px solid #111; text-align:center; }
.estimate-print-signatures span { font-size:7.5pt; }
.estimate-print-signatures small { color:#444; font-size:6.3pt; }
.estimate-print-signatures strong { font-size:6.5pt; letter-spacing:.12em; }
.estimate-print-generators { margin-top:5mm; break-before:page; page-break-before:always; }
.estimate-print-generators article { margin-top:4mm; break-inside:avoid; page-break-inside:avoid; }
.estimate-print-generators h3 { margin:0; padding:2mm; border:1px solid var(--print-line); border-bottom:0; font-size:8pt; }
.estimate-print-generator-table,.estimate-print-deduction-summary { width:100%; border-collapse:collapse; font-size:6.8pt; }
.estimate-print-generator-table th,.estimate-print-generator-table td,.estimate-print-deduction-summary th,.estimate-print-deduction-summary td { padding:1.6mm; border:1px solid var(--print-line); text-align:left; }
.estimate-print-generator-table th,.estimate-print-deduction-summary th { background:var(--print-soft); font-size:6.1pt; text-transform:uppercase; }
.estimate-print-generator-table .numeric,.estimate-print-deduction-summary td:not(:first-child) { text-align:right; }
.estimate-print-deduction-summary { width:92mm; margin:4mm 0 0 auto; break-inside:avoid; page-break-inside:avoid; }
.estimate-print-footer { margin-top:7mm; padding-top:2.5mm; display:grid; grid-template-columns:1fr auto; border-top:1px solid #111; font-size:7pt; }

@media print {
  @page { size:17in 11in; margin:0; }
  .estimate-print-body { background:#fff; }
  .estimate-print-sheet { width:auto; min-height:279.4mm; margin:0; box-shadow:none; }
  .estimate-print-table thead,.estimate-print-contribution-table thead { display:table-header-group; }
}

@media screen and (max-width:760px) {
  .direct-chat { width:calc(100vw - 16px) !important; min-width:0; max-width:none; height:min(520px,calc(100vh - 16px)) !important; min-height:0; max-height:none; border-radius:14px; }
  .direct-chat[data-chat-resizable] .direct-chat-header { padding-left:12px; }
  .direct-chat-resize-handle { display:none; }
  .workspace-density { --floating-control-size:54px; --floating-control-inset:12px; --floating-control-bottom:70px; }
  .direct-inbox-menu { bottom:64px; width:calc(100vw - 24px); max-height:calc(100vh - 150px); }
  .estimate-report-option,
  .project-retention-row { grid-template-columns:1fr; }
  .estimate-report-option input { justify-self:start; }
  .estimate-source-panel,
  .estimate-source-summary,
  .project-retention-settings { padding:14px; }
  .estimate-reconciliation { grid-template-columns:1fr; padding:14px; }
  .estimate-certification { align-items:flex-start; flex-direction:column; }
  .estimate-certification dl { flex-direction:column; gap:10px; }
  .estimate-reversal-panel form { grid-template-columns:1fr; }
  .estimate-period-lock { align-items:flex-start; flex-direction:column; }
  .record-flow { grid-template-columns:1fr; }
  .record-flow-step { border-right:0; border-bottom:1px solid var(--line); }
  .record-flow-step:last-child { border-bottom:0; }
  .estimate-source-submit,
  .estimate-next-action { align-items:stretch; flex-direction:column; }
}

/* Navigation system: one project switcher, two primary destinations and one module workspace. */
.app-header-redesigned { height:64px; padding:0 20px; gap:0; border-bottom:1px solid rgb(255 255 255 / 9%); background:var(--brand-primary-dark); box-shadow:0 4px 18px rgb(7 28 51 / 18%); }
.app-header-redesigned .brand { flex:0 0 auto; margin-right:14px; }
.app-header-redesigned .brand-mark { width:40px; height:40px; }
.app-header-redesigned .brand-version { color:#a9bfd0; }
.portfolio-navigation-link { min-height:38px; padding:0 14px; display:flex; align-items:center; border-left:1px solid rgb(255 255 255 / 12%); color:#e7eff6; font-size:13px; font-weight:800; text-decoration:none; }
.app-header-redesigned .project-switcher { height:44px; margin-right:12px; align-self:center; border:1px solid rgb(255 255 255 / 14%); border-radius:10px; background:rgb(255 255 255 / 4%); }
.app-header-redesigned .project-switcher > summary { height:42px; min-width:210px; max-width:275px; padding:0 12px; grid-template-columns:minmax(0,1fr) auto; border:0; border-radius:9px; }
.project-switcher-copy { min-width:0; display:grid; gap:1px; }
.project-switcher-copy small { color:#94aec2; font-size:9px; font-weight:900; letter-spacing:.12em; line-height:1.1; text-transform:uppercase; }
.project-switcher-copy strong { overflow:hidden; color:#fff; font-size:13px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.navigation-chevron { width:7px; height:7px; display:block; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-2px); transition:transform .16s ease; }
details[open] > summary .navigation-chevron { transform:rotate(225deg) translate(-1px,-1px); }
.app-header-redesigned .project-switcher > div { top:calc(100% + 9px); left:0; right:auto; width:360px; border-color:#d1dee8; border-radius:12px; }
.app-header-redesigned .project-switcher > div > a.project-switcher-all { margin-top:6px; border-top:1px solid #e7eff6; border-radius:0 0 8px 8px; color:#124f7f; font-weight:850; }
.app-header-redesigned .project-navigation { min-width:0; flex:1 1 auto; }
.app-header-redesigned .project-navigation-inner { min-height:64px; justify-content:flex-start; gap:4px; }
.project-primary-link,.project-workspace-menu > summary { min-height:38px; padding:0 13px; display:flex; align-items:center; gap:7px; align-self:center; border:1px solid transparent; border-radius:9px; color:#d1dee8; font-size:12px; font-weight:800; line-height:1; text-decoration:none; white-space:nowrap; }
.project-primary-link:hover,.project-primary-link.active,.project-workspace-menu > summary:hover,.project-workspace-menu.active-section > summary,.project-workspace-menu[open] > summary { border-color:#526b80; color:#fff; background:#0d2740; }
.project-workspace-menu { position:static; display:flex; align-items:center; align-self:stretch; }
.project-workspace-menu > summary { cursor:pointer; list-style:none; }
.project-workspace-menu > summary::-webkit-details-marker { display:none; }
.project-workspace-menu > summary::after { content:""; width:6px; height:6px; margin-left:3px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-2px); }
.project-workspace-menu > summary small { max-width:105px; overflow:hidden; color:#94aec2; font-size:9px; text-overflow:ellipsis; text-transform:uppercase; }
.project-workspace-menu[open] > summary::after { transform:rotate(225deg); }
.workspace-menu-panel { position:fixed; z-index:132; top:72px; right:18px; left:18px; max-width:1240px; max-height:calc(100vh - 92px); margin:0 auto; overflow:auto; border:1px solid #d1dee8; border-radius:14px; color:var(--ink); background:#fff; box-shadow:0 22px 55px rgb(71 95 114 / 24%); }
.workspace-menu-heading { min-height:72px; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.workspace-menu-project-identity { min-width:0; display:flex; flex:1 1 auto; align-items:center; gap:11px; overflow:hidden; }
.workspace-menu-project-identity > span:last-child { min-width:0; display:grid; flex:1 1 auto; gap:3px; overflow:hidden; }
.workspace-menu-project-identity small { color:#275f8c; font-size:9px; font-weight:900; letter-spacing:.13em; }
.workspace-menu-project-identity strong { max-width:100%; display:block; overflow:hidden; font-size:16px; text-overflow:ellipsis; white-space:nowrap; }
.workspace-menu-organization-logo { width:44px; height:44px; flex-basis:44px; border-radius:9px; box-shadow:0 2px 7px rgb(7 28 51 / 8%); }
.workspace-menu-organization-logo .organization-logo__image { padding:5px; }
.workspace-menu-organization-logo .organization-logo__fallback { color:#fff; background:var(--brand-primary); font-size:14px; }
.workspace-menu-heading nav { display:flex; flex:0 0 auto; gap:5px; }
.workspace-menu-heading nav a { padding:7px 10px; border:1px solid #d1dee8; border-radius:7px; color:#124f7f; background:#fff; font-size:10px; font-weight:820; }
.workspace-menu-heading nav a:hover { border-color:#124f7f; color:#fff; background:#124f7f; }
.workspace-menu-grid { padding:15px; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.workspace-menu-grid section { min-width:0; padding:12px; display:grid; align-content:start; gap:2px; border:1px solid transparent; border-radius:10px; }
.workspace-menu-grid section.active { border-color:#bdccd8; background:#f3f7fa; }
.workspace-menu-grid h3 { margin:0 0 7px; color:#124f7f; font-size:11px; letter-spacing:.02em; }
.workspace-menu-grid a { padding:6px 7px; overflow:hidden; border-radius:6px; color:#275f8c; font-size:10px; font-weight:400; line-height:1.25; text-decoration:none; text-overflow:ellipsis; }
.workspace-menu-grid a.launch-module { font-weight:700; }
.workspace-menu-grid a:hover,.workspace-menu-grid a:focus-visible { outline:0; color:var(--brand-primary-dark); background:#e7eff6; }
.header-utilities { height:100%; margin-left:auto; display:flex; align-items:center; gap:5px; }
.active-organization-context { min-width:0; max-width:210px; min-height:42px; padding:5px 10px; display:flex; align-items:center; gap:8px; border:1px solid #d7a63b; border-radius:9px; color:#fff; background:#12314d; box-shadow:inset 0 0 0 1px rgb(255 255 255 / 5%); }
.active-organization-context__marker { width:9px; height:9px; flex:0 0 9px; border:2px solid #fff3c4; border-radius:50%; background:#f4bd43; box-shadow:0 0 0 3px rgb(244 189 67 / 14%); }
.active-organization-context__copy { min-width:0; display:grid; gap:1px; }
.active-organization-context small { color:#f6d98c; font-size:8px; font-weight:900; letter-spacing:.1em; line-height:1.1; text-transform:uppercase; }
.active-organization-context strong { overflow:hidden; color:#fff; font-size:11px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.header-notification-link { min-height:40px; padding:0 10px; position:relative; display:flex; align-items:center; gap:7px; border-radius:9px; color:#d1dee8; font-size:11px; font-weight:800; text-decoration:none; }
.header-notification-link:hover { color:#fff; background:#0d2740; }
.header-notification-link svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.header-notification-link .notification-badge { position:absolute; top:3px; left:22px; min-width:16px; height:16px; margin:0; padding:0 4px; font-size:8px; }
.app-header-redesigned .user-menu { height:44px; margin-left:2px; align-self:center; }
.app-header-redesigned .user-menu > summary { height:44px; padding:0 8px; gap:9px; border:0; border-radius:10px; }
.app-header-redesigned .user-menu > summary:hover { background:#0d2740; }
.app-header-redesigned .user-menu > summary .person-avatar { width:34px; height:34px; flex-basis:34px; }
.app-header-redesigned .user-menu > div { top:calc(100% + 9px); width:320px; max-height:calc(100dvh - 80px); overflow:auto; overscroll-behavior:contain; padding:7px; border-color:#d1dee8; border-radius:12px; }
.user-menu-section { padding:7px 4px; display:grid; gap:2px; border-bottom:1px solid #e7eff6; }
.user-menu-section > small { padding:4px 8px; color:#617689; font-size:8px; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }
.user-menu-section > a { padding:9px 10px; border-radius:7px; color:var(--ink); font-size:11px; font-weight:720; text-decoration:none; }
.user-menu-section > a:hover { color:var(--forest); background:#f3f7fa; }
.app-header-redesigned .user-menu-heading { padding:10px 11px 12px; }
.mobile-modules-menu { display:none; }

@media (max-width:1180px) {
  .app-header-redesigned { padding-inline:14px; }
  .app-header-redesigned .brand { margin-right:8px; }
  .app-header-redesigned .brand-name { font-size:14px; }
  .header-utility-label { display:none; }
  .app-header-redesigned .project-switcher { margin-right:7px; }
  .app-header-redesigned .project-switcher > summary { min-width:165px; max-width:205px; }
  .project-primary-link,.project-workspace-menu > summary { padding-inline:10px; }
  .active-organization-context { max-width:150px; padding-inline:8px; }
  .workspace-menu-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:820px) {
  .app-header-redesigned { height:58px; padding-inline:10px; }
  .app-header-redesigned .brand { margin-right:5px; }
  .app-header-redesigned .brand-mark { width:36px; height:36px; }
  .app-header-redesigned .project-switcher { height:40px; margin-right:0; }
  .app-header-redesigned .project-switcher > summary { height:38px; min-width:0; width:min(43vw,190px); padding-inline:9px; }
  .project-switcher-copy small { display:none; }
  .project-switcher-copy strong { font-size:11px; }
  .app-header-redesigned .project-switcher > div { position:fixed; top:64px; right:8px; left:8px; width:auto; }
  .app-header-redesigned .project-navigation,.portfolio-navigation-link { display:none!important; }
  .active-organization-context { max-width:min(24vw,120px); min-height:38px; padding:4px 7px; gap:6px; }
  .active-organization-context__marker { width:8px; height:8px; flex-basis:8px; }
  .active-organization-context small { display:none; }
  .active-organization-context strong { font-size:10px; }
  .header-notification-link { width:38px; padding:0; justify-content:center; }
  .header-notification-link .notification-badge { left:21px; }
  .app-header-redesigned .user-menu { height:40px; }
  .app-header-redesigned .user-menu > summary { height:40px; padding-inline:5px; }
  .app-header-redesigned .user-menu > summary .person-avatar { width:32px; height:32px; flex-basis:32px; }
  .app-header-redesigned .user-menu > summary .navigation-chevron { display:none; }
  .app-header-redesigned .user-menu > div { position:fixed; top:64px; right:8px; left:8px; width:auto; max-height:calc(100vh - 132px); overflow:auto; }
  .mobile-field-nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .mobile-field-nav > a,.mobile-modules-menu > summary { min-height:40px; padding:8px 2px; display:grid; place-items:center; list-style:none; color:#fff; font-size:9px; font-weight:780; text-align:center; text-decoration:none; cursor:pointer; }
  .mobile-modules-menu { display:block; }
  .mobile-modules-menu > summary::-webkit-details-marker { display:none; }
  .mobile-modules-menu .workspace-menu-panel { top:auto; right:8px; bottom:64px; left:8px; width:auto; max-height:calc(100vh - 138px); margin:0; }
  .mobile-modules-menu .workspace-menu-heading { min-height:58px; padding:10px 12px; align-items:stretch; flex-direction:column; gap:8px; }
  .mobile-modules-menu .workspace-menu-project-identity { gap:8px; }
  .mobile-modules-menu .workspace-menu-organization-logo { width:36px; height:36px; flex-basis:36px; border-radius:8px; }
  .mobile-modules-menu .workspace-menu-project-identity strong { font-size:13px; }
  .mobile-modules-menu .workspace-menu-heading nav { gap:3px; overflow-x:auto; }
  .mobile-modules-menu .workspace-menu-heading nav a { padding:6px 8px; flex:0 0 auto; }
  .mobile-modules-menu .workspace-menu-grid { padding:9px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mobile-modules-menu .workspace-menu-grid section { padding:9px; }
}

@media (max-width:480px) {
  .app-header-redesigned .brand { margin-right:4px; }
  .app-header-redesigned .brand-mark { display:none; }
  .app-header-redesigned .brand-name { display:block; font-size:10px; }
  .app-header-redesigned .brand-version { font-size:7px; letter-spacing:.04em; }
  .app-header-redesigned .project-switcher > summary { width:min(42vw,165px); }
  .active-organization-context { max-width:24vw; }
}

@media print {
  .app-header-redesigned,.mobile-field-nav { display:none!important; }
}

/* field-first receiving workflow. */
.field-receipt-form { display:grid; gap:24px; }
.field-receipt-summary { padding:14px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; border-radius:12px; color:#fff; background:#0d2740; }
.field-receipt-summary div { display:grid; gap:3px; }
.field-receipt-summary small { color:#b7cad9; font-weight:800; text-transform:uppercase; }
.receipt-lines { display:grid; gap:12px; }
.receipt-line { padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }
.receipt-line header { margin-bottom:12px; display:flex; justify-content:space-between; gap:12px; }
.receipt-line header div { display:grid; gap:3px; }
.receipt-line header small { color:var(--text-muted); }
.receipt-line header > span { color:var(--forest); font-size:12px; font-weight:850; }
.receipt-quantity-grid { display:grid; grid-template-columns:repeat(3,minmax(100px,.25fr)) minmax(220px,1fr); gap:10px; }
.receipt-quantity-grid label,.receipt-notes { display:grid; gap:5px; font-weight:750; }
.field-photo-capture { padding:18px; display:grid; gap:12px; border:1px dashed #6f93ae; border-radius:14px; background:#f3f7fa; }
.field-photo-capture h2 { margin:2px 0; }
.field-photo-capture p { margin:0; }
.field-photo-button { width:max-content; padding:11px 14px; border-radius:9px; color:#fff; background:var(--forest); font-weight:800; cursor:pointer; }
.field-photo-button input { position:absolute; width:1px; height:1px; opacity:0; }
.field-photo-status { color:var(--text-muted); font-size:13px; }
.field-photo-previews,.receipt-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px; }
.field-photo-previews img,.receipt-photo-grid img { width:100%; aspect-ratio:16/9; display:block; border-radius:9px; object-fit:cover; }
.receipt-evidence { margin-top:24px; }
.receipt-page-heading { margin-bottom:14px; }
.receipt-register { display:grid; gap:10px; }
.receipt-register-toolbar { position:sticky; top:74px; z-index:8; padding:8px; display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:12px; background:rgb(255 255 255 / 94%); box-shadow:0 8px 20px rgb(18 79 127 / 7%); backdrop-filter:blur(12px); }
.receipt-spotlight { min-width:260px; flex:1; display:flex; align-items:center; gap:8px; padding:0 11px; border:1px solid #b7cad9; border-radius:9px; background:#f3f7fa; }
.receipt-spotlight input { width:100%; padding:9px 0; border:0; outline:0; background:transparent; font:inherit; }
.receipt-spotlight kbd { padding:2px 6px; color:var(--text-muted); border:1px solid var(--line); border-radius:5px; background:#fff; font-size:10px; }
.receipt-select-all { display:flex; align-items:center; gap:6px; color:var(--text-muted); font-size:12px; font-weight:750; }
.receipt-register-toolbar .button:disabled { opacity:.42; cursor:not-allowed; }
.receipt-list { display:grid; gap:7px; }
.receipt-row { min-height:72px; display:flex; align-items:stretch; border:1px solid var(--line); border-radius:11px; background:#fff; }
.receipt-row:hover { border-color:var(--forest-2); box-shadow:0 5px 16px rgb(7 28 51 / 6%); }
.receipt-row-check { width:42px; display:grid; place-items:center; border-right:1px solid var(--line); cursor:pointer; }
.receipt-row-link { min-width:0; padding:9px 13px; flex:1; display:grid; grid-template-columns:minmax(260px,1.65fr) minmax(145px,.75fr) minmax(145px,.75fr) minmax(145px,.7fr) auto; align-items:center; gap:15px; color:inherit; text-decoration:none; }
.receipt-row-reference,.receipt-row-meta { min-width:0; display:grid; gap:2px; }
.receipt-row-reference .eyebrow { margin:0; font-size:10px; }
.receipt-row-reference > strong { overflow:hidden; font-size:18px; line-height:1.1; text-overflow:ellipsis; white-space:nowrap; }
.receipt-row-reference > small,.receipt-row-meta > small { overflow:hidden; color:var(--text-muted); text-overflow:ellipsis; white-space:nowrap; }
.receipt-row-meta > strong { overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.receipt-row-photos { min-width:0; display:flex; align-items:center; gap:8px; color:var(--forest); font-size:11px; font-weight:800; }
.receipt-photo-stack { display:flex; }
.receipt-photo-stack img { width:44px; height:28px; margin-left:-8px; display:block; border:2px solid #fff; border-radius:6px; object-fit:cover; }
.receipt-photo-stack img:first-child { margin-left:0; }
.receipt-no-photos { color:var(--text-muted); }
.receipt-filter-empty,.receipt-photo-empty { padding:22px; color:var(--text-muted); text-align:center; border:1px dashed var(--line); border-radius:10px; background:var(--surface-soft); }
.receipt-evidence .section-heading { align-items:end; }
.receipt-evidence .section-heading > span,.receipt-photo-help { color:var(--text-muted); font-size:12px; font-weight:750; }
.receipt-photo-help { margin:-8px 0 12px; }
@media (max-width:1100px) {
  .receipt-row-link { grid-template-columns:minmax(220px,1.35fr) 1fr 1fr auto; }
  .receipt-row-photos { display:none; }
}

@media (max-width:760px) {
  .field-receipt-form { margin-inline:-8px; padding:14px; }
  .receipt-line { padding:12px; }
  .receipt-line header { flex-direction:column; }
  .receipt-quantity-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .receipt-condition { grid-column:1/-1; }
  .field-photo-button { width:100%; text-align:center; }
  .receipt-register-toolbar { top:64px; align-items:stretch; flex-wrap:wrap; }
  .receipt-spotlight { min-width:100%; }
  .receipt-select-all { flex:1; }
  .receipt-row-link { grid-template-columns:1fr auto; gap:7px 12px; }
  .receipt-row-reference { grid-column:1; }
  .receipt-row-meta { grid-column:1; display:flex; gap:6px; }
  .receipt-row-link .document-state { grid-column:2; grid-row:1; align-self:start; }
}

/* site-wide Platafort blue identity. */
.app-header-redesigned { background:var(--brand-primary-dark); box-shadow:0 4px 18px rgb(7 28 51 / 18%); }
.portfolio-navigation-link { color:#e3edf5; }
.app-header-redesigned .project-switcher { border-color:rgb(255 255 255 / 18%); background:rgb(255 255 255 / 6%); }
.project-switcher-copy small,.project-workspace-menu > summary small { color:#9eb8cc; }
.project-primary-link,.project-workspace-menu > summary { color:#cfdae5; }
.project-primary-link:hover,.project-primary-link.active,.project-workspace-menu > summary:hover,.project-workspace-menu.active-section > summary,.project-workspace-menu[open] > summary,
.header-notification-link:hover,.app-header-redesigned .user-menu > summary:hover { border-color:#3d6485; color:#fff; background:#12395b; }
.workspace-menu-panel { border-color:#d1dce6; box-shadow:0 22px 55px rgb(7 28 51 / 24%); }
.workspace-menu-heading > span small,.workspace-menu-grid h3 { color:#275f8c; }
.workspace-menu-heading nav a { border-color:#cad8e4; color:#175f96; }
.workspace-menu-heading nav a:hover { border-color:var(--brand-primary); background:var(--brand-primary); }
.workspace-menu-grid section.active { border-color:#c7d5e0; background:#edf3f7; }
.workspace-menu-grid a { color:#526b80; }
.workspace-menu-grid a:hover,.workspace-menu-grid a:focus-visible { color:var(--brand-primary-dark); background:#e7eff6; }
.header-notification-link { color:#d4e0e9; }
.user-menu-section > a:hover,.user-menu > div > a:hover,.project-switcher > div > a:hover,.project-switcher > div > a.is-current,
.header-help > div a:hover,.header-compact-menu > div > a:hover,.module-menu a:hover,.help-toc a:hover { color:var(--brand-primary); background:#eaf2f8; }
.app-header-redesigned .project-switcher > div > a.project-switcher-all { border-top-color:#d6e1ea; color:var(--brand-primary); }

.info-panel,.review-panel,.bulk-bar { border-color:#cfdae4; background:#eaf2f8; }
.privacy-choice.required,.field-photo-capture { border-color:#bed3e3; background:#edf5fa; }
.help-role-index a,.help-flow-index a,.help-step-row:not(.help-step-head) > span:first-child b,.help-glossary dt { border-color:#d3e0ea; color:var(--brand-primary); background:#eaf2f8; }
.portfolio-metric-link:hover,.portfolio-metric-link:focus-visible,.portfolio-alert-link:hover,.portfolio-alert-link:focus-visible { background:#edf4f9; }
.portfolio-metric-link:focus-visible,.portfolio-alert-link:focus-visible { outline-color:#4c84ae; }
.person-avatar { border-color:#d3e0ea; background:linear-gradient(145deg,#0e456f,#287eb9); box-shadow:0 2px 7px rgb(18 79 127 / 18%); }
.direct-chat-launcher-button { border-color:#b9ccda; color:var(--brand-primary); box-shadow:0 12px 32px rgb(7 28 51 / 20%); }
.direct-chat-launcher-button:hover,.direct-chat-launcher-button:focus-visible { box-shadow:0 14px 38px rgb(7 28 51 / 27%); }
.direct-chat-composer textarea:focus,.gantt-inline-name input:focus { border-color:#2878b5; box-shadow:0 0 0 3px rgb(40 120 181 / 13%); }
.schedule-view-tabs a:hover,.schedule-view-tabs a.active,.schedule-kanban-column > header span { color:var(--brand-primary); }
.schedule-view-tabs a.active { border-bottom-color:var(--brand-primary); }
.schedule-kanban-column > header span { background:#e5eff6; }
.download-project-filter a.active,.download-artifact-file > span,.faro-windows a.active { border-color:var(--brand-primary); background:var(--brand-primary); }
.download-empty > span { color:var(--brand-primary); background:#e8f1f7; }
.download-center > header { color:#65798a; background:#edf3f7; }
.leaflet-control-attribution a,.setup-login-link,.project-module-access > span { color:var(--brand-primary); }
.assistant-quota-meter i { background:linear-gradient(90deg,var(--brand-primary-dark),#3c98d2); }
.field-receipt-summary { background:var(--brand-primary-dark); }
.field-receipt-summary small { color:#bfd5e5; }
.field-photo-capture { border-color:#80a9c6; }
.receipt-spotlight { border-color:#bdccd8; background:#f4f8fb; }
.receipt-register-toolbar { box-shadow:0 8px 20px rgb(18 79 127 / 8%); }
.mobile-field-nav { background:var(--brand-primary-dark); }
body :is(input[type="checkbox"],input[type="radio"],input[type="range"]) { accent-color:var(--brand-primary); }
.supplier-directory-import { margin:14px 0; padding:14px 18px; }
.supplier-directory-import summary { cursor:pointer; color:var(--brand-primary); }
.supplier-directory-import form { display:flex; gap:10px; align-items:center; margin-top:12px; }
.supplier-directory-form{display:grid;gap:12px}.supplier-bulk-actions{display:flex;align-items:center;gap:16px;padding:12px 16px;border:1px solid #c8d9e5;border-radius:12px;background:#f7fbfe}.supplier-bulk-actions label{display:flex;align-items:center;gap:8px;font-weight:800}.supplier-bulk-actions span{color:var(--muted)}.supplier-bulk-actions [data-supplier-bulk-merge]{margin-left:auto}.supplier-bulk-actions [data-supplier-bulk-delete]{margin-left:0}.supplier-select-column{width:48px;text-align:center}.supplier-select-column input{width:19px;height:19px}.supplier-directory-table{min-width:1180px}.supplier-directory-table td{vertical-align:top}.supplier-directory-table .supplier-code-column{width:1%;white-space:nowrap}.supplier-directory-table .supplier-profile-column{width:27%}
.supplier-picker { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:8px; max-height:460px; margin:12px 0 20px; padding:10px; overflow:auto; border:1px solid var(--border); border-radius:12px; background:#f7fafc; }
.supplier-picker label { display:flex; align-items:flex-start; gap:10px; min-height:72px; padding:11px; border:1px solid #d8e4eb; border-radius:10px; background:#fff; cursor:pointer; }
.supplier-picker label:has(input:disabled) { opacity:.55; cursor:not-allowed; }
.supplier-picker input { width:18px; height:18px; flex:0 0 18px; margin-top:2px; }
.supplier-picker span,.supplier-picker small { display:block; }
.supplier-picker small { margin-top:4px; color:var(--muted); line-height:1.35; }
.supplier-invitation-panel { margin-top:20px; }
.public-quote-shell { width:min(1180px,calc(100% - 32px)); margin:32px auto; }
.public-quote-shell > header { margin-bottom:18px; }
@media(max-width:720px){.supplier-directory-import form{align-items:stretch;flex-direction:column}.supplier-bulk-actions{align-items:stretch;flex-direction:column}.supplier-bulk-actions .button{width:100%;margin-left:0}.supplier-picker{grid-template-columns:1fr}.public-quote-shell{width:calc(100% - 20px);margin:18px auto}}
.form-grid :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus,
.filter-bar :is(input,select):focus { border-color:#2878b5; outline:0; box-shadow:0 0 0 3px rgb(40 120 181 / 13%); }

/* remove legacy green from documents and Alice.
   Success and online presence use blue/cyan; warning and risk remain amber/red. */
.eyebrow { color:#5f7486; }
.document-manager { background:#f3f6f9; }
.document-manager-heading p,
.document-tabs button,.document-tabs a,
.folder-tree-heading,
.document-folder-tree > a,
.document-category-row > a,
.document-custom-folder > a,
.document-breadcrumb,
.document-breadcrumb a,
.document-table td,
.document-table th { color:#52697c; }
.document-tabs { border-bottom-color:#d5dee7; }
.document-tabs button.active,.document-tabs a.active,
.document-folder-tree > a.active,
.document-category-row > a.active,
.document-breadcrumb a:hover,
.document-breadcrumb a[aria-current="page"],
.document-name-display > a,
.submittal-title-link { color:var(--brand-primary); }
.document-folder-tree { border-right-color:#d5dee7; background:#f8fafc; }
.document-folder-tree > a:hover,
.document-category-row:hover,
.document-custom-folder:hover { background:#edf3f7; }
.document-folder-tree > a.active,
.document-category-row:has(> a.active),
.document-custom-folder.active { background:#e3f0f8; }
.document-category-row > button,
.folder-divider-actions button,
.document-folder-inline-form input[type="submit"],
.document-folder-inline-form button { color:var(--brand-primary); border-color:#c9d7e2; }
.document-folder-inline-form input[type="submit"]:hover { color:#fff; border-color:var(--brand-primary); background:var(--brand-primary); }
.document-custom-folder details > div,
.document-actions-menu { border-color:#d3dee8; box-shadow:0 12px 30px rgb(7 28 51 / 18%); }
.document-custom-folder details button,
.document-actions-menu > a,
.document-actions-menu > button,
.document-actions-menu > form > button,
.document-action-heading strong { color:#28475f; }
.document-folder-create-form { border-color:#cbd9e4; background:#f2f7fb; }
.document-register-toolbar,
.document-breadcrumb,
.document-table th,
.document-table td { border-color:#dbe3ea; }
.document-search { border-color:#bdccd8; }
.document-search span { color:var(--brand-primary); }
.document-view-button { border-color:#cad7e1; color:#52697c; }
.document-view-button.active { color:var(--brand-primary); background:#e9f3f9; }
.document-bulk-actions { border-bottom-color:#cbd9e4; background:#eaf2f8; box-shadow:0 5px 14px rgb(7 28 51 / 9%); }
.document-bulk-actions > strong { color:#254a68; }
.document-selection-clear,
.document-row-menu,
.document-actions-menu span,
.document-activity-list p { color:#526b80; }
.document-table tbody tr:hover { background:#f1f6fa; }
.document-table tbody tr.is-selected { background:#e8f2f8; }
.document-check input { accent-color:var(--brand-primary); }
.submittal-file-icon { background:var(--brand-primary); }
.document-version { color:#155b8d; background:#e4f0f8; }
.document-row-menu:hover,
.document-row-actions[open] > summary,
.document-actions-menu > a:hover,
.document-actions-menu > button:hover,
.document-actions-menu > form > button:hover { background:#eaf1f6; }

[data-chat-user-id]:hover,[data-chat-user-id]:focus-visible { color:var(--brand-primary); background:#eaf2f8; box-shadow:0 0 0 3px rgb(40 120 181 / 13%); }
.direct-chat,.direct-inbox-menu { border-color:#bfd0dd; color:var(--ink); box-shadow:0 24px 70px rgb(7 28 51 / 28%); }
.direct-chat-header,.direct-inbox-heading { border-bottom-color:#d5dee7; background:#f3f7fa; }
.direct-chat-header .person-identity-name { color:var(--ink); }
.direct-chat-close,.direct-inbox-heading button { color:#294b65; background:#e7eef4; }
.direct-chat-close:hover,.direct-inbox-heading button:hover { color:#fff; background:var(--brand-primary); }
.direct-chat-history { background:#f8fafc; }
.direct-chat-bubble { color:var(--ink); background:#e7eef4; }
.direct-chat-message.is-mine .direct-chat-bubble { background:var(--brand-primary); }
.direct-chat-message time,
.direct-chat-attachment small,
.direct-chat-empty,
.direct-inbox-heading small,
.direct-inbox-contact-copy small,
.direct-inbox-loading,.direct-inbox-empty,.direct-inbox-no-results,
.alice-heading small,.alice-welcome,.alice-usage { color:#66798a; }
.direct-chat-attachment { border-color:#c7d6e1; color:#1f557d; }
.direct-chat-older { color:#315f80; background:#e8f1f7; }
.direct-chat-composer { border-top-color:#d5dee7; }
.direct-chat-composer textarea { border-color:#b9cad9; color:var(--ink); }
.direct-chat-attach { border-color:#c6d5e0; color:var(--brand-primary); background:#f1f6fa; }
.direct-chat-file-count { color:#66798a; }
.direct-chat-send { background:var(--brand-primary); }
.direct-inbox-search { border-color:#c5d4df; color:var(--brand-primary); }
.direct-inbox-search input,
.direct-inbox-contact { color:var(--ink); }
.direct-inbox-contact:hover,.direct-inbox-contact:focus-visible { background:#edf4f9; }
.alice-contact { border-color:#cdddea; background:linear-gradient(135deg,#eef5fa,#fff); }
.alice-avatar { border-color:#5cbffa; background:#071c33; }
.alice-chat-header { background:linear-gradient(135deg,#eaf3fa,#f8fbfd); }
.alice-header-actions button { color:#294b65; background:#e4edf4; }
.alice-header-actions button:hover,.alice-header-actions button:focus-visible { background:var(--brand-primary); }
.alice-scope { color:#285a7e; background:#e7f1f8; }
.alice-welcome strong { color:#254a68; }
.alice-message.is-theirs .direct-chat-bubble { border-color:#d4e0e9; }
.alice-message.is-theirs .direct-chat-bubble a { color:var(--brand-primary); }
.alice-message[data-alice-status="queued"] .direct-chat-bubble,.alice-message[data-alice-status="processing"] .direct-chat-bubble { color:#506b80; background:#f2f7fa; }
.alice-message[data-alice-status="queued"] .direct-chat-bubble::before,.alice-message[data-alice-status="processing"] .direct-chat-bubble::before { border-color:#acc5d8; border-top-color:var(--brand-primary); }
.assistant-message-list-item::before { color:#3c79a5; }
.alice-quick-actions { border-top-color:#dce6ed; background:#f8fafc; }
.alice-quick-actions button { border-color:#bfd1df; color:#245c83; }
.alice-quick-actions button:hover { color:#fff; background:var(--brand-primary); }
.alice-action-card { border-color:#b9cfdf; background:#f0f6fa; }
.alice-action-kicker { color:#31729e; }
.alice-action-card > strong { color:#193e5a; }
.alice-action-card dt,.alice-action-card p { color:#63788a; }
.alice-action-card dd { color:#294457; }

/* final site-wide neutral surfaces and operational tools. */
.project-weather-facts div,.project-generality-grid div,
.project-weather-unavailable { background:#f3f7fa; }
.automatic-weather-panel { border-color:#bed3e3; background:linear-gradient(135deg,color-mix(in srgb,var(--weather-start,#eef5fa) 40%,white),#eef5fa 70%); }
.project-weather-icon,.automatic-weather-icon { --weather-start:#dceffc; --weather-end:#75c6ff; --weather-accent:#124f7f; }
.gantt-status-cell { border-right-color:#d5dee7; }
.task-status-dot.clear::before { background:#c7d5e0; }
.gantt-workspace .gantt-board .gantt-progress,
.gantt-workspace .gantt-row.critical .gantt-bar > .gantt-progress { background:color-mix(in srgb,var(--task-color,#63c6d5) 65%,#0d2740); }
.employee-dossier-photo { border-color:#d5e1ea; }
.employee-profile-form,.employee-document-form form,
.employee-dossier-data div,
.employee-document-summary article { background:#f3f7fa; }
.employee-profile-form input,.employee-document-form input,.employee-document-form select,.employee-status-form input { border-color:#bdcbd7; }
.employee-status-history div { border-left-color:#acc8dc; }
.employee-dossier-empty { border-color:#bdcbd7; }
.attendance-kiosk footer { color:#9eb8cc; }
.data-status { color:#52697c; background:#edf3f7; }
.alice-message[data-alice-status="queued"] .direct-chat-bubble,
.alice-message[data-alice-status="processing"] .direct-chat-bubble { color:#506b80; background:#f2f7fa; }
.alice-message[data-alice-status="queued"] .direct-chat-bubble::before,
.alice-message[data-alice-status="processing"] .direct-chat-bubble::before { border-color:#acc5d8; border-top-color:var(--brand-primary); }
.download-center { box-shadow:0 12px 34px rgb(7 28 51 / 7%); }
.download-center > header { color:#65798a; background:#edf3f7; }
.download-artifact-row { border-top-color:#dce6ed; }
.download-artifact-file > span { background:var(--brand-primary); }
.download-empty > span { color:var(--brand-primary); background:#e8f1f7; }
.schedule-calendar-completed { color:#5f7181; }
.schedule-calendar-event { border-left-color:color-mix(in srgb,var(--task-color) 65%,#0d2740); color:#0d2740; box-shadow:0 1px 2px rgb(7 28 51 / 15%); }
.schedule-kanban-card { border-color:#d5dee7; border-left-color:var(--task-color,#63c6d5); color:var(--ink); }
.gantt-row:not(.gantt-state-completed) .gantt-bar { --gantt-contrast:#0d2740; }
.gantt-row.summary-task .gantt-bar { box-shadow:inset 0 -2px 0 color-mix(in srgb,var(--task-color,#8fa0ae) 70%,#294457); }
.gantt-row.summary-task .gantt-bar-label,
.gantt-workspace .progress-form .gantt-progress-input input { color:#294457; }

/* personal read-only Microsoft mail connection for Alice. */
.mail-integration-card { margin-top:18px; display:grid; gap:16px; border-color:#c7d9e7; background:linear-gradient(145deg,#fff,#f1f7fb); }
.mail-integration-card h2 { margin:2px 0 6px; color:#0d2740; }
.mail-integration-card p { margin:0; color:#617689; }
.integration-status { padding:12px; display:flex; align-items:center; gap:12px; border:1px solid #c7d9e7; border-radius:14px; background:#fff; }
.integration-status > span { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#2f8bc5; font-weight:850; }
.integration-status div { display:grid; gap:2px; min-width:0; }
.integration-status strong { color:#193e5a; }
.integration-status small { overflow-wrap:anywhere; color:#617689; }
.integration-status.is-connected > span { background:#63c6d5; }
.integration-privacy { padding-left:12px; border-left:3px solid #75c6ff; }
@media (max-width:640px) { .mail-integration-card { padding:18px; } }

/* direct-row physical inventory counts. */
.inventory-page-heading { margin-bottom:12px; align-items:flex-end; }
.inventory-page-heading > div:first-child { max-width:760px; }
.inventory-page-heading h1 { margin-bottom:6px; }
.inventory-heading-actions { margin-top:0; display:flex; align-items:stretch; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.inventory-heading-actions form { margin:0; display:flex; }
.inventory-heading-actions .button,.inventory-heading-actions form .button { box-sizing:border-box; min-height:44px; height:44px; padding:0 16px; display:inline-flex; align-items:center; justify-content:center; line-height:1.15; white-space:nowrap; }
.inventory-module-nav { margin:0 0 22px; padding:5px; display:flex; width:max-content; max-width:100%; gap:4px; overflow-x:auto; border:1px solid #d5e1ea; border-radius:12px; background:#eef4f8; }
.inventory-module-nav-link { min-height:40px; padding:0 16px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; color:#536b7f; font-size:13px; font-weight:800; white-space:nowrap; }
.inventory-module-nav-link:hover { color:var(--brand-primary); background:#f8fbfd; }
.inventory-module-nav-link.active { color:white; background:var(--brand-primary); box-shadow:0 4px 12px rgba(14,78,126,.16); }
.inventory-summary { margin-bottom:18px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.inventory-summary article { padding:16px 18px; border:1px solid #d5e1ea; border-radius:12px; background:white; box-shadow:var(--shadow-card); }
.inventory-summary small,.inventory-summary strong { display:block; }
.inventory-summary small { color:#617689; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.inventory-summary strong { margin-top:5px; color:var(--brand-primary); font-size:1.35rem; font-variant-numeric:tabular-nums; }
.inventory-warehouse-card { margin-bottom:14px; }
.inventory-warehouse-card .section-heading { margin:0 0 12px; align-items:center; }
.inventory-stock-spotlight { margin:0 0 16px; padding:16px 18px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:5px 18px; border:1px solid #b9d2e4; border-radius:14px; background:linear-gradient(135deg,#fff,#eef6fb); box-shadow:0 8px 24px rgb(18 79 127 / 7%); }
.inventory-stock-spotlight > label { grid-column:1 / -1; color:#52697c; font-size:11px; font-weight:850; letter-spacing:.07em; text-transform:uppercase; }
.inventory-stock-search-control { min-width:0; display:flex; align-items:center; gap:9px; padding:0 11px; border:1px solid #9fbed3; border-radius:10px; background:#fff; transition:border-color .15s,box-shadow .15s; }
.inventory-stock-search-control:focus-within { border-color:var(--brand-primary); box-shadow:0 0 0 3px rgb(117 198 255 / 24%); }
.inventory-stock-search-control > span { color:var(--brand-primary); font-size:24px; line-height:1; }
.inventory-stock-search-control input { min-width:0; width:100%; padding:12px 0; border:0; outline:0; background:transparent; color:var(--ink); font:inherit; }
.inventory-stock-search-control input::placeholder { color:#7890a2; }
.inventory-stock-search-control kbd { padding:3px 7px; border:1px solid #cad8e2; border-radius:6px; color:#617689; background:#f3f7fa; font:700 11px/1.2 inherit; }
.inventory-stock-search-control button { padding:5px 8px; border:0; color:var(--brand-primary); background:transparent; cursor:pointer; font:800 12px/1 inherit; }
.inventory-stock-spotlight > p { margin:0 0 11px; color:#617689; font-size:12px; font-weight:750; white-space:nowrap; }
.inventory-search-empty { margin-bottom:14px; padding:28px; text-align:center; }
.inventory-search-empty h2 { margin:0 0 5px; font-size:22px; }
.inventory-search-empty p { margin:0; color:#617689; }
.inventory-stock-table-wrap { border:1px solid #d5e1ea; border-radius:10px; scrollbar-gutter:stable; }
.inventory-stock-table { min-width:1180px; table-layout:fixed; }
.inventory-stock-table .inventory-stock-col-description { width:32%; }
.inventory-stock-table .inventory-stock-col-code { width:8%; }
.inventory-stock-table .inventory-stock-col-brand { width:8%; }
.inventory-stock-table .inventory-stock-col-location { width:10%; }
.inventory-stock-table .inventory-stock-col-number { width:7%; }
.inventory-stock-table .inventory-stock-col-money { width:7%; }
.inventory-stock-table th { padding:12px 10px; vertical-align:middle; line-height:1.15; }
.inventory-stock-table td { min-width:0; padding:14px 10px; vertical-align:top; line-height:1.35; }
.inventory-stock-table .inventory-stock-description { padding-right:22px; white-space:normal; overflow-wrap:anywhere; hyphens:auto; }
.inventory-stock-description strong { display:block; font-size:1rem; line-height:1.3; }
.inventory-stock-description small { display:inline-block; margin-top:5px; padding:2px 7px; border-radius:999px; color:#52697c; background:#edf3f7; font-size:10px; font-weight:850; letter-spacing:.04em; }
.inventory-stock-code,.inventory-stock-brand,.inventory-stock-location { overflow-wrap:anywhere; }
.inventory-stock-number,.inventory-stock-money { white-space:nowrap; font-variant-numeric:tabular-nums; }
.inventory-stock-number .text-danger { display:block; margin-top:4px; white-space:normal; }
.inventory-warehouse-meta { margin-top:0; display:flex; align-items:center; gap:10px; }
.inventory-item-count { color:#617689; font-size:12px; font-weight:800; white-space:nowrap; }
.inventory-warehouse-meta .button { min-height:44px; height:44px; padding:0 13px; display:inline-flex; align-items:center; }
.inventory-empty-state { padding:34px; text-align:center; }
.inventory-empty-state h2 { margin-bottom:6px; }
.inventory-empty-state p { max-width:560px; margin:0 auto 18px; color:#617689; }
.inventory-form-heading { max-width:900px; }
.inventory-form-card { max-width:900px; }
.inventory-form-actions { margin-top:20px; display:flex; align-items:center; gap:8px; }
.inventory-form-actions .button { min-height:44px; height:44px; padding:0 16px; display:inline-flex; align-items:center; justify-content:center; }
.inventory-empty-state .button,.inventory-reconcile-card .button { min-height:44px; height:44px; padding:0 16px; display:inline-flex; align-items:center; justify-content:center; }
.inventory-table .status-pill { white-space:nowrap; }
.inventory-count-row-actions { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.inventory-cancel-dialog { width:min(560px,calc(100vw - 32px)); padding:0; border:0; border-radius:16px; color:var(--ink); box-shadow:0 26px 80px rgb(71 95 114 / 32%); }
.inventory-cancel-dialog::backdrop { background:rgb(71 95 114 / 58%); backdrop-filter:blur(3px); }
.inventory-cancel-dialog form { padding:24px; display:grid; gap:16px; }
.inventory-cancel-dialog header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.inventory-cancel-dialog header h2 { margin:3px 0 0; }
.inventory-cancel-dialog header button { width:38px; height:38px; border:0; border-radius:50%; background:#e7eff6; font-size:24px; cursor:pointer; }
.inventory-cancel-dialog > form > p { margin:0; color:#617689; line-height:1.5; }
.inventory-cancel-dialog label { display:grid; gap:7px; color:#275f8c; font-weight:800; }
.inventory-cancel-dialog textarea { width:100%; resize:vertical; }
.inventory-cancel-dialog-actions { display:flex; justify-content:flex-end; gap:8px; }
.inventory-table-empty { padding:26px; color:#617689; text-align:center; }
.inventory-count-progress { min-width:110px; display:grid; gap:2px; justify-items:end; color:#617689; }
.inventory-count-progress strong { color:var(--brand-primary); font-size:1.45rem; font-variant-numeric:tabular-nums; }
.inventory-count-status-summary,.inventory-count-review-summary { margin-bottom:14px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.inventory-count-status-summary article,.inventory-count-review-summary article { padding:15px 17px; display:grid; gap:4px; border:1px solid #d5e1ea; border-radius:12px; background:#fff; }
.inventory-count-status-summary small,.inventory-count-review-summary small { color:#617689; font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.inventory-count-status-summary strong,.inventory-count-review-summary strong { color:var(--brand-primary); font-size:1.3rem; font-variant-numeric:tabular-nums; }
.inventory-count-lifecycle { margin:0 0 16px; padding:6px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; border:1px solid #d5e1ea; border-radius:14px; background:#eef4f8; }
.inventory-count-lifecycle span { min-height:48px; padding:8px 12px; display:flex; align-items:center; gap:8px; border-radius:10px; color:#617689; font-size:.78rem; font-weight:800; }
.inventory-count-lifecycle b { width:25px; height:25px; display:grid; place-items:center; border:1px solid #b7cad8; border-radius:50%; background:#fff; }
.inventory-count-lifecycle .is-reached { color:#124f7f; }
.inventory-count-lifecycle .is-reached b { color:#fff; border-color:var(--brand-primary); background:var(--brand-primary); }
.inventory-count-lifecycle .is-current { background:#fff; box-shadow:0 4px 14px rgb(14 78 126 / 9%); }
.inventory-review-note { margin-bottom:16px; }
.inventory-review-note p { margin:5px 0; }
.inventory-photo-capture { margin-bottom:16px; display:grid; gap:14px; border-color:#9fc6df; background:linear-gradient(145deg,#fff,#f2f8fc); }
.inventory-photo-capture-heading,.inventory-photo-actions { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.inventory-photo-capture-heading h2,.inventory-photo-draft h3 { margin:2px 0 4px; }
.inventory-photo-capture-heading p,.inventory-photo-draft p { margin:0; color:#617689; }
.inventory-photo-actions { align-items:end; }
.inventory-photo-actions label { min-width:min(560px,100%); margin:0; }
.inventory-photo-actions input { width:100%; }
.inventory-photo-status:empty { display:none; }
.inventory-photo-status { padding:10px 12px; border-radius:10px; color:#124f7f; background:#eaf4fa; font-weight:750; }
.inventory-photo-status[data-kind="error"] { color:#9d3028; background:#fff0ee; }
.inventory-photo-status[data-kind="success"] { color:#185c8d; background:#eaf3fa; }
.inventory-photo-workspace { min-width:0; display:grid; grid-template-columns:minmax(240px,.55fr) minmax(0,1.8fr); gap:14px; align-items:start; }
.inventory-photo-previews { max-height:720px; display:grid; gap:10px; overflow:auto; }
.inventory-photo-previews figure { margin:0; padding:8px; border:1px solid #cbdce8; border-radius:12px; background:#fff; }
.inventory-photo-previews img { width:100%; max-height:620px; display:block; object-fit:contain; border-radius:8px; background:#edf3f7; }
.inventory-photo-previews figcaption { padding:7px 2px 0; color:#617689; font-size:.72rem; font-weight:800; }
.inventory-photo-draft { min-width:0; display:grid; gap:12px; }
.inventory-photo-draft table { min-width:1280px; }
.inventory-photo-draft th { white-space:nowrap; }
.inventory-photo-draft td { padding:7px; vertical-align:middle; }
.inventory-photo-draft input,.inventory-photo-draft select { min-width:105px; width:100%; padding:8px; }
.inventory-photo-draft [data-photo-field="description"] { min-width:260px; }
.inventory-photo-draft [data-photo-target] { min-width:220px; }
.inventory-photo-excluded-heading,.inventory-photo-excluded { color:#9d3028; background:#fff0ee; }
.inventory-photo-draft-row.has-excluded { outline:2px solid #d97368; outline-offset:-2px; }
.inventory-count-toolbar { display:flex; gap:24px; align-items:end; justify-content:space-between; margin-bottom:12px; }
.inventory-count-toolbar p { max-width:620px; margin:0; color:#617689; }
.inventory-count-search { min-width:min(360px,100%); }
.inventory-count-search input { width:100%; }
.inventory-count-table td { vertical-align:middle; }
.inventory-count-table td:first-child { min-width:240px; }
.inventory-count-table td:first-child strong { display:block; }
.table-code { display:block; margin-bottom:2px; color:#52758e; font-size:.76rem; font-weight:800; letter-spacing:.04em; }
.inline-count-input { width:120px; padding:10px 12px; border:1px solid #9fb8ca; border-radius:10px; font-size:1rem; font-weight:750; font-variant-numeric:tabular-nums; }
.inline-count-input:focus { outline:3px solid rgb(92 191 250 / 24%); border-color:var(--brand-primary); }
.inline-count-note { min-width:190px; }
.variance-value { font-weight:850; font-variant-numeric:tabular-nums; }
.variance-value[data-sign="positive"] { color:#124f7f; }
.variance-value[data-sign="negative"] { color:#b63636; }
.variance-value[data-sign="zero"] { color:#617689; }
.inventory-count-evidence { display:grid; gap:14px; margin-top:16px; }
.inventory-photo-capture { margin-bottom:16px; display:grid; gap:14px; border-color:#9fc6df; background:linear-gradient(145deg,#fff,#f2f8fc); }
.inventory-photo-capture-heading,.inventory-photo-actions { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.inventory-photo-capture-heading h2,.inventory-photo-draft h3 { margin:2px 0 4px; }
.inventory-photo-capture-heading p,.inventory-photo-draft p { margin:0; color:#617689; }
.inventory-photo-actions { align-items:end; }
.inventory-photo-actions label { min-width:min(560px,100%); margin:0; }
.inventory-photo-actions input { width:100%; }
.inventory-photo-status:empty { display:none; }
.inventory-photo-status { padding:10px 12px; border-radius:10px; color:#124f7f; background:#eaf4fa; font-weight:750; }
.inventory-photo-status[data-kind="error"] { color:#9d3028; background:#fff0ee; }
.inventory-photo-status[data-kind="success"] { color:#176b8f; background:#eaf3f7; }
.inventory-photo-workspace[hidden] { display:none; }
.inventory-photo-workspace { min-width:0; display:grid; grid-template-columns:minmax(240px,.55fr) minmax(0,1.8fr); gap:14px; align-items:start; }
.inventory-photo-previews { max-height:720px; display:grid; gap:10px; overflow:auto; }
.inventory-photo-previews figure { margin:0; padding:8px; border:1px solid #cbdce8; border-radius:12px; background:#fff; }
.inventory-photo-previews img { width:100%; max-height:620px; display:block; object-fit:contain; border-radius:8px; background:#edf3f7; }
.inventory-photo-previews figcaption { padding:7px 2px 0; color:#617689; font-size:.72rem; font-weight:800; }
.inventory-photo-draft { min-width:0; display:grid; gap:12px; }
.inventory-photo-draft table { min-width:1420px; }
.inventory-photo-draft th { white-space:nowrap; }
.inventory-photo-draft td { padding:7px; vertical-align:middle; }
.inventory-photo-draft input,.inventory-photo-draft select { min-width:105px; width:100%; padding:8px; }
.inventory-photo-draft [data-photo-field="description"] { min-width:260px; }
.inventory-photo-draft [data-photo-target] { min-width:220px; }
.inventory-photo-excluded-heading,.inventory-photo-excluded { color:#9d3028; background:#fff0ee; }
.inventory-photo-draft-row.has-excluded { outline:2px solid #d97368; outline-offset:-2px; }
@media (max-width:900px) {
  .inventory-photo-capture-heading,.inventory-photo-actions { align-items:stretch; flex-direction:column; }
  .inventory-photo-workspace { grid-template-columns:1fr; }
  .inventory-photo-previews { max-height:none; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .inventory-photo-previews img { max-height:360px; }
}
.inventory-found-items { display:grid; gap:14px; margin-top:16px; }
.inventory-found-items h2 { margin:0 0 4px; }
.inventory-found-items p { margin:0; color:#617689; }
.inventory-found-item { margin:0 0 10px; padding:14px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:end; border:1px solid #d5e1ea; border-radius:12px; background:#f8fbfd; }
.inventory-found-item label { margin:0; }
.inventory-found-item input { width:100%; }
.inventory-count-evidence h2,.inventory-reconcile-card h2 { margin:0 0 4px; }
.inventory-count-evidence p,.inventory-reconcile-card p { margin:0; color:#617689; }
.inventory-count-photos { display:flex; gap:10px; overflow-x:auto; }
.inventory-count-photos img { width:150px; height:96px; object-fit:cover; border-radius:12px; border:1px solid #d5e1ea; }
.inventory-empty-inline { padding:14px; border:1px dashed #c7d9e7; border-radius:12px; background:#f8fbfd; }
.inventory-submit-review-card { margin-top:20px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-color:#9fc6df; background:linear-gradient(145deg,#fff,#f1f7fb); }
.inventory-submit-review-card h2,.inventory-approval-card h2,.inventory-return-card h2 { margin:0 0 4px; }
.inventory-submit-review-card p,.inventory-approval-card p,.inventory-return-card p { margin:0; color:#617689; }
.inventory-review-actions { margin-top:18px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.inventory-approval-card,.inventory-return-card { display:grid; gap:14px; align-content:start; }
.inventory-approval-card { border-color:#9fc6df; }
.inventory-return-card { border-color:#e2c18c; }
.inventory-approval-card textarea,.inventory-return-card textarea { width:100%; }
.inventory-count-review-table tr.has-variance { background:#fff9f6; }
.inventory-reconcile-card { display:flex; gap:20px; align-items:center; justify-content:space-between; margin-top:20px; }
.inventory-reconcile-card form { margin:0; }
@media (max-width:760px) {
  .inventory-page-heading { gap:14px; }
  .inventory-heading-actions { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .inventory-heading-actions .button,.inventory-heading-actions form,.inventory-heading-actions form .button { width:100%; }
  .inventory-module-nav { width:100%; }
  .inventory-module-nav-link { flex:1 0 auto; }
  .inventory-summary { grid-template-columns:1fr; }
  .inventory-count-status-summary,.inventory-count-review-summary,.inventory-review-actions { grid-template-columns:1fr; }
  .inventory-count-lifecycle { grid-template-columns:1fr; }
  .inventory-warehouse-card .section-heading { align-items:flex-start; }
  .inventory-stock-spotlight { grid-template-columns:1fr; padding:14px; }
  .inventory-stock-spotlight > p { margin:2px 0 0; white-space:normal; }
  .inventory-stock-search-control kbd { display:none; }
  .inventory-stock-table { min-width:1040px; }
  .inventory-stock-table .inventory-stock-col-description { width:30%; }
  .inventory-warehouse-meta { width:100%; justify-content:space-between; }
  .inventory-form-actions { align-items:stretch; flex-direction:column-reverse; }
  .inventory-form-actions .button { width:100%; }
  .inventory-count-toolbar,.inventory-reconcile-card,.inventory-submit-review-card { align-items:stretch; flex-direction:column; }
  .inventory-photo-capture-heading,.inventory-photo-actions { align-items:stretch; flex-direction:column; }
  .inventory-photo-workspace { grid-template-columns:1fr; }
  .inventory-photo-previews { max-height:none; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .inventory-photo-previews img { max-height:360px; }
  .inventory-found-item { grid-template-columns:1fr; }
  .inventory-count-progress { justify-items:start; }
  .inventory-count-row-actions { align-items:stretch; flex-direction:column; }
  .inventory-cancel-dialog-actions { align-items:stretch; flex-direction:column-reverse; }
  .inventory-cancel-dialog-actions .button { width:100%; }
  .inline-count-input { width:100px; }
  .inventory-count-table td:first-child { min-width:190px; }
}

/* Operator runtime cost overview. */
.faro-cost-panel { margin-bottom:18px; padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 12px 35px rgb(18 79 127 / 7%); }
.faro-cost-panel > header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.faro-cost-panel > header h2 { margin:2px 0; }
.faro-cost-panel > header p:last-child { max-width:760px; margin:5px 0 0; color:var(--muted); font-size:.72rem; }
.faro-cost-panel > header > span { padding:7px 10px; border-radius:999px; color:#124f7f; background:#e7eff6; font-size:.7rem; font-weight:850; white-space:nowrap; }
.faro-cost-kpis { margin-top:15px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.faro-cost-kpis article { min-width:0; padding:14px; display:grid; gap:3px; border:1px solid #e7eff6; border-radius:11px; background:#f3f7fa; }
.faro-cost-kpis span { color:var(--muted); font-size:.62rem; font-weight:850; text-transform:uppercase; }
.faro-cost-kpis strong { color:#12314d; font-size:1.18rem; font-variant-numeric:tabular-nums; }
.faro-cost-kpis small { color:#617689; font-size:.62rem; }
.faro-cost-kpis .is-positive { border-color:#9fc6df; background:#f2f8fc; }
.faro-cost-kpis .is-positive strong { color:#176e9f; }
.faro-cost-kpis .is-negative { border-color:#e5b2ac; background:#fff7f5; }
.faro-cost-kpis .is-negative strong { color:#a63d32; }
.faro-cost-content { margin-top:10px; display:grid; grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr); gap:10px; }
.faro-cost-chart,.faro-cost-breakdown { min-width:0; padding:14px; border:1px solid #e7eff6; border-radius:11px; background:#fff; }
.faro-cost-chart > header,.faro-cost-breakdown > header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.faro-cost-chart > header span,.faro-cost-breakdown > header span { color:var(--muted); font-size:.62rem; }
.faro-cost-chart > header span { display:flex; align-items:center; gap:5px; }
.faro-cost-chart > header i { width:9px; height:9px; display:inline-block; border-radius:50%; }
.faro-cost-chart > header i.is-own { background:#176e9f; }
.faro-cost-chart > header i.is-rental { margin-left:7px; background:#df8e18; }
.faro-cost-chart svg { width:100%; height:190px; margin-top:9px; overflow:visible; }
.faro-cost-chart svg line { stroke:#d8e4ec; stroke-width:1; vector-effect:non-scaling-stroke; }
.faro-cost-chart svg polyline { fill:none; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.faro-cost-chart svg polyline.is-own { stroke:#176e9f; }
.faro-cost-chart svg polyline.is-rental { stroke:#df8e18; }
.faro-cost-chart footer { display:flex; justify-content:space-between; color:var(--muted); font-size:.6rem; }
.faro-cost-breakdown > div { padding:9px 0; display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid #e7eff6; font-size:.7rem; }
.faro-cost-breakdown > div:last-child { border-bottom:0; }
.faro-cost-breakdown > div strong { font-variant-numeric:tabular-nums; }
.faro-cost-assumptions { margin-top:10px; padding:10px 12px; border:1px solid #d1dee8; border-radius:10px; background:#f8fbfd; }
.faro-cost-assumptions summary { color:#124f7f; font-size:.68rem; font-weight:850; cursor:pointer; }
.faro-cost-assumptions > div { margin-top:9px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 16px; }
.faro-cost-assumptions span,.faro-cost-assumptions p { margin:0; color:var(--muted); font-size:.62rem; }
.faro-cost-assumptions p { margin-top:8px; font-weight:700; }
@media (max-width:1100px) { .faro-cost-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.faro-cost-content { grid-template-columns:1fr; } }
@media (max-width:760px) { .faro-cost-panel > header { align-items:stretch; flex-direction:column; }.faro-cost-panel > header > span { width:max-content; }.faro-cost-kpis { grid-template-columns:1fr; }.faro-cost-chart svg { height:150px; }.faro-cost-assumptions > div { grid-template-columns:1fr; } }

/* inventory completion */
.inventory-line-selector { display:grid; gap:10px; max-height:560px; padding:12px; overflow:auto; border:1px solid #d5e1ea; border-radius:14px; background:#f8fbfd; }
.inventory-line-selector > article { display:grid; grid-template-columns:minmax(220px,1fr) 150px minmax(180px,.7fr); gap:12px; align-items:end; padding:12px; border:1px solid #e1eaf0; border-radius:11px; background:#fff; }
.inventory-line-selector input { width:100%; }
.inventory-transfer-receipt,.inventory-warehouse-edit { max-width:1180px; }
.inventory-resolution-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.inventory-resolution-grid .form-card { margin:0; }
.inventory-form-card textarea { width:100%; }
.inventory-table tr.is-low-stock td { background:#fff8ec; }
.inventory-table tr.is-inactive td { color:#789; background:#f5f7f9; }
.inventory-inline-form { display:inline-flex; align-items:center; gap:8px; margin:0; }
@media (max-width:900px) {
  .inventory-line-selector > article,.inventory-resolution-grid { grid-template-columns:1fr; }
}

/* project warehouse command workspace. */
.warehouse-workspace-heading > div:first-child { max-width:780px; }
.warehouse-command-center { margin-bottom:14px; padding:18px; border-color:#b8cfdf; background:linear-gradient(140deg,#fff,#f1f7fb); }
.warehouse-command-center .section-heading { margin:0 0 13px; }
.warehouse-command-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.warehouse-command-card { min-width:0; min-height:116px; padding:14px; display:grid; align-content:start; gap:5px; border:1px solid #d4e0e8; border-radius:11px; color:#173e5b; background:#fff; box-shadow:0 6px 18px rgb(18 79 127 / 5%); transition:transform .15s,border-color .15s,box-shadow .15s; }
.warehouse-command-card:hover { transform:translateY(-2px); border-color:#83b5d5; box-shadow:0 10px 24px rgb(18 79 127 / 10%); }
.warehouse-command-card > span { width:28px; height:24px; display:grid; place-items:center; border-radius:7px; color:#fff; background:var(--brand-primary); font-size:.65rem; font-weight:900; letter-spacing:.05em; }
.warehouse-command-card > strong { margin-top:3px; font-size:.88rem; }
.warehouse-command-card > small { color:#617689; font-size:.68rem; line-height:1.4; }
.warehouse-command-card--return > span { background:#287b8f; }
.warehouse-command-card--transfer > span { background:#5a6f9a; }
.warehouse-command-card--reservation > span { background:#8b6b31; }
.warehouse-command-card--count > span { background:#356f8f; }
.warehouse-summary { grid-template-columns:repeat(5,minmax(0,1fr)); }
.warehouse-summary article.has-attention { border-color:#e3b56d; background:#fff9ef; }
.warehouse-summary article.has-attention strong { color:#a76413; }
.warehouse-attention { margin-bottom:14px; padding:16px 18px; border:1px solid #d5e1ea; border-radius:14px; background:#fff; box-shadow:var(--shadow-card); }
.warehouse-attention-heading h2 { margin:2px 0 12px; font-size:1.06rem; }
.warehouse-attention-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; }
.warehouse-attention-grid > a { min-width:0; padding:11px 12px; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:9px; border:1px solid #e0e8ee; border-radius:10px; color:#405e74; background:#f8fbfd; }
.warehouse-attention-grid > a:hover { border-color:#9bc1da; background:#eef6fb; }
.warehouse-attention-grid span { min-width:28px; height:28px; padding:0 6px; display:grid; place-items:center; border-radius:8px; color:#174d72; background:#e2eef6; font-size:.82rem; font-weight:900; font-variant-numeric:tabular-nums; }
.warehouse-attention-grid strong { min-width:0; font-size:.68rem; line-height:1.25; }
.warehouse-stock-toolbar { grid-template-columns:minmax(0,1fr) auto; }
.warehouse-stock-filters { grid-column:1 / -1; margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; }
.warehouse-stock-filters button { min-height:34px; padding:0 13px; border:1px solid #cbdbe6; border-radius:999px; color:#526b7f; background:#fff; font:800 .7rem/1 inherit; cursor:pointer; }
.warehouse-stock-filters button:hover { border-color:#8fb9d4; color:#174d72; }
.warehouse-stock-filters button[aria-pressed="true"] { border-color:var(--brand-primary); color:#fff; background:var(--brand-primary); }
.inventory-search-empty[hidden],.inventory-warehouse-card[hidden],.warehouse-stock-table tr[hidden] { display:none; }
.warehouse-ledger-card { padding:18px; }
.warehouse-card-heading { margin-bottom:12px; }
.warehouse-card-heading > div:first-child { max-width:520px; }
.warehouse-card-heading h2 { margin:2px 0 3px; }
.warehouse-stock-table { min-width:1040px; table-layout:auto; }
.warehouse-stock-table th { white-space:nowrap; }
.warehouse-stock-table .inventory-stock-description { min-width:280px; }
.warehouse-stock-table .warehouse-stock-identity { min-width:130px; }
.warehouse-stock-identity small { margin-top:4px; display:block; color:#617689; font-size:.68rem; }
.warehouse-stock-available strong,.warehouse-stock-available small { display:block; }
.warehouse-stock-available strong { color:#173e5b; font-size:1rem; }
.warehouse-stock-available small { color:#6a8091; font-size:.62rem; font-weight:800; text-transform:uppercase; }
.warehouse-stock-control { min-width:150px; }
.warehouse-stock-control > small { margin-top:5px; display:block; color:#6a8091; font-size:.64rem; }
.warehouse-stock-state { width:max-content; padding:4px 8px; display:block; border-radius:999px; font-size:.65rem; font-weight:850; white-space:nowrap; }
.warehouse-stock-state.is-available { color:#176b9c; background:#e8f2f8; }
.warehouse-stock-state.is-reserved { color:#725316; background:#fff3d7; }
.warehouse-stock-state.is-low,.warehouse-stock-state.is-unavailable { color:#96382e; background:#fff0ee; }
.warehouse-stock-row-actions { min-width:92px; text-align:right; }
.warehouse-recent-ledger { margin-bottom:14px; }
.warehouse-recent-ledger .section-heading { margin-bottom:12px; }
.warehouse-recent-ledger table { min-width:860px; }
.warehouse-ledger-quantity { font-weight:900; font-variant-numeric:tabular-nums; white-space:nowrap; }
.warehouse-ledger-quantity.is-incoming { color:#176b9c; }
.warehouse-ledger-quantity.is-outgoing { color:#a33c32; }
.warehouse-ledger-quantity.is-transfer { color:#48699a; }
@media (max-width:1100px) {
  .warehouse-command-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .warehouse-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .warehouse-attention-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .warehouse-command-grid,.warehouse-summary,.warehouse-attention-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .warehouse-command-card { min-height:108px; }
  .warehouse-ledger-card { padding:14px; }
  .warehouse-card-heading { align-items:stretch; }
  .warehouse-card-heading .inventory-heading-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .warehouse-card-heading .inventory-item-count { grid-column:1 / -1; }
  .warehouse-stock-toolbar { grid-template-columns:1fr; }
  .warehouse-stock-toolbar > p { margin-top:3px; }
}
@media (max-width:460px) {
  .warehouse-command-grid,.warehouse-summary,.warehouse-attention-grid { grid-template-columns:1fr; }
  .warehouse-command-card { min-height:0; grid-template-columns:auto minmax(0,1fr); align-items:center; }
  .warehouse-command-card > span { grid-row:1 / 3; }
  .warehouse-command-card > strong { margin:0; }
}
.general-photo-review{display:grid;grid-template-columns:minmax(220px,30%) minmax(0,1fr);gap:18px;align-items:start}.general-photo-review .inventory-photo-previews{position:sticky;top:90px;max-height:72vh;overflow:auto}.general-photo-review .inventory-photo-previews figure{margin:0 0 12px}.general-photo-review .inventory-photo-previews img{display:block;width:100%;max-height:360px;object-fit:contain;background:#eaf3f7;border:1px solid #9fc6df;border-radius:10px}.general-photo-review figcaption{font-size:.78rem;color:#617689;margin-top:4px}.inventory-inline-assignment{display:flex;gap:6px;flex-wrap:wrap}.inventory-inline-assignment select,.inventory-inline-assignment input{min-width:120px}@media(max-width:800px){.general-photo-review{grid-template-columns:1fr}.general-photo-review .inventory-photo-previews{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}}

/* warehouse-independent inventory capture sheet. */
.inventory-import-card { margin-bottom:16px; padding:18px; display:grid; grid-template-columns:minmax(0,1fr) minmax(420px,.9fr); align-items:center; gap:24px; border-color:#bfd3e1; background:linear-gradient(135deg,#fff,#f2f8fb); }
.inventory-import-card h2 { margin:2px 0 5px; font-size:1.15rem; }
.inventory-import-card p { margin:0; color:#617689; }
.inventory-import-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:8px; }
.inventory-import-form { display:flex; align-items:center; gap:8px; }
.inventory-import-form input[type="file"] { max-width:260px; padding:7px; border:1px solid #c8d9e4; border-radius:8px; background:#fff; font-size:.75rem; }
.inventory-drafts-table table { min-width:900px; }
.inventory-spreadsheet-heading { align-items:flex-end; }
.inventory-spreadsheet-form { margin-top:12px; }
.inventory-sheet-toolbar { padding:11px 12px; display:grid; grid-template-columns:180px minmax(250px,1fr) auto auto; align-items:end; gap:9px; border:1px solid #cbdce7; border-bottom:0; border-radius:12px 12px 0 0; background:#f4f8fb; }
.inventory-sheet-toolbar label { min-width:0; margin:0; display:grid; gap:4px; color:#506b80; font-size:.66rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.inventory-sheet-toolbar input { width:100%; min-height:34px; }
.inventory-sheet-toolbar > span { padding-bottom:9px; color:#667d8e; font-size:.7rem; font-weight:800; white-space:nowrap; }
.inventory-sheet-help { padding:7px 12px; border-inline:1px solid #cbdce7; color:#60788b; background:#eaf2f7; font-size:.7rem; }
.inventory-spreadsheet-wrap { max-height:64vh; margin:0; overflow:auto; border:1px solid #aebfcb; border-radius:0; box-shadow:0 8px 24px rgb(19 64 96 / 8%); }
.inventory-spreadsheet { width:max-content; min-width:100%; table-layout:fixed; border-collapse:separate; border-spacing:0; font-size:.75rem; }
.inventory-spreadsheet th,.inventory-spreadsheet td { height:35px; padding:0; border-right:1px solid #d9e2e8; border-bottom:1px solid #d9e2e8; background:#fff; }
.inventory-spreadsheet th { position:sticky; top:0; z-index:3; height:38px; padding:0 9px; color:#fff; background:#175985; font-size:.64rem; letter-spacing:.03em; text-align:left; white-space:nowrap; }
.inventory-spreadsheet td:not(.inventory-sheet-row-number):not(.inventory-sheet-remove) { min-width:138px; }
.inventory-spreadsheet th:nth-child(4),.inventory-spreadsheet td:nth-child(4) { min-width:240px; }
.inventory-spreadsheet input { width:100%; min-width:0; min-height:34px; padding:6px 8px; border:0; border-radius:0; color:#17364d; background:transparent; font:inherit; }
.inventory-spreadsheet input:focus { position:relative; z-index:2; outline:2px solid #1685c1; outline-offset:-2px; background:#f6fcff; }
.inventory-spreadsheet input[readonly] { color:#3e586b; background:#eef4f7; cursor:default; }
.inventory-spreadsheet tr[data-existing-stock="true"] td { border-bottom-color:#c7d8e2; }
.inventory-spreadsheet tbody tr:nth-child(even) td { background:#f9fbfc; }
.inventory-spreadsheet tbody tr:nth-child(even) input { background:#f9fbfc; }
.inventory-sheet-row-number { position:sticky; left:0; z-index:2; width:42px; min-width:42px; padding:0 7px !important; color:#698093; background:#edf3f6 !important; text-align:right !important; font-variant-numeric:tabular-nums; }
.inventory-spreadsheet th.inventory-sheet-row-number { z-index:4; color:#fff; background:#124c72 !important; }
.inventory-sheet-remove { width:38px; min-width:38px; text-align:center; }
.inventory-sheet-remove button { width:28px; height:28px; padding:0; border:0; border-radius:6px; color:#8b4b45; background:transparent; font-size:1.1rem; cursor:pointer; }
.inventory-sheet-remove button:hover { color:#fff; background:#b34236; }
.inventory-existing-row { display:inline-flex; max-width:34px; padding:3px 5px; overflow:hidden; border-radius:999px; color:#315a78; background:#e5f1f8; font-size:.58rem; font-weight:850; text-overflow:ellipsis; text-transform:uppercase; }
.inventory-sheet-notes { margin:12px 0 0; display:block; color:#536e82; font-size:.72rem; font-weight:850; }
.inventory-sheet-notes textarea { width:100%; margin-top:5px; display:block; }
.inventory-sheet-actions { margin-top:10px; padding:10px 12px; display:flex; justify-content:flex-end; align-items:center; gap:8px; border:1px solid #cbdce7; border-radius:10px; background:#fff; }
.inventory-sheet-actions > span { margin-right:auto; color:#637a8d; font-size:.72rem; font-weight:800; }
.inventory-import-errors { margin-bottom:10px; }
.inventory-spreadsheet--closed td { padding:7px 9px; }
.inventory-task-context { margin:14px 0; padding:18px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-color:#b9d2e4; background:linear-gradient(135deg,#fff,#eef6fb); }
.inventory-task-context h2 { margin:3px 0 5px; font-size:1.15rem; }
.inventory-task-context p { margin:0; color:#617689; }
.task-material-actions { margin-bottom:12px; display:flex; flex-wrap:wrap; gap:7px; }
.task-material-movements { display:grid; gap:7px; }
.task-material-movements article { padding:9px 10px; display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid #d7e3ea; border-radius:8px; background:#fff; }
.task-material-movements article div { min-width:0; display:grid; gap:2px; }
.task-material-movements article strong,.task-material-movements article small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task-material-movements article span { color:var(--brand-primary, #345b7b); font-size:.75rem; font-weight:850; white-space:nowrap; }
.task-materials-empty { padding:15px; border:1px dashed #b9ccd8; border-radius:9px; color:#617689; background:#f8fbfd; }
.task-materials-empty strong { color:#17364d; }
.task-materials-empty p { margin:4px 0 0; font-size:.78rem; }
@media (max-width:900px) {
  .inventory-import-card { grid-template-columns:1fr; gap:14px; }
  .inventory-import-actions { justify-content:flex-start; }
  .inventory-sheet-toolbar { grid-template-columns:1fr 1fr; }
  .inventory-sheet-toolbar > span { padding:0 0 8px; }
}
@media (max-width:620px) {
  .bid-award-heading { align-items:stretch; }
  .bid-award-summary { grid-template-columns:1fr; }
  .bid-award-summary article { border-right:0; border-bottom:1px solid #d7e3ea; }
  .bid-award-summary article:last-child { border-bottom:0; }
  .inventory-import-form,.inventory-import-actions { align-items:stretch; flex-direction:column; }
  .inventory-import-form input[type="file"] { max-width:none; width:100%; }
  .inventory-sheet-toolbar { grid-template-columns:1fr; }
  .inventory-sheet-actions { align-items:stretch; flex-direction:column; }
  .inventory-sheet-actions > span { margin:0 0 2px; }
  .inventory-sheet-actions .button { width:100%; }
  .inventory-task-context { align-items:stretch; flex-direction:column; }
  .inventory-task-context .button { width:100%; justify-content:center; }
}

.dwg-preview-body { height:100vh; height:100dvh; overflow:hidden; }
.page-shell.dwg-preview-page { width:100%; max-width:none; height:calc(100vh - 64px); height:calc(100dvh - 64px); min-height:0; margin:0; padding:0; display:grid; grid-template-rows:auto minmax(0,1fr); overflow:hidden; }
.page-shell.dwg-preview-page + .privacy-footer { display:none; }
.dwg-viewer-heading { min-width:0; margin-bottom:0; }
.dwg-preview-shell { min-width:0; min-height:0; padding:0; display:grid; grid-template-rows:minmax(0,1fr) auto; overflow:hidden; background:#e6edf1; }
.dwg-preview-viewer { width:100%; height:100%; min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden; border:1px solid #c8d8e3; border-width:1px 0 0; border-radius:0; background:#f8fafb; }
.dwg-preview-toolbar { min-height:48px; padding:7px 10px; display:flex; align-items:center; justify-content:center; gap:7px; border-bottom:1px solid #c8d8e3; background:#fff; box-shadow:0 2px 8px rgb(7 28 51 / 7%); z-index:1; }
.dwg-preview-toolbar button { min-width:38px; height:34px; padding:0 11px; border:1px solid #b9cedc; border-radius:7px; color:#123f5e; background:#fff; font:inherit; font-size:1.2rem; font-weight:800; cursor:pointer; }
.dwg-preview-toolbar button:hover,.dwg-preview-toolbar button:focus-visible { border-color:#147cad; outline:2px solid rgb(20 124 173 / 18%); }
.dwg-preview-toolbar output { min-width:62px; color:#173d56; font-size:.82rem; font-variant-numeric:tabular-nums; font-weight:800; text-align:center; }
.dwg-preview-toolbar .dwg-preview-fit { width:auto; font-size:.78rem; }
.dwg-preview-stage { min-height:0; position:relative; overflow:hidden; overscroll-behavior:contain; touch-action:none; cursor:default; background:#eef2f4; }
.dwg-preview-stage.is-panning { cursor:grabbing; user-select:none; }
.dwg-preview-stage canvas { position:absolute; inset:0; display:block; z-index:2; }
.dwg-preview-paper { position:absolute; left:0; top:0; display:block; z-index:1; background:#fff; box-shadow:0 9px 26px rgb(7 28 51 / 18%); transform-origin:0 0; }
.dwg-preview-loading { position:absolute; inset:0; display:grid; place-items:center; z-index:4; color:var(--muted); background:rgb(238 242 244 / 82%); font-weight:750; pointer-events:none; }
.dwg-preview-loading[hidden] { display:none; }
.dwg-layout-tabs { min-height:38px; padding:0 8px; display:flex; align-items:end; gap:2px; overflow-x:auto; border-top:1px solid #bdced9; background:#dce5ea; z-index:3; }
.dwg-layout-tabs button { min-width:86px; height:31px; margin-top:6px; padding:0 16px; border:1px solid #aebfca; border-bottom:0; border-radius:5px 5px 0 0; color:#284d65; background:#edf2f5; font:inherit; font-size:.76rem; font-weight:800; white-space:nowrap; cursor:pointer; }
.dwg-layout-tabs button:hover,.dwg-layout-tabs button:focus-visible { color:#0e5d88; outline:2px solid rgb(20 124 173 / 18%); outline-offset:-2px; }
.dwg-layout-tabs button.is-active { color:#fff; border-color:#135f8a; background:#16638e; }
.dwg-preview-limitation { width:100%; min-height:28px; margin:0; padding:6px 14px; color:var(--muted); background:#e6edf1; font-size:.72rem; text-align:center; }
.dwg-preview-state { min-height:0; height:100%; display:flex; align-items:center; justify-content:center; gap:18px; padding:30px; color:var(--ink); text-align:left; }
.dwg-preview-state > span { width:48px; height:48px; display:grid; place-items:center; flex:0 0 48px; border-radius:50%; background:#d8e8f1; color:#14567e; font-size:1.4rem; font-weight:900; }
.dwg-preview-state h1 { margin:0 0 5px; font-size:1.35rem; }
.dwg-preview-state p { max-width:620px; margin:0; color:var(--muted); }
.dwg-preview-state.is-error > span { color:#922b21; background:#f8dedb; }
.dwg-preview-spinner { border:4px solid #c7dbe8!important; border-top-color:#167caf!important; animation:dwg-preview-spin .9s linear infinite; }
@keyframes dwg-preview-spin { to { transform:rotate(360deg); } }
@media (max-width:680px) {
  .page-shell.dwg-preview-page { height:calc(100vh - 64px); height:calc(100dvh - 64px); }
  .dwg-preview-viewer { min-height:0; height:100%; border-width:1px 0 0; }
  .dwg-preview-toolbar { justify-content:flex-start; }
  .dwg-preview-state { align-items:flex-start; flex-direction:column; justify-content:center; }
}

/* preconstruction estimating and unit-price analysis. */
.bid-heading { align-items:flex-end; }
.bid-summary-grid { margin:16px 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.bid-summary-grid .card { min-height:92px; margin:0; padding:16px 18px; display:flex; flex-direction:column; justify-content:center; border:1px solid #d5e1ea; border-radius:12px; background:#fff; box-shadow:var(--shadow-card); }
.bid-summary-grid small { color:#60788b; font-size:.7rem; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.bid-summary-grid strong { margin-top:5px; color:#123d5b; font-size:1.2rem; }
.bid-estimate-form { display:grid; gap:16px; }
.bid-estimate-form .card { margin:0; }
.form-grid .full { grid-column:1 / -1; }
.bid-chapter-row td { background:#e9f2f7; font-weight:800; }
.bid-child-item { display:inline-block; padding-left:18px; }
.table-note { margin-top:3px; display:block; color:#687f90; font-size:.68rem; }
.bid-release-panel { margin-top:16px; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.bid-award-heading { align-items:flex-end; }
.bid-award-heading p { max-width:760px; }
.bid-award-summary { margin:16px 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:hidden; border:1px solid #bfd2df; border-radius:12px; background:#fff; box-shadow:var(--shadow-card); }
.bid-award-summary article { min-height:82px; padding:15px 18px; display:flex; flex-direction:column; justify-content:center; border-right:1px solid #d7e3ea; }
.bid-award-summary article:last-child { border-right:0; }
.bid-award-summary small { color:#667d8e; font-size:.66rem; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.bid-award-summary strong { margin-top:5px; color:#123d5b; font-size:1.08rem; }
.bid-award-form { max-width:1050px; display:grid; gap:14px; }
.bid-award-form .card { margin:0; }
.bid-award-security { padding:16px 18px; display:grid; gap:4px; border:1px solid #a9c9dc; border-radius:10px; color:#173f60; background:#eaf4f9; }
.bid-award-security span { color:#4f687b; }
.inline-release-form { display:flex; align-items:center; gap:8px; }
.inline-release-form input[type="text"] { min-width:260px; }
.bid-calculation-memory dl { margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
.bid-calculation-memory dl div { padding:9px 0; display:flex; justify-content:space-between; gap:20px; border-bottom:1px solid #dce7ed; }
.bid-calculation-memory dt { color:#536e82; }
.bid-calculation-memory dd { margin:0; font-variant-numeric:tabular-nums; font-weight:850; }
.bid-calculation-memory .total { color:#0f5580; font-size:1.08rem; }
.bid-estimates-table table { min-width:980px; }

/* dense estimator workspace validated with a 30-item bid. */
.page-shell.bid-estimate-page { width:100%; max-width:none; padding:10px 20px 42px; }
.bid-command-bar { position:sticky; top:64px; z-index:12; margin:-2px 0 5px; padding:0 9px; min-height:32px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid #b9cfdd; border-radius:8px; color:#536f83; background:#f3f8fb; box-shadow:0 3px 10px rgb(17 61 91 / 7%); font-size:.68rem; }
.bid-command-bar nav { align-self:stretch; display:flex; align-items:stretch; gap:2px; }
.bid-command-bar nav a { padding:0 10px; display:flex; align-items:center; border-bottom:3px solid transparent; color:#34566e; font-weight:850; text-decoration:none; }
.bid-command-bar nav a:hover,.bid-command-bar nav a.active { border-bottom-color:#1478ae; color:#0e527b; background:#e5f1f8; }
.bid-command-meta { min-width:max-content; display:flex; align-items:center; gap:9px; }
.bid-command-revision { white-space:nowrap; font-weight:750; }
.bid-view-controls { display:flex; align-items:center; gap:2px; }
.bid-view-toggle { min-height:22px; padding:2px 6px; border:0; border-radius:999px; color:#60798b; background:transparent; font:inherit; font-weight:750; cursor:pointer; }
.bid-view-toggle:hover,.bid-view-toggle:focus-visible { color:#184f72; background:#e3eef5; outline:none; }
.bid-view-toggle[aria-pressed="true"] { color:#174f72; background:#dfeef6; }
.bid-workspace-header { margin:3px 0 5px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.bid-workspace-identity { min-width:0; flex:1 1 auto; }
.bid-workspace-header h1 { margin:1px 0; font-size:clamp(1.25rem,1.9vw,1.7rem); }
.bid-workspace-header p { margin:0; color:#60788b; }
.bid-workspace-context { display:flex; align-items:center; gap:.35rem; color:#60788b; }
.bid-inline-title { margin:1px 0; }
.bid-inline-title .bid-inline-content__editor,.bid-inline-title.bid-description-preview { color:#102f46; font-size:clamp(1.25rem,1.9vw,1.7rem); font-weight:850; line-height:1.05; }
.bid-inline-location { min-width:4rem; }
.bid-workspace-header { align-items:flex-start; flex-direction:column; }
.bid-workspace-identity { width:100%; }
.bid-workspace-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; width:100%; min-width:0; }
.bid-action-group { display:flex; align-items:center; flex-wrap:wrap; gap:5px; max-width:100%; min-width:0; padding-inline-start:14px; border-inline-start:1px solid #b9ccd8; }
.bid-action-group:not(:has(.button)) { display:none; }
.bid-action-group .button { white-space:normal; text-align:center; max-width:100%; }
.bid-action-group .bid-header-form { max-width:100%; }
@media (max-width:700px) {
  .bid-workspace-actions { align-items:flex-start; }
  .bid-action-group { flex:1 1 100%; padding:8px 0 0; border-inline-start:0; border-top:1px solid #dce5ea; }
}

.bid-work-description-editor { display:grid; gap:16px; max-width:1500px; margin:0 auto; }
.bid-work-description-editor .card { padding:20px; }
.bid-work-description-editor textarea { width:100%; min-height:280px; resize:vertical; font:1rem/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; }
.bid-work-description-editor section + section textarea { font-family:inherit; }
.bid-work-description-editor footer { display:flex; justify-content:flex-end; padding-bottom:24px; }
.bid-work-description-status { margin:8px 0 0; color:#597286; font-size:.85rem; }
.bid-work-description-disclaimer label { display:flex; align-items:flex-start; gap:12px; cursor:pointer; }
.bid-work-description-disclaimer input { margin-top:4px; flex:0 0 auto; }
.bid-work-description-disclaimer span { display:grid; gap:4px; }
.bid-work-description-disclaimer small { color:#597286; line-height:1.45; }
.document-system-row { background:#f4f9fc; }
.document-system-card { background:#f4f9fc; }

@media (max-width: 760px) {
  .bid-work-description-editor .card { padding:14px; }
  .bid-work-description-editor textarea { min-height:220px; }
}
.bid-header-form { margin:0; display:inline-flex; }
.bid-workspace-header .status { min-height:27px; padding:4px 9px; border-radius:999px; color:#174e70; background:#eaf3f8; font-size:.66rem; font-weight:850; }
.bid-freeze-action { border-color:#8e6016; color:#704805; background:#fff9e9; }
.bid-kpi-strip { margin:0 0 6px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:hidden; border:1px solid #bfd2df; border-radius:8px; background:#fff; box-shadow:0 3px 10px rgb(17 61 91 / 6%); }
.bid-kpi-strip.commercial { grid-template-columns:repeat(8,minmax(0,1fr)); }
.bid-kpi-strip article { min-width:0; min-height:46px; padding:6px 10px; display:flex; flex-direction:column; justify-content:center; border-right:1px solid #d7e3ea; }
.bid-kpi-strip article:last-child { border-right:0; }
.bid-kpi-strip small { overflow:hidden; color:#667d8e; font-size:.55rem; font-weight:900; letter-spacing:.04em; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.bid-kpi-strip.commercial small { line-height:1.1; white-space:normal; }
.bid-kpi-strip strong { margin-top:1px; overflow:hidden; color:#123d5b; font-size:.84rem; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.bid-progress { height:2px; margin-top:3px; overflow:hidden; border-radius:3px; background:#dce8ef; }
.bid-progress i { height:100%; display:block; background:#1685c1; }
.bid-estimating-workspace { display:block; }
.bid-grid-pane,.bid-apu-inspector { border:1px solid #bfd2df; border-radius:9px; background:#fff; box-shadow:0 6px 18px rgb(18 63 94 / 7%); }
.bid-apu-inspector { position:sticky; top:116px; max-height:calc(100vh - 132px); overflow:auto; }
.bid-calculation-memory header { padding:11px 12px; border-bottom:1px solid #d7e4eb; background:#f3f8fb; }
.bid-calculation-memory header small { display:block; color:#60798c; font-size:.58rem; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.bid-grid-pane { min-width:0; overflow:visible; }
.bid-grid-heading { position:sticky; top:var(--bid-grid-heading-top,96px); z-index:11; min-height:43px; padding:6px 10px; display:flex; align-items:end; justify-content:space-between; gap:14px; border-bottom:1px solid #d7e4eb; background:#fff; }
.bid-grid-heading h2 { margin:1px 0 0; font-size:1rem; }
.bid-grid-heading p { margin:0; color:#697f90; font-size:.63rem; }
.bid-grid-toolbar { position:sticky; top:var(--bid-grid-toolbar-top,160px); z-index:10; width:100%; max-width:100%; padding:7px 9px; display:flex; flex-wrap:wrap; align-items:end; gap:7px; overflow-x:clip; border-bottom:1px solid #c9d9e3; background:#edf4f8; box-shadow:0 4px 8px rgb(7 28 51 / 7%); }
.bid-grid-toolbar label { min-width:0; max-width:100%; margin:0; display:grid; gap:2px; color:#597286; font-size:.57rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.bid-grid-toolbar label:first-child { min-width:210px; flex:1 1 260px; }
.bid-grid-toolbar label:nth-child(2) { min-width:180px; flex:1 1 210px; }
.bid-grid-toolbar input,.bid-grid-toolbar select { width:100%; min-width:0; max-width:100%; min-height:30px; padding:5px 7px; border-color:#b9ccd8; border-radius:5px; background:#fff; font-size:.7rem; }
.bid-grid-toolbar > span { flex:0 0 auto; max-width:100%; padding:0 2px 7px; color:#5f7789; font-size:.64rem; font-weight:800; white-space:nowrap; }
.bid-outline-actions { display:flex; flex:1 1 100%; flex-wrap:wrap; align-items:center; gap:5px; order:-1; }
.bid-outline-actions .button { min-height:30px; padding:5px 8px; white-space:nowrap; }
.bid-outline-actions .button:disabled { opacity:.45; cursor:not-allowed; }
.bid-outline-actions .bid-outline-type { min-width:150px; display:grid; }
.bid-outline-actions .bid-outline-type select { min-height:30px; }
.bid-outline-status { min-width:92px; padding:0 5px!important; align-self:center; color:#47697f!important; text-align:center; }
.bid-row-selector { width:14px; height:14px; margin:0 1px 0 -2px; flex:0 0 14px; accent-color:#1478ae; cursor:pointer; }
.bid-budget-grid tbody tr.bid-row-checked td { background:#dff0f8!important; }
.bid-budget-grid tbody tr.bid-type-pending td { box-shadow:inset 0 -2px #d18a1d; }
body.bid-outline-drag-active { overflow:hidden; overscroll-behavior:none; scrollbar-gutter:stable; }
.bid-paste-dialog { width:min(760px,calc(100vw - 30px)); }
.bid-paste-dialog textarea { width:100%; min-height:220px; resize:vertical; font:500 .85rem/1.45 ui-monospace,SFMono-Regular,Menlo,monospace; }
.bid-workbook-steps { margin:18px 0; padding-left:28px; display:grid; gap:14px; color:var(--muted); }
.bid-workbook-steps li { padding-left:5px; }
.bid-workbook-steps .button { width:max-content; }
.bid-paste-dialog input[type="file"] { width:100%; padding:13px; border:1px solid var(--line); border-radius:9px; background:#f7fafc; }
.bid-comparison-selectors { display:flex; align-items:end; gap:8px; }
.bid-comparison-selectors label { display:grid; gap:3px; color:#60798c; font-size:.62rem; font-weight:850; text-transform:uppercase; }
.bid-comparison-selectors select { min-width:90px; min-height:34px; }
.bid-comparison-totals { margin-bottom:12px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:hidden; border:1px solid #bfd2df; border-radius:9px; background:#fff; }
.bid-comparison-totals article { min-width:0; padding:11px 13px; display:grid; gap:2px; border-right:1px solid #d7e4eb; }
.bid-comparison-totals article:last-child { border-right:0; }
.bid-comparison-totals small { color:#60798c; font-size:.61rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.bid-comparison-totals strong { font-size:.92rem; }
.bid-comparison-totals span { color:var(--brand-primary); font-size:.7rem; font-weight:800; }
.bid-comparison-totals span.negative { color:#a33d32; }
.bid-comparison-grid { min-width:960px; }
.bid-comparison-grid th:nth-child(1) { width:9%; }
.bid-comparison-grid th:nth-child(2) { width:10%; }
.bid-comparison-grid th:nth-child(3) { width:39%; }
.bid-comparison-grid td:nth-child(n+4) { text-align:right; font-variant-numeric:tabular-nums; }
.bid-comparison-grid td small { margin-top:3px; display:block; color:#6b7f8f; text-decoration:line-through; }
.bid-comparison-added td { background:#eef6fb !important; }
.bid-comparison-removed td { background:#fff2f0 !important; color:#80514c; }
.bid-comparison-changed td { background:#fff9e9 !important; }
.bid-budget-grid-wrap { box-sizing:border-box; width:100%; max-width:100%; max-height:none; padding-left:13px; overflow:visible; }
.bid-budget-grid { width:100%; min-width:1080px; table-layout:fixed; border-collapse:separate; border-spacing:0; font-size:.75rem; }
.bid-budget-grid .bid-col-code { width:7%; }
.bid-budget-grid .bid-col-description { width:36%; }
.bid-budget-grid .bid-col-unit { width:6%; }
.bid-budget-grid .bid-col-quantity { width:10%; }
.bid-budget-grid .bid-col-money { width:9%; }
.bid-budget-grid .bid-col-duration { width:5%; }
.bid-budget-grid .bid-col-actions { width:9%; }
.bid-budget-grid.bid-direct-cost-hidden { min-width:1000px; }
.bid-budget-grid.bid-direct-cost-hidden .bid-direct-cost-column { display:none; }
.bid-budget-grid th,.bid-budget-grid td { height:34px; padding:5px 7px; border-right:1px solid #dce5ea; border-bottom:1px solid #dce5ea; vertical-align:middle; }
.bid-budget-grid td:first-child { position:relative; }
.bid-budget-grid th { position:sticky; top:var(--bid-grid-columns-top,206px); z-index:9; height:32px; color:#fff; background:#155b87; font-size:.58rem; letter-spacing:.035em; text-transform:uppercase; white-space:nowrap; }
.bid-column-resizer { position:absolute; top:0; right:-5px; bottom:0; z-index:2; width:11px; padding:0; border:0; background:transparent; cursor:col-resize; touch-action:none; }
.bid-column-resizer::after { content:""; position:absolute; top:6px; right:5px; bottom:6px; width:2px; border-radius:2px; background:transparent; }
.bid-column-resizer:hover::after,.bid-column-resizer:focus-visible::after,.bid-column-resizer.resizing::after { background:#a8d5eb; }
.bid-column-resizer:focus-visible { outline:2px solid #d7effb; outline-offset:-2px; }
body.bid-column-resize-active { cursor:col-resize; user-select:none; }
.bid-budget-grid tbody tr:nth-child(even):not(.bid-chapter-row):not(.bid-concept-row) td { background:#f9fbfc; }
.bid-budget-grid .bid-concept-row td { color:var(--ink); background:#fff; font-weight:inherit; }
.bid-budget-grid tbody tr.bid-outline-row:hover td,.bid-budget-grid tbody tr.bid-outline-row.selected td { background:#eaf4fa; }
.bid-budget-grid tbody tr.bid-outline-row.selected td { box-shadow:inset 0 2px #1685c1,inset 0 -2px #1685c1; }
.bid-budget-grid tbody tr.bid-outline-row:focus { outline:2px solid #1685c1; outline-offset:-2px; }
@keyframes bid-return-highlight {
  0%,32% { box-shadow:inset 0 0 0 9999px rgb(203 49 49 / 48%),inset 0 0 0 2px #b52222; }
  100% { box-shadow:inset 0 0 0 9999px rgb(203 49 49 / 0%),inset 0 0 0 2px transparent; }
}
.bid-budget-grid tbody tr.bid-return-highlight > td { animation:bid-return-highlight 4s ease-out both; }
@keyframes bid-duplicate-highlight {
  0%,32% { box-shadow:inset 0 0 0 9999px hsl(137 52% 45% / 42%),inset 0 0 0 2px hsl(137 58% 33%); }
  100% { box-shadow:inset 0 0 0 9999px hsl(137 52% 45% / 0%),inset 0 0 0 2px transparent; }
}
.bid-budget-grid tbody tr.bid-duplicate-highlight > td { animation:bid-duplicate-highlight 4s ease-out both; }
@media (prefers-reduced-motion:reduce) {
  .bid-budget-grid tbody tr.bid-return-highlight > td,
  .bid-budget-grid tbody tr.bid-duplicate-highlight > td { animation-duration:1.2s; }
}
.bid-budget-grid td:nth-child(n+4):nth-child(-n+8) { font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap; }
.bid-budget-grid td:nth-child(3) { text-align:center; text-transform:uppercase; }
.bid-budget-grid td:nth-child(2) a { color:#234b66; text-decoration:none; }
.bid-budget-grid td:nth-child(2) a:hover { color:#0b689e; text-decoration:underline; }
.bid-budget-grid .bid-chapter-row td { height:32px; color:#163f5b; background:#cfe3ef; }
.bid-budget-grid .bid-chapter-depth-1 td { background:#dceaf3; }
.bid-budget-grid .bid-chapter-depth-2 td { background:#e6f0f5; }
.bid-budget-grid .bid-chapter-depth-3 td { background:#eef5f8; }
.bid-budget-grid .bid-chapter-depth-4 td { background:#f4f8fa; }
.bid-budget-grid .bid-chapter-row td:nth-child(2),.bid-budget-grid .bid-concept-row td:nth-child(2) { padding-left:calc(7px + (var(--bid-depth, 0) * 14px)); }
.bid-catalog-internal-note { margin:5px -2px -2px; padding:6px 8px; border:1px solid #ead68b; border-radius:5px; color:#5e4a0d; background:#fff7cc; font-size:.75rem; font-weight:600; line-height:1.4; white-space:normal; }
.bid-catalog-internal-note strong { color:#493805; }
.bid-catalog-internal-note p { margin:0; display:inline; }
.bid-analysis-dot { width:11px; height:11px; margin-right:5px; display:inline-block; border:3px solid #c77b08; border-radius:50%; background:#fff4d8; vertical-align:middle; }
.bid-analysis-dot.complete { border-color:#1478ae; background:#55b5df; }
.bid-code-cell { display:flex; align-items:center; gap:3px; }
.bid-code-cell .bid-analysis-dot { margin-right:1px; flex:0 0 auto; }
.bid-drag-handle { width:13px; height:22px; margin-left:-4px; padding:0; flex:0 0 13px; border:0; border-radius:4px; color:#55788d; background:transparent; opacity:.48; cursor:grab; touch-action:none; }
.bid-drag-handle span { width:9px; height:15px; margin:auto; display:block; background-image:radial-gradient(circle,currentColor 1.2px,transparent 1.4px); background-position:0 0; background-size:4px 5px; }
.bid-drag-handle:hover { color:#0f6f9f; background:#dcecf4; opacity:1; }
.bid-drag-handle:active { cursor:grabbing; }
.bid-drag-handle:focus-visible { outline:2px solid #1685c1; outline-offset:1px; opacity:1; }
.bid-outline-row.bid-row-dragging { opacity:.38; }
.bid-outline-row.bid-row-moving { pointer-events:none; opacity:.55; }
.bid-budget-grid tbody tr.bid-drop-before td { box-shadow:inset 0 3px #0b80bb; }
.bid-budget-grid tbody tr.bid-drop-after td { box-shadow:inset 0 -3px #0b80bb; }
.bid-budget-grid tbody tr.bid-drop-inside td { background:#c8e6f4; box-shadow:inset 0 0 0 2px #0b80bb; }
.bid-chapter-toggle { width:34px; height:34px; padding:0; display:grid; place-items:center; flex:0 0 34px; border:1px solid #8ab2ca; border-radius:7px; color:#075985; background:#f2f8fc; cursor:pointer; }
.bid-chapter-toggle::before { content:"▾"; display:block; font-size:1.48rem; font-weight:900; line-height:.8; transform-origin:center; transition:transform .12s ease; }
.bid-chapter-toggle[aria-expanded="false"]::before { transform:rotate(-90deg); }
.bid-chapter-toggle:hover { border-color:#4f91b5; color:#063f61; background:#d9edf7; }
.bid-chapter-toggle:focus-visible { outline:2px solid #1685c1; outline-offset:1px; }
.bid-inline-code { min-width:0; font-weight:850; }
.bid-budget-grid .bid-inline-unit { position:relative; grid-template-columns:minmax(0,1fr); width:100%; max-width:100%; min-width:0; }
.bid-budget-grid .bid-inline-unit select { box-sizing:border-box; max-width:100%; }
.bid-budget-grid .bid-inline-unit .bid-inline-status { position:absolute; top:100%; right:0; z-index:4; background:#fff; }
.bid-inline-unit { font-weight:inherit; text-align:center; text-transform:uppercase; }
.bid-inline-select select { width:100%; min-width:0; padding:3px 1px; border:1px solid transparent; border-radius:4px; color:inherit; background:transparent; font:inherit; font-weight:inherit; text-align:center; text-transform:uppercase; appearance:none; cursor:pointer; }
.bid-inline-select select:hover,.bid-inline-select select:focus { border-color:#8eb8cf; background:#fff; outline:0; }
.bid-insert-row { position:absolute; left:-13px; bottom:-9px; z-index:6; width:18px; height:18px; padding:0; display:grid; place-items:center; border:1px solid #84afc8; border-radius:50%; color:#fff; background:#1478ae; box-shadow:0 1px 4px rgb(12 65 97 / 24%); font-size:.78rem; font-weight:900; line-height:1; opacity:0; cursor:pointer; transition:opacity .12s ease,transform .12s ease; }
.bid-empty-catalog .button-row { margin-top:12px; justify-content:center; }
.bid-outline-row:hover .bid-insert-row,.bid-insert-row:hover,.bid-insert-row:focus-visible { opacity:1; transform:scale(1.08); outline:none; }
.bid-insert-draft td { background:#eef7fb !important; box-shadow:inset 0 2px #1685c1,inset 0 -2px #1685c1; }
.bid-insert-draft input,.bid-insert-draft select { width:100%; min-width:0; min-height:27px; margin:0; padding:4px 6px; border:1px solid #90b7cc; border-radius:4px; color:#173d56; background:#fff; font:inherit; }
.bid-insert-code-preview { padding-left:3px; color:#173d56; font-variant-numeric:tabular-nums; }
.bid-continuous-type { width:100%; margin-top:3px; padding:1px 2px; border:0; color:#527086; background:transparent; font-size:.58rem; font-weight:750; }
.bid-code-renumber-preview { color:#0e729f; }
.bid-insert-draft td:nth-child(n+4):nth-child(-n+8) input { text-align:right; }
.bid-insert-draft form { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:4px; }
.bid-insert-submit { min-height:27px; max-width:100%; padding:4px 8px; white-space:normal; overflow-wrap:anywhere; }
.bid-insert-cancel { width:24px; height:24px; padding:0; border:0; color:#8d4a43; background:transparent; font-size:1rem; cursor:pointer; }
.bid-insert-draft.saving { opacity:.65; }
.bid-insert-draft.error td { box-shadow:inset 0 2px #b42318,inset 0 -2px #b42318; }
.bid-grid-open { margin-right:4px; color:#0f6594; font-size:.61rem; font-weight:850; white-space:nowrap; }
.bid-grid-duplicate { width:24px; height:24px; padding:0; border:1px solid transparent; border-radius:5px; color:#17678f; background:transparent; font-size:.82rem; line-height:1; cursor:pointer; }
.bid-grid-duplicate:hover { border-color:#acd1e2; background:#e7f4fa; }
.bid-grid-remove { width:24px; height:24px; padding:0; border:1px solid transparent; border-radius:5px; color:#8d4a43; background:transparent; font-size:.95rem; line-height:1; cursor:pointer; }
.bid-grid-remove:hover { border-color:#e6b8b2; background:#fdebea; }
.bid-budget-grid td:last-child form { display:inline-block; }
.bid-concept-editor label { margin:0; display:grid; gap:3px; color:#526d81; font-size:.59rem; font-weight:850; }
.bid-concept-editor input,.bid-concept-editor select,.bid-concept-editor textarea { width:100%; min-height:31px; padding:5px 7px; border-radius:5px; font-size:.69rem; }
.bid-capture-pair { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.bid-apu-header h1 { max-width:1000px; font-size:1.5rem; line-height:1.15; }
.bid-record-navigation { display:flex; align-items:center; gap:6px; }
.bid-apu-kpis { grid-template-columns:repeat(7,minmax(0,1fr)); }
.bid-apu-kpis article { min-height:58px; }
.bid-apu-workspace { display:grid; grid-template-columns:minmax(720px,1fr) 310px; align-items:start; gap:10px; }
.bid-internal-notes { position:relative; z-index:1; clear:both; margin-top:10px; padding:14px; border:1px solid #dfcc7c; border-radius:10px; background:#fff9dc; box-shadow:0 4px 14px rgb(73 56 5 / 5%); }
.bid-internal-notes header { display:flex; align-items:end; justify-content:space-between; gap:20px; }
.bid-internal-notes h2 { margin:2px 0 0; font-size:1rem; }
.bid-internal-notes header > p { max-width:620px; margin:0; color:#6a5a24; font-size:.66rem; text-align:right; }
.bid-internal-notes form { margin-top:10px; }
.bid-internal-notes textarea { box-sizing:border-box; width:100%; min-height:92px; padding:9px 10px; resize:vertical; border:1px solid #cdbb72; border-radius:6px; color:#302907; background:#fffef6; font:inherit; font-size:.72rem; line-height:1.4; }
.bid-internal-notes textarea:focus { border-color:#9d7c00; outline:3px solid rgb(157 124 0 / 14%); }
.bid-internal-notes footer { margin-top:7px; display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.bid-internal-notes [data-bid-notes-status] { color:#615523; font-size:.62rem; }
.bid-internal-notes__readonly p,.bid-internal-notes .empty-state { margin:10px 0 0; color:#5e4a0d; font-size:.72rem; }
.bid-apu-grid-wrap { max-height:none; overflow-x:auto; overflow-y:hidden; overscroll-behavior-inline:contain; }
.bid-apu-grid { min-width:1050px; }
.bid-apu-grid .bid-apu-col-type { width:11%; }
.bid-apu-grid .bid-apu-col-code { width:10%; }
.bid-apu-grid .bid-apu-col-description { width:31%; }
.bid-apu-grid .bid-apu-col-unit { width:7%; }
.bid-apu-grid .bid-apu-col-quantity { width:9%; }
.bid-apu-grid .bid-apu-col-waste { width:9%; }
.bid-apu-grid .bid-apu-col-cost { width:10%; }
.bid-apu-grid .bid-apu-col-amount { width:10%; }
.bid-apu-grid .bid-apu-col-actions { width:3%; }
.bid-apu-grid thead th { position:static; top:auto; }
.bid-apu-grid th,.bid-apu-grid td { height:auto; min-height:34px; }
.bid-apu-grid td:nth-child(3) { text-align:left; text-transform:none; white-space:normal; }
.bid-apu-grid .bid-inline-content__editor { display:block; overflow:visible; white-space:pre-wrap; -webkit-line-clamp:unset; line-clamp:unset; }
.bid-apu-grid .bid-inline-decimal { display:grid; grid-template-columns:auto minmax(2.8rem,1fr) auto; align-items:center; gap:.2rem; }
.bid-apu-grid .bid-inline-decimal .bid-inline-content__editor { text-align:right; white-space:nowrap; }
.bid-apu-grid .bid-inline-select select { min-height:28px; font-size:.66rem; font-weight:750; }
.bid-apu-grid .bid-component-price-status > span:last-child { min-width:0; overflow-wrap:anywhere; }
.bid-apu-grid tfoot th,.bid-apu-grid tfoot td { position:static; color:#fff; background:#123f60; }
.bid-chapter-grid-wrap { max-height:58vh; }
.bid-chapter-analysis-grid { min-width:940px; }
.bid-chapter-analysis-grid tfoot th,.bid-chapter-analysis-grid tfoot td { position:sticky; bottom:0; color:#fff; background:#123f60; }
.bid-inline-edit { display:grid; grid-template-columns:minmax(8rem,1fr) auto; align-items:center; gap:.35rem; margin:0; }
.bid-inline-edit textarea,.bid-inline-edit input { width:100%; min-width:0; margin:0; padding:.32rem .45rem; border:1px solid transparent; border-radius:.35rem; background:transparent; color:inherit; font:inherit; line-height:1.25; }
.bid-inline-edit textarea[data-bid-description-editor] { min-height:0; max-height:none; overflow:hidden; overflow-wrap:anywhere; resize:none; transition:border-color .12s ease,background-color .12s ease; }
.bid-inline-edit textarea[data-bid-description-editor]:focus { overflow:hidden; }
.bid-description-preview { display:-webkit-box; overflow:hidden; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; }
.bid-inline-content { position:relative; display:block; min-width:0; }
.bid-inline-content__editor { min-width:0; display:-webkit-box; overflow:hidden; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; white-space:pre-wrap; cursor:text; }
.bid-inline-content__editor[data-bid-single-line="true"] { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bid-inline-content__editor:empty::before { color:#7a8e9d; content:attr(data-placeholder); }
.bid-inline-content__editor:hover { text-decoration:underline dotted #7ba4bd; text-underline-offset:3px; }
.bid-inline-content__editor:focus { display:block; overflow:visible; margin:-3px -5px; padding:3px 5px; border-radius:4px; background:#fff; box-shadow:inset 0 0 0 1px #7fb6d5,0 0 0 2px rgb(40 120 181 / 12%); outline:none; text-decoration:none; white-space:pre-wrap; -webkit-line-clamp:unset; line-clamp:unset; }
.bid-inline-content__editor[data-bid-single-line="true"]:focus { white-space:nowrap; }
.bid-inline-content .bid-inline-status { position:absolute; top:100%; right:0; z-index:4; padding:1px 4px; border-radius:3px; background:#fff; }
.bid-inline-content.saving .bid-inline-content__editor { opacity:.65; }
.bid-inline-content.error .bid-inline-content__editor { color:#8f251d; text-decoration:underline wavy #b42318; }
.bid-inline-edit textarea:hover,.bid-inline-edit textarea:focus,.bid-inline-edit input:hover,.bid-inline-edit input:focus { border-color:#b8cadb; background:#fff; outline:none; }
.bid-inline-edit.saving textarea,.bid-inline-edit.saving input { opacity:.65; }
.bid-inline-edit.error textarea,.bid-inline-edit.error input { border-color:#b42318; }
.bid-inline-status { color:#5f7285; font-size:.55rem; white-space:nowrap; }
.bid-inline-edit.error .bid-inline-status { color:#b42318; }
.bid-inline-cost { grid-template-columns:auto minmax(6.5rem,1fr) auto; white-space:nowrap; }
.bid-inline-cost input { text-align:right; }
.bid-markup-breakdown { display:flex; align-items:baseline; justify-content:flex-end; gap:.42rem; white-space:nowrap; }
.bid-inline-percentage { display:inline-grid; grid-template-columns:minmax(1.7rem,auto) auto auto; gap:.16rem; width:auto; min-width:0; }
.bid-inline-percentage .bid-inline-content__editor { text-align:right; }
.bid-inline-quantity { width:100%; }
.bid-inline-quantity .bid-inline-content__editor { text-align:right; }
.bid-inline-percentage .bid-inline-status { position:absolute; }
.bid-markup-percentage { color:#17384f; }
.bid-markup-amount { min-width:4.8rem; color:#536e82; font-size:.61rem; font-weight:650; text-align:right; }
.bid-apu-header > div > .bid-inline-edit { max-width:70rem; margin:.3rem 0 .55rem; }
.bid-apu-header > div > .bid-inline-edit textarea { font-size:1.15rem; font-weight:650; }
.bid-resource-type { padding:3px 6px; display:inline-block; border-radius:10px; color:#194f70; background:#e6f1f7; font-size:.57rem; font-weight:850; white-space:nowrap; }
.bid-resource-type.labor { color:#704f16; background:#fff1ce; }.bid-resource-type.equipment { color:#4d5380; background:#eceeff; }.bid-resource-type.tool { color:#76514a; background:#f9eae7; }
.bid-resource-capture { border-top:1px solid #cbdbe4; }
.bid-resource-capture header { padding:8px 10px; display:flex; align-items:baseline; justify-content:space-between; gap:16px; background:#f4f8fa; }
.bid-resource-capture h3 { margin:0; font-size:.88rem; }.bid-resource-capture p { margin:0; color:#647b8c; font-size:.62rem; }
.bid-resource-form { padding:8px 10px 10px; display:grid; grid-template-columns:repeat(6,minmax(90px,1fr)); align-items:end; gap:6px; }
.bid-resource-form label { margin:0; display:grid; gap:2px; color:#536f83; font-size:.56rem; font-weight:850; }
.bid-resource-submit { min-width:130px; display:grid; gap:3px; }
.bid-resource-submit [data-bid-resource-status] { min-height:.75rem; color:#526f82; font-size:.55rem; line-height:1.2; }
.bid-resource-submit .button { width:100%; }
.bid-resource-form input,.bid-resource-form select { box-sizing:border-box; width:100%; height:30px; min-height:30px; padding:4px 6px; border:1px solid #9fb7c7; border-radius:5px; color:#17364f; background-color:#fff; box-shadow:none; font:inherit; font-size:.67rem; line-height:1.2; }
.bid-resource-form select { padding-right:24px; appearance:none; -webkit-appearance:none; background-image:linear-gradient(45deg,transparent 50%,#355a72 50%),linear-gradient(135deg,#355a72 50%,transparent 50%); background-position:calc(100% - 11px) 50%,calc(100% - 7px) 50%; background-repeat:no-repeat; background-size:4px 4px,4px 4px; }
.bid-resource-form input:focus,.bid-resource-form select:focus { border-color:#2878b5; outline:0; box-shadow:0 0 0 3px rgb(40 120 181 / 13%); }
.bid-resource-form .wide { grid-column:span 2; }
.bid-resource-costing-fields { grid-column:1 / -1; padding:7px; display:grid; grid-template-columns:repeat(6,minmax(100px,1fr)); gap:6px; border:1px solid #c9dbe5; border-radius:6px; background:#f7fafc; }
.bid-resource-costing-fields [hidden] { display:none; }
.bid-resource-cost-preview { padding:6px 8px; border-radius:5px; color:#155b88; background:#e9f3f8; font-size:.65rem; font-weight:850; }
.bid-resource-cost-preview.error { color:#8f251d; background:#fff0ed; }
.bid-resource-catalog-row .bid-resource-costing-fields { margin-top:5px; grid-template-columns:repeat(2,minmax(120px,1fr)); }
.bid-resource-catalog-row .bid-resource-costing-fields label { display:grid; gap:2px; color:#536f83; font-size:.54rem; font-weight:800; }
.bid-sync-drafts { margin-top:5px; display:flex; align-items:flex-start; gap:5px; color:#536f83; font-size:.55rem; font-weight:750; }
.bid-sync-drafts input { width:auto; min-width:auto; }
.bid-field-indirect-breakdown { margin:10px 0; padding:12px; }
.bid-field-indirect-breakdown dl { margin:8px 0 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:6px 16px; }
.bid-field-indirect-breakdown dl div { display:flex; justify-content:space-between; gap:12px; color:#31566d; font-size:.72rem; }

/* dedicated indirect-cost worksheet and cash flow. */
.bid-indirect-heading { margin-bottom:12px; }
.bid-indirect-heading > div { max-width:900px; }
.bid-indirect-heading h1 { margin:2px 0 4px; }
.bid-indirect-heading p:last-child { margin:0; color:#60788b; }
.bid-indirect-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
.bid-indirect-sheet,.bid-indirect-cash-flow { margin:12px 0; padding:14px; }
.bid-indirect-grid-scroll { overflow-x:auto; border:1px solid #c8d9e5; border-radius:10px; background:#fff; }
.bid-indirect-grid { min-width:1040px; display:grid; grid-template-columns:150px minmax(360px,2fr) 260px 165px 120px; }
.bid-indirect-grid-header { position:sticky; top:0; z-index:2; color:#fff; background:#175f88; }
.bid-indirect-grid-header span { padding:10px 8px; border-right:1px solid rgb(255 255 255 / 30%); font-size:.61rem; font-weight:900; letter-spacing:.03em; text-transform:uppercase; }
.bid-indirect-row { margin:0; border-bottom:1px solid #d4e2eb; background:#fff; }
.bid-indirect-row:last-child { border-bottom:0; }
.bid-indirect-row:hover { background:#f4f9fc; }
.bid-indirect-row > label,.bid-indirect-row > output,.bid-indirect-row-actions { min-width:0; margin:0; padding:8px; display:flex; align-items:center; border-right:1px solid #d4e2eb; }
.bid-indirect-row > label > span,.bid-indirect-row > output > span { display:none; }
.bid-indirect-row input,.bid-indirect-row select,.bid-indirect-row textarea { width:100%; min-width:0; padding:7px 8px; border:1px solid transparent; border-radius:6px; color:#17384f; background:transparent; font:inherit; }
.bid-indirect-code input { font-size:.72rem; font-weight:800; }
.bid-indirect-row textarea { min-height:52px; resize:vertical; line-height:1.35; }
.bid-indirect-row input:not(:disabled):hover,.bid-indirect-row select:not(:disabled):hover,.bid-indirect-row textarea:not(:disabled):hover { border-color:#b7cedd; background:#fff; }
.bid-indirect-row input:focus,.bid-indirect-row select:focus,.bid-indirect-row textarea:focus { outline:3px solid rgb(39 145 207 / 18%); border-color:#238ccc; background:#fff; }
.bid-indirect-row input:disabled,.bid-indirect-row select:disabled,.bid-indirect-row textarea:disabled { opacity:1; -webkit-text-fill-color:#17384f; }
.bid-indirect-row output { justify-content:flex-end; font-variant-numeric:tabular-nums; text-align:right; }
.bid-indirect-row-actions { justify-content:center; gap:6px; border-right:0; }
.bid-indirect-new-row { background:#edf6fb; box-shadow:inset 4px 0 #1686bd; }
.bid-indirect-integration { border-bottom:1px solid #c8d9e5; background:#f5f9fc; }
.bid-indirect-integration > summary { padding:9px 14px; cursor:pointer; color:#075b88; font-size:.73rem; font-weight:850; }
.bid-indirect-component-scroll { margin:0 12px 12px; overflow-x:auto; border:1px solid #c8d9e5; border-radius:8px; background:#fff; }
.bid-indirect-component-grid { min-width:1810px; display:grid; grid-template-columns:125px 125px minmax(300px,2fr) 82px 90px 132px 132px 115px 90px 140px 155px 105px; }
.bid-indirect-component-header { color:#fff; background:#447996; }
.bid-indirect-component-header span { padding:8px 7px; border-right:1px solid rgb(255 255 255 / 28%); font-size:.56rem; font-weight:900; letter-spacing:.03em; text-transform:uppercase; }
.bid-indirect-component-row { margin:0; border-bottom:1px solid #d9e5ec; background:#fff; }
.bid-indirect-component-row:last-child { border-bottom:0; }
.bid-indirect-component-row:hover { background:#f8fbfd; }
.bid-indirect-component-row > label,.bid-indirect-component-row > output,.bid-indirect-component-row > .bid-indirect-row-actions { min-width:0; margin:0; padding:7px; display:flex; align-items:center; border-right:1px solid #d9e5ec; }
.bid-indirect-component-row label > span,.bid-indirect-component-row output > span { display:none; }
.bid-indirect-component-row input,.bid-indirect-component-row select,.bid-indirect-component-row textarea { width:100%; min-width:0; padding:6px 7px; border:1px solid transparent; border-radius:5px; color:#17384f; background:transparent; font:inherit; }
.bid-indirect-component-row textarea { min-height:48px; resize:vertical; line-height:1.3; }
.bid-indirect-component-row input:not(:disabled):hover,.bid-indirect-component-row select:not(:disabled):hover,.bid-indirect-component-row textarea:not(:disabled):hover { border-color:#b7cedd; background:#fff; }
.bid-indirect-component-row input:focus,.bid-indirect-component-row select:focus,.bid-indirect-component-row textarea:focus { outline:3px solid rgb(39 145 207 / 18%); border-color:#238ccc; background:#fff; }
.bid-indirect-component-row output { justify-content:flex-end; text-align:right; font-variant-numeric:tabular-nums; }
.bid-indirect-component-new { background:#edf6fb; box-shadow:inset 3px 0 #1686bd; }
.bid-indirect-cash-flow .table-shell { max-width:760px; }
.bid-indirect-cash-flow table { min-width:520px; }
.bid-indirect-cash-flow td:last-child,.bid-indirect-cash-flow tfoot td { text-align:right; font-variant-numeric:tabular-nums; }
@media (max-width:760px) {
  .bid-indirect-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bid-indirect-grid-scroll { overflow:visible; border:0; background:transparent; }
  .bid-indirect-grid-header { display:none; }
  .bid-indirect-grid { min-width:0; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; }
  .bid-indirect-row { margin-bottom:10px; border:1px solid #c8d9e5; border-radius:10px; overflow:hidden; }
  .bid-indirect-row > label,.bid-indirect-row > output,.bid-indirect-row-actions { padding:9px; display:grid; align-content:start; gap:4px; border-right:0; border-bottom:1px solid #dbe6ed; }
  .bid-indirect-row > label > span,.bid-indirect-row > output > span { display:block; color:#60788b; font-size:.58rem; font-weight:900; letter-spacing:.03em; text-transform:uppercase; }
  .bid-indirect-description { grid-column:1 / -1; }
  .bid-indirect-row-actions { grid-column:1 / -1; display:flex; justify-content:flex-end; }
  .bid-indirect-integration { margin-bottom:12px; border:1px solid #c8d9e5; border-radius:10px; }
  .bid-indirect-component-scroll { margin:0 8px 8px; overflow:visible; border:0; }
  .bid-indirect-component-header { display:none; }
  .bid-indirect-component-grid { min-width:0; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bid-indirect-component-row { margin-bottom:8px; border:1px solid #d4e2eb; border-radius:8px; overflow:hidden; }
  .bid-indirect-component-row > label,.bid-indirect-component-row > output,.bid-indirect-component-row > .bid-indirect-row-actions { padding:8px; display:grid; align-content:start; gap:3px; border-right:0; border-bottom:1px solid #dbe6ed; }
  .bid-indirect-component-row label > span,.bid-indirect-component-row output > span { display:block; color:#60788b; font-size:.54rem; font-weight:900; text-transform:uppercase; }
  .bid-indirect-component-description { grid-column:1 / -1; }
  .bid-indirect-component-row > .bid-indirect-row-actions { grid-column:1 / -1; display:flex; }
}
.bid-indirect-totals { display:grid; gap:4px; min-width:min(100%, 330px); color:#31566d; font-size:.78rem; text-align:right; }
.bid-indirect-totals span { display:flex; justify-content:space-between; gap:20px; }
.bid-indirect-worksheet { margin-top:12px; border-top:1px solid #d6e3ea; padding-top:10px; }
.bid-indirect-worksheet summary { cursor:pointer; color:#075b88; font-weight:800; }
.bid-indirect-worksheet .table-shell { margin-top:8px; max-height:420px; overflow:auto; }
.bid-indirect-worksheet table { min-width:900px; font-size:.78rem; }
.bid-indirect-worksheet td small { display:block; margin-top:2px; color:#607d8f; }
@media (max-width: 720px) {
  .bid-field-indirect-breakdown .section-heading { align-items:stretch; }
  .bid-indirect-totals { text-align:left; }
}
.bid-resource-query { position:relative; }
.bid-resource-suggestions { position:absolute; z-index:30; top:100%; left:0; right:0; max-height:250px; overflow:auto; border:1px solid #9db8ca; border-radius:6px; background:#fff; box-shadow:0 10px 24px rgb(18 63 94 / 18%); }
.bid-resource-suggestions button { width:100%; padding:7px 9px; display:grid; gap:2px; border:0; border-bottom:1px solid #dce7ed; text-align:left; color:#17364f; background:#fff; cursor:pointer; }
.bid-resource-suggestions button:hover,.bid-resource-suggestions button.active { background:#eaf5fb; }
.bid-resource-suggestions button strong { font-size:.7rem; }.bid-resource-suggestions button span { color:#627a8b; font-size:.58rem; }
.bid-resource-catalog-link { color:#145985; font-size:.65rem; font-weight:800; }
.bid-resource-catalog-page { padding-top:14px; }
.bid-resource-catalog-filters { margin:12px 0; display:flex; flex-wrap:wrap; gap:6px; }
.bid-resource-catalog-filters a { padding:6px 10px; border:1px solid #bfd2df; border-radius:18px; color:#24546f; background:#fff; font-size:.7rem; font-weight:750; text-decoration:none; }
.bid-resource-catalog-filters a.active { color:#fff; background:#155b88; border-color:#155b88; }
.bid-resource-catalog-scroll { max-height:calc(100vh - 225px); min-height:280px; padding-left:0; overflow:auto; scrollbar-gutter:stable; }
.bid-resource-catalog-grid { width:100%; min-width:1100px; display:grid; grid-template-columns:130px 100px minmax(270px,1fr) 76px 112px 92px 120px 70px 124px minmax(170px,1fr); }
.bid-resource-catalog-head,.bid-resource-catalog-row { display:contents; }
.bid-resource-catalog-head > strong { position:sticky; top:0; z-index:5; min-width:0; padding:9px 7px; color:#fff; background:#155b88; box-shadow:0 1px #0e4b71; font-size:.62rem; text-transform:uppercase; }
.bid-resource-catalog-row > div { position:relative; padding:3px; border-right:1px solid #d4e1e8; border-bottom:1px solid #d4e1e8; background:#fff; }
.bid-resource-catalog-row:nth-of-type(odd) > div { background:#f7fafc; }
.bid-resource-catalog-grid input,.bid-resource-catalog-grid select,.bid-resource-catalog-grid textarea { box-sizing:border-box; width:100%; min-width:0; padding:5px; border:1px solid transparent; background:transparent; font:inherit; }
.bid-resource-catalog-grid textarea { min-height:42px; overflow:hidden; line-height:1.35; white-space:pre-wrap; overflow-wrap:anywhere; resize:vertical; }
.bid-resource-catalog-grid input:focus,.bid-resource-catalog-grid select:focus,.bid-resource-catalog-grid textarea:focus { border-color:#1884bd; background:#fff; outline:0; }
.bid-resource-catalog-grid .bid-inline-status { position:absolute; right:5px; bottom:3px; }
.bid-resource-catalog-costing { margin:3px 2px 1px; border-top:1px solid #d7e4eb; }
.bid-resource-catalog-costing summary { padding:5px 2px; color:#155b88; font-size:.6rem; font-weight:850; cursor:pointer; }
.bid-resource-catalog-costing[open] { margin-top:5px; border:1px solid #c9dbe5; border-radius:6px; background:#f7fafc; }
.bid-resource-catalog-costing[open] summary { padding:7px; border-bottom:1px solid #d7e4eb; }
.bid-resource-catalog-costing .bid-resource-costing-fields { margin:0; border:0; border-radius:0; }
.bid-resource-catalog-costing .bid-sync-drafts { padding:0 7px 7px; }
.bid-resource-price-date { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.bid-price-freshness { display:inline-flex; align-items:center; gap:4px; min-width:0; color:#3d5668; font-size:.58rem; font-weight:800; line-height:1.2; white-space:nowrap; }
.bid-price-freshness-dot { width:11px; height:11px; flex:0 0 11px; border:2px solid currentColor; border-radius:50%; background:currentColor; box-shadow:0 0 0 2px #fff; }
.bid-price-freshness.current { color:green; }
.bid-price-freshness.review { color:#a15c00; }
.bid-price-freshness.outdated { color:#b42318; }
.bid-component-price-status { margin-top:3px; display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
.bid-apu-inspector { overflow:auto; }
.bid-calculation-memory { box-shadow:none; }
.bid-calculation-memory h2 { margin:2px 0 0; font-size:1rem; }
.bid-calculation-memory dl { margin:0; padding:4px 12px 12px; display:block; }
.bid-calculation-memory dl div { padding:7px 0; display:flex; justify-content:space-between; gap:14px; border-bottom:1px solid #e0e8ed; font-size:.68rem; }
.bid-calculation-memory .total { margin:4px -5px 0; padding:9px 5px; color:#0d5580; background:#e9f3f8; font-size:.82rem; }
.bid-concept-editor { border-top:1px solid #cbdbe4; }
.bid-concept-editor summary { padding:10px 12px; color:#164f73; font-size:.72rem; font-weight:900; cursor:pointer; }
.bid-concept-editor form { padding:0 12px 12px; display:grid; gap:7px; }
@media (max-width:900px) {
  .bid-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bid-release-panel { align-items:stretch; flex-direction:column; }
  .bid-command-bar { top:58px; overflow:auto; }
  .bid-command-revision { display:none; }
  .bid-kpi-strip,.bid-kpi-strip.commercial { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .bid-kpi-strip article:nth-child(3n) { border-right:0; }
  .bid-inline-capture form { grid-template-columns:120px 90px minmax(220px,1fr) 110px; }
  .bid-apu-workspace { grid-template-columns:1fr; }
  .bid-apu-inspector { position:static; max-height:none; display:grid; grid-template-columns:1fr 1fr; }
  .bid-resource-form { grid-template-columns:repeat(3,minmax(100px,1fr)); }
  .bid-allocation-form { grid-template-columns:1fr 1fr; }
  .bid-comparison-totals { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bid-comparison-totals article:nth-child(2) { border-right:0; }
  .bid-budget-grid-wrap { overflow-x:auto; overflow-y:visible; overscroll-behavior-inline:contain; }
  .bid-resource-catalog-scroll { max-height:65vh; overflow:auto; }
}
@media (max-width:620px) {
  .bid-summary-grid { grid-template-columns:1fr; }
  .inline-release-form { align-items:stretch; flex-direction:column; width:100%; }
  .inline-release-form input[type="text"] { min-width:0; width:100%; }
  .bid-calculation-memory dl { grid-template-columns:1fr; }
  .bid-command-bar { margin:-8px -12px 10px; border-radius:0; }
  .bid-command-bar nav a { padding:0 9px; white-space:nowrap; }
  .bid-command-meta { gap:2px; }
  .bid-view-toggle { padding-inline:5px; white-space:nowrap; }
  .bid-workspace-header { align-items:stretch; flex-direction:column; }
  .bid-comparison-selectors { align-items:stretch; flex-wrap:wrap; }
  .bid-comparison-selectors label { flex:1 1 120px; }
  .bid-comparison-totals { grid-template-columns:1fr; }
  .bid-comparison-totals article { border-right:0; border-bottom:1px solid #d7e4eb; }
  .bid-kpi-strip,.bid-kpi-strip.commercial { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bid-kpi-strip article:nth-child(2n) { border-right:0; }
  .bid-grid-pane { width:100%; }
  .bid-grid-toolbar { grid-template-columns:1fr; }
  .bid-grid-toolbar > span { padding:2px 0; }
  .bid-inline-capture form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bid-inline-capture form .wide { grid-column:1 / -1; }
  .bid-budget-grid-wrap { max-height:none; }
  .bid-resource-catalog-scroll { max-height:65vh; }
  .bid-apu-kpis { display:flex; overflow:auto; }
  .bid-apu-kpis article { min-width:132px; }
  .bid-record-navigation { flex-wrap:wrap; }
  .bid-apu-inspector { display:block; }
  .bid-resource-form { grid-template-columns:repeat(2,minmax(100px,1fr)); }
  .bid-resource-form .wide { grid-column:1 / -1; }
  .bid-resource-costing-fields { grid-template-columns:1fr 1fr; }
  .bid-allocation-form { grid-template-columns:1fr; }
}

@media print { .bid-internal-notes,.bid-catalog-internal-note { display:none!important; } }

/* Configurable payment applications and milestone generators. */
.estimate-configuration-form { width:100%; max-width:none; display:grid; gap:18px; }
.estimate-configuration-section { padding-bottom:18px; border-bottom:1px solid var(--line); }
.estimate-configuration-section:last-of-type { border-bottom:0; }
.estimate-client-logo-preview { margin-top:10px; width:180px; height:90px; padding:12px; display:grid; place-items:center; border:1px solid var(--line); border-radius:12px; background:#fff; }
.estimate-client-logo-preview img { max-width:100%; max-height:100%; object-fit:contain; }
.estimate-configurable-list { display:grid; gap:12px; }
.estimate-configurable-row { min-width:0; padding:14px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; align-items:end; gap:12px; border:1px solid #cbdde7; border-radius:12px; background:#f7fafc; box-shadow:0 2px 8px rgb(15 45 66 / 4%); }
.estimate-configurable-row.milestone { grid-template-columns:minmax(220px,1fr) 180px auto; }
.estimate-configurable-row label { min-width:0; margin:0; display:grid; gap:5px; color:#526d81; font-size:.72rem; font-weight:800; }
.estimate-configurable-row input[type="text"],.estimate-configurable-row input[type="number"] { width:100%; min-width:0; min-height:40px; padding:9px 10px; border:1px solid #b7cad9; border-radius:8px; color:var(--ink); background:#fff; font:inherit; }
.estimate-configurable-row > .checkbox-label { min-height:40px; padding:0 10px; display:flex; align-items:center; justify-content:center; gap:7px; border:1px solid #d7e2e9; border-radius:8px; color:#7d4139; background:#fff; white-space:nowrap; }
.estimate-configurable-row > .checkbox-label input { flex:0 0 auto; }
.estimate-configurable-row > button { min-height:40px; }
.estimate-generator-row > td { padding:0!important; background:#f4f8fa!important; }
.estimate-generator-row details > summary { padding:10px 14px; color:#155b88; font-weight:800; cursor:pointer; }
.estimate-generator-list { padding:0 12px; display:grid; gap:10px; }
.estimate-generator-card { padding:12px; border:1px solid #c7d9e4; border-radius:10px; background:#fff; }
.estimate-generator-row [data-add-generator] { margin:10px 12px 12px; }
@media (max-width:800px) {
  .estimate-configurable-row,.estimate-configurable-row.milestone { grid-template-columns:1fr 1fr; }
  .estimate-configurable-row .checkbox-label,.estimate-configurable-row button { grid-column:1 / -1; }
  .estimate-print-header { grid-template-columns:1fr auto; }
  .estimate-print-client-brand { grid-column:1; grid-row:2; }
  .estimate-print-document-id { grid-column:2; grid-row:1 / span 2; }
}
@media (max-width:520px) { .estimate-configurable-row,.estimate-configurable-row.milestone { grid-template-columns:1fr; } }

/* cumulative project resource curve */
.resource-curve-card { margin:22px 0; padding:22px; border:1px solid #cbdde7; border-radius:16px; background:#fff; box-shadow:0 12px 30px rgb(15 45 66 / 7%); }
.resource-curve-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; }
.resource-curve-heading h2 { margin:2px 0 6px; }
.resource-curve-heading p { margin:0; color:#577083; }
.resource-curve-period { flex:0 0 auto; padding:8px 11px; border-radius:999px; color:#164f73; background:#edf6fa; font-size:.76rem; font-weight:800; text-transform:capitalize; }
.resource-curve-legend { margin:18px 0 8px; display:flex; flex-wrap:wrap; gap:10px 24px; color:#314f63; font-size:.78rem; font-weight:750; }
.resource-curve-legend span { display:inline-flex; align-items:center; gap:7px; }
.resource-curve-swatch { width:24px; height:4px; display:inline-block; border-radius:99px; background:#0e5a88; }
.resource-curve-swatch.is-cash { background:#d78317; }
.resource-curve-swatch.is-estimates { background:#147f9f; }
.resource-curve-swatch.is-actual { background:#d78317; }
.resource-curve-chart-shell { width:100%; overflow-x:auto; }
.resource-curve-chart { width:100%; min-width:620px; height:auto; display:block; overflow:visible; }
.resource-curve-gridline { stroke:#dce7ed; stroke-width:1; vector-effect:non-scaling-stroke; }
.resource-curve-axis-label { fill:#657b8a; font-size:11px; font-weight:700; }
.resource-curve-line { fill:none; stroke:#0e5a88; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.resource-curve-line.is-cash { stroke:#d78317; }
.resource-curve-line.is-estimates { stroke:#147f9f; }
.resource-curve-line.is-actual { stroke:#d78317; }
.productivity-chart-section { margin-top:24px; padding-top:22px; border-top:1px solid #dce7ed; }
.productivity-chart-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; }
.productivity-chart-heading h3 { margin:2px 0 0; font-size:1.18rem; }
.productivity-chart-heading .resource-curve-legend { margin:0; justify-content:flex-end; }
.productivity-chart-section > p { margin:6px 0 10px; color:#577083; font-size:.86rem; }
.histogram-bar.is-planned { fill:#0e5a88; }
.histogram-bar.is-actual { fill:#d78317; }
.productivity-actual-point { fill:#d78317; stroke:#fff; stroke-width:2; vector-effect:non-scaling-stroke; }
.resource-curve-details { margin-top:8px; border-top:1px solid #dce7ed; }
.resource-curve-details summary { padding:12px 0 4px; color:#155b88; font-size:.8rem; font-weight:850; cursor:pointer; }
.resource-curve-note { margin:12px 0 0; padding-top:12px; border-top:1px solid #e3ebef; color:#607788; font-size:.72rem; line-height:1.5; }
@media (max-width:620px) {
  .resource-curve-card { margin:16px 0; padding:15px 12px; border-radius:12px; }
  .resource-curve-heading { flex-direction:column; gap:10px; }
  .resource-curve-period { align-self:flex-start; }
  .resource-curve-legend { display:grid; gap:8px; }
  .productivity-chart-heading { align-items:flex-start; flex-direction:column; }
  .productivity-chart-heading .resource-curve-legend { justify-content:flex-start; }
}
.bid-budget-grid tr:has(.bid-change-badge.pending),
.bid-budget-grid tr.bid-change-pending { background:#fff6cc!important; }
.bid-budget-grid tr:has(.bid-change-badge.reviewed),
.bid-budget-grid tr.bid-change-reviewed { background:hsl(128 45% 94%)!important; }
.bid-change-badge { display:block; width:max-content; max-width:100%; margin-top:4px; padding:3px 8px; border-radius:999px; color:#745600; background:#fff0ad; font-size:.62rem; font-weight:750; }
.bid-change-badge.reviewed,.bid-change-reviewed .bid-change-badge { color:hsl(140 42% 27%); background:hsl(132 42% 87%); }
.bid-change-summary { margin:0 24px 10px; padding:9px 12px; display:flex; gap:10px; align-items:center; border:1px solid #efd98a; border-radius:8px; color:#674d00; background:#fff6cc; font-size:.76rem; }
.bid-change-summary.reviewed { border-color:hsl(132 36% 79%); color:hsl(140 43% 25%); background:hsl(128 45% 94%); }
.bid-change-history { margin:0 24px 10px; font-size:.72rem; }.bid-change-history summary { color:#165b87; font-weight:800; cursor:pointer; }.bid-change-history ol { margin:7px 0 0; padding:0; display:grid; gap:5px; list-style:none; }.bid-change-history li { padding:7px 9px; display:grid; grid-template-columns:minmax(70px,max-content) minmax(0,1fr); gap:2px 10px; border:1px solid #d8e3eb; border-radius:7px; background:#fff; }.bid-change-history li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.bid-change-history li small { grid-column:1/-1; color:#617689; }
@media (max-width:720px) { .bid-change-summary { margin-inline:12px; align-items:flex-start; flex-direction:column; gap:2px; } }

/* Private supplier directory invitations. */
.supplier-invite-form { display:grid; gap:10px; }
.supplier-invite-grid { max-height:300px; padding:8px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; overflow:auto; border:1px solid var(--line); border-radius:10px; background:#f7fafc; }
.supplier-invite-option { min-width:0; padding:9px 10px; display:flex; align-items:flex-start; gap:9px; border:1px solid #d7e3ea; border-radius:9px; background:#fff; cursor:pointer; }
.supplier-invite-option:hover { border-color:#8db8d0; background:#f2f8fb; }
.supplier-invite-option input { margin-top:3px; flex:0 0 auto; }
.supplier-invite-option span { min-width:0; display:grid; gap:2px; }
.supplier-invite-option strong,.supplier-invite-option small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.supplier-invite-option small { color:#647b8c; }
.empty-state.compact { margin:0; padding:12px; }
@media (max-width:700px) { .supplier-invite-grid { grid-template-columns:1fr; } }
.resource-quote-page{display:grid;gap:18px}.resource-quote-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:12px}.spotlight-search{display:grid;gap:5px;min-width:min(430px,100%)}.spotlight-search input{border:1px solid #b8cddd;border-radius:999px;background:#fff;padding:10px 16px;box-shadow:0 6px 18px rgba(12,48,75,.08)}.resource-category-form{display:flex;align-items:center;gap:7px;min-width:300px}.resource-category-form input{min-width:170px}.resource-category-form [aria-live]{color:var(--muted);font-size:11px}.resource-quote-batches{display:grid;gap:18px}.resource-quote-batch{display:grid;gap:14px}.supplier-message-draft{margin:14px 0;padding:14px 16px;border:1px solid #c5d9e7;border-radius:12px;background:#f7fbfd}.supplier-message-draft pre{margin:12px 0 0;white-space:pre-wrap;font:inherit;line-height:1.55}.supplier-category-editor{display:grid;gap:9px}.supplier-category-entry{display:flex;gap:8px}.supplier-category-entry input{flex:1}.supplier-category-tags{display:flex;flex-wrap:wrap;gap:7px;min-height:28px}.supplier-category-tag{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border:1px solid #b8d3e3;border-radius:999px;background:#eaf5fa;color:#174f78;font-size:12px;font-weight:700}.supplier-category-tag button{border:0;background:transparent;color:inherit;cursor:pointer;font-size:16px;line-height:1}.bid-apu-grid td:first-child{white-space:nowrap}.bid-apu-grid td:first-child>input[type=checkbox]{margin-right:7px}
.company-contacts-editor{grid-column:1/-1;margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.company-contact-list{display:grid;gap:14px}.company-contact-card{margin:0;padding:16px;border:1px solid #c8d9e5;border-radius:14px;background:#f8fbfd}.company-contact-card legend{padding:0 8px;color:var(--ink);font-weight:800}.company-contact-card.is-removed{opacity:.48;background:#fff5f3}.company-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.company-contact-grid label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:750}.company-contact-grid input:not([type=checkbox]),.company-contact-grid select,.company-contact-grid textarea{width:100%}.company-contact-grid .full{grid-column:1/-1}.company-contact-check{display:flex!important;align-items:center;align-self:end;grid-template-columns:auto 1fr!important}.company-contact-check input{width:auto}.company-contact-check.danger{color:#9a382d}.company-contact-summary summary{cursor:pointer;color:#174f78}.company-contact-directory{display:grid;gap:8px;margin-top:9px;min-width:340px}.company-contact-directory article{display:grid;grid-template-columns:minmax(130px,1fr) minmax(180px,1fr);gap:12px;padding:9px;border:1px solid #d7e3eb;border-radius:9px;background:#f8fbfd}
.quote-dashboard-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid var(--border);border-radius:16px;background:#fff}.quote-dashboard-summary article{display:grid;gap:4px;padding:16px 18px;border-right:1px solid var(--border)}.quote-dashboard-summary article:last-child{border-right:0}.quote-dashboard-summary small,.quote-resource-table td small{display:block;color:var(--muted);font-size:12px}.quote-dashboard-summary strong{font-size:24px}.quote-request-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.quote-request-card{position:relative;display:grid;gap:6px;padding:15px;border:1px solid var(--border);border-radius:14px;background:#fff;color:inherit;text-decoration:none}.quote-request-card:hover{border-color:#80b1cf;box-shadow:0 8px 24px rgba(12,48,75,.09)}.quote-request-card>.status{position:absolute;top:12px;right:12px}.quote-request-card>strong{padding-right:72px}.quote-request-card>div{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:12px}.quote-request-card time{color:var(--muted);font-size:11px}.quote-status-filter{display:grid;gap:5px;min-width:145px}.quote-resource-table td{vertical-align:top}.quote-resource-table .status{white-space:nowrap}.status.quote-not_quoted{background:#edf2f5;color:#526b7d}.status.quote-prepared{background:#e9f2f8;color:#245c80}.status.quote-sent{background:#e8f1ff;color:#265f9a}.status.quote-opened{background:#fff3d6;color:#765008}.status.quote-received{background:#e8f3f8;color:#245c80}
@media(max-width:760px){.resource-quote-toolbar,.resource-quote-batch .section-heading{align-items:stretch;flex-direction:column}.spotlight-search{min-width:0;width:100%}.resource-category-form{min-width:240px}.supplier-category-entry{align-items:stretch;flex-direction:column}.quote-dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-dashboard-summary article:nth-child(2){border-right:0}.quote-dashboard-summary article:nth-child(-n+2){border-bottom:1px solid var(--border)}.quote-request-cards{grid-template-columns:1fr}.company-contact-grid{grid-template-columns:1fr}.company-contact-grid .full{grid-column:auto}.company-contact-directory{min-width:0}.company-contact-directory article{grid-template-columns:1fr}}
.supplier-trust-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.supplier-trust-summary>div{display:flex;flex-direction:column;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.supplier-trust-summary strong{font-size:22px}.supplier-trust-summary span{color:var(--muted);font-size:11px}.supplier-trust-tabs{display:flex;gap:7px;overflow-x:auto;margin:0 0 12px}.supplier-trust-tabs a{padding:7px 11px;border:1px solid var(--line);border-radius:999px;color:var(--forest);font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}.supplier-trust-tabs a.active{color:white;background:var(--forest)}.supplier-verification-editor{padding:14px;border:1px solid var(--line);border-radius:10px}.supplier-verification-editor legend{padding:0 6px;font-weight:800}@media(max-width:700px){.supplier-trust-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* bounded financing inputs and scrolling tables. */
.bid-financing-inputs { min-width:0; margin:0; padding:0; border:0; }
.bid-financing-inputs .table-wrap { margin-top:16px; }
.bid-financing-inputs td input:not([type="checkbox"]),
.bid-financing-inputs td select { min-width:130px; }
.bid-financing-inputs td input[type="checkbox"] { width:auto; }

/* PO-02: preserve responsive version comparisons. */
.purchase-amendment-comparison { min-width: 0; max-width: 100%; }
.purchase-amendment-comparison .table-shell { max-width: 100%; }
.purchase-amendment-comparison table { width: 100%; table-layout: fixed; }
.purchase-amendment-comparison th, .purchase-amendment-comparison td { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .purchase-amendment-comparison table { min-width: 600px; table-layout: auto; }
  .purchase-amendment-comparison th, .purchase-amendment-comparison td { overflow-wrap: normal; }
}

/* retained proposals keep tablet navigation within the viewport. */
@media (max-width:1200px) {
  .bid-estimate-page .bid-budget-grid-wrap { overflow-x:auto; overflow-y:visible; overscroll-behavior-inline:contain; }
}

/* retained schedule forecast. */
.resource-curve-line.is-forecast { stroke:#147f9f; stroke-dasharray:8 6; }
.resource-curve-swatch.is-forecast { background:#147f9f; }

/* Public landing */
.landing-body{--landing-background:#080d14;background:var(--landing-background);color:#edf3fa;--landing-muted:#a5b4c6;--landing-line:rgba(160,188,219,.17)}
.landing-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:19px 5vw;background:rgba(8,13,20,.88);backdrop-filter:blur(20px);border-bottom:1px solid var(--landing-line)}
.landing-brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:25px;font-weight:750;letter-spacing:-.7px;text-decoration:none}.landing-brand img{filter:brightness(0) invert(1)}
.landing-header nav{display:flex;align-items:center;gap:22px}.landing-header nav a{color:#c8d5e5;text-decoration:none;font-weight:600}.landing-header nav a[lang]{display:grid;place-items:center;width:30px;height:30px;font-size:19px;border-radius:6px}.landing-header nav a[lang]:hover{background:#1c2a3b}.landing-header nav .landing-login{padding:11px 20px;border:1px solid #58718b;border-radius:6px;color:#fff;background:rgba(80,128,171,.1)}
.landing-body a:focus-visible{outline:3px solid #78baff;outline-offset:5px}.landing-body h2,.landing-body h3{color:#edf3fa}.landing-body h2{font-size:clamp(32px,3.3vw,50px);line-height:1.12;letter-spacing:-1.5px;margin:0}.landing-body h3{line-height:1.25;letter-spacing:-.6px}.landing-body p{line-height:1.75}
.landing-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:1.05fr 1fr;min-height:670px;background:#080d14;overflow:hidden;border-bottom:1px solid var(--landing-line)}.landing-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 0 100%,rgba(40,106,172,.18),transparent 65%)}.landing-hero-copy{position:relative;z-index:2;padding:85px 5vw;align-self:center}.landing-eyebrow{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;letter-spacing:1.6px;font-weight:600;margin:0 0 22px;color:#84b4df;text-transform:uppercase}.landing-hero .landing-eyebrow{display:flex;align-items:center;gap:12px}.landing-hero .landing-eyebrow::before{content:"";width:25px;height:2px;background:#84b4df}.landing-hero h1{font-size:clamp(44px,4.8vw,78px);line-height:1.03;letter-spacing:-3px;color:#fff;max-width:720px;margin:0 0 28px}.landing-intro{font-size:17px;max-width:530px;color:#b7c5d6}.landing-button{display:inline-flex;align-items:center;justify-content:space-between;gap:35px;padding:16px 22px;margin-top:20px;background:#dcecff;border:1px solid #dcecff;color:#0b2239;border-radius:6px;font-weight:650;text-decoration:none;transition:background .2s,transform .2s,box-shadow .2s}.landing-button:hover{background:#fff;color:#0b2239;transform:translateY(-2px);box-shadow:0 8px 30px rgba(106,170,230,.15)}
.landing-hero-image{position:relative;min-height:440px}.landing-hero-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:65% center}.landing-hero-image img,.landing-card-image,.landing-benefit-image{filter:saturate(.48) contrast(1.12) brightness(.78);transition:filter .4s ease}.landing-hero-image::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#080d14,rgba(8,13,20,.3) 28%,transparent 60%),linear-gradient(0deg,#080d14,transparent 30%);pointer-events:none}
.landing-section,.landing-news{padding:90px 5vw;max-width:1600px;margin:auto;scroll-margin-top:95px}.landing-industry{display:grid;grid-template-columns:1fr 1fr;gap:9vw;border-bottom:1px solid var(--landing-line)}.landing-industry-copy>p{margin:0;color:var(--landing-muted);font-size:17px}.landing-industry-copy .landing-industry-close{margin-top:24px;color:#d7e7f8}.landing-controls>h2{max-width:750px;margin-bottom:44px}.landing-benefit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.landing-benefit{position:relative;padding:32px;border:1px solid var(--landing-line);border-radius:10px;background:linear-gradient(145deg,#111c2b,#0b121d)}.landing-benefit::before{content:"";position:absolute;top:0;left:32px;width:40px;height:2px;background:#78baff}.landing-benefit h3{font-size:25px;margin:0 0 18px}.landing-benefit>p:last-child{color:var(--landing-muted);font-size:15px;margin:0}
.landing-value{display:grid;grid-template-columns:.85fr 1.15fr;gap:7vw;background:radial-gradient(ellipse at 90% 50%,rgba(32,86,145,.13),transparent 65%);border-block:1px solid var(--landing-line)}.landing-value-heading>p{color:var(--landing-muted);max-width:480px}.landing-value-panel{padding:30px;border:1px solid #354d68;background:linear-gradient(130deg,#142236,#0d1726);border-radius:10px}.landing-value-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.landing-value-grid article+article{border-left:1px solid var(--landing-line);padding-left:30px}.landing-value-grid h3{font-size:17px;margin:12px 0}.landing-value-grid p{color:var(--landing-muted);font-size:14px;margin:0}
.landing-news-heading{margin-bottom:34px;padding-bottom:28px;border-bottom:1px solid var(--landing-line)}.landing-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.landing-news-card{display:flex;flex-direction:column;background:#101925;border:1px solid var(--landing-line);border-radius:10px;overflow:hidden;transition:border-color .2s}.landing-news-card:hover{border-color:#58718b}.landing-news-card:hover .landing-card-image{filter:saturate(.48) contrast(1.12) brightness(.9)}.landing-news-featured{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.landing-card-image{display:block;width:100%;height:280px;object-fit:cover;background:#123c5e}.landing-news-featured .landing-card-image{height:100%;min-height:350px}.landing-card-copy{padding:34px;display:flex;flex-direction:column}.landing-card-copy h3{font-size:clamp(25px,2.2vw,34px);margin:0 0 18px}.landing-card-copy>p:not(.landing-eyebrow){color:var(--landing-muted);margin:0 0 28px}.landing-source{align-self:flex-start;margin-top:auto;color:#92a4bb;font-size:12px;font-weight:400;text-decoration:underline;text-underline-offset:3px}
.landing-platform{padding:75px 5vw;background:linear-gradient(120deg,#14263e,#0b1421);display:flex;justify-content:space-between;gap:40px;align-items:center;border-top:1px solid #354d68}.landing-platform h2{max-width:760px}.landing-platform p:not(.landing-eyebrow){max-width:670px;color:#b7c5d6}.landing-platform .landing-button{flex-shrink:0}.landing-footer{padding:35px 5vw;display:flex;justify-content:space-between;gap:30px;color:#b7c5d6;border-top:1px solid var(--landing-line)}.landing-footer>strong{font-size:20px;letter-spacing:-.5px}.landing-footer nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px 22px;font-size:11px;max-width:750px}.landing-footer nav span{color:#687f98}.landing-footer a{color:#a5b4c6;text-decoration:none}.landing-footer a:hover{color:#fff}
@media(max-width:1050px){.landing-value{grid-template-columns:1fr;gap:30px}.landing-value-heading{max-width:700px}.landing-benefit{padding:25px}.landing-benefit-grid{gap:16px}.landing-hero h1{letter-spacing:-2px}.landing-hero-copy{padding:65px 5vw}}
@media(max-width:900px){.landing-section-link{display:none}.landing-hero{grid-template-columns:1fr}.landing-hero-copy{padding:65px 6vw}.landing-hero-image{min-height:320px}.landing-hero-image::after{background:linear-gradient(180deg,#080d14,transparent 25%),linear-gradient(0deg,#080d14,transparent 25%)}.landing-section,.landing-news{padding:60px 6vw}.landing-industry{gap:40px}.landing-benefit-grid{grid-template-columns:1fr}.landing-benefit{padding:30px}.landing-news-featured{display:flex}.landing-news-featured .landing-card-image{height:300px;min-height:0}.landing-platform{align-items:flex-start;flex-direction:column;gap:15px}.landing-footer{flex-direction:column}.landing-footer nav{justify-content:flex-start}}
@media(max-width:560px){.landing-header{padding:14px 5vw;gap:10px}.landing-brand{font-size:20px;gap:6px}.landing-brand img{width:30px;height:30px}.landing-header nav{gap:8px;font-size:11px}.landing-header nav a[lang]{width:25px;height:28px;font-size:18px}.landing-header nav .landing-login{padding:10px}.landing-hero h1{letter-spacing:-1.6px}.landing-hero-image{min-height:260px}.landing-industry{grid-template-columns:1fr;gap:25px}.landing-value-panel{padding:24px}.landing-value-grid{grid-template-columns:1fr;gap:24px}.landing-value-grid article+article{border-left:0;padding-left:0;border-top:1px solid var(--landing-line);padding-top:24px}.landing-news-grid{grid-template-columns:1fr}.landing-card-image,.landing-news-featured .landing-card-image{height:235px}.landing-card-copy{padding:25px}.landing-body h2{letter-spacing:-1px}.landing-footer nav{gap:14px 20px}}
@media(prefers-reduced-motion:reduce){.landing-button,.landing-news-card,.landing-card-image,.landing-hero-image img{transition:none}.landing-button:hover{transform:none}}

.landing-benefit{overflow:hidden}.landing-benefit-image{display:block;width:calc(100% + 64px);max-width:none;height:210px;object-fit:cover;margin:-32px -32px 28px}.landing-benefit::before{display:none}@media(max-width:1050px){.landing-benefit-image{width:calc(100% + 50px);margin:-25px -25px 25px}}@media(max-width:900px){.landing-benefit-image{width:calc(100% + 60px);margin:-30px -30px 28px;height:260px}}@media(max-width:560px){.landing-benefit-image{height:210px}}

/* construction workflow chapters. */
.landing-hero{grid-template-columns:1.15fr 1fr;min-height:720px}.landing-hero h1{white-space:pre-line;font-weight:500;font-size:clamp(48px,5.7vw,88px);letter-spacing:-4px;line-height:1.02}.landing-hero-copy{padding-block:75px}.landing-hero-secondary{display:flex;align-items:center;gap:20px;width:fit-content;margin-top:26px;color:#a5b4c6;text-decoration:none;font-size:13px}.landing-hero-secondary:hover{color:#fff}.landing-hero-image{clip-path:polygon(12% 0,100% 0,100% 100%,0 100%)}.landing-hero-image img{animation:landing-photo-settle 1.8s ease-out both}.landing-hero-image::before{content:"";position:absolute;z-index:2;left:10%;top:12%;width:48%;height:64%;border:1px solid rgba(183,214,242,.25);pointer-events:none;transform:skewY(-12deg);animation:landing-survey-line 2s ease-out both}.landing-module-link{display:flex;justify-content:space-between;gap:18px;color:#b9dbff;text-decoration:none;font-size:12px;margin-top:25px;padding-top:18px;border-top:1px solid var(--landing-line)}.landing-module-link:hover{color:#fff}.landing-benefit{border-radius:0;background:transparent;border:0;border-left:1px solid var(--landing-line)}.landing-benefit-image{transition:filter .35s,transform .35s}.landing-benefit:hover .landing-benefit-image{transform:translateY(-4px);filter:saturate(.6) contrast(1.1) brightness(.9)}
.landing-workflows{max-width:none;background:#e9edf0;color:#172c3f;padding-block:95px;scroll-margin-top:82px}.landing-workflows h2,.landing-workflows h3{color:#172c3f}.landing-workflow-heading{max-width:930px}.landing-workflow-heading h2{font-weight:500;font-size:clamp(38px,4.9vw,72px);letter-spacing:-2.7px;line-height:1.05}.landing-workflow-heading>p:last-child{max-width:660px;color:#4d6274;font-size:17px}.landing-workflow-heading .landing-eyebrow{color:#496b86}.landing-workflow-index{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:45px 0 65px;border-block:1px solid #bac6d0}.landing-workflow-index a{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#172c3f;text-decoration:none;padding:20px 18px;border-right:1px solid #bac6d0;font-size:13px;font-weight:600}.landing-workflow-index a:first-child{padding-left:0}.landing-workflow-index a:last-child{border-right:0}.landing-workflow-index a:hover{background:#d8e1e8}.landing-workflow-chapters{border-top:1px solid #8da2b4}.landing-workflow-chapter{scroll-margin-top:100px;border-bottom:1px solid #bac6d0;padding:0 0 4px}.landing-workflow-chapter:target{box-shadow:inset 4px 0 #226fa2}.landing-workflow-chapter summary{display:grid;grid-template-columns:220px 1fr 35px;align-items:center;gap:25px;cursor:pointer;padding:30px 12px;list-style:none}.landing-workflow-chapter summary::-webkit-details-marker{display:none}.landing-workflow-label{font-family:ui-monospace,monospace;font-size:11px;letter-spacing:.7px;text-transform:uppercase;color:#496b86}.landing-workflow-chapter summary h3{font-size:clamp(24px,2.5vw,38px);font-weight:500;margin:0;line-height:1.15}.landing-disclosure{font-size:30px;font-weight:300;color:#496b86;transition:transform .25s}.landing-workflow-chapter[open] .landing-disclosure{transform:rotate(45deg)}.landing-workflow-chapter summary:hover h3{color:#226fa2}.landing-workflow-chapter summary:focus-visible{outline:3px solid #226fa2;outline-offset:3px}.landing-workflow-content{display:grid;grid-template-columns:1fr 1fr;gap:7vw;padding:5px 60px 45px 257px;animation:landing-content-in .3s ease-out}.landing-workflow-content p{font-size:15px;color:#4d6274}.landing-workflow-content .landing-workflow-roles{font-size:11px;font-weight:650;color:#226fa2;line-height:1.7;margin-top:0}.landing-workflow-route ol{list-style:none;margin:0;padding:0 0 0 20px;border-left:1px solid #8da2b4}.landing-workflow-route li{position:relative;padding:9px 12px;margin-bottom:12px;font-size:13px;color:#172c3f;border:1px solid #bac6d0;background:rgba(255,255,255,.4)}.landing-workflow-route li::before{content:"";position:absolute;width:7px;height:7px;border:1px solid #226fa2;background:#e9edf0;left:-25px;top:15px}.landing-workflow-evidence{font-size:12px!important;margin:24px 0 0}.landing-workflow-evidence strong{display:block;margin-bottom:6px;color:#172c3f;font-weight:600}.landing-news-card{border-radius:0;background:transparent;border:0}.landing-card-copy{padding-inline:0}.landing-news-featured .landing-card-copy{padding:25px 0 25px 45px}.landing-platform{background:#14263e}.landing-button{border-radius:0}.landing-body{scroll-behavior:smooth}.landing-body .landing-news{padding-block:95px}
@keyframes landing-photo-settle{from{transform:scale(1.035);opacity:.65}to{transform:scale(1);opacity:1}}@keyframes landing-survey-line{from{clip-path:inset(0 100% 100% 0)}to{clip-path:inset(0)}}@keyframes landing-content-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.landing-workflow-content{padding-left:12px}.landing-workflow-chapter summary{grid-template-columns:170px 1fr 30px}.landing-workflow-index a{font-size:12px}}
@media(max-width:900px){.landing-hero{grid-template-columns:1fr;min-height:0}.landing-hero-image{clip-path:none}.landing-hero h1{font-size:clamp(48px,8vw,76px);letter-spacing:-2.5px;max-width:800px}.landing-workflow-content{padding-right:12px;gap:35px}.landing-workflow-index{grid-template-columns:1fr 1fr;margin-bottom:35px}.landing-workflow-index a:nth-child(2){border-right:0}.landing-workflow-index a:nth-child(-n+2){border-bottom:1px solid #bac6d0}.landing-workflow-index a:first-child{padding-left:18px}.landing-news-featured .landing-card-copy{padding:28px 0}.landing-benefit{border-left:0;border-bottom:1px solid var(--landing-line)}}
@media(max-width:560px){.landing-workflow-chapter summary{grid-template-columns:1fr 25px;gap:12px;padding-block:24px}.landing-workflow-label{grid-column:1}.landing-workflow-chapter summary h3{grid-column:1;grid-row:2}.landing-disclosure{grid-column:2;grid-row:1/3}.landing-workflow-content{grid-template-columns:1fr;gap:20px;padding-bottom:28px}.landing-workflow-heading h2{letter-spacing:-1.5px}.landing-workflow-index a{padding:16px 12px;font-size:11px}.landing-hero h1{font-size:49px;letter-spacing:-2px}.landing-workflows{padding-block:60px}.landing-hero-copy{padding-block:50px}}
@media(prefers-reduced-motion:reduce){.landing-hero-image img,.landing-hero-image::before,.landing-workflow-content{animation:none}.landing-benefit-image,.landing-disclosure{transition:none}.landing-benefit:hover .landing-benefit-image{transform:none}.landing-body{scroll-behavior:auto}}

/* Construction team photography preserves the complete device and site composition. */
.landing-workflow-index{grid-template-columns:repeat(4,minmax(0,1fr))}
.landing-workflow-index a{border-bottom:1px solid #bac6d0}
.landing-workflow-index a:nth-child(4){border-right:0}
.landing-workflow-photo{margin:0 12px 45px;overflow:hidden;background:#172c3f}
.landing-workflow-photo img{display:block;width:100%;height:auto;filter:none}
@media(max-width:900px){.landing-workflow-index{grid-template-columns:repeat(2,minmax(0,1fr))}.landing-workflow-index a:nth-child(even){border-right:0}}
@media(max-width:560px){.landing-workflow-photo{margin:0 0 28px}}
/* image-anchored tracking of construction elements. */
.landing-hero-image{overflow:hidden;isolation:isolate}
.landing-hero-image::before{display:none}
.landing-hero-image .landing-tracking-image{opacity:0;animation:none;transform:none;transition:opacity 1.2s ease;pointer-events:none}
.landing-hero-image .landing-tracking-image.is-active{opacity:1}
.landing-motion-field{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.landing-motion-field::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 3px,rgba(132,185,221,.07) 3px 4px);opacity:.45;mix-blend-mode:screen}
.landing-tracking-overlay{display:block;width:100%;height:100%;overflow:hidden}
.landing-motion-frame{fill:rgba(125,184,225,.025);stroke:rgba(187,224,249,.65);stroke-width:1;vector-effect:non-scaling-stroke}
.landing-tracking-target:nth-child(3n) .landing-motion-frame{stroke:rgba(156,200,232,.45);stroke-dasharray:4 3}
.landing-tracking-overlay.is-acquiring{animation:landing-target-acquire 1.2s ease-out}
@keyframes landing-target-acquire{from{opacity:.12}to{opacity:1}}
.landing-motion-control{position:absolute;z-index:4;right:24px;bottom:24px;width:36px;height:36px;border:1px solid rgba(193,219,239,.4);background:rgba(8,13,20,.7);color:#d6e6f2;cursor:pointer;font:14px system-ui;backdrop-filter:blur(8px)}
.landing-motion-control:focus-visible{outline:2px solid #c4e7ff;outline-offset:4px}
.landing-motion-paused .landing-tracking-overlay{animation-play-state:paused}
@media(max-width:560px){.landing-motion-control{right:16px;bottom:16px}}
@media(prefers-reduced-motion:reduce){.landing-hero-image .landing-tracking-image{transition:none}.landing-tracking-overlay.is-acquiring{animation:none}.landing-motion-control{display:none}.landing-motion-field::after{opacity:.2}}

/* shared camera pan keeps target geometry attached. */
.landing-tracking-overlay,.landing-hero-image .landing-tracking-image{transform-origin:center center;will-change:transform}
.landing-tracking-label{font:11px ui-monospace,SFMono-Regular,monospace;letter-spacing:.7px;fill:#d1eafa;stroke:#08111c;stroke-width:3px;paint-order:stroke;stroke-linejoin:round}

/* reviewed reconciliation stays readable on phones. */
.receipt-reconciliation-panel .button { max-width:100%; white-space:normal; }

/* valuation actions stay inside tablet width. */
.progress-estimate-heading { align-items:flex-start; flex-wrap:wrap; }
.progress-estimate-heading > .actions { min-width:0; max-width:100%; flex-wrap:wrap; }
.progress-estimate-heading > .actions > * { max-width:100%; }
.progress-estimate-heading .button { white-space:normal; }

/* closed archive readability. */
.root-archive-checksum { overflow-wrap:anywhere; word-break:break-all; }
.root-deleted-list > header, .root-deleted-list > a { grid-template-columns:max-content minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); }
.root-deleted-list span, .root-deleted-list strong { min-width:0; overflow-wrap:anywhere; }
.root-archive-field-label { display:none; }
@media (max-width:900px) {
  .root-deleted-list > a { grid-template-columns:1fr; }
  .root-archive-field-label { display:block; }
}

.root-deleted-list > a > strong { white-space:nowrap; font-size:.9rem; }

/* explicit supplier-return material choices. */
.receipt-material-allocations { grid-column:1 / -1; min-width:0; margin:0; padding:16px; border:1px solid var(--line); border-radius:12px; }
.receipt-material-allocations legend { font-weight:750; padding:0 6px; }
.receipt-material-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; padding:12px 0; border-top:1px solid var(--line); }
.receipt-material-row strong,.receipt-material-row p { overflow-wrap:anywhere; }
.receipt-material-row p { color:var(--muted); margin:6px 0; }
@media (max-width:760px) { .receipt-material-row { grid-template-columns:1fr; gap:8px; } }

/* original material codes remain readable on phones. */
.receipt-material-history { overflow-wrap:anywhere; }
.receipt-material-capture .form-card { margin-block:1rem; }

.receipt-draft-replacement-history { overflow-wrap:anywhere; }
.receipt-draft-replacement-form { margin-block:1rem; }

.material-transfer-receiving fieldset { min-width: 0; display: grid; gap: .5rem; margin-block: 1rem; }
.material-transfer-receiving legend { overflow-wrap: anywhere; }
.material-transfer-receiving input[type="number"] { min-width: 0; width: 100%; }

.material-installation-source, .material-installation-history { overflow-wrap: anywhere; min-width: 0; }
.material-installation-form, .material-installation-correction-form { display: grid; gap: .75rem; margin-block: 1rem; }
.material-installation-form select, .material-installation-form input, .material-installation-correction-form input, .material-installation-correction-form textarea { min-width: 0; max-width: 100%; }
.material-installation-form label, .material-installation-correction-form label { display: grid; gap: .25rem; }
.material-installation-form select, .material-installation-form input, .material-installation-correction-form input, .material-installation-correction-form textarea { width: 100%; }

.material-return-sources { overflow-wrap: anywhere; }
.material-return-form, .material-return-form label { display: grid; gap: .5rem; }
.material-return-form select, .material-return-form input { width: 100%; min-width: 0; max-width: 100%; }

.material-traceability-row { overflow-wrap: anywhere; }
.material-traceability-quantities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.material-traceability-quantities dd { margin: .25rem 0 0; font-weight: 700; }
.material-traceability-filter { display: grid; gap: .75rem; }
@media (max-width: 700px) { .material-traceability-quantities { grid-template-columns: 1fr; } }
.material-traceability-filter label { display: grid; gap: .25rem; min-width: 0; }
.material-traceability-filter input { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }
.material-traceability-row { min-width: 0; }
.material-source-event { overflow-wrap: anywhere; min-width: 0; }
/* authentication within the public landing. */
.landing-access{position:fixed;inset:0;width:min(560px,calc(100% - 24px));max-width:560px;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid var(--landing-line);border-radius:0;background:#0b1421;color:var(--landing-ink);overflow:auto;overscroll-behavior:contain;scroll-behavior:auto}
.landing-access:not([open]){display:none}.landing-access::backdrop{background:rgba(3,9,16,.72)}.landing-access-close{position:sticky;top:8px;float:right;margin:8px 8px -48px 0;z-index:2;width:36px;height:36px;padding:0;border:1px solid #52677d;border-radius:0;background:#0b1421;color:#eaf2fc;font-size:26px;cursor:pointer}.landing-access .auth-card{margin:0!important;border-radius:0!important}.landing-access .auth-locale-switcher{margin-right:44px}

/* authentication within the public landing. */
.landing-access{max-width:560px;margin:24px auto;padding:0 20px;scroll-margin-top:100px;color:var(--landing-ink)}
.landing-access:not([open]){display:none}
.landing-access>summary{cursor:pointer;font-weight:600;margin-bottom:12px}
.landing-access .auth-card{width:100%;max-width:none;box-sizing:border-box;background:linear-gradient(145deg,#142236,#0b1421);border:1px solid var(--landing-line);border-radius:12px;padding:28px;color:#eaf2fc}
.landing-access .auth-card h2{color:#f4f8ff;font-size:30px}
.landing-access .auth-intro,.landing-access .auth-support,.landing-access .auth-first-access p{color:#b7c5d6}
.landing-access .auth-card a{color:#a9d2ff}
.landing-access .auth-form input:not([type=checkbox]):not([type=submit]){background:#080d14;color:#f4f8ff;border-color:#354d68}
.landing-access .auth-submit{background:#b9dbff;color:#080d14;border-color:#b9dbff}
@media(max-width:560px){.landing-access{padding:0 5vw}.landing-access .auth-card{padding:22px}}
.landing-access .auth-form label,.landing-access .auth-first-access strong{color:#d7e7f8}
.landing-access .auth-first-access{background:#0b1421;border-color:#354d68}
.landing-access .auth-form input.auth-submit{background:#b9dbff;color:#080d14;-webkit-text-fill-color:#080d14}
.landing-access .auth-form input.auth-submit:hover{background:#d7eaff}
.landing-access .auth-user-help{margin-top:22px;color:#b7c5d6}
.landing-access .auth-remember-choice strong{color:#d7e7f8}
.landing-access .auth-remember-choice small{color:#a5b4c6}
/* access feedback belongs inside its modal. */
.landing-access .auth-card .auth-feedback{position:static;inset:auto;width:auto;margin:0 0 18px;box-shadow:none}
.landing-access .auth-locale-switcher{background:#0b1421;border-color:#354d68}
/* compact phones from 375 CSS pixels. */
.landing-access .auth-form,.landing-access .auth-form label,.landing-access .auth-password-field{min-width:0}
.landing-access .auth-form input:not([type=checkbox]){max-width:100%;box-sizing:border-box;font-size:16px}
.landing-access .auth-field-heading{flex-wrap:wrap;gap:6px}
@media(max-width:560px){
  .landing-header{flex-wrap:wrap}
  .landing-header nav{gap:4px;margin-left:auto}
  .landing-header nav a[lang]{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center}
  .landing-header nav .landing-login{min-height:44px;display:inline-flex;align-items:center;box-sizing:border-box}
  .landing-access .auth-card{overflow-wrap:anywhere}
}
@media(max-width:560px){.landing-access{scroll-margin-top:150px}}

/* public construction guides. */
.public-content{max-width:1500px;margin:0 auto;padding:0 5vw;color:#d4e0ed}
.public-content-hero{max-width:1060px;padding:90px 0 65px;border-bottom:1px solid var(--landing-line)}
.public-content-hero h1{font-size:clamp(38px,5.2vw,76px);line-height:1.07;letter-spacing:-2px;color:#f4f8ff;margin:0 0 28px;text-wrap:balance}
.public-content-intro{max-width:800px;font-size:clamp(17px,1.6vw,21px);color:#b7c5d6}
.public-content-layout{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(0,2fr);gap:6vw;padding:60px 0}
.public-content-index{align-self:start;position:sticky;top:110px;display:grid;gap:12px;font-size:14px;border-left:1px solid #354d68;padding-left:20px}
.public-content-index strong{color:#f4f8ff;margin-bottom:8px}
.public-content-index a,.public-content-next nav a{color:#b7d9fa;text-decoration:none;line-height:1.6;overflow-wrap:anywhere}
.public-content-index a:hover,.public-content-next nav a:hover{text-decoration:underline;text-underline-offset:5px}
.public-content-section{padding:0 0 55px;margin:0 0 55px;border-bottom:1px solid var(--landing-line);scroll-margin-top:110px;min-width:0}
.public-content-section:last-child{margin-bottom:0}
.public-content-section h2{font-size:clamp(28px,3vw,42px);line-height:1.2;margin:0 0 26px}
.public-content-section>p:not(.landing-eyebrow){font-size:17px;line-height:1.85;max-width:76ch}
.public-content-points{padding-left:22px;line-height:1.85;color:#b7c5d6}.public-content-points li{padding-left:5px;margin:10px 0}
.public-content-example{margin-top:32px;padding:28px;border:1px solid #354d68;border-left:3px solid #8fbeec;background:#101d2d}
.public-content-example h3{font-size:24px;line-height:1.3;margin:0 0 18px}.public-content-example ol{padding-left:23px;line-height:1.8}.public-content-example li{padding:5px 0 5px 4px}.public-content-outcome{border-top:1px solid var(--landing-line);padding-top:20px;color:#b9dbff}
.public-content-source{display:inline-block;margin-top:26px;color:#a5b4c6;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.public-content-next{padding:45px 0 70px;border-top:1px solid var(--landing-line)}.public-content-next h2{max-width:850px}.public-content-next>p{max-width:750px;color:#b7c5d6}.public-content-next nav{display:flex;flex-wrap:wrap;gap:16px 28px;margin-top:30px}
.public-sitemap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:0 0 60px}.public-sitemap-card{display:block;padding:30px;border:1px solid var(--landing-line);text-decoration:none;background:#101925;color:#b7c5d6}.public-sitemap-card h2{font-size:28px}.public-sitemap>a:not(.public-sitemap-card){color:#b9dbff;min-height:44px;padding-block:10px}.public-sitemap-card span{color:#b9dbff;font-size:24px}
@media(max-width:900px){.public-content-layout{grid-template-columns:1fr;gap:45px}.public-content-index{position:static;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.public-content-index strong{grid-column:1/-1}.public-content-hero{padding:60px 0 45px}}
@media(max-width:560px){.public-content{padding:0 6vw}.public-content-hero{padding-top:42px}.public-content-hero h1{letter-spacing:-1px}.public-content-index{grid-template-columns:1fr}.public-content-index a{display:block;min-height:44px;padding-block:8px;box-sizing:border-box}.public-content-layout{padding-top:36px}.public-content-section{scroll-margin-top:150px;padding-bottom:36px;margin-bottom:36px}.public-content-section>p:not(.landing-eyebrow){font-size:16px;line-height:1.8}.public-content-example{padding:22px;overflow-wrap:anywhere}.public-content-example h3{font-size:22px}.public-content-next nav a{min-height:44px;padding-block:8px;box-sizing:border-box}.public-sitemap{grid-template-columns:1fr}.public-sitemap-card{padding:24px}.public-content-next h2{font-size:30px}}
/* square public access surfaces, retained landing palette. */
@media screen { .landing-body :is(.landing-benefit,.landing-news-card,.landing-login,.auth-card,.auth-first-access,.auth-locale-switcher,.auth-form input,.auth-password-field button,.button,.landing-button){border-radius:0} }
/* freeze the background without a scrollbar-width shift. */
html:has(.landing-body){scrollbar-gutter:stable}
html:has(.landing-access[open]){overflow:hidden}
/* keep daily-log history and correction forms within field viewports. */
@media screen {
.daily-report-detail > *{min-width:0;max-width:100%;box-sizing:border-box}
.daily-report-detail .table-shell{width:100%;min-width:0;max-width:100%;overflow:auto}
.daily-report-detail .question-panel{min-width:0;max-width:100%;padding:16px;overflow-wrap:anywhere}
.daily-report-detail .form-grid > *{min-width:0;max-width:100%}
.daily-report-detail .form-grid input,.daily-report-detail .form-grid textarea{min-width:0;max-width:100%;box-sizing:border-box}
.daily-report-detail .form-grid input[type=checkbox]{width:auto}
.daily-report-detail .span-2{grid-column:1 / -1}
@media(max-width:700px){.daily-report-detail .form-grid{grid-template-columns:minmax(0,1fr)}}

}
@media screen and (max-width:700px){.daily-report-detail .form-grid :is(input:not([type=checkbox]),select,textarea){font-size:16px;min-height:44px}}

@media screen{.daily-report-detail .form-grid button[type=submit]{white-space:normal;height:auto;min-height:44px;max-width:100%;overflow-wrap:anywhere}}

/* readable retained certificates and measurements on phones. */
@media screen {
  .progress-estimate-detail > *, .progress-estimate-detail .form-grid > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .progress-estimate-detail .table-shell { width: 100%; min-width: 0; overflow: auto; }
  .progress-estimate-detail .form-grid :is(input,textarea,select) { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .progress-estimate-detail .form-grid input[type=checkbox] { width: auto; }
  .progress-estimate-detail button { white-space: normal; min-height: 44px; height: auto; max-width: 100%; }
  .estimate-release-history { overflow-wrap: anywhere; }
  .estimate-release-history article { border-top: 1px solid #c9d5df; padding: 16px 0; }
  @media(max-width:700px) { .progress-estimate-detail .form-grid { grid-template-columns: minmax(0,1fr); } .progress-estimate-detail :is(input,textarea,select) { font-size:16px; } }
}

.progress-estimate-detail .estimate-generator-card{border-radius:0}
/* mandatory account verification. */
.account-security-form { grid-template-columns: minmax(0, 1fr); }
.account-security-form label { min-width: 0; }
.account-security-form input[type="submit"], .root-log-filters input[type="submit"].button { background: var(--brand-primary); border-color: var(--brand-primary); color: white; cursor: pointer; }

/* personal authenticator enrollment. */
.account-security-card { width: min(540px, 100%); }
.account-security-badge { color: var(--brand-primary); font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.account-security-identity { font-weight: 750; overflow-wrap: anywhere; }
.account-security-steps { padding-left: 24px; }
.account-security-steps > li { padding-left: 4px; margin: 22px 0; }
.account-security-steps p { margin: 8px 0; }
.account-security-qr { margin: 16px 0; text-align: center; }
.account-security-qr img { display: block; width: min(248px, 100%); height: auto; margin: 0 auto; background: white; }
.account-security-qr figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.account-security-manual { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.account-security-manual summary { cursor: pointer; color: var(--brand-primary); font-weight: 700; }
.account-security-manual code { display: block; overflow-wrap: anywhere; user-select: all; }
.account-security-private { color: var(--muted); font-size: .85rem; }
@media (max-width: 600px) { .account-security-card { padding: 24px 20px; } }

.account-security-ready h2 { font-size: 1.1rem; }
.account-security-qr-panel > summary { cursor: pointer; color: var(--brand-primary); margin: 12px 0; font-weight: 700; }

/* Stable payment identifiers must remain fully readable on narrow screens. */
.payment-reference { overflow-wrap: anywhere; word-break: break-word; }

/* accessible billing period selection. */
.subscription-cycle { scroll-margin-top:80px; display:flex; flex-wrap:wrap; gap:12px; margin:24px 0 12px; }
.subscription-page .plan-price { flex-wrap:wrap; overflow-wrap:anywhere; }
.subscription-page .billing-note { display:block; min-height:48px; }

/* separate personal and assigned company subscriptions. */
.subscription-workspaces { display:block; margin-bottom:24px; }
.subscription-workspace-list { display:flex; flex-wrap:wrap; gap:12px; }
.subscription-workspace { display:grid; gap:5px; flex:1 1 240px; min-width:0; padding:16px; border:1px solid #b7cad9; border-radius:12px; background:white; overflow-wrap:anywhere; }
.subscription-workspace small { color:#617689; }
.subscription-workspace[aria-current="page"] { border:2px solid #275f8c; background:#f3f7fa; }

/* align portfolio indicators with accessible project controls. */
.portfolio-project .health-badge, .portfolio-project .project-open-button, .portfolio-project .portfolio-archive-button { height:40px; min-height:40px; border-radius:0; }

/* keep the full credit-note action readable on phones. */
.credit-note-form .button { max-width:100%; white-space:normal; height:auto; min-height:44px; }

@media(max-width:680px) { .portfolio-project .health-badge, .portfolio-project .project-open-button, .portfolio-project .portfolio-archive-button { height:44px; min-height:44px; } }

/* text language choices without flags. */
.language-menu{position:relative;flex:0 0 auto}
.language-menu>summary{cursor:pointer;list-style:none;padding:10px 8px;font-weight:650}
.language-menu>div{position:absolute;right:0;top:100%;z-index:60;width:max-content;max-width:calc(100vw - 24px);padding:8px;border:1px solid #52677e;background:#0b1421;box-shadow:0 8px 24px #0004}
.landing-header .language-menu>div>a{display:block;padding:12px 10px;font-size:13px;white-space:normal}
.auth-locale-switcher{width:auto;max-width:100%;flex-wrap:wrap}
.auth-locale-switcher a{font-size:12px;line-height:1.4;text-align:left;justify-items:start;flex:1 1 180px;padding:9px 10px}
@media(max-width:480px){.landing-access .auth-locale-switcher{margin-right:0;padding-top:36px}.landing-header .language-menu>summary{font-size:12px;padding-inline:5px}}

.task-progress-panel { padding: 18px; margin-bottom: 24px; border: 1px solid var(--line); background: var(--surface-soft); }
.task-progress-panel .form-grid { margin-bottom: 16px; }
.localized-file-control { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px; min-height: 42px; border: 1px solid var(--line); max-width: 100%; min-width: 0; }
.localized-file-control input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; font-size: 0; color: transparent; background: transparent; border: 0; cursor: pointer; z-index: 1; }
.localized-file-control input[type=file]::file-selector-button { width: 100%; height: 100%; color: transparent; background: transparent; border: 0; cursor: pointer; }
.localized-file-control:focus-within { outline: 2px solid var(--accent, #175783); outline-offset: 2px; }
.localized-file-button { flex-shrink: 0; padding: 6px 10px; background: var(--surface-soft); border: 1px solid var(--line); }
.localized-file-control [data-file-selection] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: normal; min-width: 0; }
.gantt-task-info .task-name-button { appearance: none; border: 0; background: transparent; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
@media (max-width: 600px) {
  .task-dialog-top > div { grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
  .task-dialog-top > div strong { white-space: nowrap; }
  .task-dialog-top > div span { margin-right: 0; }
  .task-dialog-main { padding: 20px 18px 28px; min-width: 0; }
}

/* prioritize operational content on screen.
   Scope to signed-in application pages; preserve print and public/auth layouts. */
@media screen {
  body.workspace-density { --space-page:16px; --space-section:16px; --space-card:16px; }
  .workspace-density .page-shell:not(.dwg-preview-page):not(:has(.drawing-viewer-page)) { padding:14px 16px 28px; }
  .workspace-density main > h1, .workspace-density main > [data-no-localize] > h1 { margin:4px 0 12px; font-size:clamp(25px,2.2vw,32px); line-height:1.15; }
  .workspace-density .page-heading { gap:12px; margin-bottom:12px; }
  .workspace-density .page-heading h1 { margin:0 0 4px; font-size:clamp(25px,2.2vw,32px); line-height:1.15; }
  .workspace-density .section-heading { margin:16px 0 10px; }
  .workspace-density .metrics { margin:12px 0 18px; }
  .workspace-density .subscription-notice { margin:0 0 12px; padding:8px 12px; line-height:1.4; }
  .workspace-density .document-manager-heading { padding:14px 20px 10px; gap:12px; }
  .workspace-density .document-manager-heading h1 { font-size:clamp(25px,2.2vw,32px); line-height:1.15; }
  .workspace-density .document-tabs { padding:0 20px; gap:20px; }
  .workspace-density .document-tabs a, .workspace-density .document-tabs button { padding-top:10px; padding-bottom:9px; }
  .workspace-density .document-register-toolbar { padding:10px 14px; }
  .workspace-density .document-breadcrumb { padding:10px 14px; }
  .workspace-density .document-register-footer { padding:8px 14px; }
  .workspace-density .document-folder-tree { padding:12px 10px; }
  .workspace-density .privacy-footer { padding-top:10px; padding-bottom:16px; }
}
@media screen and (max-width:760px) {
  .workspace-density .page-shell:not(.dwg-preview-page):not(:has(.drawing-viewer-page)) { padding:12px 12px 64px; }
  .workspace-density .document-manager-heading { padding:14px 16px 10px; }
  .workspace-density .document-tabs { padding:0 16px; gap:16px; }
  .workspace-density .page-heading .actions { flex-wrap:wrap; overflow:visible; }
}

.workspace-menu-grid .module-menu-entry { padding:6px 7px; display:block; color:#275f8c; font-size:10px; font-weight:400; line-height:1.25; }
.workspace-menu-grid .module-menu-entry.launch-module { font-weight:700; }
.workspace-menu-grid .module-disabled { color:#72818e; cursor:not-allowed; }
.workspace-menu-grid .module-disabled:focus-visible { outline:2px solid #617e96; outline-offset:-2px; }
.module-menu-entry sup { margin-left:3px; color:#8b5c19; font-size:1em; }
.module-catalog-legend { margin:0; padding:8px 20px 12px; color:#66798a; font-size:11px; }

/* compact membership rows with level actions. */
@media screen {
.user-management-table { min-width:1060px; }
.user-management-table th, .user-management-table td { padding:8px 12px; vertical-align:middle; }
.user-management-table th:nth-child(2), .user-management-table td:nth-child(2) { min-width:0; width:10%; }
.user-management-table th:first-child, .user-management-table td:first-child { width:30%; }
.user-management-table td:nth-child(3) { overflow-wrap:anywhere; }
.user-management-table td:nth-child(4) { max-width:220px; overflow-wrap:anywhere; }
.user-management-table td:nth-child(5), .user-management-table td:last-child { width:1%; white-space:nowrap; }
.user-identity-line { display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.user-management-table .identity-email { display:block; margin:2px 0 0 42px; overflow-wrap:anywhere; }
.user-row-actions { display:flex; align-items:center; flex-wrap:nowrap; gap:8px; }
.user-row-actions form { margin:0; }
.user-row-actions .button { min-height:34px; padding:6px 10px; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; font-size:12px; line-height:1.2; }
}
@media screen and (max-width:760px) {
  .user-row-actions .button { min-height:44px; }
}

/* personal, company and resource navigation. */
.user-menu-section[data-account-section] > small { padding:6px 10px; font-size:10px; }
.user-menu-section[data-account-section] { padding:6px 4px; }
.project-exchange-rate-access { margin:0 0 12px; padding:10px 12px; border:1px solid var(--line); background:var(--surface); }
.project-exchange-rate-access summary { color:var(--ink); cursor:pointer; font-weight:700; }
.project-exchange-rate-access p { max-width:80ch; color:var(--muted); }

.user-menu-forget { width:100%; min-height:44px; padding:9px 10px; border:1px solid var(--line); background:white; color:var(--muted); text-align:left; font:inherit; font-size:11px; cursor:pointer; }

/* compact available-tool view. */
.module-catalog-toggle { display:flex; align-items:center; gap:8px; width:fit-content; max-width:100%; min-height:44px; margin:0 20px; color:#526b80; font-size:12px; cursor:pointer; }
.module-catalog-toggle-input { appearance:none; flex:0 0 30px; width:30px; height:18px; margin:0; border:1px solid #71869a; border-radius:12px; background:#dce5ed; position:relative; cursor:pointer; }
.module-catalog-toggle-input::after { content:""; position:absolute; width:12px; height:12px; top:2px; left:2px; border-radius:50%; background:#fff; box-shadow:0 1px 2px #526b80; }
.module-catalog-toggle-input:checked { background:#185582; border-color:#185582; }
.module-catalog-toggle-input:checked::after { left:14px; }
.module-catalog-toggle-input:focus-visible { outline:2px solid #185582; outline-offset:3px; }
.workspace-menu-panel:not(:has(.module-catalog-toggle-input:checked)) .module-menu-entry:is(.module-disabled,[data-coming-soon="true"]),
.workspace-menu-panel:not(:has(.module-catalog-toggle-input:checked)) .workspace-menu-grid section:not(:has(.module-menu-entry:not(.module-disabled):not([data-coming-soon="true"]))),
.workspace-menu-panel:not(:has(.module-catalog-toggle-input:checked)) .module-catalog-legend { display:none; }

/* center page containers without changing reading alignment. */
@media screen {
  .page-shell > :is(.form-card, .info-panel, .review-panel, .settings-card,
    .automatic-weather-panel, .attendance-device-settings, .change-set) {
    margin-inline: auto;
  }
}

/* reviewed workdays and retained corrections. */
.attendance-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem 2rem; }
.attendance-detail-grid dt { color:var(--text-muted,#62788e); font-weight:600; }
.attendance-detail-grid dd { margin:.25rem 0; overflow-wrap:anywhere; }
.attendance-correction { padding:1.25rem 0; border-bottom:1px solid #d4e0eb; }
.attendance-correction td { overflow-wrap:anywhere; max-width:28rem; }
.attendance-heading-actions { flex-wrap:wrap; }
@media(max-width:640px) { .attendance-detail-grid { grid-template-columns:1fr; } .attendance-heading-actions { display:flex; gap:.5rem; } .attendance-heading-actions .button { white-space:normal; } }

/* one printable daily log per retained source. */
.estimate-print-instructions { flex-basis: 100%; max-width: 56rem; margin: 0; font-size: .875rem; }
.estimate-log-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.estimate-log-facts dd { margin: .25rem 0; }
.estimate-log-narratives { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem 1rem; }
.estimate-complete-log h3 { font-size: .9rem; margin: .5rem 0; }
.estimate-complete-log p { white-space: normal; overflow-wrap: anywhere; }
.estimate-complete-log { margin: 1.5rem 0; }
@media (max-width: 640px) { .estimate-log-facts, .estimate-log-narratives { grid-template-columns: 1fr; } }
@media print {
  .estimate-complete-log-appendix, .estimate-complete-log + .estimate-complete-log { break-before: page; }
  .estimate-log-narratives section, .estimate-log-facts, .estimate-complete-log figure { break-inside: avoid; }
  .estimate-complete-log-entries thead { display: table-header-group; }
}
@media print {
  .estimate-print-body .estimate-print-signatures { margin-top: 4mm; }
  .estimate-print-body .estimate-print-footer { margin-top: 3mm; break-inside: avoid; }
  .estimate-print-body .estimate-complete-log-appendix { break-before: auto; }
  .estimate-complete-log-appendix > h2 { break-after: avoid; }
}
@media print {
  .estimate-print-body .estimate-print-sheet { padding-top: 7mm; padding-bottom: 5mm; }
}
.estimate-print-table col { display: table-column; padding: 0; border: 0; border-radius: 0; }
.estimate-print-table td, .estimate-print-table th { overflow-wrap: anywhere; }
.estimate-complete-log-entries th:nth-child(3) { width: 49%; }
.estimate-complete-log-entries th:nth-child(4) { width: 14%; }
.estimate-complete-log-entries th:nth-child(5) { width: 10%; }

/* launch interest and guided beta enrollment. */
.launch-registration{margin-top:28px;padding-top:26px;border-top:1px solid #354d68;scroll-margin-top:100px}
.landing-access .launch-registration h2{font-size:24px;line-height:1.25}
.launch-registration .auth-form>small{color:#b7c5d6;line-height:1.6}
.launch-registration .auth-remember-choice{align-items:flex-start}
.launch-registration .auth-remember-choice input{flex:0 0 auto;margin-top:4px}
.launch-registration-errors{padding:12px;border:1px solid #f7b5a9;border-radius:8px;color:#ffccc2;margin-bottom:12px}
.launch-root{min-width:0}.launch-root .section-heading{flex-wrap:wrap;gap:16px}.launch-root .table-shell{max-width:100%;overflow-x:auto}
.launch-root td{vertical-align:top}.launch-root td small{display:block;overflow-wrap:anywhere;margin-top:5px}
.launch-root .notice{line-height:1.6}.launch-pagination{display:flex;gap:20px;margin-top:20px}
@media(max-width:560px){.launch-root{padding:16px}.launch-root h1{font-size:26px}.launch-root table{min-width:0}.launch-registration .launch-submit{white-space:normal}}

.landing-access .auth-form input.launch-submit{background:#b9dbff;color:#080d14;-webkit-text-fill-color:#080d14;border-color:#b9dbff;width:100%}
.landing-access .launch-registration .auth-form,.landing-access .launch-registration .auth-form>label{grid-template-columns:minmax(0,1fr)}
.landing-access .launch-registration input:not([type=checkbox]){width:100%;min-width:0}
.landing-access .launch-registration .auth-remember-choice{display:flex}

.launch-access-link{clear:both;margin:18px 0;font-size:13px}
@media(max-width:560px){
  .launch-root table,.launch-root tbody{display:block;width:100%}
  .launch-root thead{display:none}
  .launch-root tbody tr{display:grid;grid-template-columns:minmax(0,1fr);padding:12px;border-bottom:1px solid #d5dee7}
  .launch-root tbody td{display:block;width:auto!important;white-space:normal;overflow-wrap:anywhere;border:0;padding:9px 0}
  .launch-root td:before{content:attr(data-label);display:block;margin-bottom:5px;color:#526b7d;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
  .launch-root td .button{width:100%;min-height:44px}
}

/* explicit bulk beta invitations. */
.launch-bulk-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:20px 0;padding:16px;background:#edf3f7;border:1px solid #d5dee7;border-radius:12px}
.launch-bulk-toolbar p{flex:1 1 280px;margin:0;font-size:13px;line-height:1.5;color:#526b7d}
.launch-select-all{display:flex;align-items:center;gap:10px;font-weight:700;font-size:13px}
.launch-bulk-toolbar input[type=checkbox],.launch-selection-cell input[type=checkbox]{width:20px;height:20px;min-height:20px;cursor:pointer;accent-color:#124f7f}
.launch-selection-cell{width:44px}.launch-bulk-toolbar input[type=submit]{max-width:100%;white-space:normal;min-height:44px}
@media(max-width:560px){.launch-bulk-toolbar{align-items:stretch;flex-direction:column}.launch-bulk-toolbar p{flex:auto}.launch-select-all{align-items:flex-start}.launch-select-all input{flex:0 0 auto}.launch-root td.launch-selection-cell{width:auto!important}.launch-root td.launch-selection-cell:before{display:none}.launch-root td.launch-selection-cell:empty{display:none}}

/* visible beta signup entry. */
.landing-beta{display:flex;align-items:center;gap:10px;font-size:13px;color:#b7c5d6}
.landing-header nav .landing-beta-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;box-sizing:border-box;border:1px solid #bad7f3;background:#dcecff;color:#102235;white-space:nowrap}
@media(max-width:1100px){.landing-header nav{gap:12px}.landing-beta{flex-direction:column;gap:3px;font-size:11px}.landing-header nav .landing-beta-button{padding:8px 12px}}
@media(max-width:560px){.landing-header nav{flex-wrap:wrap;justify-content:flex-end;gap:8px}.landing-beta{flex-direction:row;gap:8px}.landing-header .landing-beta{order:1;width:100%;justify-content:flex-end}.landing-header nav .landing-beta-button{padding:8px 14px}}

/* readable public navigation and locale menu. */
.landing-header { gap:24px; min-height:88px; box-sizing:border-box; }
.landing-brand { flex-shrink:0; }
.landing-header nav { gap:clamp(14px,1.6vw,24px); min-width:0; }
.landing-header nav > a,.landing-header .language-menu>summary { white-space:nowrap; }
.landing-header .language-menu>summary,.landing-header nav .landing-login,.landing-header nav .landing-beta-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; box-sizing:border-box; line-height:1.3; }
.landing-header .language-menu>summary { gap:8px; }
.landing-header .language-menu>summary::-webkit-details-marker { display:none; }
.landing-header .language-menu>summary::after { content:"⌄"; font-size:14px; }
.landing-header .language-menu>div { width:260px; max-width:calc(100vw - 32px); box-sizing:border-box; margin-top:8px; padding:6px; }
.landing-header nav .language-menu>div>a[lang] { display:flex; align-items:center; justify-content:flex-start; width:100%; height:auto; min-height:44px; box-sizing:border-box; padding:12px; font-size:14px; line-height:1.4; white-space:normal; overflow-wrap:normal; word-break:normal; text-align:left; }
.landing-header nav .language-menu>div>a[lang]:hover { background:#1c2a3b; }
.landing-header nav .landing-beta { position:relative; display:flex; flex-direction:row; flex:0 0 auto; gap:0; width:auto; order:initial; }
.landing-header .landing-beta>span { position:absolute; bottom:calc(100% + 3px); left:0; width:100%; text-align:center; white-space:nowrap; font-size:10px; line-height:1.2; }
@media(max-width:1100px) { .landing-header nav { gap:14px; font-size:14px; } }
@media(max-width:560px) {
  .landing-header { gap:16px; padding:16px 5vw; }
  .landing-header nav { width:100%; margin-left:0; justify-content:space-between; flex-wrap:nowrap; gap:10px; font-size:13px; }
  .landing-header nav .landing-beta { width:auto; order:initial; }
  .landing-header nav .landing-login,.landing-header nav .landing-beta-button { padding:10px 12px; }
  .landing-header .language-menu>summary { padding:10px 4px; font-size:13px; }
  .landing-header .language-menu>div { left:0; right:auto; }
}

/* independent launch dialog. */
.landing-beta-dialog .launch-registration{margin-top:24px;padding-top:0;border-top:0;scroll-margin-top:0}

/* practical construction examples alongside editorial context. */
.landing-practice{margin:20px 0;padding:18px 0 0;border-top:1px solid var(--landing-line)}
.landing-practice .landing-eyebrow{margin:0 0 8px}
.landing-practice p:last-child{margin:0;overflow-wrap:anywhere}

/* complete public footer. */
.landing-body .landing-platform{background:#fff;color:#111;border-top:1px solid #ddd}
.landing-body .landing-platform h2,.landing-body .landing-platform .landing-eyebrow,.landing-body .landing-platform p:not(.landing-eyebrow){color:#111}
.landing-body .landing-platform .landing-button{background:#111;color:#fff;border:1px solid #111}
.landing-body .landing-platform .landing-button:hover{background:#333}
:is(.landing-body,.public-entry-body) .landing-footer{display:block;padding:60px 5vw 30px;background:#fff;color:#111;border-top:1px solid #ddd}
.landing-footer-top{display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,3fr);gap:5vw}
.landing-footer-identity p{max-width:260px;margin:18px 0 0;color:#454545;font-size:14px;line-height:1.65}
.landing-footer .landing-footer-brand{display:inline-flex;align-items:center;gap:12px;color:#111;font-size:28px;font-weight:750;letter-spacing:-.7px}
.landing-footer-brand img{width:36px;height:36px;object-fit:contain;filter:brightness(0)}
.landing-footer nav.landing-footer-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;max-width:none;align-items:start;font-size:14px}
.landing-footer-columns section{display:grid;align-content:start;gap:14px;min-width:0}
.landing-footer-columns h2{margin:0 0 8px;font-size:13px;font-weight:650;letter-spacing:0;color:#555}
.landing-footer a{color:#111;line-height:1.5;overflow-wrap:anywhere}
.landing-footer a:hover{color:#111;text-decoration:underline;text-underline-offset:4px}
.landing-footer a:focus-visible{outline:2px solid #111;outline-offset:5px}
.landing-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:50px;padding-top:24px;border-top:1px solid #ddd;font-size:12px}
.landing-footer-bottom p{margin:0}
.landing-footer-bottom nav{font-size:12px}
.landing-footer .landing-footer-legend{max-width:1100px;margin:22px 0 0;font-size:12px;line-height:1.7;color:#555}
@media(max-width:1100px){.landing-footer-top{grid-template-columns:1fr}.landing-footer-identity p{max-width:480px}}
@media(max-width:650px){.landing-footer nav.landing-footer-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px}.landing-footer-bottom{align-items:flex-start;flex-direction:column}.landing-footer-bottom nav{justify-content:flex-start}:is(.landing-body,.public-entry-body) .landing-footer{padding-top:40px}}

/* Calendar segments share the Gantt completed/remaining palette. */
.schedule-calendar-event { background:linear-gradient(to right,var(--task-progress-color) 0 var(--calendar-progress,0%),var(--task-track-color) var(--calendar-progress,0%) 100%); }

.document-set-workspace { margin:0; border:1px solid #d1dee8; background:white; min-height:calc(100vh - 170px); }
.document-workspace-shell .document-set-workspace { overflow:auto; border-bottom:1px solid #d1dee8; }
.document-set-content { padding:20px; min-width:0; }
.document-set-content > .panel { margin-top:24px; }
.document-set-workspace .collection-grid { padding:20px; }
.document-set-send-form { display:grid; grid-template-columns:auto minmax(160px,1fr) auto minmax(130px,200px) auto; align-items:center; gap:12px; }
.document-set-workspace .collection-create-form { display:flex; flex-wrap:wrap; gap:10px; }
@media(max-width:900px) { .document-set-send-form { grid-template-columns:1fr; } .document-set-workspace .document-manager-heading { flex-direction:column; align-items:stretch; } }
.document-set-send-form :is(input[type="email"],select),.document-set-workspace .collection-create-form :is(input[type="text"],select) { min-height:42px; padding:9px 12px; min-width:0; border:1px solid #b7cad9; background:white; color:#173755; font:inherit; }
.document-set-send-form label { font-size:13px; font-weight:700; }

/* align record headings with their content. */
@media screen {
  .interior-light .page-shell.procurement-record-page > :is(.page-heading, .eyebrow, .flash) {
    width:100%; max-width:none; margin-inline:0;
  }
  .interior-light .procurement-record-page .page-heading {
    align-items:flex-start; flex-wrap:wrap; gap:12px;
  }
  .interior-light .procurement-record-page .page-heading > div:first-child {
    flex:1 1 auto; min-width:0;
  }
  .interior-light .procurement-record-page .page-heading h1 {
    max-width:68ch; margin:0 0 6px; font-size:clamp(1.25rem,1.7vw,1.75rem);
    line-height:1.25; letter-spacing:-.025em; overflow-wrap:anywhere;
  }
  .interior-light .procurement-record-page .page-heading > .actions {
    flex:0 1 auto; flex-wrap:wrap; max-width:100%;
  }
}

/* consistent record sections and composers. */
@media screen {
  .page-shell > :is(.amendment-panel,.conversation-panel),
  .procurement-record-page > :is(.module-card,.delivery-comparison,#purchase-delivery-amendment) {
    box-sizing:border-box; width:100%; max-width:none; margin:18px 0;
    padding:20px; border:1px solid var(--line); background:#fff;
  }
  .page-shell :is(.amendment-panel,.conversation-panel) .section-heading {
    align-items:flex-start; flex-wrap:wrap; gap:12px; margin-bottom:16px;
  }
  .page-shell :is(.amendment-panel,.conversation-panel) .section-heading h2 { margin:0; }
  .page-shell :is(.amendment-panel,.conversation-panel) :is(input,select,textarea,label) { min-width:0; max-width:100%; }
  .page-shell .amendment-form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
  .page-shell .amendment-form label:has(textarea) { grid-column:1 / -1; }
  .page-shell .amendment-form textarea { height:auto; min-height:80px; resize:vertical; }
  .page-shell .amendment-form .button { grid-column:1 / -1; justify-self:end; }
  .page-shell .comment-composer { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
  .page-shell .amendment-panel .form-grid > .actions { grid-column:1 / -1; justify-content:flex-end; }
  .page-shell .amendment-panel .form-grid > .actions .button { width:auto; }
  .page-shell .amendment-list:empty { display:none; }
  .privacy-footer { flex-wrap:wrap; gap:12px 24px; padding:18px 24px; }
  .privacy-footer-brand { font-weight:700; }
}
@media screen and (max-width:800px) {
  .page-shell .amendment-form,.page-shell .comment-composer { grid-template-columns:minmax(0,1fr); }
  .page-shell > :is(.amendment-panel,.conversation-panel),
  .procurement-record-page > :is(.module-card,.delivery-comparison,#purchase-delivery-amendment) { padding:16px; }
  .page-shell .amendment-form .button { justify-self:stretch; }
  .page-shell .amendment-panel .form-grid > .actions .button { width:100%; }
}

/* readable card-verification consent on small screens. */
.registration-card-state { display:block; }
.registration-card-state p { margin:0 0 12px; }
.registration-card-state form { display:grid; gap:12px; }
.registration-card-state label { display:flex; align-items:flex-start; gap:8px; line-height:1.5; }
.registration-card-state input[type="checkbox"] { flex:0 0 auto; width:auto; margin-top:4px; }
.registration-card-state .button { max-width:100%; white-space:normal; }
.auth-registration-form > label { min-width:0; }
.auth-registration-form input:not([type="checkbox"]),.auth-registration-form select { min-width:0; width:100%; box-sizing:border-box; }

/* scoped award review on field screens. */
.quotation-award-form { min-width: 14rem; max-width: 30rem; }
.quotation-award-form summary { cursor: pointer; font-weight: 700; }
.quotation-award-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.quotation-award-form form { display: grid; gap: .75rem; padding-block: .75rem; }
#award-decision, #purchase-receipt-history, .procurement-comparison-summary { min-width: 0; }
#award-decision p { overflow-wrap: anywhere; }

/* –6.4: inspection matrix and retained releases. */
.quality-plan-list { display:grid; gap:16px; }
.quality-plan-list .form-card { width:100%; max-width:none; margin:0; min-width:0; }
.quality-point h2, .quality-point p, .quality-point li { overflow-wrap:anywhere; }
.quality-point .page-heading { align-items:start; }
.quality-release-form { display:grid; gap:12px; margin:16px 0; }
.quality-release-form textarea { width:100%; box-sizing:border-box; }
.quality-point .actions { display:flex; flex-wrap:wrap; gap:8px; }
@media(max-width:700px) { .quality-point .page-heading { display:flex; flex-direction:column; gap:8px; } }

.quality-record-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 20px; }

.quality-cancel-draft { margin:12px 0; padding:12px; border:1px solid var(--line); }
.quality-cancel-draft form { display:grid; gap:10px; max-width:600px; }
.quality-cancel-draft textarea { width:100%; box-sizing:border-box; }

/* REC-CAP-01 contained photo picker. */
.field-receipt-form .field-photo-button { position:relative; }
.field-receipt-form .field-photo-button input[type="file"] { position:absolute; inset:0 auto auto 0; width:1px; height:1px; opacity:0; }
.field-receipt-form .field-photo-button:focus-within { outline:2px solid var(--brand-primary-dark); outline-offset:3px; }

/* localized evidence picker remains visible. */
.daily-report-form .localized-file-control input[type="file"] { opacity:0; }

/* LP-01/06. */
.employee-dossier-page .localized-file-control input[type="file"] { opacity:0; }
.employee-dossier-page .localized-file-control { min-width:0; max-width:100%; }
.payroll-workspace { padding-bottom:80px; }
.payroll-worker-cards { display:none; }
@media (max-width:760px) {
  .payroll-lines-table { display:none; }
  .payroll-worker-cards { display:grid; gap:10px; }
  .payroll-worker-cards h2 { overflow-wrap:anywhere; }
  .payroll-worker-cards dl div { display:flex; justify-content:space-between; gap:12px; }
  .payroll-worker-cards dd { margin:0; text-align:right; }
}

.labor-incident-form .localized-file-control input[type="file"] { opacity:0; }

/* responsive task cards. */
.action-center-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(360px, 29vw, 560px)), 1fr)); align-items: start; }
.action-center-list .action-center-item { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 14px; border-radius: 0; height: 100%; overflow-wrap: anywhere; }
.action-center-list .action-center-owner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.action-center-list .document-state { display: grid; justify-items: start; gap: 4px; }
.action-center-list .empty-state { grid-column: 1 / -1; }

/* visible concept hierarchy. */
.bid-indirect-concept { margin: 0 0 16px; border: 1px solid #9fb9cd; border-left: 4px solid #17557c; background: #fff; }
.bid-indirect-concept > .bid-indirect-row { background: #e3edf5; }
.bid-indirect-concept .bid-indirect-integration { border-bottom: 0; }
.bid-indirect-page .bid-indirect-component-scroll { overflow: visible; border-radius: 0; }
.bid-indirect-page .bid-indirect-component-header { display: none; }
.bid-indirect-page .bid-indirect-component-row { min-width: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.bid-indirect-page .bid-indirect-component-row > label,
.bid-indirect-page .bid-indirect-component-row > output { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 0; border: 0; }
.bid-indirect-page .bid-indirect-component-row label > span,
.bid-indirect-page .bid-indirect-component-row output > span { display: block; font-size: .75rem; color: #425b72; }
.bid-indirect-page .bid-indirect-component-row input,
.bid-indirect-page .bid-indirect-component-row select { height: 40px; background: #fff; border-color: #b7cedd; }
.bid-indirect-page .bid-indirect-component-description { grid-column: span 2; }
.bid-indirect-page .bid-indirect-component-row textarea { background: #fff; border-color: #b7cedd; }
.bid-indirect-page .bid-indirect-component-new { background: #f0f6fa; }
@media(max-width: 1000px) { .bid-indirect-page .bid-indirect-component-row { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width: 600px) { .bid-indirect-page .bid-indirect-component-row { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.indirect-flow-chart { margin: 0; }
.indirect-flow-chart svg { display: block; width: 100%; max-height: 360px; }
.indirect-flow-chart figcaption { display: flex; flex-wrap: wrap; gap: 16px; color: #425b72; }
.indirect-flow-chart .monthly-series { border-left: 12px solid #459ec4; padding-left: 6px; }
.indirect-flow-chart .cumulative-series { border-left: 12px solid #173f62; padding-left: 6px; }
.indirect-flow-chart .flow-axis { fill: #425b72; font-size: 12px; }
.indirect-flow-chart g:focus { outline: 2px solid #1686bd; }
.indirect-flow-chart summary { cursor: pointer; color: #17557c; padding: 8px 0; }
.indirect-flow-chart .table-shell { max-width: 100%; }
.indirect-retained-basis { margin: 8px 12px; padding: 12px; background: #fff9e8; border-left: 3px solid #b48023; color: #604c24; }
/* concise source/final copy editing. */
.bid-work-description-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.bid-work-description-editor > section { min-width: 0; margin: 0; }
.bid-work-description-editor > footer, .bid-work-description-editor > .form-errors { grid-column: 1 / -1; }
.bid-work-description-editor textarea { width: 100%; min-height: 300px; max-height: 65vh; resize: vertical; }
@media(max-width: 900px) { .bid-work-description-editor { grid-template-columns: minmax(0,1fr); } }
/* consistent single-line capture. */
input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=submit]):not([type=button]):not([type=image]):not([type=reset]),
select { box-sizing: border-box; min-height: 40px; }
.bid-estimate-form .form-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
.bid-estimate-form .form-grid > label { min-width: 0; }
.bid-estimate-form .form-grid input:not([type=checkbox]):not([type=radio]):not([type=file]),
.bid-estimate-form .form-grid select { height: 40px; min-height: 40px; width: 100%; }
@media(max-width: 1000px) { .bid-estimate-form .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 600px) { .bid-estimate-form .form-grid { grid-template-columns: minmax(0,1fr); } }

/* identical workspace launchers. */
.direct-chat-launcher-button, .personal-notes-launcher { border-radius: 0; box-sizing: border-box; }
/* compact estimate navigation. */
.bid-estimates-table th:nth-child(1), .bid-estimates-table td:nth-child(1),
.bid-estimates-table th:nth-child(2), .bid-estimates-table td:nth-child(2) { width: 1%; white-space: nowrap; }
.bid-workspace-header { gap: 12px; }
.bid-workspace-header .bid-workspace-actions { gap: 6px 10px; }
@media(max-width: 600px) {
  .indirect-flow-chart .flow-axis { font-size: 32px; }
  .indirect-flow-chart .flow-month-label { display: none; }
  .indirect-flow-chart g:first-of-type .flow-month-label,
  .indirect-flow-chart g:nth-of-type(7) .flow-month-label,
  .indirect-flow-chart g:last-of-type .flow-month-label { display: block; }
}
/* Shared field contract: all single-line text/number/date inputs and selects.
   Multiline editors, files, sliders and choice controls retain their native sizing. */
body.platform-page input:not([type]),
body.platform-page input:is([type=text],[type=search],[type=email],[type=url],[type=tel],[type=password],[type=number],[type=date],[type=datetime-local],[type=time],[type=month],[type=week]),
body.platform-page select {
  box-sizing: border-box !important;
  height: 40px !important;
  min-height: 40px !important;
  padding-block: 8px;
  line-height: 1.25;
}
.bid-indirect-page .bid-indirect-grid { min-width: 0; grid-template-columns: minmax(70px,.6fr) minmax(0,3fr) minmax(130px,1.5fr) minmax(100px,1fr) 100px; }
@media(max-width: 1100px) {
  .bid-indirect-page .bid-indirect-grid-header { display: none; }
  .bid-indirect-page .bid-indirect-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bid-indirect-page .bid-indirect-row > label,
  .bid-indirect-page .bid-indirect-row > output { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
  .bid-indirect-page .bid-indirect-row > label > span, .bid-indirect-page .bid-indirect-row > output > span { display: block; font-size: .75rem; }
  .bid-indirect-page .bid-indirect-row > .bid-indirect-description { grid-column: 1 / -1; }
  .bid-indirect-page .bid-indirect-row-actions { flex-wrap: wrap; gap: 8px; }
}

/* keep the final save outside the launcher corner. */
.bid-work-description-editor > footer { justify-content: flex-start; }

/* honor state changes on capture controls. */
.bid-estimate-form [hidden] { display: none !important; }

/* state-specific task guidance. */
.action-center-guidance { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--border, #d8e2ec); }
.action-center-guidance > strong { display: block; font-size: .85rem; }
.action-center-guidance p { margin: .25rem 0 .4rem; line-height: 1.35; overflow-wrap: anywhere; }
.action-center-open { color: var(--primary, #174c71); font-weight: 700; font-size: .85rem; }

/* compact readable task metadata. */
.action-center-item .eyebrow { display: inline; margin-left: .4rem; }
.action-center-item .document-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.requisition-next-step { margin: 12px 0; }
.requisition-next-step h2 { margin: 0 0 6px; font-size: 1.05rem; }
.requisition-next-step p { margin: 6px 0 10px; }

/* contextual matrix instructions. */
.approval-matrix-form .matrix-field-help { display: block; font-weight: 400; line-height: 1.35; margin-top: 4px; }
.approval-matrix-form .checkbox-label { flex-wrap: wrap; }
.approval-matrix-form .checkbox-label .matrix-field-help { flex-basis: 100%; }
.matrix-rule, .matrix-after-create, .matrix-intro { line-height: 1.4; }
.matrix-next-steps h2 { margin-top: 0; font-size: 1.05rem; }

.approval-matrix-form [hidden] { display: none !important; }
.matrix-menu { min-width: 0; }
.matrix-level-row { margin-top: 10px; }

.matrix-role-warning { display: block; font-weight: 400; line-height: 1.35; color: #775500; margin-top: 4px; }
