.summary { display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:18px; margin-bottom:24px; }
.metric { position:relative; isolation:isolate; min-width:0; overflow:hidden; padding:22px 24px; min-height:180px; border:1px solid #e7edf3; border-radius:var(--xasta-radius); background:var(--white); box-shadow:var(--xasta-shadow); animation:panel-enter var(--xasta-motion-enter) var(--xasta-ease) both; }
.metric:hover { box-shadow:0 8px 26px #193f5820; }
.metric:nth-child(2) { animation-delay:60ms; }
.metric:nth-child(3) { animation-delay:110ms; }
.metric-label { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); font-size:13px; }
.metric-glyph { display:grid; place-items:center; width:36px; height:36px; border:1px solid #ffffff20; border-radius:11px; background:#ffffff12; color:#a7e5fb; }
.metric-glyph--cyan { border:0; background:#e7f5fc; color:#007197; }
.metric-glyph--teal { border:0; background:#e6f6f3; color:#19745d; }
.metric strong { display:flex; align-items:baseline; flex-wrap:wrap; column-gap:9px; position:relative; font-size:30px; font-weight:600; letter-spacing:-1px; margin:9px 0 4px; line-height:1.25; font-variant-numeric:tabular-nums; white-space:normal; overflow-wrap:anywhere; }
.metric strong small { font-size:12px; letter-spacing:0; font-weight:400; color:var(--muted); }
.metric p { position:relative; font-size:12px; color:var(--muted); margin:0; }
.metric-bottom { position:relative; display:flex; align-items:center; gap:6px; margin-top:15px; font-size:12px; color:var(--muted); }
.metric-bottom .icon { width:15px; height:15px; }
.metric--primary { background:radial-gradient(ellipse at 84% 5%,#0084a955,transparent 60%),linear-gradient(125deg,#0a2838,#103c4e); color:white; border-color:#0d3b4c; box-shadow:0 8px 20px #092e4022; }
.metric--primary .metric-label { color:#d0e7ef; }
.metric--primary strong { font-size:34px; }
.metric--primary p { color:#bfd8e1; }
.metric-layers { position:absolute; z-index:-1; right:-24px; bottom:-34px; width:135px; height:135px; border:1px solid #55d0ec35; background:linear-gradient(145deg,#30b3d110,transparent); border-radius:20px; transform:rotate(-30deg) skew(8deg); }
.metric-layers::before,.metric-layers::after { content:""; position:absolute; inset:0; border:1px solid #55d0ec22; border-radius:inherit; transform:translate(12px,-18px); }
.metric-layers::after { transform:translate(24px,-36px); }
.card { min-width:0; background:var(--white); border:1px solid #e4ecf1; border-radius:var(--xasta-radius); padding:26px; margin-bottom:24px; box-shadow:var(--xasta-shadow); animation:panel-enter var(--xasta-motion-enter) var(--xasta-ease) both; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin-bottom:22px; }
.grid .card { margin:0; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.section-heading h2,.section-heading h3 { margin-bottom:4px; }
.section-heading p { color:var(--muted); font-size:12px; margin-bottom:0; }
.section-title { display:flex; align-items:center; gap:12px; }
.section-title>h2 { margin-bottom:0; }
.section-glyph { display:grid; place-items:center; width:38px; height:38px; border-radius:11px; background:#edf6fa; color:var(--blue); flex-shrink:0; }
.text-link { display:inline-flex; align-items:center; gap:5px; font-size:12px; white-space:nowrap; min-height:44px; }
.text-link .icon { width:16px; height:16px; }
.chart-card { overflow:hidden; }
.chart-card .section-heading { flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.chart-controls { display:flex; padding:3px; border:1px solid #e6edf2; border-radius:9px; background:#f4f8fa; gap:3px; }
.chart-controls button { display:flex; align-items:center; gap:5px; font-size:11px; min-height:36px; padding:7px 10px; background:transparent; color:var(--muted); border:0; border-radius:6px; cursor:pointer; transition:background var(--xasta-motion-fast),box-shadow var(--xasta-motion-fast); }
.chart-controls button .icon { width:15px; height:15px; }
.chart-controls [aria-pressed=true] { color:var(--blue); background:white; box-shadow:0 1px 5px #0c3a4b18; }
.chart-controls button:disabled { cursor:default; }
.chart-readout { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; margin-bottom:4px; min-height:36px; }
.chart-readout>strong { font-size:28px; font-weight:600; letter-spacing:-.8px; font-variant-numeric:tabular-nums; line-height:1.2; }
.chart-readout>span { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:11px; }
.legend-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:#0082a9; }
.chart-plot { width:100%; }
.trend { display:block; width:100%; height:250px; overflow:visible; }
.chart-grid line { stroke:#dfeaf0; stroke-dasharray:3 5; stroke-width:1; }
.chart-grid text,.chart-axis-labels text { fill:var(--muted); font-size:10px; }
.chart-zero { stroke:#cadbe4; stroke-width:1; }
.trend-area { fill:url(#invoice-area); }
.trend-line,.trend-current-line { stroke:url(#invoice-stroke); fill:none; stroke-width:2.8; stroke-linecap:round; stroke-linejoin:round; }
.trend-current-line { stroke-dasharray:5 5; }
.chart-dots circle { fill:#007da4; stroke:white; stroke-width:2; }
.chart-bars { display:none; }
.chart-bars rect { transform-box:fill-box; transform-origin:center bottom; fill:#8bd5e1; transition:fill var(--xasta-motion-fast); }
.chart-bars rect[data-negative=true] { transform-origin:center top; }
.chart-bars rect[data-current=true] { opacity:.65; }
.chart-bars rect.is-current { fill:#007ea5; }
.chart-cursor,.chart-halo,.chart-active-dot { opacity:0; pointer-events:none; }
.chart-cursor { stroke:#339aba; stroke-dasharray:4 5; stroke-width:1; }
.chart-halo { fill:#009fe323; }
.chart-active-dot { fill:#007ea5; stroke:white; stroke-width:2.5; }
[data-chart][data-ready] .chart-cursor,[data-chart][data-ready] .chart-halo,[data-chart][data-ready] .chart-active-dot { opacity:1; }
[data-chart][data-mode=bars] .chart-bars { display:block; }
[data-chart][data-mode=bars] .chart-bars rect { animation:chart-column-enter 480ms var(--xasta-ease) both; }
[data-chart][data-mode=bars] .trend-current-line,[data-chart][data-mode=bars] .trend-line,[data-chart][data-mode=bars] .trend-area,[data-chart][data-mode=bars] .chart-dots,[data-chart][data-mode=bars] .chart-halo,[data-chart][data-mode=bars] .chart-active-dot { display:none; }
.chart-months { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:1px; padding-left:0; }
.chart-months button { min-width:0; padding:6px 0; min-height:36px; border:0; border-radius:6px; background:transparent; color:var(--muted); font-size:10px; cursor:pointer; }
.chart-months button:hover:not(:disabled),.chart-months [aria-pressed=true] { background:#e9f6fb; color:#005f80; font-weight:600; }
.chart-months button:disabled { color:#788996; cursor:default; }
.chart-note { color:var(--muted); font-size:12px; margin:14px 0 0; }
.monthly-details { border-top:1px solid var(--line); margin-top:16px; padding-top:6px; }
.monthly-details summary { display:flex; align-items:center; gap:4px; font-size:12px; list-style:none; }
.monthly-details summary::-webkit-details-marker { display:none; }
.monthly-details summary .icon { width:14px; height:14px; transition:transform var(--xasta-motion-fast); }
.monthly-details[open] summary .icon { transform:rotate(90deg); }
.count-badge { display:grid; place-items:center; min-width:28px; height:28px; padding:0 7px; border-radius:9px; background:#edf4f8; color:var(--blue); font-size:12px; font-weight:600; }
.pending-actions { display:flex; flex-direction:column; }
.pending-actions>.section-heading { margin-bottom:0; }
.action-item { display:flex; align-items:flex-start; gap:12px; border-top:1px solid var(--line); padding-top:20px; margin-top:20px; }
.action-item:first-of-type { border-top:0; margin-top:0; }
.action-item>div { min-width:0; }
.document-glyph { display:grid; place-items:center; flex-shrink:0; width:37px; height:42px; border:1px solid #eddcc1; border-radius:9px; color:#8e610e; background:#fcf4e7; }
.document-glyph--cyan { color:#006887; border-color:#cce8f2; background:#edf7fb; }
.pending-actions h3 { margin:10px 0 5px; }
.pending-actions p { font-size:12px; color:var(--muted); margin-bottom:8px; overflow-wrap:anywhere; }
.pending-actions small { color:var(--muted); font-size:11px; display:block; }
.pending-actions article a { display:inline-flex; align-items:center; gap:6px; margin-top:10px; font-size:12px; min-height:32px; }
.pending-actions article a .icon { width:15px; height:15px; transition:transform var(--xasta-motion-fast); }
.pending-actions article a:hover .icon { transform:translateX(3px); }
.pending-footer { display:flex; gap:8px; align-items:flex-start; color:var(--muted); font-size:11px; border-top:1px solid var(--line); padding-top:15px; margin-top:auto; }
.pending-footer .icon { width:16px; height:16px; }
.action-item:last-of-type { padding-bottom:22px; }
.empty-state { display:grid; justify-items:center; text-align:center; padding:42px 12px; }
.empty-glyph { display:grid; place-items:center; width:50px; height:50px; background:#e9f7f1; color:#156b52; border-radius:16px; margin-bottom:15px; }
.empty-state h3 { margin:0 0 7px; }
.button,button[type=submit],form>button { display:inline-flex; justify-content:center; align-items:center; gap:8px; border:1px solid var(--blue); background:var(--blue); color:white; border-radius:var(--xasta-radius-control); padding:11px 18px; font-weight:550; font-size:13px; line-height:1.5; cursor:pointer; min-height:44px; transition:background var(--xasta-motion-fast),box-shadow var(--xasta-motion-fast),transform var(--xasta-motion-fast); }
.button:hover,button[type=submit]:hover { text-decoration:none; background:#005772; box-shadow:0 3px 10px #006c8b20; }
.button:active,button[type=submit]:active { transform:translateY(1px); }
.button.secondary { background:white; color:var(--blue); border-color:#9baebb; }
.button.secondary:hover { background:#eff7fa; }
.button.danger { background:#fff; color:#a72929; border-color:#cd8c8c; }
.button+.button { margin-left:8px; }
.pdf-link { display:inline-flex; justify-content:center; align-items:center; gap:7px; min-height:38px; padding:7px 11px; border:1px solid #d7e7ee; background:#f3f9fb; color:#006583; border-radius:8px; font-size:12px; font-weight:500; }
.pdf-link .icon { width:16px; height:16px; }
.pdf-link:hover { background:#e5f4fa; text-decoration:none; }
.table-scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
th { font-size:11px; color:var(--muted); font-weight:500; padding:12px 10px; border-bottom:1px solid var(--line); background:#f8fafc; }
th:first-child { border-radius:7px 0 0 7px; }
th:last-child { border-radius:0 7px 7px 0; }
td { padding:16px 10px; border-bottom:1px solid #eaf0f4; white-space:nowrap; }
td small { display:block; color:var(--muted); }
tr:last-child td { border-bottom:0; }
.invoice-table tbody tr { transition:background var(--xasta-motion-fast); }
.invoice-table tbody tr:hover { background:#f8fbfd; }
.numeric,.invoice-table td:nth-child(3),.invoice-table td:nth-child(4) { text-align:right; font-variant-numeric:tabular-nums; }
.invoice-table th:nth-child(3),.invoice-table th:nth-child(4),.invoice-table th:last-child,.invoice-table td:last-child { text-align:right; }
.invoice-number { display:flex; align-items:center; gap:10px; }
.invoice-glyph { display:grid; place-items:center; width:31px; height:36px; border:1px solid #e2edf3; border-radius:8px; color:#5a8698; background:#f5fafc; }
.invoice-glyph .icon { width:17px; height:17px; }
.invoice-number strong { font-size:12px; font-weight:550; }
.mobile-label { display:none; }
.company-card { display:block; color:var(--ink); transition:box-shadow var(--xasta-motion-fast),transform var(--xasta-motion-fast); }
.company-card:hover { box-shadow:0 8px 24px #193f581a; transform:translateY(-2px); text-decoration:none; }
.company-card p { color:var(--muted); font-size:13px; }
.company-card span { color:var(--blue); font-size:13px; }
.document-row { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:16px 0; border-bottom:1px solid var(--line); font-size:13px; }
.document-row:last-child { border-bottom:0; }
.document-row small { display:block; color:var(--muted); }
.notice { border:1px solid #b9d6e4; background:#eef7fb; border-radius:12px; padding:15px 19px; color:#244765; font-size:13px; }
.notice.success { background:#edf8f3; border-color:#b2d8c7; color:#23654b; }
.notice.error { background:#fff1ef; border-color:#d8afa6; color:#922e1f; }
.quarters { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.quarters>div { padding:17px; background:var(--paper); border:1px solid var(--line); border-radius:12px; }
.quarters p { font-size:12px; color:var(--muted); margin-bottom:5px; }
.quarters strong { font-size:21px; }
.annual-total { display:flex; justify-content:space-between; padding:22px 0; margin-top:20px; border-top:1px solid var(--line); }
.annual-total strong { font-size:27px; }
.badge { display:inline-block; background:#edf4f8; color:#465f70; padding:4px 8px; border-radius:6px; font-size:10px; font-weight:550; line-height:1.5; }
.badge--accepted,.badge--published { color:var(--xasta-success); background:var(--xasta-success-surface); }
.badge--open,.badge--review { color:var(--xasta-warning); background:var(--xasta-warning-surface); }
.badge--declined,.badge--rejected { color:var(--xasta-error); background:var(--xasta-error-surface); }
.quote-total { font-size:28px; font-weight:600; font-variant-numeric:tabular-nums; }
.quote-total small { font-size:13px; color:var(--muted); font-weight:400; }
@keyframes panel-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes chart-draw { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
@keyframes chart-column-enter { from { opacity:.35; transform:scaleY(.08); } to { opacity:1; transform:scaleY(1); } }
@keyframes chart-fill { from { opacity:0; } to { opacity:1; } }
[data-chart].chart-enter .trend-line { stroke-dasharray:1; animation:chart-draw 1000ms var(--xasta-ease) both; }
[data-chart].chart-enter .trend-area { animation:chart-fill 700ms 160ms ease both; }
@media(max-width:1200px) {
.metric { padding:20px; }
.metric strong,.metric--primary strong { font-size:28px; }
.pending-actions { display:block; }
.pending-footer { margin-top:20px; }
}
@media(max-width:960px) and (min-width:761px) {
.summary { grid-template-columns:1fr 1fr; }
.metric--primary { grid-column:1/-1; }
.metric { min-height:164px; }
}
@media(max-width:760px) {
.summary { grid-template-columns:1fr 1fr; gap:12px; margin-bottom:20px; }
.metric { min-height:150px; padding:16px; border-radius:16px; }
.metric--primary { grid-column:1/-1; min-height:172px; padding:20px; }
.metric strong { font-size:22px; letter-spacing:-.6px; margin-top:14px; }
.metric--primary strong { font-size:34px; margin-top:12px; }
.metric-label { font-size:11px; gap:4px; }
.metric-glyph { width:29px; height:29px; border-radius:9px; }
.metric-glyph .icon { width:17px; height:17px; }
.metric--primary .metric-glyph { width:34px; height:34px; }
.metric p,.metric-bottom { font-size:11px; }
.metric strong small { font-size:10px; }
.metric-bottom { margin-top:12px; }
.card { padding:20px; border-radius:16px; margin-bottom:20px; }
.section-heading { align-items:flex-start; gap:12px; }
.section-heading h2 { font-size:16px; }
.section-heading p { font-size:11px; }
.section-title { gap:9px; }
.section-glyph { width:32px; height:32px; border-radius:9px; }
.section-glyph .icon { width:18px; height:18px; }
.chart-card .section-heading { align-items:center; }
.chart-controls button { min-width:34px; padding:7px; }
.chart-controls button span { display:none; }
.chart-readout { gap:8px; }
.chart-readout>strong { font-size:25px; }
.chart-readout>span { font-size:11px; }
.trend { height:220px; }
.chart-grid text { display:none; }
.chart-months { padding-left:0; grid-template-columns:repeat(6,minmax(0,1fr)); gap:3px; }
.chart-months button { font-size:11px; min-height:36px; }
.chart-note { font-size:11px; }
.monthly-details summary { font-size:12px; }
.action-item { padding-top:18px; }
.grid { grid-template-columns:1fr; gap:17px; }
.quarters { grid-template-columns:1fr 1fr; gap:10px; }
.quarters>div { padding:13px; }
.quarters strong { font-size:18px; }
.document-row { gap:15px; overflow-wrap:anywhere; }
.document-row>a { max-width:70%; white-space:normal; }
.annual-total strong { font-size:23px; }
.button+.button { margin-left:0; }
.invoice-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.invoice-table tbody { display:block; }
.invoice-table tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6px; padding:16px 0; border-bottom:1px solid var(--line); }
.invoice-table tr:last-child { border-bottom:0; }
.invoice-table td { border:0; padding:0; white-space:normal; overflow-wrap:anywhere; }
.invoice-table td:nth-child(1) { grid-column:1; grid-row:1; align-self:center; }
.invoice-table td:nth-child(5) { grid-column:2; grid-row:1; text-align:right; }
.invoice-table td:nth-child(5) a { min-height:44px; }
.invoice-table td:nth-child(2) { grid-column:1; grid-row:2; font-size:11px; color:var(--muted); }
.invoice-table td:nth-child(3) { grid-column:1; grid-row:3; font-size:11px; color:var(--muted); text-align:left; }
.invoice-table td:nth-child(4) { grid-column:2; grid-row:2/4; text-align:right; align-self:center; }
.invoice-table td[colspan] { grid-column:1/-1; grid-row:auto; }
.invoice-number { gap:6px; }
.invoice-number strong { font-size:11px; }
.invoice-glyph { display:none; }
.mobile-label { display:inline; font-size:11px; color:var(--muted); font-weight:400; }
.invoice-table td:nth-child(4) .mobile-label { display:block; }
}
@media(max-width:360px) {
.metric:not(.metric--primary) { padding:14px 12px; }
.metric:not(.metric--primary) strong { font-size:18px; }
.metric-glyph { width:25px; height:25px; }
.metric-label { gap:3px; font-size:10px; }
.metric strong small { width:100%; }
.card { padding:18px; }
.text-link { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
[data-chart].chart-enter .trend-line { stroke-dasharray:none; stroke-dashoffset:0; }
}
@media(forced-colors:active) {
.card,.metric,.badge,.summary,.sidebar { border:1px solid CanvasText; }
.metric--primary { background:Canvas; color:CanvasText; }
.metric--primary .metric-label,.metric--primary p { color:CanvasText; }
.trend-line,.chart-dots circle,.chart-active-dot { stroke:CanvasText; }
.chart-bars rect { fill:CanvasText; }
}
[data-chart][data-selected-plotted=false] .chart-halo,[data-chart][data-selected-plotted=false] .chart-active-dot { opacity:0; }
.chart-empty { display:none; }
[data-chart][data-empty=true] .chart-empty { display:grid; }
[data-chart][data-empty=true] .chart-plot,[data-chart][data-empty=true] .chart-months,[data-chart][data-empty=true] .chart-controls,[data-chart][data-empty=true] .chart-readout { display:none; }
@media(prefers-reduced-motion:reduce) {
  .metric,.card,[data-chart].chart-enter .trend-line,[data-chart].chart-enter .trend-area,[data-chart][data-mode=bars] .chart-bars rect { animation:none; }
}
