.accounting-page{display:grid;gap:16px;padding-bottom:20px}.accounting-page svg{width:18px;height:18px;display:block;fill:none!important;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.accounting-page .page-header{margin-bottom:0}.accounting-page .page-header .title h1{letter-spacing:-.04em}.accounting-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.accounting-kpi{background:var(--surface);border-radius:18px;padding:16px 18px;min-height:100px;display:grid;align-content:space-between;box-shadow:0 1px 2px rgba(28,29,25,.025)}.accounting-kpi label{font-size:11px;color:var(--muted)}.accounting-kpi strong{font-size:27px;line-height:1;font-weight:500;letter-spacing:-.04em}.accounting-kpi small{font-size:12px;color:var(--muted)}.accounting-kpi.accent{background:#e8ebd2;color:#343824}.accounting-kpi.warning{background:#fbf2df;color:#815b22}.accounting-kpi.danger{background:#f8e9e6;color:#9b4e45}.accounting-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,.8fr);gap:16px;align-items:start}.accounting-card{background:var(--surface);border-radius:20px;overflow:hidden;box-shadow:0 1px 2px rgba(28,29,25,.025)}.accounting-card-head{padding:18px 20px 14px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border)}.accounting-card-head h2{font-size:16px;font-weight:500;margin:0}.accounting-card-head p{font-size:11px;color:var(--muted);margin:4px 0 0}.accounting-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 20px;background:var(--surface2);border-bottom:1px solid var(--border)}.accounting-toolbar .input,.accounting-toolbar .select{height:34px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:0 11px}.accounting-toolbar .accounting-search{width:min(280px,100%)}.accounting-toolbar .spacer{min-width:12px}.accounting-table{width:100%;border-collapse:collapse}.accounting-table th{height:38px;padding:0 20px;text-align:left;color:var(--muted);font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.05em;background:var(--surface2)}.accounting-table td{height:58px;padding:9px 20px;border-top:1px solid var(--border);font-size:12px;vertical-align:middle}.accounting-table tr[data-accounting-invoice]{cursor:pointer;transition:background .16s}.accounting-table tr[data-accounting-invoice]:hover{background:#f4f5ec}.accounting-table td strong{font-weight:600}.accounting-table .cell-sub{font-size:12px;color:var(--muted);margin-top:3px}.accounting-table .amount{text-align:right;font-weight:600;white-space:nowrap}.accounting-table .status{font-size:12px}.accounting-side{display:grid;gap:16px}.accounting-side .accounting-card-body{padding:18px 20px}.accounting-balance{font-size:32px;line-height:1;font-weight:500;letter-spacing:-.04em;margin:3px 0 7px}.accounting-list{display:grid;gap:0}.accounting-list-item{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}.accounting-list-item:last-child{border-bottom:0;padding-bottom:0}.accounting-list-item:first-child{padding-top:0}.accounting-list-item>span:first-child{width:28px;height:28px;border-radius:9px;background:var(--surface2);display:grid;place-items:center;color:var(--accent);font-size:12px}.accounting-list-item>div{flex:1;min-width:0}.accounting-list-item strong{display:block;font-size:12px;font-weight:500}.accounting-list-item small{display:block;font-size:12px;color:var(--muted);margin-top:2px}.accounting-list-item b{font-size:12px;font-weight:600;white-space:nowrap}.accounting-progress{height:7px;border-radius:99px;background:var(--surface2);overflow:hidden;margin-top:12px}.accounting-progress i{display:block;height:100%;width:var(--value,50%);border-radius:inherit;background:#aebc7e}.accounting-empty{padding:36px 20px;text-align:center;color:var(--muted);font-size:12px}.accounting-form{display:grid;gap:14px}.accounting-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.accounting-form label{display:grid;gap:6px;font-size:11px;font-weight:500}.accounting-form .input,.accounting-form .select{height:40px;background:var(--surface2);border:1px solid var(--border);border-radius:10px;padding:0 11px}.cost-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 20px}.cost-tile{background:var(--surface2);border-radius:14px;padding:14px;min-height:100px;display:grid;align-content:space-between}.cost-tile label{font-size:11px;color:var(--muted)}.cost-tile strong{font-size:22px;font-weight:500}.cost-tile small{font-size:12px;color:var(--muted)}.reconciliation-row{display:grid;grid-template-columns:1fr auto auto;gap:14px;align-items:center;padding:14px 20px;border-top:1px solid var(--border)}.reconciliation-row strong{font-size:12px;font-weight:500}.reconciliation-row small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.reconciliation-row .btn{height:30px;border-radius:9px;font-size:11px}.accounting-tabs{display:flex;gap:4px;background:var(--surface);border-radius:999px;padding:4px;width:max-content;max-width:100%}.accounting-tabs button{border:0;background:transparent;border-radius:999px;height:30px;padding:0 14px;font-size:11px;color:var(--muted)}.accounting-tabs button.active{background:#1c1d19;color:#fff}.accounting-note{font-size:12px;color:var(--muted);line-height:1.5;margin-top:12px}@media(max-width:1000px){.accounting-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-layout{grid-template-columns:1fr}}@media(max-width:640px){.accounting-kpis{grid-template-columns:1fr 1fr;gap:8px}.accounting-kpi{min-height:88px;padding:12px}.accounting-kpi strong{font-size:22px}.accounting-card-head,.accounting-toolbar{padding-left:14px;padding-right:14px}.accounting-table{min-width:680px}.accounting-card:has(.accounting-table){overflow-x:auto}.accounting-table th,.accounting-table td{padding-left:14px;padding-right:14px}.cost-grid{grid-template-columns:1fr;padding:14px}.accounting-form .form-grid{grid-template-columns:1fr}.reconciliation-row{grid-template-columns:1fr auto;gap:8px;padding:13px 14px}.reconciliation-row .status{grid-column:2;grid-row:1}.reconciliation-row .btn{grid-column:1/-1;width:max-content}}
/* Accounting activity: clear hierarchy and responsive rows */
.accounting-side>.accounting-card:first-child .accounting-card-head{min-height:72px;align-items:center}
.accounting-side>.accounting-card:first-child .accounting-list-item{min-height:68px;padding:14px 20px}
.accounting-side>.accounting-card:first-child .accounting-list-item>span:first-child{flex:none}
.accounting-side>.accounting-card:first-child .accounting-list-item b{margin-left:auto;padding-left:12px}
@media(max-width:640px){
  .accounting-side>.accounting-card:first-child .accounting-card-head{padding:16px 16px 13px;min-height:0}
  .accounting-side>.accounting-card:first-child .accounting-card-head h2{font-size:17px}
  .accounting-side>.accounting-card:first-child .accounting-list-item{min-height:66px;padding:11px 14px;gap:10px}
  .accounting-side>.accounting-card:first-child .accounting-list-item strong{font-size:12px;line-height:1.25}
  .accounting-side>.accounting-card:first-child .accounting-list-item small{font-size:12px;line-height:1.25}
  .accounting-side>.accounting-card:first-child .accounting-list-item b{font-size:13px;padding-left:8px}
  /* Incoming invoices: replace the wide desktop table with readable cards */
  .accounting-page .accounting-table{min-width:0;width:100%;table-layout:fixed}
  .accounting-page .accounting-card:has(.accounting-table){overflow:hidden}
  .accounting-page .accounting-table thead{display:none}
  .accounting-page .accounting-table tbody{display:grid;gap:0}
  .accounting-page .accounting-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:12px 14px;border-top:1px solid var(--border);min-height:78px}
  .accounting-page .accounting-table tbody tr:first-child{border-top:0}
  .accounting-page .accounting-table td{height:auto;padding:0;border:0;font-size:12px;min-width:0}
  .accounting-page .accounting-table td:first-child{grid-column:1/-1;padding-bottom:3px}
  .accounting-page .accounting-table td:nth-child(2){font-size:12px;color:var(--muted)}
  .accounting-page .accounting-table td:nth-child(3){text-align:right;grid-column:2;grid-row:2;font-weight:600}
  .accounting-page .accounting-table td:nth-child(4){grid-column:1;grid-row:3;justify-self:start}
  .accounting-page .accounting-table td:nth-child(5){grid-column:2;grid-row:3;justify-self:end}
  .accounting-page .accounting-table .cell-sub{font-size:12px;line-height:1.3}
  .accounting-page .accounting-table .btn{height:28px;font-size:12px;padding:0 10px}
  /* Cost centres: compact tiles and horizontally scrollable tabs */
  .accounting-page .accounting-tabs{width:100%;overflow-x:auto;justify-content:flex-start;padding:3px}
  .accounting-page .accounting-tabs button{flex:none;padding:0 12px}
  .accounting-page .cost-grid{gap:8px;padding:12px}
  .accounting-page .cost-tile{min-height:82px;padding:12px;border-radius:12px}
  .accounting-page .cost-tile strong{font-size:20px}
  .accounting-page .reconciliation-row{padding:12px 14px}
}
@media(max-width:900px){
  .accounting-page .accounting-card:has(.accounting-table){overflow:hidden}
  .accounting-page .accounting-table{min-width:0;width:100%;table-layout:fixed}
  .accounting-page .accounting-table thead{display:none}
  .accounting-page .accounting-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:12px 14px;border-top:1px solid var(--border);min-height:78px}
  .accounting-page .accounting-table tbody tr:first-child{border-top:0}
  .accounting-page .accounting-table td{height:auto;padding:0;border:0;font-size:12px;min-width:0}
  .accounting-page .accounting-table td:first-child{grid-column:1/-1;padding-bottom:3px}
  .accounting-page .accounting-table td:nth-child(2){font-size:12px;color:var(--muted)}
  .accounting-page .accounting-table td:nth-child(3){text-align:right;grid-column:2;grid-row:2;font-weight:600}
  .accounting-page .accounting-table td:nth-child(4){grid-column:1;grid-row:3;justify-self:start}
  .accounting-page .accounting-table td:nth-child(5){grid-column:2;grid-row:3;justify-self:end}
}
