/* Doanh thu (Lãnh đạo): filters, three totals, the contract table and its detail. Reuses the leadership
   KPI cards and the shared table styles. */
#revenue-workspace { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; min-width:0; }
.revenue-filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 16px; }
.workspace-v2 .revenue-filters .date-filter-group { margin:0; padding-right:0; max-width:100%; }
.workspace-v2 .revenue-filters .action-label { margin:0; min-width:0; }
.revenue-filters select { width:auto; max-width:100%; }
.revenue-filters input[type=search] { width:min(100%,360px); min-width:0; box-sizing:border-box; }
.revenue-filters .revenue-period { flex-basis:100%; margin:0; }
.revenue-totals-wrap { display:grid; gap:8px; }
.revenue-totals { grid-template-columns:repeat(3,minmax(0,1fr)); width:min(100%,36rem); }
.revenue-partial { margin:0; }
.revenue-table-scroll { max-width:100%; min-width:0; overflow-x:auto; }
.revenue-table { width:100%; min-width:720px; border-collapse:collapse; }
.revenue-table :is(th,td) { padding:10px 12px; border-bottom:1px solid var(--ui-border); text-align:left; vertical-align:middle; }
.revenue-table th { font-size:13px; font-weight:600; color:var(--ui-muted); background:var(--ui-surface-muted); white-space:normal; }
.revenue-table td:nth-child(n+4), .revenue-table th:nth-child(n+4) { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.revenue-detail .revenue-table td:nth-child(n+4), .revenue-detail .revenue-table th:nth-child(n+4) { text-align:right; }
.revenue-detail .revenue-table :is(td,th):nth-child(-n+3) { text-align:left; }
.revenue-open { padding:0; border:0; background:none; color:var(--ui-accent); font:inherit; font-weight:600; text-align:left; cursor:pointer; min-height:0; }
.revenue-open:hover { text-decoration:underline; }
.revenue-contract-row { cursor:pointer; }
/* Row hover: list-rows.css (19/11/2026). */
.revenue-detail { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.revenue-detail-head { display:flex; align-items:flex-start; gap:12px; }
.revenue-identity h2 { margin:0 0 4px; font-size:var(--ui-section-title,20px); }
.revenue-identity p { margin:0; }
@media (max-width:720px) { .revenue-totals { grid-template-columns:minmax(0,1fr); } }
/* Codes, grades and slumps stay on one line; on a narrow screen the table scrolls inside its frame. */
.revenue-table :is(th,td) { white-space:nowrap; }
.revenue-detail .revenue-table { min-width:900px; }
#revenue-workspace .revenue-totals { grid-auto-rows:auto; }
#revenue-workspace .revenue-kpi { gap:2px; padding:6px 10px; }
#revenue-workspace .revenue-kpi .leader-kpi-label { margin:0; font-size:14px; }
#revenue-workspace .revenue-kpi .leader-kpi-value { flex-wrap:wrap; gap:2px 5px; }
#revenue-workspace .revenue-kpi .leader-kpi-value strong { font-size:18px; }
