/* 07-page-tops.css — Slim page tops: Chart of Accounts toolbar card, list-page headers and KPI cards.
   Loaded after the files with a smaller number (later rules win). */

/* ===== Chart of Accounts redesign: everything above the tree fits in ~3 slim rows ===== */
.coa-head h1 { font-size: 1.35rem; }
.coa-head .crumbs { display: none; }
.coa-head .btn-grad { padding: .35rem .9rem; font-size: .88rem; }

/* equation: one slim line, no card, no bar */
.eq-card { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0 0 .55rem; }
.eq-row { gap: .3rem .45rem; }
.eq-tile { padding: .2rem .65rem .2rem .3rem; min-width: 0; gap: .45rem; border-radius: 999px; background: #fff; }
.eq-ic { width: 24px; height: 24px; font-size: .8rem; border-radius: 50%; }
.eq-tile > div { display: flex; align-items: baseline; gap: .4rem; }
.eq-k { font-size: .66rem; } .eq-v { font-size: .86rem; }
.eq-op { font-size: 1rem; }
.eq-state { padding: .2rem .65rem; font-size: .72rem; }
.eq-bar, .eq-legend { display: none; }

/* one toolbar row: icon buttons | view options | search */
.coa-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; margin: 0 0 .6rem; }
.coa-bar .coa-actions, .coa-bar .coa-tools { display: contents; }
.coa-bar .tb-group { flex-wrap: nowrap; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.coa-bar .tb-btn { width: 34px; height: 34px; padding: 0; justify-content: center; gap: 0; border: 0; border-radius: 9px; box-shadow: none; background: transparent; }
.coa-bar .tb-btn:hover { transform: none; box-shadow: none; background: var(--cb); }
.coa-bar .tb-btn .ti { width: 30px; height: 30px; font-size: .95rem; background: transparent; }
.coa-bar .tb-btn:hover .ti { background: transparent; color: var(--c); }
.coa-bar .tb-btn .lbl, .coa-bar .tb-btn .bi-chevron-down { display: none; }
.coa-bar .tb-btn .tb-caret { display: none; }
.coa-bar .tool-chip { padding: .2rem .6rem; font-size: .76rem; }
.coa-bar .kbd-hints { display: none !important; }
.coa-bar .coa-search { order: 99; margin-left: auto; flex: 0 1 250px; min-width: 180px; max-width: none; width: auto; }
.coa-bar .coa-search .form-control { background: #fff; border: 1px solid var(--border); padding-top: .38rem; padding-bottom: .38rem; font-size: .86rem; }

/* tree card: slim tabs, thin pinned strip, tighter rows */
.report-card > .coa-sub { padding: .5rem .9rem; }
.type-tabs a { padding: .22rem .65rem; font-size: .78rem; }
.coa-pins { padding: .25rem .9rem; background: #fffdf2; border-bottom: 1px solid #f4ecc7; gap: .5rem; }
.pins-label { font-size: .64rem; }
.coa-grid-head { padding: .3rem 1.1rem; font-size: .64rem; }
.coa-row { padding-top: .26rem; padding-bottom: .26rem; font-size: .88rem; }
.coa-row .cr-ic { width: 24px; height: 24px; font-size: .8rem; border-radius: 7px; }
.report-card > .coa-sub { flex-wrap: nowrap; }
.report-card > .coa-sub .type-tabs { flex: 1 1 auto; min-width: 0; }
.report-card > .coa-sub #coaCount { flex: none; white-space: nowrap; }

/* one tidy card: equation on top, tools underneath */
.coa-top { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: .6rem .75rem; margin: 0 0 .75rem; }
.coa-top .eq-card { margin: 0; padding: 0 0 .55rem; border-bottom: 1px solid var(--border); }
.coa-top .eq-tile { background: var(--bg); border: 0; }
.coa-top .eq-op { color: var(--subtle); }
.coa-top .coa-bar { margin: .55rem 0 0; }
.coa-top .coa-bar .tb-group { background: var(--bg); border: 0; margin: 0; }
.coa-top .coa-bar .tb-btn:hover { background: #fff; }
.coa-top .coa-bar .tool-chip { background: var(--bg); border-color: transparent; }
.coa-top .coa-bar .tool-chip:has(input:checked) { background: var(--blue-soft); border-color: var(--blue); }
.coa-top .coa-bar .coa-search .form-control { background: var(--bg); border-color: transparent; }
.coa-top .coa-bar .coa-search .form-control:focus { background: #fff; border-color: var(--blue); }
.coa-top .coa-bar { padding: 0; justify-content: flex-start; background: none; border: 0; box-shadow: none; border-radius: 0; }

/* ===== List pages (customers, suppliers, employees, HR lists, journals, transactions): slim top section ===== */
.content:has(.filter-card) .page-head { margin-bottom: .6rem !important; gap: .5rem !important; align-items: center !important; }
.content:has(.filter-card) .page-head .crumbs { display: none; }
.content:has(.filter-card) .page-head > div:first-child > .text-muted { display: none; }
.content:has(.filter-card) .page-head h1 { font-size: 1.35rem; }
.content:has(.filter-card) .page-head .dp-icon { width: 34px !important; height: 34px !important; font-size: 1rem !important; border-radius: 10px; }
.content:has(.filter-card) .page-head .btn-grad { padding: .35rem .9rem; font-size: .88rem; }
.content:has(.filter-card) .page-head .tb-group { flex-wrap: nowrap; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.content:has(.filter-card) .page-head .tb-btn { width: 34px; height: 34px; padding: 0; justify-content: center; gap: 0; border: 0; border-radius: 9px; box-shadow: none; background: transparent; }
.content:has(.filter-card) .page-head .tb-btn:hover { transform: none; box-shadow: none; background: var(--cb); }
.content:has(.filter-card) .page-head .tb-btn .ti { width: 30px; height: 30px; font-size: .95rem; background: transparent; }
.content:has(.filter-card) .page-head .tb-btn:hover .ti { background: transparent; color: var(--c); }
.content:has(.filter-card) .page-head .tb-btn .lbl { display: none; }

.content:has(.filter-card) .rep-kpis { gap: .6rem; margin-bottom: .6rem; }
.content:has(.filter-card) .rep-kpi { padding: .45rem .8rem .45rem 3.1rem; border-radius: 12px; min-width: 0; }
.content:has(.filter-card) .rep-kpi:hover { transform: none; }
.content:has(.filter-card) .rep-kpi .ic { left: .65rem; right: auto; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; font-size: .9rem; border-radius: 9px; }
.content:has(.filter-card) .rep-kpi .k { font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content:has(.filter-card) .rep-kpi .v { margin-top: .05rem; font-size: 1.05rem; }
.content:has(.filter-card) .rep-kpi .s { margin-top: 0; font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content:has(.filter-card) .rep-kpi.main::after { width: 90px; height: 90px; right: -30px; bottom: -50px; }
.content:has(.filter-card) .filter-card { margin-bottom: .6rem !important; }
@media (max-width: 767.98px) { .content:has(.filter-card) .rep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

