/* Area utility – page styles (docs/AREAS.md). Only classes of this area's pages (prefix ut-); shared tokens in theme.css. */

/* cost types */
.ut-no { color: var(--text-3); }
.ut-legal { display: flex; gap: 6px; align-items: flex-start; margin: 10px 2px 0; }
.ut-toggles { display: grid; gap: 12px; }

/* annual costs */
.ut-sel .input { min-width: 180px; }
.ut-kpis { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ut-costs td { vertical-align: top; }
@media (min-width: 900px) { .ut-costs { table-layout: fixed; } .ut-costs th:nth-child(1) { width: 32%; } .ut-costs th:nth-child(2) { width: 15%; } .ut-costs th:nth-child(3) { width: 12%; } .ut-costs th:nth-child(4) { width: 22%; } .ut-costs th:nth-child(5) { width: 12%; } .ut-costs th:nth-child(6) { width: 96px; } }
.ut-costs tr.ut-zero td { background: var(--warning-bg); }
.ut-file { display: inline-flex; align-items: center; gap: 6px; max-width: 180px; color: var(--text); }
.ut-file .ellipsis { max-width: 150px; }
.ut-up { min-height: 36px; }
.ut-non { border-top: 1px solid var(--border); }
.ut-non .tbl th { background: var(--neutral-bg); }
.ut-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--border); font-size: var(--fs-md); }
.ut-total b { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.ut-missing { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ut-missing li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); min-height: 52px; }
.ut-missing .mini { display: block; color: var(--text-3); font-size: 11.5px; }
.ut-ok { display: flex; align-items: center; gap: 6px; color: var(--success); margin: 0; }

/* statement report */
.ut-bal { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ut-bal.add { color: var(--warning); }
.ut-bal.credit { color: var(--success); }
.ut-dlb { display: block; margin-top: 4px; }
.ut-deadline { margin-bottom: var(--gap); }
.ut-deadline a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.ut-prev { margin-top: 14px; display: grid; gap: 10px; }
.ut-plist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); max-height: 300px; overflow: auto; }
.ut-plist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ut-plist li:last-child { border-bottom: 0; }
.ut-plist .mini { display: block; color: var(--text-3); font-size: 11.5px; }

/* statement detail */
.ut-steps { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -4px 0 var(--gap); }
.ut-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; margin-top: var(--gap); }
.ut-steps + .alert, .alert + .alert { margin-top: 8px; }
.ut-dl { grid-template-columns: minmax(130px, 28%) 1fr; }
.ut-dl .mini { display: block; color: var(--text-3); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.ut-dl textarea { width: 100%; }
.ut-period { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ut-period .input { width: auto; }
.ut-lines td { vertical-align: top; }
.ut-lines tr.ut-corr td { background: var(--info-bg); }
.ut-remark { display: flex !important; gap: 4px; align-items: flex-start; }
.ut-result .card-body { display: grid; gap: 8px; }
.ut-row { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs); }
.ut-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ut-row.sub { font-size: var(--fs-sm); color: var(--text-3); }
.ut-big { display: grid; gap: 2px; padding: 12px 0 6px; margin-top: 4px; border-top: 1px solid var(--border-strong); }
.ut-big span { font-size: var(--fs-sm); color: var(--text-3); }
.ut-big b { font-size: 26px; font-variant-numeric: tabular-nums; }
.ut-big.credit b { color: var(--success); }
.ut-big.additional b { color: var(--warning); }
.ut-vac { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.ut-vac li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--border); padding: 3px 0; }
.ut-mails { padding: 6px 16px 12px; display: grid; gap: 6px; }
.ut-mails li { display: grid; gap: 1px; }
.ut-main details summary { cursor: pointer; color: var(--primary); }

@media (max-width: 1100px) { .ut-detail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ut-sel .input { min-width: 0; flex: 1 1 140px; }
  .ut-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .ut-dl dd { margin-bottom: 8px; }
  .ut-total { justify-content: space-between; }
  .ut-steps .st-steps { flex-wrap: wrap; }
}
/* visually hidden labels / file inputs inside scrolling tables must not widen the page */
.ut-costs, .ut-lines { position: relative; }
.table-wrap:has(> .ut-costs), .table-wrap:has(> .ut-lines) { position: relative; }
.ut-dl select { max-width: 100%; }
.ut-filecell { display: inline-flex; align-items: center; gap: 2px; }
