:root { --ink:#202524; --muted:#6e7672; --line:#dce2df; --paper:#fff; --canvas:#f8f8f5; --green:#287464; --green-dark:#24423a; --green-soft:#e4f1ed; --amber:#a46b1f; --amber-soft:#fff1d6; --red:#b55242; --red-soft:#fbe7e2; --blue:#47749a; --blue-soft:#e8f0f7; --plum:#806486; --plum-soft:#f2eaf4; --shadow:0 10px 28px rgba(29,46,39,.06); }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--canvas); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.privacy-page { min-height:100vh; background:#f6f4ef; }
.privacy-document { width:min(100% - 36px, 760px); margin:0 auto; padding:72px 0 88px; }
.privacy-document h1 { margin:9px 0 10px; font-size:38px; }
.privacy-updated { color:var(--muted); font-size:14px; }
.privacy-document section { margin-top:34px; }
.privacy-document h2 { font-size:19px; }
.privacy-document section p { margin-top:9px; color:#414945; font-size:15px; line-height:1.65; }
button,input,select { font:inherit; }
button { cursor:pointer; }
h1,h2,p { margin:0; }
h1 { font-size:26px; line-height:1.15; letter-spacing:-.025em; }
h2 { font-size:20px; letter-spacing:-.015em; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:248px minmax(0,1fr); }
body:not(.authenticated) .app-shell { display:none; }
.auth-gate { min-height:100vh; padding:24px; display:grid; place-items:center; background:var(--canvas); }
body.authenticated .auth-gate { display:none; }
.auth-card { width:min(100%, 430px); padding:34px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 18px 50px rgba(21,50,35,.1); display:grid; gap:14px; }
.auth-mark { width:46px; height:46px; display:grid; place-items:center; border-radius:14px; color:#fff; background:var(--green); font-family:Georgia,serif; font-size:26px; font-weight:800; }
.auth-card h1 { font-size:27px; }
.auth-card>p:not(.eyebrow):not(.auth-error) { color:var(--muted); line-height:1.5; }
.auth-card label { display:grid; gap:7px; color:#445048; font-size:13px; font-weight:750; }
.auth-card label[hidden], .auth-card .auth-mfa-setup[hidden] { display:none; }
.auth-mfa-setup { border:1px solid var(--line); border-radius:14px; background:var(--soft-green); padding:14px; color:var(--ink); }
.auth-mfa-setup p, .auth-mfa-setup small { display:block; margin:8px 0 0; color:var(--muted); }
.auth-mfa-setup img { display:block; width:220px; max-width:100%; margin:14px auto 8px; border-radius:10px; background:#fff; image-rendering:pixelated; }
.auth-mfa-setup code { display:block; overflow-wrap:anywhere; margin-top:10px; padding:10px; border-radius:8px; background:#fff; font-size:.8rem; color:var(--ink); }
.auth-recovery-toggle { justify-self:start; margin-top:2px; }
.auth-recovery { margin-top:4px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fbfcfb; }
.auth-recovery strong,.auth-recovery p { display:block; }.auth-recovery p { margin:5px 0 12px; color:var(--muted); font-size:12px; line-height:1.45; }.auth-recovery label { display:grid; gap:6px; }.auth-recovery .secondary-button { width:100%; margin-top:12px; }
.auth-card .primary-button { margin-top:4px; }
.auth-error { min-height:18px; color:var(--red); font-size:13px; font-weight:700; }
.auth-success { min-height:18px; color:var(--ink); font-size:13px; font-weight:700; line-height:1.45; }
.auth-link { justify-self:start; padding:3px 0; border:0; background:transparent; color:var(--ink); font:inherit; font-size:13px; font-weight:750; cursor:pointer; }
.auth-link:hover { text-decoration:underline; }
.sidebar { min-height:100vh; position:sticky; top:0; padding:24px 16px; background:linear-gradient(180deg,#294940 0%,#203c35 100%); color:#fff; display:flex; flex-direction:column; }
.brand { border:0; background:transparent; color:#fff; display:flex; align-items:center; gap:12px; padding:0 8px 28px; text-align:left; }
.brand-mark { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; color:#223e36; background:#f1c86d; font-family:Georgia,serif; font-size:23px; font-weight:800; }
.brand-copy strong,.brand-copy small,.sidebar-user strong,.sidebar-user small,.sidebar-status strong,.sidebar-status small { display:block; }
.brand-copy strong { font-size:18px; }
.brand-copy small,.sidebar-user small,.sidebar-status small { margin-top:2px; color:#aabdb3; font-size:12px; }
.nav-list { display:grid; gap:6px; }
.sidebar-section-label { margin:0 12px 8px; color:#91a99c; font-size:10px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.nav-item { width:100%; border:0; border-radius:10px; background:transparent; color:#cbd9d1; padding:10px 12px; display:grid; grid-template-columns:24px minmax(0,1fr); grid-template-rows:auto auto; gap:4px 10px; align-items:center; text-align:left; font-weight:700; }
.nav-item:hover { color:#fff; background:rgba(255,255,255,.07); }
.nav-item.active { color:#fff; background:rgba(255,255,255,.14); box-shadow:inset 3px 0 #f1c86d; }
.nav-icon { width:22px; height:22px; grid-row:1 / span 2; align-self:center; }
.nav-item>.nav-icon + span { min-width:0; line-height:1.15; }
.nav-icon svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.nav-item:nth-of-type(1) .nav-icon { color:#f2ca71; }.nav-item:nth-of-type(2) .nav-icon { color:#a9c8e5; }.nav-item:nth-of-type(3) .nav-icon { color:#d9b6df; }.nav-item:nth-of-type(4) .nav-icon { color:#f0a998; }.nav-item:nth-of-type(5) .nav-icon { color:#9ed1bd; }
.nav-count-group { grid-column:2; display:flex; align-items:center; justify-self:start; gap:5px; }
.nav-count { grid-column:2; justify-self:start; min-width:24px; height:20px; padding:0 7px; border-radius:99px; display:grid; place-items:center; color:#dfeae4; background:rgba(255,255,255,.1); font-size:10px; line-height:1; white-space:nowrap; }
.nav-count.attention { color:#fff; background:#9b5a4d; }
.sidebar-status { width:100%; margin-top:auto; padding:14px 10px; border:0; border-top:1px solid rgba(255,255,255,.12); background:transparent; color:#fff; display:grid; grid-template-columns:10px 1fr 12px; align-items:start; gap:10px; font-size:13px; text-align:left; }
.sidebar-status:hover { background:rgba(255,255,255,.06); border-radius:10px; }
.status-dot { width:9px; height:9px; flex:0 0 auto; margin-top:4px; border-radius:50%; display:inline-block; }
.status-dot.waiting { background:#ddb152; box-shadow:0 0 0 4px rgba(221,177,82,.12); }
.status-dot.connected { background:#8eb69f; }
.status-dot.healthy { background:#7db89a; box-shadow:0 0 0 4px rgba(125,184,154,.12); }
.status-dot.warning { background:#ddb152; box-shadow:0 0 0 4px rgba(221,177,82,.12); }
.status-dot.critical { background:#d77a68; box-shadow:0 0 0 4px rgba(215,122,104,.12); }
.status-dot.disabled { background:#87948d; }
.sidebar-user { width:100%; margin-top:10px; padding:12px 8px 0; border:0; border-top:1px solid rgba(255,255,255,.12); background:transparent; color:#fff; display:flex; align-items:center; gap:10px; text-align:left; font-size:13px; }
.sidebar-user:hover { background:rgba(255,255,255,.06); border-radius:10px; }
.sidebar-user>span { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:#dcebe2; color:#244237; font-weight:800; }
.sidebar-user .chevron { margin-left:auto; }
.logout-button { margin-top:4px; padding-top:9px; border-top:0; color:#d4e0d9; }
.logout-button>span { color:#d4e0d9; background:rgba(255,255,255,.1); }
.workspace { min-width:0; max-width:1500px; width:100%; margin:0 auto; padding:32px 38px 50px; }
.topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:28px; }
.eyebrow { color:#87908b; font-size:11px; line-height:1.2; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.topbar h1 { margin-top:7px; }
.page-subtitle { margin-top:8px; color:var(--muted); }
.top-actions,.section-toolbar,.filter-group,.detail-actions { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.primary-button,.secondary-button,.filter-button,.text-button,.icon-button { min-height:40px; border-radius:9px; padding:0 15px; border:1px solid var(--line); background:#fff; color:var(--ink); font-weight:750; }
.small-button { text-decoration:none; }
.primary-button { border-color:var(--green); background:var(--green); color:#fff; }
.primary-button:hover { background:#3b5c4f; }
.primary-button:disabled,.secondary-button:disabled { opacity:.55; cursor:not-allowed; }
.text-button { min-height:auto; padding:4px 0; border:0; color:#315b4a; background:transparent; }
.view { display:none; }
.view.active { display:block; }
.deferred-module { display:none !important; }
.home-stat-line { margin-bottom:22px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:var(--paper); }
.home-stat { min-height:116px; padding:22px; border-right:1px solid var(--line); display:flex; flex-direction:column; justify-content:center; position:relative; }
.home-stat:before { content:""; width:7px; height:7px; margin-bottom:10px; border-radius:50%; background:var(--blue); }
.home-stat:nth-child(2):before { background:var(--amber); }
.home-stat:nth-child(3):before { background:var(--plum); }
.home-stat-button { border:0; border-radius:0; text-align:left; cursor:pointer; transition:background .16s ease,color .16s ease; }
.home-stat-button:hover { background:#f1f4f1; }
.home-stat:last-child { border-right:0; }
.home-stat span,.home-stat small { display:block; color:var(--muted); font-size:14.5px; }
.home-stat strong { display:block; margin:5px 0 3px; font-size:36px; line-height:1; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.home-stat small { font-size:12.5px; line-height:1.4; }
.home-stat-primary { color:var(--ink); background:#fff; }
.home-stat-primary span,.home-stat-primary small { color:var(--muted); }
.home-stat-primary:before { background:var(--red); }
.home-stat-primary:hover { background:#f8f3f1; }
.home-operations-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,330px); gap:24px; align-items:start; }
.home-priority { min-width:0; }
.home-activity { min-width:0; padding-left:22px; border-left:1px solid var(--line); }
.home-section-head { min-height:52px; display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.home-section-head h2 { font-size:18px; line-height:1.25; }
.home-section-head p { margin-top:4px; color:var(--muted); font-size:12.5px; }
.home-section-head .text-button { font-size:13.5px; }
.home-priority .stack-list { border-top:1px solid var(--line); }
.home-client-row,.home-activity-client { width:100%; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; color:var(--ink); text-align:left; }
.home-client-row { min-height:76px; padding:12px 6px; display:grid; grid-template-columns:38px minmax(0,1fr) auto 12px; gap:12px; align-items:center; box-shadow:inset 3px 0 transparent; }
.home-client-row.pending { box-shadow:inset 3px 0 var(--amber); }
.home-client-row.attention,.home-client-row.disputed { box-shadow:inset 3px 0 var(--red); }
.home-client-row:hover,.home-activity-client:hover { background:#f0f4f1; }
.home-client-copy strong,.home-client-copy small,.home-client-copy em { display:block; }
.home-client-copy strong { font-size:14px; }
.home-client-copy small,.home-client-copy em { margin-top:3px; color:var(--muted); font-size:11.5px; font-style:normal; line-height:1.35; }
.home-client-copy em { color:#405048; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-client-summary { padding:5px 9px; border:1px solid #c9d8d0; border-radius:99px; color:#315b4a; background:#f1f6f3; font-size:11px; font-weight:800; white-space:nowrap; }
.home-live-label { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:12px; }
.home-live-label i { width:7px; height:7px; border-radius:50%; background:var(--green); }
.home-activity-list { margin-top:2px; border-top:1px solid var(--line); }
.home-activity-client { min-height:72px; padding:12px 0; display:grid; grid-template-columns:34px minmax(0,1fr) auto 12px; gap:10px; align-items:center; box-shadow:inset 3px 0 transparent; }
.home-activity-client.pending { box-shadow:inset 3px 0 var(--amber); }
.home-activity-client.attention { box-shadow:inset 3px 0 var(--red); }
.home-activity-client.clear { box-shadow:inset 3px 0 var(--green); }
.security-mfa-row { margin:20px 22px 0; padding:14px; border:1px solid #d4e3dc; border-radius:10px; background:var(--green-soft); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.security-mfa-row strong,.security-mfa-row small { display:block; }.security-mfa-row small { margin-top:3px; color:#52635b; font-size:12px; }
.rdash-toolbar { margin:20px 22px 0; display:flex; gap:10px; align-items:center; }.rdash-toolbar .search-box { flex:1; }.rdash-note { margin:12px 22px; color:var(--muted); font-size:12px; }.rdash-project-list { margin:0 22px; border:1px solid var(--line); border-radius:10px; overflow:auto; max-height:330px; }.rdash-project-option { width:100%; min-height:58px; padding:10px 13px; border:0; border-bottom:1px solid var(--line); background:#fff; color:var(--ink); display:flex; justify-content:space-between; align-items:center; gap:16px; text-align:left; }.rdash-project-option:last-child { border-bottom:0; }.rdash-project-option:hover:not(:disabled),.rdash-project-option.selected { background:var(--blue-soft); }.rdash-project-option:disabled { color:var(--muted); cursor:not-allowed; background:#fafbfa; }.rdash-project-option strong,.rdash-project-option small { display:block; }.rdash-project-option small { margin-top:3px; color:var(--muted); font-size:11px; }.rdash-project-option>span:last-child { color:var(--blue); font-size:11px; font-weight:800; white-space:nowrap; }.rdash-links { margin-top:14px; border:1px solid var(--line); border-radius:10px; overflow:hidden; }.rdash-links-head { padding:11px 13px; background:#fbfcfb; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:12px; }.rdash-links-head strong,.rdash-link-row strong,.rdash-link-row small { display:block; }.rdash-links-head small,.rdash-link-row small { color:var(--muted); font-size:11px; }.rdash-link-row { padding:10px 13px; display:flex; justify-content:space-between; gap:12px; align-items:center; border-bottom:1px solid var(--line); }.rdash-link-row:last-child { border-bottom:0; }
.client-tab-actions { display:flex; justify-content:flex-end; margin:0 0 10px; }.rdash-payment-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--line); border-radius:10px; overflow:hidden; }.rdash-payment-summary article { min-height:76px; padding:13px; border-right:1px solid var(--line); display:grid; align-content:center; gap:4px; }.rdash-payment-summary article:last-child { border-right:0; }.rdash-payment-summary small,.rdash-payment-list small { display:block; color:var(--muted); font-size:11px; }.rdash-payment-summary strong { font-size:17px; }.rdash-payment-list { margin-top:12px; border:1px solid var(--line); border-radius:10px; overflow:hidden; }.rdash-payment-list article { padding:12px 13px; border-bottom:1px solid var(--line); display:grid; grid-template-columns:minmax(150px,1fr) minmax(125px,.8fr) minmax(110px,.65fr) minmax(125px,.8fr); gap:12px; align-items:center; }.rdash-payment-list article:last-child { border-bottom:0; }.rdash-payment-list strong { display:block; }.rdash-payment-list details { color:var(--muted); font-size:11px; }.rdash-payment-list summary { cursor:pointer; color:var(--blue); font-weight:750; }.rdash-payment-list details div { margin-top:7px; }.rdash-payment-list details p { margin:3px 0; }
.home-activity-client strong,.home-activity-client small,.home-activity-client time { display:block; }
.home-activity-client strong { font-size:13px; line-height:1.35; }
.home-activity-client small { margin-top:3px; color:#454543; font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-activity-client time { margin-top:3px; color:#858582; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-activity-status { padding:4px 7px; border-radius:99px; color:#486759; background:var(--green-soft); font-size:10px; font-weight:800; white-space:nowrap; }
.home-activity-client.pending .home-activity-status { color:#865f16; background:var(--amber-soft); }
.home-activity-client.attention .home-activity-status { color:#914637; background:var(--red-soft); }
.metrics-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.metric-card,.panel { background:var(--paper); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
.metric-card { min-height:134px; padding:20px; display:grid; gap:5px; align-content:center; position:relative; overflow:hidden; }
.metric-card.accent:before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--green); }
.metric-card span,.metric-card small { color:var(--muted); font-size:13px; }
.metric-card strong { font-size:34px; line-height:1.05; }
.metric-card .connection-label { color:var(--amber); font-size:20px; }
.metric-card .connection-label.connected-text { color:var(--green); }
.home-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(310px,.65fr); gap:18px; margin-bottom:18px; align-items:start; }
.panel-header { min-height:76px; padding:18px 20px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:16px; }
.panel-header h2 { margin-top:5px; }
.stack-list,.client-row-list,.approval-list { display:grid; }
.stack-item,.client-row { width:100%; border:0; border-bottom:1px solid var(--line); background:#fff; padding:15px 20px; display:grid; align-items:center; gap:12px; color:var(--ink); text-align:left; }
.stack-item { grid-template-columns:38px minmax(0,1fr) auto 12px; }
.stack-item:last-child,.client-row:last-child { border-bottom:0; border-radius:0 0 14px 14px; }
.stack-item:hover,.client-row:hover { background:#f3f7f4; }
.command-item.urgent-command { box-shadow:inset 3px 0 var(--red); }
.stack-icon { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; font-weight:900; }
.stack-icon.pending { color:var(--amber); background:var(--amber-soft); }
.stack-icon.attention { color:var(--red); background:var(--red-soft); }
.stack-icon.complete { color:var(--green); background:var(--green-soft); }
.stack-icon.disputed { color:var(--red); background:var(--red-soft); }
.stack-copy strong,.stack-copy small,.client-row strong,.client-row small,.table-row strong,.table-row small { display:block; }
.stack-copy small,.client-row small,.table-row small { margin-top:4px; color:var(--muted); font-size:12px; }
.status-pill,.sync-pill { width:max-content; border-radius:99px; padding:5px 9px; font-size:11px; font-weight:800; white-space:nowrap; }
.status-pill.pending { color:var(--amber); background:var(--amber-soft); }
.status-pill.attention { color:var(--red); background:var(--red-soft); }
.status-pill.complete { color:var(--green); background:var(--green-soft); }
.status-pill.draft { color:#66736c; background:#eff2f0; }
.status-pill.disputed { color:#924434; background:#f8ded8; }
.sync-pill { color:#4d5d55; background:#eef3f0; }
.chevron { color:#88938d; font-size:23px; }
.setup-panel { padding:22px; }
.setup-panel h2 { margin-top:13px; }
.setup-panel>p:not(.eyebrow) { margin:8px 0 20px; color:var(--muted); font-size:14px; line-height:1.55; }
.command-panel { padding:18px; }
.work-list { display:grid; gap:10px; }
.work-card { width:100%; min-height:76px; border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; color:var(--ink); display:grid; grid-template-columns:1fr auto; gap:4px 12px; text-align:left; }
.work-card span { color:#5e6a64; font-size:12px; font-weight:850; }
.work-card strong { grid-column:2; grid-row:1 / span 2; align-self:center; font-size:24px; }
.work-card small { color:var(--muted); font-size:11px; }
.work-card.attention { border-color:#ebc0b7; background:var(--red-soft); }
.work-card.disputed { border-color:#e6c3ba; background:#fff4f1; }
.work-card.pending { border-color:#ead49b; background:var(--amber-soft); }
.work-card.complete { border-color:#c7ded0; background:var(--green-soft); }
.whatsapp-mark { width:44px; height:44px; margin-top:18px; border-radius:13px; display:grid; place-items:center; color:#fff; background:var(--green); font-weight:900; }
.setup-step { display:grid; grid-template-columns:28px 1fr; gap:10px; align-items:start; padding:10px 0; }
.setup-step>span { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; color:#7b847f; background:#eef1ef; font-size:12px; font-weight:800; }
.setup-step.done>span { color:var(--green); background:var(--green-soft); }
.setup-step strong,.setup-step small { display:block; }
.setup-step small { margin-top:3px; color:var(--muted); font-size:12px; }
.full-button { width:100%; margin-top:12px; }
.recent-panel { overflow:hidden; }
.client-row { grid-template-columns:42px minmax(180px,1fr) minmax(180px,.8fr) auto 12px; }
.client-snapshot .sync-pill { max-width:190px; overflow:hidden; text-overflow:ellipsis; }
.avatar { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; color:#315b4a; background:#e5f0e9; font-size:12px; font-weight:850; }
.row-meta { text-align:left; }
.section-toolbar { justify-content:space-between; margin-bottom:14px; }
.filter-group { padding:4px; border-radius:11px; background:#e9eeeb; }
.filter-button { min-height:34px; border:0; background:transparent; padding:0 12px; color:#626d67; font-size:13px; }
.filter-button.active { color:var(--ink); background:#fff; box-shadow:0 2px 8px rgba(22,50,36,.08); }
.select-wrap { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; font-weight:700; }
select,input { min-height:40px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); padding:0 11px; }
.approval-grid { display:grid; grid-template-columns:minmax(390px,.82fr) minmax(420px,1.18fr); gap:16px; align-items:start; }
.approval-grid>.panel { overflow:hidden; }
.subtle-count { color:var(--muted); font-size:13px; }
.approval-item { width:100%; padding:17px 20px; border:0; border-bottom:1px solid var(--line); background:#fff; display:grid; gap:7px; text-align:left; color:var(--ink); }
.approval-item:hover,.approval-item.selected { background:#f6faf7; box-shadow:inset 3px 0 var(--green); }
.approval-top,.approval-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.order-id { color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.05em; }
.attention-dot { width:8px; height:8px; margin-right:7px; border-radius:50%; display:inline-block; background:var(--red); box-shadow:0 0 0 4px var(--red-soft); vertical-align:1px; }
.attention-text { color:var(--red); }
.approval-item>small { color:var(--muted); }
.approval-bottom { margin-top:5px; color:#53605a; font-size:12px; }
.detail-panel { position:sticky; top:20px; padding:22px; }
.detail-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.detail-head h2 { margin-top:7px; max-width:520px; font-size:24px; }
.detail-summary { margin-top:12px; color:var(--muted); line-height:1.55; }
.detail-facts { margin:20px 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.detail-facts>div { min-height:74px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fafbfa; }
.detail-facts span,.detail-facts strong { display:block; }
.detail-facts span { color:var(--muted); font-size:11px; margin-bottom:6px; }
.message-preview { border:1px solid #cfe3d7; border-radius:12px; overflow:hidden; background:#eaf4ee; }
.message-head { padding:11px 13px; background:#f5faf7; color:#415049; font-size:12px; font-weight:800; }
.message-bubble { margin:14px; padding:14px; border-radius:10px 10px 10px 3px; background:#fff; color:#35433c; font-size:13px; line-height:1.5; box-shadow:0 3px 10px rgba(31,60,45,.06); }
.detail-actions { margin-top:18px; }
.danger-button,.danger-outline-button { min-height:40px; border-radius:9px; padding:0 15px; font-weight:750; }
.danger-button { border:1px solid var(--red); background:var(--red); color:#fff; }
.danger-outline-button { border:1px solid #db9d90; background:#fff; color:var(--red); }
.dispute-card { margin:0 0 20px; padding:15px; border:1px solid #e4aa9e; border-radius:11px; background:#fff7f5; }
.dispute-card h3 { margin:4px 0 0; text-transform:capitalize; }
.dispute-card>p { margin-top:10px; line-height:1.45; }
.dispute-meta { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; color:var(--muted); font-size:12px; }
.dispute-card blockquote { margin:12px 0 0; padding:10px 12px; border-left:3px solid #d67d69; background:#fff; color:#593b34; font-size:13px; }
.search-box { width:min(480px,100%); position:relative; }
.search-box span { position:absolute; z-index:1; left:13px; top:7px; color:#77817c; font-size:21px; }
.search-box input { width:100%; padding-left:40px; }
.clients-panel { overflow:hidden; }
.client-table { overflow-x:auto; }
.table-head,.table-row { min-width:980px; display:grid; grid-template-columns:1.2fr 1.05fr .9fr .8fr .72fr .55fr; gap:16px; align-items:center; padding:14px 20px; }
.table-head { color:#89928d; background:#fafbfa; border-bottom:1px solid var(--line); font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.table-row { border-bottom:1px solid var(--line); }
.table-row[data-client-detail] { cursor:pointer; }
.table-row:hover,.table-row.selected-client { background:#f6faf7; }
.table-row.selected-client { box-shadow:inset 3px 0 var(--green); }
.table-row:last-child { border-bottom:0; }
.client-cell { display:flex; align-items:center; gap:11px; }
.client-detail-panel { margin-top:18px; overflow:hidden; }
.client-command-head { min-height:90px; padding:20px; border-bottom:1px solid var(--line); display:flex; align-items:flex-start; justify-content:space-between; gap:18px; background:linear-gradient(135deg,#fff 0%,#f6faf7 100%); }
.client-command-head h2 { margin-top:6px; font-size:24px; }
.client-command-head p:not(.eyebrow) { margin-top:5px; color:var(--muted); font-size:13px; }
.client-summary { padding:18px 20px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.command-summary { padding-bottom:12px; }
.client-summary>div { padding:12px; border:1px solid var(--line); border-radius:10px; background:#fafbfa; }
.client-summary span,.client-summary strong { display:block; }
.client-summary span { margin-bottom:6px; color:var(--muted); font-size:11px; }
.signing-contact-summary { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.signing-contact-summary small { color:var(--muted); font-size:11px; }
.signing-contact-summary .text-button { margin-top:4px; padding:0; min-height:0; font-size:12px; }
.client-priority-strip { margin:0 20px 16px; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fbfcfb; display:grid; gap:8px; }
.client-priority-strip.clear { min-height:48px; display:flex; align-items:center; gap:10px; color:#315542; background:var(--green-soft); border-color:#cfe5d8; font-size:13px; }
.issue-chip { width:100%; min-height:48px; border:1px solid var(--line); border-radius:10px; padding:9px 10px; background:#fff; display:grid; grid-template-columns:12px minmax(0,1fr) auto; gap:10px; align-items:center; text-align:left; color:var(--ink); }
.issue-chip:hover { background:#f8fbf9; }
.issue-dot { width:9px; height:9px; border-radius:50%; display:block; color:transparent; }
.issue-dot.attention,.issue-dot.disputed { background:var(--red); box-shadow:0 0 0 4px var(--red-soft); }
.issue-dot.pending { background:var(--amber); box-shadow:0 0 0 4px var(--amber-soft); }
.issue-dot.complete { background:var(--green); box-shadow:0 0 0 4px var(--green-soft); }
.issue-chip-copy strong,.issue-chip-copy small { display:block; }
.issue-chip-copy small { margin-top:3px; color:var(--muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.client-workflows { margin:0 20px 18px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.active-workflows { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:0 20px 20px; }
.workflow-card { min-height:116px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff; display:grid; gap:9px; align-content:space-between; }
.workflow-card.attention { border-color:#efc0b7; background:#fff8f6; box-shadow:inset 3px 0 var(--red); }
.workflow-card>div { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.workflow-card span { color:#5f6b65; font-size:11px; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.workflow-card strong { font-size:24px; line-height:1; }
.workflow-card p { color:var(--muted); font-size:12px; line-height:1.4; }
.client-alert { margin:0 20px 18px; padding:13px 14px; border:1px solid #e8b0a5; border-radius:10px; display:flex; align-items:flex-start; gap:10px; background:var(--red-soft); }
.client-alert .attention-dot { margin-top:5px; flex:0 0 auto; }
.client-alert p { margin-top:4px; color:#704238; font-size:12px; line-height:1.45; }
.client-alert small { display:block; margin-top:5px; color:#8b5d54; font-size:11px; }
.alert-actions { margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; }
.history-filter { margin:0 20px 14px; display:flex; gap:8px; flex-wrap:wrap; }
.history-block { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.client-detail-panel .history-block { margin:0; padding:18px 20px 22px; }
.history-block h3 { margin-bottom:12px; }
.timeline-list { display:grid; }
.timeline-list article { display:grid; grid-template-columns:14px 1fr; gap:10px; padding:0 0 16px; }
.timeline-list article:last-child { padding-bottom:0; }
.timeline-marker { width:9px; height:9px; margin-top:5px; border-radius:50%; background:#8ea397; box-shadow:0 0 0 4px #edf2ef; }
.timeline-marker.inbound { background:var(--amber); }
.timeline-marker.outbound { background:var(--green); }
.timeline-list strong,.timeline-list small,.timeline-list code { display:block; }
.timeline-list small { margin-top:4px; color:var(--muted); font-size:11px; }
.timeline-list code { width:max-content; max-width:100%; margin-top:6px; padding:4px 6px; border-radius:5px; overflow:hidden; text-overflow:ellipsis; background:#f1f4f2; color:#53605a; font-size:10px; }
.automatic-reply { margin:0 0 18px; padding:14px; border:1px solid #cfe3d7; border-radius:10px; background:#f4faf6; }
.automatic-reply p { margin-top:6px; color:#35433c; line-height:1.45; }
.automatic-reply small { display:block; margin-top:7px; color:var(--muted); text-transform:capitalize; }
.empty-state,.empty-row { padding:34px 20px; text-align:center; color:var(--muted); }
.empty-state strong { color:var(--ink); }
.empty-state p { margin-top:5px; }
.modal { position:relative; width:min(720px,calc(100vw - 28px)); max-height:calc(100vh - 28px); border:0; border-radius:16px; padding:0; box-shadow:0 30px 100px rgba(17,37,27,.28); }
.wide-modal { width:min(860px,calc(100vw - 28px)); }
.issue-modal { width:min(720px,calc(100vw - 28px)); }
.modal::backdrop { background:rgba(13,31,22,.55); backdrop-filter:blur(2px); }
.modal-body { padding:0; }
.modal-head { padding:22px 22px 18px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.modal-head h2 { margin-top:6px; font-size:25px; }
.modal-head>div>p:last-child { margin-top:6px; color:var(--muted); font-size:13px; }
.icon-button { width:38px; min-height:38px; padding:0; font-size:24px; color:#6e7873; }
.cancellation-form > label { margin:20px 22px 0; display:grid; gap:7px; color:#3f4a45; font-size:13px; font-weight:750; }
.cancellation-form > label textarea { width:100%; min-height:96px; border:1px solid var(--line); border-radius:10px; padding:11px 12px; resize:vertical; font:inherit; line-height:1.45; }
.cancellation-form .form-note { margin:18px 22px 0; }
.cancellation-form .modal-actions { padding:20px 22px 22px; }
.form-grid { padding:20px 22px 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.form-grid label { display:grid; gap:6px; color:#59635e; font-size:12px; font-weight:750; }
.field-help { color:var(--muted); font-size:11px; line-height:1.4; font-weight:500; }
.form-grid input,.form-grid select { width:100%; }
.form-grid textarea { width:100%; min-height:88px; border:1px solid var(--line); border-radius:9px; padding:10px 11px; resize:vertical; font:inherit; }
.form-grid .form-section { display:grid; gap:3px; padding:16px 0 2px; border-top:1px solid var(--line); color:#29362f; }
.form-grid .form-section:first-child { padding-top:0; border-top:0; }
.form-grid .form-section strong { font-size:14px; }
.form-grid .form-section small { color:#748078; font-size:12px; font-weight:550; line-height:1.45; }
.form-grid label.checkbox-field { display:grid; grid-template-columns:18px minmax(0,1fr); align-items:center; gap:10px; min-height:48px; padding:11px 13px; border:1px solid var(--line); border-radius:10px; background:#fafcfb; color:#40524a; font-size:12px; line-height:1.35; }
.form-grid label.checkbox-field input[type="checkbox"] { width:18px; height:18px; margin:0; accent-color:var(--green); }
.form-grid label.checkbox-field:hover { border-color:#b7c8bd; background:#f4f8f5; }
.payment-pack-details { margin:16px 22px 0; display:grid; gap:7px; color:#59635e; font-size:12px; font-weight:750; }
.payment-pack-details textarea { width:100%; min-height:92px; box-sizing:border-box; border:1px solid var(--line); border-radius:9px; padding:10px 11px; resize:vertical; font:inherit; line-height:1.45; }
.payment-pack-details small { color:var(--muted); font-size:11px; font-weight:500; line-height:1.45; }
.callback-note-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; }
.callback-note-form textarea { width:100%; min-height:92px; box-sizing:border-box; border:1px solid var(--line); border-radius:9px; padding:10px 11px; resize:vertical; font:inherit; line-height:1.45; }
.callback-note-form .small-button { min-height:40px; }
.client-notes-head { margin:0 20px; padding:14px 0 13px; border-bottom:1px solid var(--line); display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.client-notes-head h3 { margin:2px 0 4px; font-size:16px; }
.client-notes-head p:not(.eyebrow) { max-width:560px; color:var(--muted); font-size:12px; line-height:1.45; }
.client-notes-head>span { flex:0 0 auto; color:var(--muted); font-size:12px; font-weight:750; }
.client-internal-notes-list { margin:0 20px; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.client-internal-notes-list article { display:grid; grid-template-columns:minmax(190px,.8fr) minmax(0,1.5fr) auto; gap:16px; align-items:center; padding:13px 14px; border-bottom:1px solid var(--line); }
.client-internal-notes-list article:last-child { border-bottom:0; }
.client-internal-notes-list article>div { display:grid; gap:4px; }
.client-internal-notes-list strong { font-size:12px; }
.client-internal-notes-list small { color:var(--muted); font-size:10.5px; }
.client-internal-notes-list p { margin:0; color:#45534c; font-size:12px; line-height:1.45; white-space:pre-wrap; }
.internal-note-kind { width:max-content; padding:3px 6px; border-radius:999px; background:var(--green-soft); color:var(--green); font-size:9px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.visually-hidden { 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; }
.representative-card { display:grid; gap:14px; align-content:start; padding:16px; border:1px solid var(--line); border-radius:12px; background:#fbfcfb; }
.representative-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.representative-card-head strong { display:block; color:#26342d; font-size:14px; }
.representative-card-head small { display:block; margin-top:3px; color:var(--muted); font-size:11px; font-weight:550; line-height:1.4; }
.representative-card .small-button { min-height:32px; padding:7px 10px; font-size:11px; white-space:nowrap; }
.representative-fields,.project-manager-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
.project-manager-rows { display:grid; gap:10px; }
.project-manager-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px; align-items:end; }
.project-manager-remove { width:34px; min-height:34px; font-size:20px; }
.project-manager-remove:disabled { visibility:hidden; }
.representative-card .checkbox-field.representative-opt-in { min-height:42px; padding:9px 10px; font-size:11px; }
.one-column { grid-template-columns:1fr; }
.dispute-note { background:var(--red-soft); color:#704238; }
.reply-readiness { margin:20px 22px 0; padding:15px; border:1px solid var(--line); border-radius:11px; display:flex; gap:13px; align-items:flex-start; background:#fafbfa; }
.reply-readiness p { margin-top:5px; color:var(--muted); font-size:13px; line-height:1.45; }
.readiness-icon { width:34px; height:34px; flex:0 0 auto; border-radius:50%; display:grid; place-items:center; font-weight:900; }
.readiness-icon.ready { color:var(--green); background:var(--green-soft); }
.readiness-icon.waiting { color:var(--amber); background:var(--amber-soft); }
.readiness-icon.error { color:var(--red); background:var(--red-soft); }
.readiness-badge { display:inline-block; margin:10px 6px 0 0; padding:5px 8px; border-radius:99px; font-size:10px; font-weight:800; }
.readiness-badge.ready { color:var(--green); background:var(--green-soft); }
.readiness-badge.waiting { color:var(--amber); background:var(--amber-soft); }
.reply-guide { padding:18px 22px 0; display:grid; gap:12px; }
.guide-step { display:grid; grid-template-columns:34px 1fr; gap:13px; padding:15px; border:1px solid var(--line); border-radius:11px; }
.guide-step>span { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; color:var(--green); background:var(--green-soft); font-size:12px; font-weight:900; }
.guide-step h3 { margin:2px 0 5px; }
.guide-step p { color:var(--muted); font-size:13px; line-height:1.5; }
.guide-step.future { background:#fafbfa; }
.copy-spec { margin:12px 0; padding:12px; border-radius:9px; background:#f4f7f5; display:grid; grid-template-columns:110px 1fr; gap:7px 12px; font-size:12px; }
.copy-spec strong { color:#56625c; }
.copy-spec span { color:var(--ink); }
.guide-warning { color:#80632b!important; }
.secondary-link { min-height:40px; border:1px solid var(--line); border-radius:9px; padding:10px 15px; color:var(--ink); background:#fff; text-decoration:none; font-weight:750; }
.span-two { grid-column:span 2; }
.form-note { margin:18px 22px 0; padding:12px 14px; border-radius:10px; display:flex; align-items:flex-start; gap:10px; background:var(--amber-soft); color:#6f5a30; font-size:12px; line-height:1.45; }
.id-explainer { margin:18px 22px 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.id-explainer>div { padding:12px; border:1px solid var(--line); border-radius:10px; background:#fafbfa; }
.id-explainer strong,.id-explainer span { display:block; }
.id-explainer span { margin-top:4px; color:var(--muted); font-size:11px; line-height:1.4; }
.form-note strong { color:#59461e; }
.template-preview { margin:18px 22px 0; padding:14px; border:1px solid #cfe3d7; border-radius:11px; background:#f4faf6; color:#415049; }
.template-preview>p { color:var(--muted); }
.template-meta { display:flex; justify-content:space-between; gap:12px; margin-bottom:12px; }
.template-meta span { color:var(--muted); font-size:12px; }
.preview-component { padding:10px 12px; border-radius:9px; background:#fff; margin-top:8px; }
.preview-component small { color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.08em; }
.preview-component p { margin-top:5px; white-space:pre-wrap; line-height:1.45; font-size:13px; }
.document-component { border:1px dashed #b7cec0; background:#fbfdfc; }
.reply-preview { display:grid; gap:7px; margin-top:10px; }
.reply-preview small { color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.08em; }
.reply-preview span { padding:9px 12px; border:1px solid #bcd8c7; border-radius:8px; background:#fff; color:var(--green); text-align:center; font-size:12px; font-weight:800; }
.reply-webhook-note { margin-top:10px; color:#6f5a30!important; font-size:11px; line-height:1.4; }
.template-warning { margin-top:10px; color:var(--red)!important; font-size:12px; font-weight:700; }
.template-fields { margin:14px 22px 0; }
.dynamic-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.dynamic-grid label { display:grid; gap:6px; color:#59635e; font-size:12px; font-weight:750; }
.pdf-upload { padding:14px; border:1px dashed #9ebcab; border-radius:10px; background:#f5faf7; }
.pdf-upload input { padding:8px; background:#fff; }
.pdf-upload small { color:var(--muted); font-weight:500; }
.no-variables { color:var(--muted); font-size:12px; }
.neutral-note { background:var(--green-soft); color:#365946; }
.modal-actions { padding:18px 22px 22px; display:flex; justify-content:flex-end; gap:9px; }
#designApprovalDetailActions { display:grid; grid-template-columns:1fr; gap:10px; align-items:stretch; }
.design-action-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:0 1px; }
.design-action-heading strong { font-size:13px; }
.design-action-heading small { color:var(--muted); font-size:10px; text-align:right; }
.design-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.design-action-card { min-height:64px; padding:11px 12px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); text-align:left; display:grid; align-content:center; gap:3px; }
.design-action-card:hover { border-color:#98aea3; background:#fbfcfb; }
.design-action-card strong,.design-action-card small { display:block; }
.design-action-card strong { font-size:12px; line-height:1.2; }
.design-action-card small { color:var(--muted); font-size:10px; line-height:1.3; font-weight:600; }
.design-action-card.recommended { border-color:#82ad9a; background:var(--green-soft); }
.design-action-card.recommended strong { color:var(--green); }
.design-action-card.danger { border-color:#e0aaa0; background:#fffafa; }
.design-action-card.danger strong { color:var(--red); }
#designApprovalDetailModal { height:min(860px,calc(100vh - 28px)); }
#designApprovalDetailModal .modal-body { height:100%; display:grid; grid-template-rows:auto auto minmax(0,1fr); overflow:hidden; }
#designApprovalDetailModal .detail-modal-body { grid-row:3; min-height:0; max-height:none; overflow-y:auto; overscroll-behavior:contain; }
#designApprovalDetailActions { grid-row:2; gap:8px; padding:12px 22px 16px; border-top:0; background:var(--green); box-shadow:0 8px 18px rgba(24,42,33,.14); }
#designApprovalDetailActions .design-action-heading strong,#designApprovalDetailActions .design-action-heading small { color:#fff; }
#designApprovalDetailActions .design-action-primary .primary-button { width:100%; min-height:42px; border-color:#fff; background:#fff; color:var(--green); }
.design-action-secondary-label { color:#d6e6de; font-size:10px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
#designApprovalDetailActions .design-action-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#designApprovalDetailActions .design-action-row:has(> :only-child) { grid-template-columns:1fr; }
#designApprovalDetailActions .secondary-button,#designApprovalDetailActions .danger-outline-button { min-height:34px; padding:0 12px; border-color:rgba(255,255,255,.45); background:rgba(255,255,255,.1); color:#fff; font-size:12px; white-space:nowrap; }
#designApprovalDetailActions .secondary-button:hover { background:rgba(255,255,255,.18); }
#designApprovalDetailActions .danger-outline-button { border-color:#f0b1a6; color:#fff1ee; }
.small-button { min-height:32px; border:1px solid var(--line); border-radius:8px; padding:0 10px; background:#fff; color:var(--green); font-size:12px; font-weight:800; }
.client-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.client-tabs { padding:0 20px 14px; display:flex; gap:8px; flex-wrap:wrap; }
.client-tab { min-height:34px; border:1px solid var(--line); border-radius:999px; padding:0 12px; background:#fff; color:#5f6a64; font-size:12px; font-weight:800; }
.client-tab.active { color:#fff; border-color:var(--green); background:var(--green); }
.client-tab span { margin-left:5px; opacity:.75; }
.client-tab-panel { padding:0 0 2px; }
.client-whatsapp-head { margin:0 20px; padding:14px 0 13px; border-bottom:1px solid var(--line); display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.client-whatsapp-head h3 { margin:2px 0 4px; font-size:16px; }
.client-whatsapp-head p:not(.eyebrow) { max-width:560px; color:var(--muted); font-size:12px; line-height:1.45; }
.client-whatsapp-head>span { flex:0 0 auto; margin-top:6px; padding:6px 9px; border-radius:999px; background:var(--green-soft); color:var(--green); font-size:11px; font-weight:800; }
.whatsapp-activity-list { margin:18px 20px 22px; }
.client-linked-grid { display:grid; gap:0; }
.client-linked-block { margin:0 20px 18px; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.active-workflows .client-linked-block { min-width:0; margin:0; }
.active-workflows .client-linked-wide { grid-column:1 / -1; }
.linked-head { min-height:58px; padding:11px 14px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:12px; background:#fafbfa; }
.linked-head h3 { margin:0; font-size:14px; }
.linked-head .eyebrow { margin-bottom:3px; font-size:9px; }
.client-overview-list { display:grid; }
.client-overview-row { width:100%; min-width:0; padding:13px 14px; border:0; border-bottom:1px solid var(--line); background:#fff; color:var(--ink); display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; text-align:left; }
.client-overview-row:last-child { border-bottom:0; }
.client-overview-row:hover { background:#fbfcfb; }
.client-overview-copy { min-width:0; }
.client-overview-copy strong,.client-overview-copy small { display:block; }
.client-overview-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.client-overview-copy small { margin-top:4px; overflow:hidden; color:var(--muted); font-size:10px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.client-overview-status { display:flex; align-items:center; gap:9px; color:#8b9690; font-size:18px; }
.receipt-mini-list { display:grid; }
.receipt-mini-list article { padding:11px 14px; border-bottom:1px solid var(--line); display:grid; grid-template-columns:1.1fr 1fr auto auto; gap:12px; align-items:center; font-size:12px; }
.receipt-mini-list article:last-child { border-bottom:0; }
.receipt-mini-list strong,.receipt-mini-list small { display:block; }
.receipt-mini-list small { margin-top:3px; color:var(--muted); font-size:10px; }
.receipt-mini-list a,.file-links a { color:var(--green); font-size:11px; font-weight:850; text-decoration:none; }
.compact-empty { padding:18px; }
.receipts-panel { overflow:hidden; }
.receipt-table { overflow-x:auto; }
.receipt-table-head,.receipt-row { min-width:1080px; display:grid; grid-template-columns:1.05fr .85fr 1.25fr .75fr .75fr .55fr .8fr; gap:14px; align-items:center; }
.receipt-table-head { padding:11px 16px; color:#87908b; background:#fafbfa; border-bottom:1px solid var(--line); font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.receipt-row { padding:12px 16px; border-bottom:1px solid var(--line); font-size:12px; }
.receipt-row:last-child { border-bottom:0; }
.receipt-row strong,.receipt-row small { display:block; }
.receipt-row small { margin-top:3px; color:var(--muted); font-size:10px; }
.receipt-actions { display:flex; gap:8px; flex-wrap:wrap; }
.sync-pill.receipt-sent { color:#256548; background:#e6f4ed; }
.sync-pill.receipt-ready { color:#8a5a00; background:#fff4d8; }
.sync-pill.receipt-draft { color:#676f6b; background:#eef1ef; }
.small-button.muted { color:#8a928e; background:#f2f4f3; box-shadow:none; cursor:not-allowed; }
.small-button.secondary { color:#2f463b; background:#eef4f1; box-shadow:none; }
.small-button.danger { color:#9a3c2a; border-color:#efc0b7; background:#fff8f6; }
.small-button.danger:hover { background:#fcedea; }
.file-links { display:flex; gap:9px; flex-wrap:wrap; align-items:center; }
.design-approval-table { overflow-x:auto; }
.design-approval-table-head,.design-approval-row { min-width:1300px; display:grid; grid-template-columns:1fr 1.15fr .58fr .95fr .8fr .9fr .75fr 1fr; gap:14px; align-items:center; }
.design-approval-table-head { padding:11px 16px; color:#87908b; background:#fafbfa; border-bottom:1px solid var(--line); font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.design-approval-row { padding:12px 16px; border-bottom:1px solid var(--line); font-size:12px; }
.design-approval-row:last-child { border-bottom:0; }
.design-approval-row strong,.design-approval-row small { display:block; }
.design-approval-row small { margin-top:3px; color:var(--muted); font-size:10px; line-height:1.35; }
.design-approval-row a { color:var(--green); font-size:11px; font-weight:850; text-decoration:none; }
.signature-cell { display:grid; gap:4px; justify-items:start; }
.signature-cell a { color:var(--green); font-size:11px; font-weight:850; text-decoration:none; }
.signature-cell a:hover { text-decoration:underline; }
.signature-cell small { margin:0; color:var(--muted); font-size:10px; }
.version-badge { display:inline-flex; align-items:center; min-height:25px; padding:0 8px; border-radius:999px; color:#245f48; background:#e8f3ed; font-size:11px; font-weight:850; }
.feedback-summary { width:100%; padding:0; border:0; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.feedback-summary strong,.feedback-summary small { display:block; }
.feedback-summary strong { color:#245f48; font-size:12px; }
.feedback-summary small { margin-top:3px; color:var(--muted); font-size:10px; }
.feedback-summary:hover strong { text-decoration:underline; }
.detail-modal-body { padding:18px 22px 4px; max-height:calc(100vh - 220px); overflow:auto; }
.change-request-list { display:grid; gap:10px; }
.change-request-card { padding:12px; border:1px solid var(--line); border-radius:10px; background:#fbfcfb; }
.change-request-card>div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.change-request-card p { margin:8px 0; color:var(--ink); font-size:13px; line-height:1.45; }
.change-request-card small { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.detail-tabs { display:flex; gap:7px; padding:16px 0 4px; overflow-x:auto; border-bottom:1px solid var(--line); }
.detail-tab { min-height:32px; padding:0 11px; border:1px solid transparent; border-radius:8px 8px 0 0; background:transparent; color:var(--muted); font-size:11px; font-weight:800; white-space:nowrap; }
.detail-tab:hover { color:var(--ink); background:#f5f7f6; }
.detail-tab.active { color:var(--green); border-color:var(--line); border-bottom-color:#fff; background:#fff; transform:translateY(1px); }
.detail-tab span { display:inline-grid; min-width:17px; height:17px; place-items:center; margin-left:4px; border-radius:99px; background:#edf1ef; color:#64706a; font-size:9px; }
.design-detail-tab-content { min-height:260px; }
.feedback-version-group { padding:16px 0; border-top:1px solid var(--line); }
.feedback-version-group:first-child { border-top:0; }
.feedback-version-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.feedback-version-head strong,.feedback-version-head small { display:block; }
.feedback-version-head strong { font-size:13px; }
.feedback-version-head small { margin-top:3px; color:var(--muted); font-size:10px; }
.feedback-version-head>span { padding:4px 7px; border-radius:99px; color:#5f6a64; background:#eff3f1; font-size:10px; font-weight:800; white-space:nowrap; }
.feedback-bullet-list { margin:9px 0 8px; padding-left:18px; color:var(--ink); }
.feedback-bullet-list li { margin:5px 0; padding-left:2px; font-size:12px; line-height:1.45; }
.file-link-large { display:inline-flex; min-height:34px; align-items:center; padding:0 12px; border:1px solid var(--line); border-radius:8px; color:var(--green); font-size:12px; font-weight:850; text-decoration:none; }
.current-version-card { background:#fbfcfb; border:1px solid var(--line); border-radius:12px; padding:12px; }
.revision-history { margin-top:10px; }
.revision-list { display:grid; gap:8px; margin-top:10px; }
.revision-row { padding:10px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.revision-row>div { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.revision-row p { margin:7px 0 4px; font-size:12px; font-weight:800; }
.revision-row a { color:var(--green); text-decoration:none; }
.revision-row small { display:block; color:var(--muted); font-size:10px; line-height:1.35; }
.issue-summary { margin-bottom:16px; }
.issue-description { text-align:left; padding:0; color:#2f3d36; line-height:1.5; }
.work-queue-panel { overflow:hidden; }
.work-queue-list { display:grid; gap:0; }
.work-client-group { border-bottom:1px solid var(--line); background:#fff; }
.work-client-group:last-child { border-bottom:0; }
.work-client-head { min-height:66px; padding:14px 18px; display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:12px; background:#fbfcfb; border-bottom:1px solid var(--line); }
.work-client-head strong,.work-client-head small { display:block; }
.work-client-head small { margin-top:3px; color:var(--muted); font-size:12px; }
.work-client-items { display:grid; }
.work-client-items .stack-item { border-radius:0; }
.work-client-items .stack-item:last-child { border-radius:0; }
.work-queue-item { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; border-bottom:1px solid var(--line); background:#fff; }
.work-queue-item .stack-item { border:0; }
.work-queue-item .small-button { margin-right:16px; white-space:nowrap; }
.request-table { overflow-x:auto; }
.request-table-head,.request-row { min-width:1320px; display:grid; grid-template-columns:.95fr .95fr 1.35fr .75fr .85fr .95fr 1.1fr .65fr; gap:18px; align-items:center; }
.request-table-head { padding:11px 16px; color:#87908b; background:#fafbfa; border-bottom:1px solid var(--line); font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.request-row { min-height:82px; padding:15px 16px; border-bottom:1px solid var(--line); font-size:12px; }
.request-row:last-child { border-bottom:0; }
.request-row strong,.request-row small { display:block; }
.request-row small { margin-top:3px; color:var(--muted); font-size:10px; }
.request-row .file-links { display:grid; grid-template-columns:repeat(2,minmax(0,auto)); gap:5px 12px; align-items:start; }
.request-row .file-links a { width:max-content; max-width:100%; line-height:1.25; }
.request-row .receipt-actions { justify-content:flex-start; }
.request-row .sync-pill { white-space:normal; line-height:1.2; }
.payment-workspace-summary { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 20px; border:1px solid var(--line); border-radius:14px; margin-bottom:16px; background:var(--panel); }
.payment-workspace-summary p { margin:0; color:var(--muted); }
.payment-workspace-summary h3 { margin:3px 0 6px; font-size:16px; }
.payment-workspace-setup { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,.9fr); align-items:center; }
.payment-workspace-setup>small { grid-column:1 / -1; margin-top:10px; color:var(--muted); }
.payment-setup-actions { display:flex; justify-content:flex-end; align-items:center; gap:8px; flex-wrap:wrap; }
.payment-setup-actions select { min-width:205px; min-height:36px; border:1px solid var(--line); border-radius:8px; padding:0 10px; background:#fff; color:var(--ink); font:inherit; }
.payment-workspace-section { margin-top:18px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--panel); }
.payment-project-card { margin-top:18px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--panel); }
.payment-project-card>header { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 20px; background:#fbfcfb; border-bottom:1px solid var(--line); }
.payment-project-card h3,.payment-project-card p { margin:0; }
.payment-project-card header small { display:block; margin-top:4px; color:var(--muted); }
.project-payment-totals { text-align:right; }
.project-payment-totals strong,.project-payment-totals small { display:block; }
.project-payment-totals strong { font-size:20px; }
.project-payment-totals small { color:var(--muted); }
.project-payment-head,.project-payment-row { display:grid; grid-template-columns:32px 1fr .9fr 1.25fr 1.4fr; gap:16px; align-items:center; }
.project-payment-head { padding:10px 20px; color:#87908b; background:#fafbfa; border-bottom:1px solid var(--line); font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.project-payment-row { min-height:88px; padding:14px 20px; border-bottom:1px solid var(--line); font-size:12px; }
.project-payment-row[data-payment-request-row] { cursor:pointer; }
.project-payment-row:last-child { border-bottom:0; }
.payment-request-section-label { display:flex; align-items:baseline; gap:10px; padding:12px 20px 8px; background:#fffdf7; border-bottom:1px solid var(--line); }
.payment-request-section-label strong { font-size:12px; }
.payment-request-section-label span { color:var(--muted); font-size:11px; }
.payment-request-section-label.subdued { background:#fafbfa; }
.project-payment-row.due-now { box-shadow:inset 3px 0 #d7a32c; }
.project-payment-row.not-due { background:#fafbfa; color:#66716b; }
.payment-row-note { display:inline-block; color:#9aa39e; font-weight:700; }
.project-payment-row strong,.project-payment-row small { display:block; }
.project-payment-row small { margin-top:3px; color:var(--muted); line-height:1.35; }
.project-payment-row details { margin-top:6px; color:var(--muted); }
.project-payment-row summary { cursor:pointer; color:var(--blue); font-weight:750; }
.project-payment-row details p { margin:4px 0; }
.payment-pack-review { display:grid; gap:0; margin-bottom:18px; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.payment-pack-review article { display:grid; grid-template-columns:1fr auto; gap:8px 16px; padding:13px 15px; border-bottom:1px solid var(--line); }
.payment-pack-review article:last-child { border-bottom:0; }
.payment-pack-review small { grid-column:1 / -1; color:var(--muted); line-height:1.4; }
.payment-pack-milestones { margin:0 22px 18px; padding:14px; border:1px solid #cfe2d8; border-radius:12px; background:#f6fbf8; }
.payment-pack-milestones-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:10px; }
.payment-pack-milestones-head strong,.payment-pack-milestones-head small { display:block; }
.payment-pack-milestones-head small { margin-top:3px; color:var(--muted); font-size:12px; font-weight:500; line-height:1.4; }
.payment-pack-milestones-head span { color:var(--muted); font-size:12px; font-weight:700; white-space:nowrap; }
.payment-pack-milestone-options { display:grid; gap:8px; }
.payment-pack-milestone-option { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; align-items:center; gap:10px; padding:10px 11px; border:1px solid var(--line); border-radius:9px; background:#fff; cursor:pointer; }
.payment-pack-milestone-option input { width:17px; height:17px; margin:0; accent-color:var(--green); }
.payment-pack-milestone-option strong,.payment-pack-milestone-option small { display:block; }
.payment-pack-milestone-option small { margin-top:2px; color:var(--muted); font-size:12px; }
.payment-pack-milestone-option > span { font-size:13px; font-weight:750; white-space:nowrap; }
.payment-pack-row,.payment-claim-row { display:grid; grid-template-columns:1.3fr 1fr 1fr auto; gap:16px; align-items:center; padding:14px 16px; border-top:1px solid var(--line); }
.payment-pack-row small,.payment-claim-row small { display:block; margin-top:4px; color:var(--muted); }
.receipt-allocation-summary { margin:18px 22px 0; padding:13px 15px; border:1px solid var(--line); border-radius:10px; display:grid; grid-template-columns:1fr 1fr; gap:4px 16px; background:#fafbfa; }
.receipt-allocation-summary strong,.receipt-allocation-summary span { font-size:13px; }
.receipt-allocation-summary span { text-align:right; font-weight:800; }
.receipt-allocation-summary small { grid-column:1 / -1; color:var(--muted); font-size:11px; line-height:1.45; }
.receipt-allocation-list { margin:18px 22px 0; display:grid; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.receipt-allocation-row { display:grid; grid-template-columns:minmax(0,1fr) 150px; gap:14px; align-items:center; padding:12px 14px; border-bottom:1px solid var(--line); }
.receipt-allocation-row:last-child { border-bottom:0; }
.receipt-allocation-row strong,.receipt-allocation-row small { display:block; }
.receipt-allocation-row strong { font-size:12px; }
.receipt-allocation-row small { margin-top:3px; color:var(--muted); font-size:10px; }
.receipt-allocation-row input { min-height:37px; }
.receipt-allocation-add { margin:12px 22px 0; display:flex; align-items:end; gap:10px; }
.receipt-allocation-add label { flex:1; display:grid; gap:6px; color:#59635e; font-size:12px; font-weight:750; }
.receipt-allocation-add small { color:var(--muted); font-size:11px; }
.receipt-allocation-add button { flex:0 0 auto; }
.override-reason { display:grid; gap:7px; margin:18px 22px 0; color:#69511b; font-size:12px; font-weight:750; }
.override-reason textarea { width:100%; min-height:82px; margin:0; border:1px solid var(--line); border-radius:9px; padding:10px 11px; resize:vertical; font:inherit; box-sizing:border-box; }
.override-ack { margin:12px 22px 0; display:flex; align-items:flex-start; gap:8px; color:#69511b; font-size:12px; line-height:1.45; }
.override-ack input { width:auto; margin-top:2px; }
.payment-reply-timeline { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.payment-reply-row { display:grid; grid-template-columns:1fr 1.5fr auto; gap:16px; align-items:center; padding:14px 16px; border-top:1px solid var(--line); }
.payment-reply-row:first-child { border-top:0; }
.payment-reply-row span:nth-child(2) { font-weight:700; }
.payment-reply-row small { display:block; margin-top:4px; color:var(--muted); }
.payment-send-disabled { color:var(--muted); font-weight:700; white-space:nowrap; }
.request-row.rdash-request-row { grid-template-columns:32px 1fr 1.1fr 1fr 1fr 1.1fr; min-width:0; }
.payment-workspace-section .request-table-head { min-width:0; grid-template-columns:32px 1fr 1.1fr 1fr 1fr 1.1fr; }
.client-orders-panel { overflow:hidden; }
.panel-subtitle { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.45; }
.client-orders-workspace { padding:18px; background:#fbfcfb; }
.client-orders-setup { display:grid; grid-template-columns:minmax(0,1fr) minmax(330px,.95fr); gap:16px 22px; align-items:center; padding:18px 20px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.client-orders-setup h3,.client-orders-setup p { margin:0; }
.client-orders-setup h3 { margin:3px 0 6px; font-size:16px; }
.client-orders-setup p { color:var(--muted); font-size:12px; line-height:1.45; }
.client-orders-controls { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
.client-orders-controls select { min-width:205px; min-height:36px; border:1px solid var(--line); border-radius:8px; padding:0 10px; background:#fff; color:var(--ink); font:inherit; }
.client-orders-links { grid-column:1 / -1; display:flex; gap:16px; padding-top:12px; border-top:1px solid var(--line); }
.client-orders-empty { margin-top:16px; padding:42px 24px; text-align:center; border:1px dashed #cbd5cf; border-radius:14px; background:#fff; }
.client-orders-empty strong,.client-orders-empty p { display:block; }
.client-orders-empty p { max-width:540px; margin:8px auto 0; color:var(--muted); font-size:13px; line-height:1.5; }
.client-orders-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:16px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; }
.client-orders-summary article { padding:14px 18px; border-right:1px solid var(--line); }
.client-orders-summary article:last-child { border-right:0; }
.client-orders-summary small,.client-orders-summary strong { display:block; }
.client-orders-summary small { color:var(--muted); font-size:11px; }
.client-orders-summary strong { margin-top:4px; font-size:16px; }
.client-orders-warning { margin-top:16px; padding:13px 16px; border:1px solid #eadba8; border-radius:12px; background:#fffcf1; color:#66511a; font-size:12px; }
.client-orders-warning ul { margin:7px 0 0 18px; padding:0; }
.client-orders-warning li { margin:3px 0; }
.client-orders-list { display:grid; gap:12px; margin-top:16px; }
.client-order-card { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#fff; }
.client-order-card>header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:16px 18px; border-bottom:1px solid var(--line); }
.client-order-card h3,.client-order-card p { margin:0; }
.client-order-card h3 { margin-top:4px; font-size:16px; }
.client-order-card>header p { margin-top:5px; color:var(--muted); font-size:11px; }
.client-order-total { display:grid; justify-items:end; gap:5px; text-align:right; }
.client-order-total strong { font-size:15px; }
.client-order-total small { color:var(--muted); font-size:10px; }
.client-order-description { padding:12px 18px 0; color:#52605a; font-size:12px; line-height:1.45; }
.client-order-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:14px 18px 0; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.client-order-facts div { min-width:0; padding:10px 12px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.client-order-facts div:nth-child(4n) { border-right:0; }
.client-order-facts div:nth-last-child(-n+4) { border-bottom:0; }
.client-order-facts dt,.client-order-facts dd { margin:0; overflow-wrap:anywhere; }
.client-order-facts dt { color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.client-order-facts dd { margin-top:4px; color:#26342d; font-size:11px; font-weight:700; line-height:1.35; }
.client-order-address { display:grid; gap:4px; padding:12px 18px 0; color:#52605a; font-size:11px; line-height:1.45; }
.client-order-address strong { color:#35443d; }
.client-order-sections { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin-top:14px; border-top:1px solid var(--line); }
.client-order-sections-five { grid-template-columns:repeat(5,minmax(0,1fr)); }
.client-order-sections details { min-width:0; padding:13px 14px; border-right:1px solid var(--line); }
.client-order-sections details:last-child { border-right:0; }
.client-order-sections summary { display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:pointer; color:#35443d; font-size:12px; font-weight:800; }
.client-order-sections summary b { display:inline-grid; min-width:20px; height:20px; place-items:center; border-radius:99px; background:#eef2ef; color:#52605a; font-size:10px; }
.client-order-sections ul { display:grid; gap:8px; margin:12px 0 0; padding:0; list-style:none; }
.client-order-sections li { padding-bottom:8px; border-bottom:1px solid #edf0ee; font-size:11px; }
.client-order-sections li:last-child { padding-bottom:0; border-bottom:0; }
.client-order-sections li strong,.client-order-sections li small { display:block; }
.client-order-sections li span,.client-order-sections li small { margin-top:3px; color:var(--muted); font-size:10px; line-height:1.35; }
.client-order-item-description { margin-top:6px; }
.client-order-item-description summary { display:inline-flex; min-height:0; color:var(--green); font-size:10px; font-weight:800; }
.client-order-item-description p { margin:6px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }
.client-order-muted { color:var(--muted); font-size:11px; }
.client-order-documents { display:grid; gap:7px; margin-top:12px; }
.client-order-documents a { display:block; color:var(--green); font-size:11px; font-weight:800; text-decoration:none; overflow-wrap:anywhere; }
.client-order-documents small { display:block; margin-top:3px; color:var(--muted); font-weight:500; }
.compact-client-payment { margin-top:18px; padding:14px 16px; }
.compact-client-payment p { margin:8px 0 0; color:var(--muted); }
.vendor-table { overflow-x:auto; }
.vendor-table-head,.vendor-row { min-width:1080px; display:grid; grid-template-columns:1fr 1.05fr .85fr 1.2fr .65fr .9fr; gap:14px; align-items:center; }
.vendor-table-head { padding:11px 16px; color:#87908b; background:#fafbfa; border-bottom:1px solid var(--line); font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.vendor-row { padding:12px 16px; border-bottom:1px solid var(--line); font-size:12px; }
.vendor-row:last-child { border-bottom:0; }
.vendor-row strong,.vendor-row small { display:block; }
.vendor-row small { margin-top:3px; color:var(--muted); font-size:10px; }
.vendor-preview-block pre { margin:0; white-space:pre-wrap; font:13px/1.55 inherit; color:#2e3b35; }
.mis-update-list { display:grid; gap:14px; padding:4px 0; }
.mis-update-card { border:1px solid var(--line); border-radius:14px; padding:18px; background:#fff; }
.mis-update-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.mis-update-head h3 { margin:4px 0 6px; font-size:20px; }.mis-update-head p { margin:0; color:var(--muted); }
.mis-progress { margin-top:16px; padding:13px 15px; background:#f2f7f4; border-radius:10px; color:#34443c; }.mis-progress strong { display:block; margin-bottom:6px; }.mis-progress ul { margin:0; padding-left:20px; display:grid; gap:5px; }
#clientsView [hidden] { display:none !important; }
#archivedClientsSection { display:grid; gap:20px; }
#archivedClientsSection .panel-body { padding:20px; }
#archivedClientList { display:grid; gap:12px; }
#archivedClientHistory:empty { display:none; }
#archivedClientHistory details { margin-bottom:16px; }
#archivedClientHistory summary { cursor:pointer; font-weight:700; padding:12px 0; }
#archivedClientHistory li { margin-bottom:12px; overflow-wrap:anywhere; }
#archivedClientHistory p { white-space:pre-wrap; }
.mis-update-actions { margin-top:16px; display:flex; align-items:center; gap:10px; }.mis-sent-detail { font-size:13px; color:var(--muted); }.mis-preview-block ol { margin:10px 0 0; padding-left:22px; display:grid; gap:5px; color:#4f5f57; }
.snag-table { overflow-x:auto; }
.snag-capture-panel { padding:16px; border-bottom:1px solid var(--line); background:#f5faf7; }
.snag-capture-head,.snag-capture-row-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.snag-capture-head h3 { margin:2px 0 5px; font-size:15px; }
.snag-capture-head p:not(.eyebrow),.snag-capture-empty { margin:0; color:var(--muted); font-size:12px; line-height:1.45; }
.snag-capture-head>span { flex:none; padding:5px 8px; border-radius:999px; background:#dceee5; color:#216f57; font-size:10px; font-weight:800; }
.snag-capture-list { display:grid; gap:10px; margin-top:12px; }
.snag-capture-row { padding:12px; border:1px solid #cfe2d7; border-radius:10px; background:#fff; }
.snag-capture-row-head strong,.snag-capture-row-head small,.snag-capture-entry strong,.snag-capture-entry small { display:block; }
.snag-capture-row-head small,.snag-capture-entry small { margin-top:3px; color:var(--muted); font-size:10px; }
.snag-capture-entries { display:grid; gap:8px; margin-top:10px; }
.snag-capture-entry { padding:9px 10px; border-left:3px solid var(--accent); background:#fbfcfb; }
.snag-capture-entry>div { display:flex; justify-content:space-between; gap:12px; }
.snag-capture-entry p { margin:6px 0 0; white-space:pre-wrap; font-size:12px; line-height:1.45; }
.snag-table-head,.snag-row { width:100%; min-width:900px; display:grid; grid-template-columns:minmax(105px,.75fr) minmax(175px,1.45fr) minmax(45px,.4fr) minmax(65px,.5fr) minmax(90px,.7fr) minmax(75px,.65fr) minmax(155px,1fr); gap:10px; align-items:center; }
.snag-table-head { padding:11px 16px; color:#87908b; background:#fafbfa; border-bottom:1px solid var(--line); font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.snag-row { padding:12px 16px; border-bottom:1px solid var(--line); font-size:12px; }
.snag-row:last-child { border-bottom:0; }
.snag-row.needs-attention { box-shadow:inset 3px 0 var(--amber); }
.snag-row strong,.snag-row small { display:block; }
.snag-row small { margin-top:3px; color:var(--muted); font-size:10px; line-height:1.35; }
.snag-summary-cell { min-width:0; }
.snag-preview-list { margin:6px 0 0; padding:0; list-style:none; display:grid; gap:3px; }
.snag-preview-list li { display:flex; align-items:flex-start; gap:5px; color:var(--muted); font-size:11px; line-height:1.35; }
.snag-preview-list li::before { content:"•"; color:var(--accent); font-weight:800; }
.snag-preview-list li span { flex:none; padding:1px 5px; border-radius:999px; background:var(--surface-alt); color:var(--ink); font-size:9px; }
.inbound-attachment-list { display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 2px; }
.inbound-attachment-link { display:inline-flex; align-items:center; min-height:28px; padding:0 9px; border:1px solid var(--line); border-radius:8px; background:var(--surface-alt); color:var(--accent); font-size:11px; font-weight:700; text-decoration:none; }
.inbound-attachment-link:hover { border-color:var(--accent); background:var(--accent-soft); }
.inbound-media-card { display:grid; gap:6px; width:min(230px, 100%); padding:8px; border:1px solid var(--line); border-radius:10px; background:var(--surface-alt); color:var(--accent); font-size:11px; font-weight:700; text-decoration:none; overflow:hidden; }
.inbound-media-card img, .inbound-media-card video { display:block; width:100%; max-height:180px; border-radius:6px; object-fit:cover; background:#171c1a; }
.inbound-media-card video { object-fit:contain; }
.inbound-media-card audio { width:100%; max-width:100%; }
.inbound-media-card small { color:var(--muted); font-size:10px; font-weight:600; }
.inbound-media-card a { color:var(--accent); text-decoration:none; overflow-wrap:anywhere; }
.inbound-attachment-unavailable { display:grid; gap:3px; max-width:330px; padding:8px 10px; border:1px dashed var(--line); border-radius:8px; background:#fffaf0; color:var(--ink); font-size:11px; }
.inbound-attachment-unavailable span { color:var(--muted); line-height:1.35; }
.snag-message-list { display:grid; gap:10px; }
.snag-message-item { border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:8px; padding:12px; background:#fbfcfb; }
.snag-message-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.snag-message-head strong { font-size:13px; }
.snag-message-head small { color:var(--muted); font-size:10px; }
.snag-message-item p { margin:8px 0 0; color:var(--ink); white-space:pre-wrap; font-size:13px; line-height:1.5; }
.record-reference { display:inline; margin-right:7px; color:var(--green); font-size:10px; letter-spacing:.04em; }
.snag-actions { display:flex; align-items:center; justify-content:flex-start; gap:6px; white-space:nowrap; }
.snag-actions .small-button { min-height:30px; padding:0 10px; }
.row-action-menu { position:relative; }
.row-action-menu summary { width:32px; height:30px; border:1px solid var(--line); border-radius:8px; display:grid; place-items:center; color:var(--green); background:#fff; font-weight:900; cursor:pointer; list-style:none; }
.row-action-menu summary::-webkit-details-marker { display:none; }
.row-action-menu[open] summary { background:var(--green-soft); }
.row-action-menu>div { position:absolute; z-index:8; top:36px; right:0; width:180px; padding:6px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 12px 30px rgba(20,39,29,.16); }
.row-action-menu button { width:100%; min-height:34px; padding:7px 9px; border:0; border-radius:7px; background:#fff; color:var(--ink); text-align:left; font:inherit; font-size:11px; font-weight:750; }
.row-action-menu button:hover { background:var(--amber-soft); }
.snag-detail-body { padding:18px 22px 0; }
.snag-detail-summary { margin-bottom:16px; }
.record-id-banner { margin-bottom:14px; padding:12px 14px; border:1px solid #c9dfd3; border-radius:10px; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:2px 12px; background:var(--green-soft); }
.record-id-banner span { color:var(--muted); font-size:10px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.record-id-banner strong { color:var(--green); font-size:18px; }
.record-id-banner small { grid-column:1 / -1; color:#52645b; font-size:11px; }
.request-category-editor { padding:18px 22px 0; display:grid; gap:12px; }
.request-category-editor section { padding:14px; border:1px solid var(--line); border-radius:12px; background:#fafbfa; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.request-category-editor label { display:grid; gap:6px; color:#59635e; font-size:12px; font-weight:750; }
.request-category-editor input,.request-category-editor textarea { width:100%; border:1px solid var(--line); border-radius:9px; padding:10px 11px; font:inherit; background:#fff; }
.request-category-editor textarea { min-height:82px; resize:vertical; }
.line-item-grid { display:grid; grid-template-columns:minmax(190px,1.2fr) minmax(100px,.55fr) minmax(130px,.7fr) minmax(150px,1fr); gap:8px; align-items:center; }
.line-item-grid>span { color:#7b8580; font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.line-item-grid input,.line-item-grid select { min-height:36px; font-size:12px; }
.milestone-editor { margin:18px 22px 0; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fbfcfb; display:grid; gap:10px; }
.milestone-editor-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.milestone-editor-head strong,.milestone-editor-head small { display:block; }
.milestone-editor-head small { margin-top:3px; color:var(--muted); font-size:12px; font-weight:500; }
.milestone-grid { display:grid; grid-template-columns:1fr 1.15fr .75fr .55fr .75fr 36px; gap:8px; align-items:center; }
.milestone-grid-head { color:#7b8580; font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.milestone-row input { min-height:36px; width:100%; border:1px solid var(--line); border-radius:9px; padding:8px 10px; background:#fff; font-size:12px; }
.milestone-row input[readonly] { color:var(--green); background:var(--green-soft); font-weight:850; }
.milestone-remove { width:34px; min-height:34px; padding:0; color:var(--red); }
.milestone-mini-table { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.milestone-mini-head,.milestone-mini-table article { display:grid; grid-template-columns:1fr 1.1fr .75fr .55fr .8fr; gap:10px; align-items:center; padding:10px 12px; }
.milestone-mini-head { color:#7b8580; background:#f6f8f7; font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.milestone-mini-table article { border-top:1px solid var(--line); font-size:12px; }
.milestone-mini-table footer { border-top:1px solid var(--line); padding:11px 12px; display:flex; justify-content:space-between; gap:12px; background:#fbfcfb; font-size:13px; }
.milestone-mini-table strong { color:var(--green); }
.milestone-panel-head { padding:12px 14px; border-bottom:1px solid var(--line); }
.placeholder-panel { padding:28px; }
.placeholder-panel h2 { margin-top:6px; font-size:20px; }
.placeholder-panel p:not(.eyebrow) { margin-top:8px; color:var(--muted); line-height:1.5; }

/* Compact CRM work queue */
#approvalsView { font-size:13px; }
#approvalsView .section-toolbar { margin-bottom:12px; }
.approval-summary { display:grid; grid-template-columns:repeat(3,minmax(0,190px)); gap:10px; margin-bottom:12px; }
.approval-summary article { min-height:66px; padding:12px 14px; border:1px solid var(--line); border-radius:11px; display:flex; align-items:center; gap:11px; background:#fff; }
.approval-summary small,.approval-summary strong { display:block; }
.approval-summary small { color:var(--muted); font-size:11px; font-weight:700; }
.approval-summary strong { margin-top:2px; font-size:20px; line-height:1; }
.approval-summary em { display:block; margin-top:5px; color:var(--muted); font-size:10px; font-style:normal; line-height:1.25; }
.summary-dot { width:9px; height:9px; border-radius:50%; box-shadow:0 0 0 4px #f1f3f2; }
.summary-dot.attention { background:var(--red); box-shadow:0 0 0 4px var(--red-soft); }
.summary-dot.waiting { background:#d0a03b; box-shadow:0 0 0 4px var(--amber-soft); }
.summary-dot.approved { background:#5d9274; box-shadow:0 0 0 4px var(--green-soft); }
.approval-toolbar { align-items:center; }
.approval-toolbar-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.approval-search { width:min(360px,100%); }
.approval-search input { min-height:36px; font-size:13px; }
#approvalsView .filter-button { min-height:30px; padding:0 10px; font-size:12px; }
#approvalsView .filter-group { padding:3px; }
#approvalsView .select-wrap select { min-height:36px; font-size:12px; }
.approval-queue-panel { overflow:hidden; box-shadow:0 6px 18px rgba(27,47,37,.04); }
.approval-queue-head { min-height:62px; padding:13px 16px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.approval-queue-head h2 { font-size:16px; }
.approval-queue-head p { margin-top:3px; color:var(--muted); font-size:12px; }
.approval-table { overflow:hidden; }
.approval-table-head,.approval-table-row { width:100%; display:grid; grid-template-columns:minmax(145px,.85fr) minmax(195px,1.3fr) minmax(85px,.5fr) minmax(110px,.65fr) minmax(110px,.65fr) minmax(88px,.5fr) minmax(130px,.75fr); gap:12px; align-items:center; }
.approval-table-head { padding:10px 16px; color:#87908b; background:#fafbfa; border-bottom:1px solid var(--line); font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.approval-table-row { width:100%; min-height:64px; padding:10px 16px; border:0; border-bottom:1px solid var(--line); background:#fff; color:var(--ink); text-align:left; font-size:12px; cursor:pointer; }
.approval-table-row:last-child { border-bottom:0; }
.approval-table-row:hover { background:#f8fbf9; }
.approval-table-row.needs-attention { box-shadow:inset 3px 0 var(--red); }
.approval-table-row strong,.approval-table-row small { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.approval-table-row>span,.approval-table-head>span { min-width:0; }
.approval-document { overflow:hidden; }
.approval-table-row strong { font-size:12px; font-weight:750; }
.approval-table-row small { margin-top:3px; color:var(--muted); font-size:10px; }
.approval-client { display:flex; align-items:center; gap:9px; min-width:0; }
.approval-client>span:last-child { min-width:0; }
.compact-avatar { width:30px; height:30px; flex:0 0 auto; border-radius:8px; display:grid; place-items:center; color:var(--green); background:var(--green-soft); font-size:10px; font-weight:850; }
.next-action { display:flex; align-items:center; justify-content:space-between; gap:7px; color:var(--green); font-weight:800; }
.next-action.urgent { color:var(--red); }
.next-action b { font-size:17px; font-weight:500; }
@media (max-width:1180px) {
  .approval-table-head,.approval-table-row { grid-template-columns:minmax(140px,.9fr) minmax(190px,1.4fr) minmax(105px,.65fr) minmax(115px,.7fr) minmax(135px,.8fr) minmax(135px,.8fr); }
  .approval-table-head>span:nth-child(6),.approval-table-row>span:nth-child(6) { display:none; }
}
.drawer-backdrop { position:fixed; inset:0; z-index:40; background:rgba(15,30,22,.3); backdrop-filter:blur(1px); }
.approval-drawer { position:fixed; z-index:41; inset:0 0 0 auto; width:min(560px,calc(100vw - 30px)); border-left:1px solid var(--line); background:#fff; box-shadow:-18px 0 48px rgba(20,39,29,.16); display:grid; grid-template-rows:auto minmax(0,1fr) auto; transform:translateX(105%); transition:transform .2s ease; }
.approval-drawer.open { transform:translateX(0); }
.drawer-open { overflow:hidden; }
.drawer-head { padding:17px 20px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.drawer-head h2 { max-width:440px; margin-top:5px; font-size:18px; line-height:1.25; }
.drawer-head>div>span { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.drawer-close { width:32px; height:32px; flex:0 0 auto; border:1px solid var(--line); border-radius:8px; background:#fff; color:#65706a; font-size:21px; line-height:1; }
.drawer-scroll { overflow-y:auto; padding:16px 20px 24px; }
.drawer-status-row { min-height:45px; padding:10px 12px; border:1px solid var(--line); border-radius:9px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#fafbfa; }
.drawer-status-row strong { font-size:12px; }
.drawer-summary { margin:12px 0 16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.drawer-summary>div { min-height:60px; padding:10px 12px; border-bottom:1px solid var(--line); }
.drawer-summary>div:nth-child(odd) { border-right:1px solid var(--line); }
.drawer-summary>div:nth-last-child(-n+2) { border-bottom:0; }
.drawer-summary span,.drawer-summary strong { display:block; }
.drawer-summary span { color:var(--muted); font-size:10px; }
.drawer-summary strong { margin-top:4px; font-size:12px; }
.approval-drawer .client-alert { margin:0 0 16px; }
.drawer-section { padding:16px 0; border-top:1px solid var(--line); }
.drawer-section-title { margin-bottom:11px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.drawer-section-title h3 { margin:0; font-size:13px; }
.drawer-section-title span { color:var(--muted); font-size:10px; }
.conversation-list { display:grid; gap:8px; }
.conversation-message { width:82%; padding:9px 11px; border-radius:10px; background:#f0f3f1; }
.conversation-message.outbound { justify-self:end; background:var(--green-soft); }
.conversation-message small,.conversation-message time { display:block; color:var(--muted); font-size:9px; }
.conversation-message p { margin:4px 0; font-size:12px; line-height:1.4; }
.drawer-empty { color:var(--muted); font-size:12px; }
.document-row { padding:10px; border:1px solid var(--line); border-radius:9px; display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:10px; align-items:center; }
.document-icon { width:38px; height:38px; border-radius:7px; display:grid; place-items:center; color:#9b3f2c; background:var(--red-soft); font-size:9px; font-weight:900; }
.document-row strong,.document-row small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.document-row strong { font-size:11px; }
.document-row small { margin-top:3px; color:var(--muted); font-size:9px; }
.document-row a { color:var(--green); font-size:11px; font-weight:800; text-decoration:none; }
.compact-timeline article { padding-bottom:13px; }
.compact-timeline strong { font-size:11px; font-weight:700; }
.technical-details { margin-top:2px; border-top:1px solid var(--line); }
.technical-details summary { padding:15px 0 4px; color:var(--muted); cursor:pointer; font-size:11px; font-weight:750; }
.technical-details dl { margin:10px 0 0; padding:11px; border-radius:8px; background:#f6f8f7; }
.technical-details dl>div { display:grid; grid-template-columns:110px minmax(0,1fr); gap:10px; padding:5px 0; }
.technical-details dt { color:var(--muted); font-size:9px; }
.technical-details dd { margin:0; overflow-wrap:anywhere; font-size:9px; }
.drawer-actions { padding:12px 20px; border-top:1px solid var(--line); background:#fff; display:grid; gap:8px; }
.drawer-actions button { width:100%; min-height:38px; font-size:12px; }
.drawer-action-note { color:var(--muted); font-size:12px; line-height:1.45; padding:4px 0; text-align:center; }
.small-button:disabled { color:#9aa29e; background:#f4f5f4; cursor:not-allowed; }
.toast { position:fixed; z-index:20; right:24px; bottom:24px; max-width:420px; padding:13px 16px; border-radius:10px; color:#fff; background:#26332d; box-shadow:0 14px 40px rgba(15,35,25,.25); opacity:0; transform:translateY(12px); pointer-events:none; transition:.2s ease; }
.toast.visible { opacity:1; transform:translateY(0); }
.toast.success { background:var(--green); }
.toast.error { background:var(--red); }
.dialog-toast { position:absolute; z-index:5; right:18px; bottom:18px; left:18px; padding:11px 13px; border-radius:9px; color:#fff; background:#26332d; box-shadow:0 10px 28px rgba(17,37,27,.25); opacity:0; transform:translateY(8px); pointer-events:none; transition:.2s ease; font-size:12px; line-height:1.4; }
.dialog-toast.visible { opacity:1; transform:translateY(0); }
.dialog-toast.success { background:var(--green); }
.dialog-toast.error { background:var(--red); }
.team-list-wrap { margin-top:22px; border-top:1px solid var(--line); padding-top:18px; }
.team-user-list { display:grid; border:1px solid var(--line); border-radius:11px; overflow:hidden; }
.team-user-row { padding:12px 14px; border-bottom:1px solid var(--line); display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:10px; }
.team-user-row:last-child { border-bottom:0; }
.team-user-row strong,.team-user-row small { display:block; }
.team-user-row small { margin-top:3px; color:var(--muted); font-size:11px; }
.team-user-actions { display:flex; gap:7px; }
.team-user-actions button { min-height:32px; padding:0 10px; font-size:11px; }
.team-user-row.inactive { opacity:.55; background:#fafafa; }
.platform-monitoring-content { padding:20px 22px 4px; }
.monitoring-overview { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; padding:15px; border:1px solid var(--line); border-radius:11px; background:#fafbfa; }
.monitoring-overview strong,.monitoring-overview small { display:block; }
.monitoring-overview strong { font-size:14px; }
.monitoring-overview small { margin-top:4px; color:var(--muted); font-size:11px; }
.monitoring-status { border-radius:99px; padding:6px 10px; font-size:11px; font-weight:800; white-space:nowrap; }
.monitoring-status.action-needed { color:#a15913; background:#fff0cf; }
.monitoring-status.no-action-needed { color:#28694f; background:#e6f4ec; }
.monitoring-group { margin-top:18px; }
.monitoring-group-head { display:flex; align-items:center; justify-content:space-between; margin:0 2px 8px; }
.monitoring-group-head h3 { margin:0; font-size:12px; letter-spacing:.05em; text-transform:uppercase; color:#56625c; }
.monitoring-group-head span { min-width:24px; padding:3px 8px; border-radius:99px; background:#edf0ee; color:#56625c; text-align:center; font-size:11px; font-weight:800; }
.monitoring-check-list { display:grid; margin-top:14px; border:1px solid var(--line); border-radius:11px; overflow:hidden; }
.monitoring-group .monitoring-check-list { margin-top:0; }
.monitoring-check { padding:12px 14px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:10px; border-bottom:1px solid var(--line); }
.monitoring-check:last-child { border-bottom:0; }
.monitoring-check strong,.monitoring-check small { display:block; }
.monitoring-check strong { font-size:12px; }
.monitoring-check small { margin-top:3px; color:var(--muted); font-size:11px; line-height:1.4; }
.monitoring-check .monitoring-status { align-self:center; padding:4px 8px; font-size:10px; }
.monitoring-check.needs-action { border-left:3px solid #e0a52b; }
.monitoring-check.no-action { border-left:3px solid #6ba886; }
.monitoring-empty { margin:0; padding:15px; color:var(--muted); font-size:12px; }
.analytics-metric-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1px; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--line); box-shadow:var(--shadow); }
.analytics-title-row { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:16px; }.analytics-title-row h1 { margin:3px 0 4px; font-size:26px; letter-spacing:-.04em; }.analytics-title-row p:not(.eyebrow) { margin:0; color:var(--muted); font-size:13px; }.analytics-title-actions { display:flex; align-items:end; flex-wrap:wrap; justify-content:flex-end; gap:10px; }.analytics-export-button { white-space:nowrap; }
.analytics-metric { min-height:132px; padding:18px; border:0; background:#fff; color:var(--ink); display:grid; align-content:start; gap:4px; text-align:left; transition:background .16s ease,transform .16s ease; }
.analytics-metric:hover { background:#fbfcfb; transform:translateY(-1px); }
.analytics-metric strong { font-size:30px; line-height:1; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.analytics-metric span { margin-top:4px; font-size:13px; font-weight:800; }
.analytics-metric small { color:var(--muted); font-size:11px; line-height:1.35; }
.analytics-metric:before { content:""; width:7px; height:7px; border-radius:50%; background:#64706a; }
.analytics-metric.attention:before { background:var(--red); }.analytics-metric.pending:before { background:var(--amber); }.analytics-metric.blue:before { background:var(--blue); }.analytics-metric.amber:before { background:#cf8d27; }.analytics-metric.plum:before { background:var(--plum); }
.analytics-layout { margin-top:22px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.analytics-panel-wide { grid-column:1 / -1; }.analytics-panel .panel-header { min-height:72px; padding:15px 18px; }.analytics-panel .panel-header h2 { margin-top:3px; font-size:17px; }.analytics-panel-body { padding:16px 18px 18px; }
.analytics-payment-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }.analytics-filter-group { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }.analytics-client-filter { display:grid; grid-template-columns:auto minmax(160px,240px); align-items:center; gap:8px; color:var(--muted); font-size:11px; font-weight:800; }.analytics-client-filter select { min-height:34px; padding:6px 28px 6px 9px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); font:inherit; }
.payment-position-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--line); border-radius:10px; overflow:hidden; }.payment-position-card { min-height:104px; padding:16px; border-right:1px solid var(--line); display:grid; align-content:start; gap:5px; }.payment-position-card:last-child { border-right:0; }.payment-position-card span,.payment-position-card small { color:var(--muted); font-size:11px; }.payment-position-card span { font-weight:800; text-transform:uppercase; letter-spacing:.08em; }.payment-position-card strong { font-size:20px; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }.payment-position-card.cleared { border-top:3px solid var(--green); }.payment-position-card.pending { border-top:3px solid var(--amber); }.payment-position-card.total { border-top:3px solid var(--ink); }
.payment-position-chart { margin-top:16px; padding:15px; border:1px solid var(--line); border-radius:10px; background:#fbfcfb; }.payment-position-chart-head { display:flex; justify-content:space-between; gap:14px; align-items:baseline; }.payment-position-chart-head strong { font-size:12px; }.payment-position-chart-head small { color:var(--muted); font-size:10px; }.payment-position-legend .cleared { background:var(--green); }.payment-position-legend .pending { background:var(--amber); }.payment-position-legend { display:flex; flex-wrap:wrap; gap:12px; margin-top:10px; color:var(--muted); font-size:10px; }.payment-position-legend span { display:inline-flex; align-items:center; gap:5px; }.payment-position-legend i { width:7px; height:7px; border-radius:50%; }.payment-position-lines { margin-top:16px; display:grid; gap:0; }.payment-position-lines > strong { margin-bottom:7px; font-size:12px; }.payment-position-lines > small { color:var(--muted); font-size:11px; }.payment-position-lines button { width:100%; min-height:47px; padding:9px 0; border:0; border-top:1px solid var(--line); background:transparent; color:var(--ink); display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; }.payment-position-lines button:hover { color:var(--green); }.payment-position-lines button span { display:grid; gap:3px; }.payment-position-lines button b { font-size:11px; }.payment-position-lines button small { color:var(--muted); font-size:10px; }.payment-position-lines button > strong { font-size:12px; white-space:nowrap; }
.payment-position-status { display:grid; grid-template-columns:88px minmax(130px,1fr) 88px; gap:12px; align-items:center; margin-top:15px; padding:13px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; }.payment-position-status-label { display:grid; gap:2px; }.payment-position-status-label.pending { text-align:right; }.payment-position-status-label strong { font-size:18px; line-height:1; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }.payment-position-status-label span { color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.payment-position-status-track { height:18px; overflow:hidden; display:flex; border-radius:999px; background:#edf0ee; box-shadow:inset 0 0 0 1px rgba(19,35,27,.04); }.payment-position-status-track i { display:block; height:100%; }.payment-position-status-track .cleared { background:var(--green); }.payment-position-status-track .pending { background:var(--amber); }
.payment-position-workspace { margin:18px 0; padding:16px 18px; border:1px solid var(--line); border-left:4px solid var(--green); border-radius:10px; background:#fbfcfb; display:flex; justify-content:space-between; align-items:center; gap:18px; }.payment-position-workspace h3 { margin:3px 0; font-size:16px; }.payment-position-workspace > div > small { color:var(--muted); font-size:11px; }.payment-position-workspace-totals { display:grid; grid-template-columns:repeat(3,minmax(120px,1fr)); gap:16px; }.payment-position-workspace-totals span { display:grid; gap:3px; }.payment-position-workspace-totals small { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; }.payment-position-workspace-totals strong { font-size:15px; font-variant-numeric:tabular-nums; }
@media (max-width:680px) { .analytics-payment-header,.payment-position-workspace{align-items:flex-start;flex-direction:column}.analytics-client-filter{width:100%;grid-template-columns:auto 1fr}.payment-position-grid,.payment-position-workspace-totals{grid-template-columns:1fr}.payment-position-card{border-right:0;border-bottom:1px solid var(--line)}.payment-position-card:last-child{border-bottom:0}.payment-position-chart-head,.payment-position-lines button{align-items:flex-start;flex-direction:column}.payment-position-lines button{gap:4px}.payment-position-status{grid-template-columns:1fr 1fr}.payment-position-status-track{grid-column:1 / -1;grid-row:2}.payment-position-status-label.pending{grid-column:2;text-align:right} }
.analytics-bar-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 10px; align-items:center; padding:9px 0; border-bottom:1px solid var(--line); font-size:12px; }.analytics-bar-row:last-child { border-bottom:0; }.analytics-bar-row span { color:#445048; }.analytics-bar-row strong { font-variant-numeric:tabular-nums; }.analytics-bar-track { grid-column:1 / -1; height:6px; overflow:hidden; border-radius:99px; background:#edf0ee; }.analytics-bar-track i { display:block; height:100%; border-radius:inherit; background:#60706a; }.analytics-bar-track i.green { background:var(--green); }.analytics-bar-track i.blue { background:var(--blue); }.analytics-bar-track i.amber { background:#cf8d27; }.analytics-bar-track i.red { background:var(--red); }.analytics-bar-track i.plum { background:var(--plum); }
.analytics-client-list { padding:0; }.analytics-client-row { width:100%; min-height:64px; padding:12px 16px; border:0; border-bottom:1px solid var(--line); background:#fff; color:var(--ink); display:grid; grid-template-columns:34px minmax(0,1fr) auto 10px; gap:10px; align-items:center; text-align:left; }.analytics-client-row:last-child { border-bottom:0; }.analytics-client-row:hover { background:#f7faf8; }.analytics-client-row strong,.analytics-client-row small { display:block; }.analytics-client-row strong { font-size:12px; }.analytics-client-row small { margin-top:3px; color:var(--muted); font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.analytics-client-row b { padding:4px 7px; border-radius:99px; color:#8e4c3d; background:var(--red-soft); font-size:10px; white-space:nowrap; }
.analytics-ageing-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); border-radius:10px; overflow:hidden; }.analytics-ageing-summary article { min-height:102px; padding:15px 16px; border-right:1px solid var(--line); display:grid; align-content:start; gap:4px; }.analytics-ageing-summary article:last-child { border-right:0; }.analytics-ageing-summary article.overdue { border-top:3px solid var(--red); }.analytics-ageing-summary strong { font-size:24px; line-height:1; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }.analytics-ageing-summary span { font-size:12px; font-weight:800; }.analytics-ageing-summary small { color:var(--muted); font-size:10px; line-height:1.35; }.analytics-ageing-list { margin-top:14px; border-top:1px solid var(--line); }.analytics-ageing-row { width:100%; min-height:58px; padding:10px 0; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--ink); display:grid; grid-template-columns:minmax(0,1fr) auto 10px; gap:14px; align-items:center; text-align:left; }.analytics-ageing-row:hover { color:var(--green); }.analytics-ageing-row > span { display:grid; gap:3px; }.analytics-ageing-row strong { font-size:12px; }.analytics-ageing-row small { color:var(--muted); font-size:10px; }.analytics-ageing-row b { font-size:11px; text-align:right; }.analytics-ageing-row.overdue b { color:var(--red); }.analytics-ageing-row.unscheduled b { color:#966d20; }.analytics-ageing-row i { color:var(--muted); font-style:normal; font-size:20px; }
.analytics-operations { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0; }.analytics-operation { min-height:114px; padding:18px; border-right:1px solid var(--line); }.analytics-operation:last-child { border-right:0; }.analytics-operation span,.analytics-operation strong,.analytics-operation small { display:block; }.analytics-operation span { color:var(--muted); font-size:11px; font-weight:750; }.analytics-operation strong { margin-top:8px; font-size:18px; letter-spacing:-.025em; }.analytics-operation small { margin-top:6px; color:var(--muted); font-size:11px; line-height:1.35; }
.analytics-forecast-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); border-radius:10px; overflow:hidden; }.analytics-forecast-card { min-height:106px; padding:16px; border-right:1px solid var(--line); display:grid; align-content:start; gap:5px; }.analytics-forecast-card:last-child { border-right:0; }.analytics-forecast-card span { color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }.analytics-forecast-card strong { font-size:19px; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }.analytics-forecast-card small { color:var(--muted); font-size:10px; line-height:1.35; }.analytics-forecast-card.red { border-top:3px solid var(--red); }.analytics-forecast-card.amber { border-top:3px solid var(--amber); }.analytics-forecast-card.blue { border-top:3px solid var(--blue); }.analytics-forecast-card.plum { border-top:3px solid var(--plum); }.analytics-note { margin:12px 0 0; color:var(--muted); font-size:11px; line-height:1.4; }
.analytics-project-list { border:1px solid var(--line); border-radius:10px; overflow:hidden; }.analytics-project-row { width:100%; min-height:70px; padding:12px 16px; border:0; border-bottom:1px solid var(--line); border-left:4px solid #90a098; background:#fff; color:var(--ink); display:grid; grid-template-columns:minmax(0,1fr) minmax(110px,.45fr) minmax(150px,.65fr) 12px; gap:14px; align-items:center; text-align:left; }.analytics-project-row:last-child { border-bottom:0; }.analytics-project-row:hover { background:#f7faf8; }.analytics-project-row.pending { border-left-color:var(--amber); }.analytics-project-row.attention { border-left-color:var(--red); }.analytics-project-row.clear { border-left-color:var(--green); }.analytics-project-row span { display:grid; gap:3px; }.analytics-project-row strong,.analytics-project-row b { font-size:12px; }.analytics-project-row small { color:var(--muted); font-size:10px; }.analytics-project-row i { color:var(--muted); font-style:normal; font-size:20px; }
.analytics-weekly-list { border:1px solid var(--line); border-radius:10px; overflow:hidden; padding:4px 16px; }
@media (max-width:1050px) { .app-shell{grid-template-columns:1fr}.sidebar{min-height:auto;position:static;padding:16px}.brand{padding-bottom:16px}.nav-list{grid-template-columns:repeat(2,1fr)}.sidebar-status,.sidebar-user{display:none}.metrics-grid,.analytics-metric-grid{grid-template-columns:repeat(2,1fr)}.home-grid,.home-operations-grid,.approval-grid{grid-template-columns:1fr}.home-activity{padding:20px 0 0;border-top:1px solid var(--line);border-left:0}.detail-panel{position:static}.client-orders-setup{grid-template-columns:1fr}.client-orders-controls{justify-content:flex-start}.client-order-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.client-order-facts div:nth-child(4n){border-right:1px solid var(--line)}.client-order-facts div:nth-child(2n){border-right:0}.client-order-facts div:nth-last-child(-n+4){border-bottom:1px solid var(--line)}.client-order-facts div:nth-last-child(-n+2){border-bottom:0}.client-order-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.client-order-sections details:nth-child(2){border-right:0}.client-order-sections details:nth-child(-n+2){border-bottom:1px solid var(--line)}.client-order-sections-five details:nth-child(2n){border-right:0}.client-order-sections-five details:nth-child(5){border-bottom:0}.analytics-layout{grid-template-columns:1fr}.analytics-panel-wide{grid-column:auto}.analytics-operations{grid-template-columns:1fr}.analytics-operation{border-right:0;border-bottom:1px solid var(--line)}.analytics-operation:last-child{border-bottom:0} }
@media (max-width:680px) { .analytics-filter-group,.analytics-client-filter{width:100%}.analytics-client-filter{grid-template-columns:auto 1fr}.analytics-ageing-summary{grid-template-columns:1fr}.analytics-ageing-summary article{border-right:0;border-bottom:1px solid var(--line)}.analytics-ageing-summary article:last-child{border-bottom:0}.analytics-ageing-row{grid-template-columns:minmax(0,1fr) 10px}.analytics-ageing-row>span:last-of-type{grid-column:1;grid-row:2}.analytics-ageing-row i{grid-column:2;grid-row:1}.representative-fields,.project-manager-row{grid-template-columns:1fr}.project-manager-row{padding-bottom:34px;position:relative}.project-manager-remove{position:absolute;right:0;bottom:0}.representative-card-head{align-items:center}.representative-card-head .small-button{flex:0 0 auto} }
@media (max-width:680px) { .workspace{padding:22px 14px 36px}.topbar{display:grid}.top-actions{width:100%}.metrics-grid,.home-stat-line,.analytics-metric-grid{grid-template-columns:1fr}.home-stat{min-height:94px;border-right:0;border-bottom:1px solid var(--line)}.home-stat:last-child{border-bottom:0}.home-client-row{grid-template-columns:38px minmax(0,1fr) 12px}.home-client-summary{display:none}.home-activity-client{grid-template-columns:34px minmax(0,1fr) 12px}.home-activity-status{display:none}.metric-card{min-height:110px}.client-row{grid-template-columns:40px 1fr 12px}.client-row .row-meta,.client-row .sync-pill{display:none}.stack-item{grid-template-columns:36px 1fr 12px}.stack-item .status-pill{display:none}.filter-group{width:100%;overflow:auto;flex-wrap:nowrap}.section-toolbar{align-items:stretch}.select-wrap{width:100%;justify-content:space-between}.select-wrap select{flex:1}.approval-grid{grid-template-columns:minmax(0,1fr)}.detail-facts,.form-grid,.id-explainer,.client-summary,.client-workflows,.active-workflows,.request-category-editor section,.line-item-grid,.milestone-grid,.milestone-mini-head,.milestone-mini-table article{grid-template-columns:1fr}.client-command-head{display:grid}.issue-chip{grid-template-columns:12px minmax(0,1fr)}.issue-chip .status-pill{grid-column:2}.milestone-grid-head{display:none}.milestone-remove{width:100%}.span-two{grid-column:auto}.modal{max-height:calc(100vh - 12px)}.approval-summary{grid-template-columns:repeat(3,1fr);gap:6px}.approval-summary article{min-height:58px;padding:9px;gap:7px}.approval-summary strong{font-size:17px}.approval-toolbar-actions{width:100%;justify-content:stretch}.approval-table-head{display:none}.approval-table-row{min-width:0;grid-template-columns:minmax(0,1fr) auto;padding:12px 14px;gap:8px}.approval-table-row>span:nth-child(2){grid-column:1}.approval-table-row>span:nth-child(3),.approval-table-row>span:nth-child(6){display:none}.approval-table-row>span:nth-child(4){grid-column:2;grid-row:1}.approval-table-row>span:nth-child(5){grid-column:1;grid-row:3}.approval-table-row>span:nth-child(7){grid-column:2;grid-row:2}.approval-drawer{width:100vw}.drawer-summary{grid-template-columns:1fr}.drawer-summary>div,.drawer-summary>div:nth-child(odd),.drawer-summary>div:nth-last-child(-n+2){border-right:0;border-bottom:1px solid var(--line)}.drawer-summary>div:last-child{border-bottom:0}.receipt-table-head,.request-table-head,.vendor-table-head,.snag-table-head,.design-approval-table-head{display:none}.receipt-row,.request-row,.vendor-row,.snag-row,.design-approval-row{min-width:0;grid-template-columns:1fr auto}.receipt-row>span:nth-child(3),.request-row>span:nth-child(3),.snag-row>span:nth-child(3),.design-approval-row>span:nth-child(3),.design-approval-row>span:nth-child(5){grid-column:1 / -1}.receipt-row>span:nth-child(5){grid-column:2;grid-row:1}.receipt-row>span:nth-child(6),.request-row>span:nth-child(7){grid-column:1}.receipt-row>span:nth-child(7),.request-row>span:nth-child(8){grid-column:2;grid-row:3}.receipt-mini-list article{grid-template-columns:1fr auto auto}.receipt-mini-list article>span:nth-child(2){grid-column:1 / -1;grid-row:2}.client-actions{justify-content:flex-start}.nav-list{grid-template-columns:1fr}.client-orders-workspace{padding:12px}.client-orders-controls{display:grid;grid-template-columns:1fr}.client-orders-controls select,.client-orders-controls button{width:100%}.client-orders-summary,.client-order-sections,.client-order-facts{grid-template-columns:1fr}.client-orders-summary article,.client-order-sections details,.client-order-facts div{border-right:0;border-bottom:1px solid var(--line)}.client-orders-summary article:last-child,.client-order-sections details:last-child,.client-order-facts div:last-child{border-bottom:0}.client-order-card>header{display:grid}.client-order-total{justify-items:start;text-align:left}.callback-note-form{grid-template-columns:1fr}.callback-note-form .small-button{width:100%}.client-notes-head{align-items:flex-start}.client-internal-notes-list article{grid-template-columns:1fr;gap:9px}.client-internal-notes-list .text-button{justify-self:start;padding:0} }

@media (max-width:680px) { .work-queue-item{grid-template-columns:1fr}.work-queue-item .small-button{width:calc(100% - 28px);margin:0 14px 12px} }

@media (max-width:1050px) { .analytics-forecast-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-forecast-card:nth-child(2n){border-right:0}.analytics-forecast-card:nth-child(-n+2){border-bottom:1px solid var(--line)} }
@media (max-width:680px) { .analytics-title-row{align-items:flex-start;flex-direction:column}.analytics-title-actions{width:100%;display:grid;grid-template-columns:1fr}.analytics-export-button{width:100%}.analytics-forecast-grid{grid-template-columns:1fr}.analytics-forecast-card{border-right:0;border-bottom:1px solid var(--line)}.analytics-forecast-card:last-child{border-bottom:0}.analytics-project-row{grid-template-columns:minmax(0,1fr) 10px}.analytics-project-row>span:nth-child(2),.analytics-project-row>span:nth-child(3){grid-column:1}.analytics-project-row i{grid-column:2;grid-row:1} }
