/* Sales v1.0.32 — focused hierarchy, real request feedback, restrained motion. */
:root { --chart-current: #279ec5; --chart-comparison: #b4dfea; --skeleton-base: #e8e9eb; }
html[data-theme="dark"] { --chart-current: #5ec6ea; --chart-comparison: #618695; --skeleton-base: #373737; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.resource-header h1, .view-head h2 { font-size: 26px; font-weight: 650; letter-spacing: -.035em; }
.resource-header p, .view-head p { max-width: 600px; font-size: 13px; line-height: 1.55; }
.overview-heading h1 { font-size: 28px; }
.overview-heading .live-data-chip { border: 0; background: transparent; padding: 0 4px; font-size: 11px; font-weight: 500; }
.overview-card { box-shadow: 0 1px 2px #00000006; }
.overview-grid .overview-card:hover { box-shadow: 0 1px 2px #00000006; border-color: var(--line); }
.performance-card { border-radius: 12px; }
.performance-body { grid-template-columns: minmax(0,1fr) minmax(280px,26%); }
#exportButton { white-space: nowrap; }
.chart-block { padding: 20px 22px 18px; }
.trend-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.trend-heading h2 { display: inline-block; margin: 0 0 8px; font-size: 13px; font-weight: 550; border-bottom: 1px dashed var(--line-strong); padding-bottom: 2px; }
.trend-total { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.trend-total > strong { font-size: 32px; line-height: 1.1; letter-spacing: -.035em; font-weight: 650; font-variant-numeric: tabular-nums; }
.trend-total .kpi-delta { background: transparent !important; padding: 0; font-size: 12px !important; }
.trend-total .kpi-delta.muted { font-weight: 400; }
.chart-report-link { color: var(--muted); width: 32px; height: 32px; text-decoration: none; }
.chart-report-link:hover { background: var(--surface-subdued); }
.sales-trend { min-width: 0; }
.chart-canvas { position: relative; height: 248px; }
.sales-chart-svg { display: block; width: 100%; height: 100%; overflow: visible; outline-offset: 0; touch-action: pan-y; }
.sales-chart-svg .chart-grid-line { stroke: var(--line); stroke-opacity: .55; stroke-width: 1; }
.sales-chart-svg .chart-label, .sales-chart-svg .chart-y-label { fill: var(--muted); font: 11px "Segoe UI", -apple-system, sans-serif; stroke: none; }
.trend-area { fill: url(#salesTrendArea); stroke: none; }
.trend-current { stroke: var(--chart-current); stroke-width: 2; fill: none; }
.trend-comparison { stroke: var(--chart-comparison); stroke-width: 2; stroke-dasharray: 1 4; fill: none; }
.trend-cursor { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.trend-dot { fill: var(--surface); stroke: var(--chart-current); stroke-width: 2; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding-top: 8px; color: var(--muted); font-size: 11px; }
.trend-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.trend-legend i, .chart-tooltip i { width: 14px; height: 0; border-top: 2px solid var(--chart-current); flex: none; }
.trend-legend .comparison-key, .chart-tooltip .comparison-key { border-color: var(--chart-comparison); border-top-style: dotted; }
.chart-tooltip { position: absolute; z-index: 2; pointer-events: none; min-width: 180px; max-width: 260px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 6px 20px #00000014; color: var(--text); font-size: 11px; }
.chart-tooltip > strong { display: block; margin-bottom: 7px; font-weight: 600; }
.chart-tooltip > div { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--muted); }
.chart-tooltip b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.comparison-notice { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.chart-block > .chart-empty { min-height: 280px; }
.sales-breakdown { padding: 24px 22px; }
.sales-breakdown h3 { font-size: 14px; font-weight: 600; }
.sales-breakdown > p { font-size: 11px; margin-bottom: 20px; line-height: 1.6; }
.finance-list > div { grid-template-columns: minmax(0,1fr) auto 36px; padding: 13px 0; font-size: 12px; }
.finance-list > div > span { min-width: 0; }
.finance-list strong { white-space: nowrap; }
.finance-list > div:last-child { margin-top: 10px; padding-top: 20px; }
.finance-list > div:last-child strong { font-size: 18px; letter-spacing: -.025em; }
.supporting-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); border-bottom: 0; border-top: 1px solid var(--line); }
.supporting-metrics article { padding: 16px 20px; border-right: 1px solid var(--line); border-bottom: 0; }
.supporting-metrics strong { font-size: 21px; font-weight: 600; margin: 5px 0; }
.supporting-metrics article:first-child strong { font-size: 24px; }
.supporting-metrics small, .supporting-metrics .kpi-delta { font-size: 11px; }
.overview-secondary { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); align-items: start; }
.overview-secondary > .overview-card { padding: 20px; }
.overview-secondary .card-header h2 { font-size: 15px; font-weight: 600; }
.card-header p { font-size: 11px; }
.resource-row { min-height: 58px; }
.resource-row strong, .task-row strong { font-size: 13px; font-weight: 550; }
.resource-row small, .task-row small { font-size: 11px; }
.resource-row b { font-size: 12px; }
.resource-row > .product-thumb { border-radius: 50%; width: 24px; height: 24px; background: var(--surface-subdued); color: var(--muted); font-size: 11px; font-weight: 500; }
.quick-start { box-shadow: none; background: var(--surface-subdued); }
.data-table th { font-size: 10px; letter-spacing: .025em; }
.data-table td { font-size: 12px; }
.data-table .cell-note, .cell-main small { font-size: 11px; }

/* Feedback is tied to real loading, never to a simulated progress percentage. */
.startup-progress { margin-top: 12px; width: 180px; height: 3px; overflow: hidden; border-radius: 4px; background: var(--line); }
.startup-progress::after { content: ""; display: block; width: 40%; height: 100%; background: var(--accent); animation: startupProgress 1.3s ease-in-out infinite; }
@keyframes startupProgress { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
.view-loading-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.view-loading-status i { width: 12px; height: 12px; border: 1.5px solid var(--line-strong); border-right-color: var(--accent); border-radius: 50%; animation: loadingSpin 900ms linear infinite; }
@keyframes loadingSpin { to { transform: rotate(360deg); } }
.skeleton { background: var(--skeleton-base) !important; animation: skeletonBreathe 1.6s ease-in-out infinite alternate; }
.skeleton::after { display: none; }
@keyframes skeletonBreathe { from { opacity: .65; } to { opacity: 1; } }
.skeleton-bar { display: block; min-height: 9px; height: 9px; max-width: 100%; border-radius: 4px; margin: 9px 0; }
.skeleton-bar.tall { height: 26px; margin: 12px 0; }
.skeleton-avatar { width: 30px; height: 30px; border-radius: 7px; }
.table-placeholder { min-height: 350px; }
.placeholder-heading, .placeholder-row { display: grid; grid-template-columns: repeat(var(--placeholder-columns),minmax(0,1fr)); gap: 16px; padding: 14px 18px; align-items: center; }
.placeholder-heading { background: var(--surface-subdued); border-bottom: 1px solid var(--line); }
.placeholder-row { min-height: 48px; border-bottom: 1px solid var(--line); }
.placeholder-row:last-child { border: 0; }
.placeholder-list-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 14px; min-height: 66px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.placeholder-list-row:last-child { border: 0; }
.placeholder-chart { height: 248px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 0; margin-top: 20px; }
.placeholder-chart i { height: 1px; background: var(--line); }
.placeholder-metrics { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--line); }
.placeholder-metrics > div { padding: 18px 20px; }
.planning-placeholder { padding: 18px; }
.stat-card .skeleton-bar:first-child { margin-top: 0; }

/* No bounce, staggered cascade, or large moves. Contents remain interactive. */
.content > * { animation: salesReveal 200ms ease-out both; animation-delay: 0ms !important; }
.resource-list, .task-list, .data-table tbody, .mobile-card-list, .timeline, .planning-grid, .ranking, .record-recap { animation: salesReveal 220ms ease-out both; }
@keyframes salesReveal { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
button:not(:disabled), .chart-report-link { transition: transform 150ms ease; }
button:not(:disabled):active, .chart-report-link:active { transform: translateY(1px); }
.nav-item:not(:disabled):active { background: var(--line); }
.openable-record { transition: transform 150ms ease; }
.openable-record:active { background: var(--accent-soft); }
button:disabled { cursor: default; opacity: .5; }
button[aria-busy="true"] { cursor: progress; }
.modal-backdrop { animation: salesBackdrop 180ms ease both; }
.modal-panel { animation: salesReveal 250ms var(--ease) both; }
@keyframes salesBackdrop { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1180px) { .view-loading-status > span { display: none; } .performance-body { grid-template-columns: minmax(0,1fr); } .sales-breakdown { padding: 18px 22px; border-top: 1px solid var(--line); border-left: 0; } .sales-breakdown > p { margin-bottom: 8px; } .finance-list { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; } .finance-list > div:last-child { margin: 0; padding: 13px 0; } .supporting-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } .supporting-metrics article { border-bottom: 1px solid var(--line); } .supporting-metrics article:nth-child(3) { border-right: 0; } }
@media (max-width: 980px) { .performance-body { grid-template-columns: minmax(0,1fr); } .sales-breakdown { padding: 18px 22px; } .sales-breakdown > p { margin-bottom: 8px; } .finance-list { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; } .finance-list > div:last-child { margin: 0; padding: 13px 0; } .overview-secondary { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); } }
@media (max-width: 760px) { .resource-header h1, .view-head h2 { font-size: 24px; } .overview-secondary { grid-template-columns: minmax(0,1fr); } .chart-block { padding: 18px 16px; } .trend-total > strong { font-size: 28px; } .chart-canvas { height: 220px; } .trend-legend { font-size: 10px; gap: 8px 16px; } .sales-breakdown { padding: 16px; } .supporting-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .supporting-metrics article, .supporting-metrics article:nth-child(3) { border-right: 1px solid var(--line); } .supporting-metrics article:nth-child(even) { border-right: 0; } .supporting-metrics article:last-child { grid-column: 1/-1; border: 0; } .supporting-metrics strong, .supporting-metrics article:first-child strong { font-size: 21px; } .placeholder-metrics { grid-template-columns: repeat(2,1fr); } .placeholder-metrics > div:last-child { display: none; } .view-loading-status { order: 3; } .placeholder-heading, .placeholder-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; } .placeholder-heading > :nth-child(n+4), .placeholder-row > :nth-child(n+4) { display: none; } .primary-button, .secondary-button, .text-button, .danger-button, .row-action, .nav-item, .theme-toggle, .side-footer a { min-height: 44px; } .overview-heading .live-data-chip { flex: 0 0 100%; } }
@media (max-width: 420px) { .finance-list { grid-template-columns: minmax(0,1fr); } .finance-list > div { padding: 10px 0; } .finance-list > div:last-child { padding-top: 14px; } .sales-chart-svg .chart-label, .sales-chart-svg .chart-y-label { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .startup-progress::after { transform: none; width: 100%; } }
