body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:#f5f7fb;margin:0}
header{background:#111827;color:#fff;padding:12px 16px;display:flex;align-items:center;justify-content:space-between}
a{color:#2563eb;text-decoration:none}
.container{max-width:1400px;margin:16px auto;padding:0 12px}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:14px;margin-bottom:12px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px}
.btn{display:inline-block;background:#111827;color:#fff;border:none;border-radius:8px;padding:8px 12px;cursor:pointer}
.btn.secondary{background:#e5e7eb;color:#111827}
.btn.btn-sm{padding:6px 10px;border-radius:8px;font-size:13px;line-height:1.1}
.btn.danger{background:#991b1b}
.btn.whatsapp{background:#16a34a}

.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
form.inline{display:inline}

.muted{color:#9ca3af}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:8px;border-bottom:1px solid #e5e7eb;font-size:13px;text-align:left;vertical-align:top}
.table-wide{min-width:1400px}
.small{font-size:12px;color:#6b7280}
input,select{padding:8px;border:1px solid #d1d5db;border-radius:8px;width:100%}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
  .row{grid-template-columns:1fr}
  header{flex-wrap:wrap;gap:10px}
}

/* Mobile UI improvements */
@media (max-width: 600px){
  /* Header buttons wrap and become more touch-friendly */
  header{align-items:flex-start}
  header > div:last-child{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px}
  header a.btn{padding:8px 10px;font-size:13px;margin:0 !important;}
  header span.small{display:block;width:100%;margin:0 0 6px 0 !important;}

  /* Action buttons stack vertically (avoid congestion) */
  .actions{flex-direction:column;align-items:stretch}
  .actions .btn{width:100%;text-align:center}

  /* Reduce filter card density */
  .card{padding:12px}
  .table th,.table td{padding:10px 8px}

  /* Hide low-priority columns on small screens to avoid horizontal scrolling */
  /* Columns: 1 Site,2 ID,3 Customer,4 Pickup dt,5 Trip,6 Pricing,7 P/D,8 Stops,9 Extra,10 Flight,11 Instructions,12 Two-way,13 Detour,14 Total,15 Payment,16 Status,17 Completed,18 Updated,19 Actions */
  .table.bookings th:nth-child(6), .table.bookings td:nth-child(6),
  .table.bookings th:nth-child(8), .table.bookings td:nth-child(8),
  .table.bookings th:nth-child(9), .table.bookings td:nth-child(9),
  .table.bookings th:nth-child(10), .table.bookings td:nth-child(10),
  .table.bookings th:nth-child(11), .table.bookings td:nth-child(11),
  .table.bookings th:nth-child(12), .table.bookings td:nth-child(12),
  .table.bookings th:nth-child(13), .table.bookings td:nth-child(13),
  .table.bookings th:nth-child(15), .table.bookings td:nth-child(15),
  .table.bookings th:nth-child(17), .table.bookings td:nth-child(17),
  .table.bookings th:nth-child(18), .table.bookings td:nth-child(18){
    display:none;
  }

  /* Disable fixed horizontal scrollbar on mobile */
  .hscroll-fixed{display:none}
  body{padding-bottom:0}
}


/* Fixed horizontal scrollbar for wide tables */
.table-scroll{overflow-x:auto; overflow-y:visible;}
.hscroll-fixed{position:fixed; left:0; right:0; bottom:0; height:16px; overflow-x:auto; overflow-y:hidden; background:rgba(245,247,251,0.92); border-top:1px solid #e5e7eb; z-index:9999;}
.hscroll-inner{height:1px;}
/* Keep content above fixed bar */
body{padding-bottom:22px;}

/* Bookings table viewport + sticky headers */
.table-viewport { position: relative; }

/* PMO modal (used for driver assignment) */
.pmo-modal{display:none;position:fixed;inset:0;z-index:10000;}
.pmo-modal.open{display:block;}
.pmo-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.45);}
.pmo-modal-dialog{position:relative;max-width:980px;margin:6vh auto;background:#fff;border-radius:12px;border:1px solid #e5e7eb;box-shadow:0 20px 40px rgba(0,0,0,0.25);overflow:hidden;}
.pmo-modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:12px 12px;border-bottom:1px solid #e5e7eb;}
.pmo-modal-body{padding:12px;max-height:70vh;overflow:auto;}
.pmo-driver-row.conflict{background:#fef9c3;}
.table-scroll { overflow: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { border-collapse: separate; border-spacing: 0; min-width: 1200px; }
.table-scroll thead th { position: sticky; top: 0; background: #fff; z-index: 50; }
.table-scroll thead th { box-shadow: 0 1px 0 rgba(0,0,0,0.08); }

/* Fixed horizontal scrollbar aligned to table viewport */
.hscroll-fixed{
  position: fixed;
  bottom: 0;
  height: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(245,247,251,0.92);
  border-top: 1px solid #e5e7eb;
  z-index: 9999;
}
.hscroll-inner{ height: 1px; }

/* ---- Bookings page UX tweaks ---- */
.bookings-filters{padding:14px;}
.bookings-filters .row{gap:10px;}
.bookings-filters label{font-size:13px;}
.bookings-filters input, .bookings-filters select{padding:8px 10px;}
.bookings-table-scroll{max-height:calc(100vh - 240px)!important;}

.driver-pill{margin-top:8px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;}
.driver-pill .small{line-height:1.3;}

@media (max-width: 900px){
  .bookings-table-scroll{max-height:calc(100vh - 260px)!important;}
}


/* Zebra striping for bookings */
.bookings tbody tr:nth-child(even){background:#f8fafc;}
.bookings tbody tr:hover{background:#f1f5f9;}

/* Responsive table -> cards on small screens */
@media (max-width: 900px){
  .table-scroll table{min-width:0;}
  table.bookings thead{display:none;}
  table.bookings tbody tr{display:block;border:1px solid #e5e7eb;border-radius:12px;margin:0 0 12px 0;overflow:hidden;}
  table.bookings tbody td{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #eef2f7;}
  table.bookings tbody td:before{content:attr(data-label);font-weight:700;color:#374151;flex:0 0 44%;}
  table.bookings tbody td:last-child{border-bottom:none;}
  .actions{justify-content:flex-end;}
}

.bookings-table-card{padding:10px 14px;}
.bookings-table-card .row{gap:10px;}

.flash-success{border-color:#bbf7d0;background:#f0fdf4}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.user-form-card{padding:18px}
.driver-only-fields.is-hidden{display:none}
.driver-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.setting-card{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#f8fafc}
.users-table .actions-col{min-width:340px}
.action-cluster{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.users-table td{vertical-align:middle}
.users-table .badge{white-space:nowrap}
@media (max-width: 900px){
  .driver-settings-grid{grid-template-columns:1fr}
  .users-table .actions-col{min-width:220px}
  .action-cluster{flex-direction:column;align-items:stretch}
  .action-cluster .btn{width:100%;text-align:center}
}

.flash-error{border-color:#fecaca;background:#fff1f2;color:#991b1b}
.ledger-driver-card{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.ledger-stats-grid{grid-template-columns:repeat(5,minmax(0,1fr));}
.stat-card{background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}
.stat-value{font-size:28px;font-weight:700;color:#0f172a;margin-top:6px}
.ledger-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.ledger-form{display:grid;gap:10px}
.ledger-form textarea{padding:8px;border:1px solid #d1d5db;border-radius:8px;width:100%;font:inherit}
.ledger-table-scroll table{min-width:1500px}
.ledger-table tbody tr:nth-child(even){background:#f8fafc}
.ledger-table tbody tr:hover{background:#f1f5f9}
.ledger-row-driver_payout{background:#eff6ff}
.ledger-row-driver_deposit{background:#fff7ed}
.ledger-row-ride_settlement{background:#f8fafc}
.table.bookings tbody td,.ledger-table tbody td{line-height:1.5}
@media (max-width: 900px){
  .ledger-stats-grid,.ledger-entry-grid{grid-template-columns:1fr}
  .ledger-driver-card{flex-direction:column}
  .ledger-table-scroll table{min-width:0}
  table.ledger-table thead{display:none}
  table.ledger-table tbody tr{display:block;border:1px solid #e5e7eb;border-radius:14px;margin:0 0 12px 0;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04)}
  table.ledger-table tbody td{display:flex !important;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #eef2f7}
  table.ledger-table tbody td:before{content:attr(data-label);font-weight:700;color:#374151;flex:0 0 44%}
  table.ledger-table tbody td:last-child{border-bottom:none}
}
@media (max-width: 600px){
  .table.bookings th,.table.bookings td{display:table-cell}
  table.bookings tbody td{display:flex !important;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #eef2f7}
  table.bookings tbody td:before{content:attr(data-label);font-weight:700;color:#374151;flex:0 0 44%}
  table.bookings tbody td:nth-child(n){display:flex !important}
  table.bookings tbody tr{box-shadow:0 1px 2px rgba(15,23,42,.04)}
}


/* ---- Ledger + bookings polish v0.1.66 ---- */
.stat-subtitle{margin:6px 0 4px 0;font-weight:700;color:#0f172a}
.ledger-action-card{border-radius:14px;padding:16px}
.ledger-action-card-payout{border-color:#bfdbfe;background:linear-gradient(180deg,#eff6ff 0%,#ffffff 100%)}
.ledger-action-card-deposit{border-color:#fed7aa;background:linear-gradient(180deg,#fff7ed 0%,#ffffff 100%)}
.ledger-action-card-settled{border-color:#bbf7d0;background:linear-gradient(180deg,#f0fdf4 0%,#ffffff 100%)}
.ledger-table th,.ledger-table td{white-space:normal;word-break:break-word}
.ledger-table td[data-label="Confirmations"]{max-width:280px}
.ledger-table td[data-label="Action"], .table.bookings td[data-label="Actions"]{white-space:normal}
.ledger-table .btn.btn-sm{min-width:136px}
.table.bookings tbody td,.ledger-table tbody td{line-height:1.55}
.table.bookings tbody td .badge,.ledger-table tbody td .badge{white-space:nowrap}
.table.bookings .actions{gap:6px}

@media (max-width: 900px){
  body{padding-bottom:0}
  .hscroll-fixed{display:none !important}
  .bookings-table-scroll,.ledger-table-scroll,.table-scroll{overflow-x:visible !important;max-height:none !important}
  .table-viewport{overflow:visible !important}
  table.bookings tbody tr, table.ledger-table tbody tr{margin:0 0 14px 0;border-radius:16px;box-shadow:0 8px 24px rgba(15,23,42,.06);background:#fff}
  table.bookings tbody td, table.ledger-table tbody td{display:grid !important;grid-template-columns:minmax(110px,40%) minmax(0,1fr);align-items:start;gap:10px;padding:10px 12px;border-bottom:1px solid #eef2f7;white-space:normal;word-break:break-word}
  table.bookings tbody td:before, table.ledger-table tbody td:before{flex:unset;font-size:12px;line-height:1.35;text-transform:none}
  table.bookings tbody td > *, table.ledger-table tbody td > *{min-width:0}
  table.bookings tbody td[data-label="Actions"] .actions{width:100%;display:grid;grid-template-columns:1fr;gap:8px}
  table.bookings tbody td[data-label="Actions"] .actions .btn,
  table.ledger-table tbody td[data-label="Action"] .btn{width:100%;justify-content:center;text-align:center}
}

@media (max-width: 600px){
  table.bookings tbody td, table.ledger-table tbody td{grid-template-columns:minmax(96px,38%) minmax(0,1fr);padding:10px}
  .stat-value{font-size:24px}
}


.ledger-balance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:12px 0;}
.ledger-action-card,.stat-card{min-width:0;}
@media (max-width: 768px){
  .ledger-action-card,.stat-card,.ledger-driver-card,.card{min-width:0;overflow-wrap:anywhere;word-break:break-word;}
  .ledger-form input,.ledger-form textarea,.ledger-form select{max-width:100%;box-sizing:border-box;}
}


.ledger-currency-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}
.ledger-currency-tab{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border:1px solid #dbe3ee;border-radius:14px;background:#fff;color:inherit;text-decoration:none;min-width:190px}
.ledger-currency-tab.is-active{border-color:#93c5fd;background:linear-gradient(180deg,#eff6ff 0%,#ffffff 100%);box-shadow:0 4px 14px rgba(37,99,235,.08)}
.ledger-currency-tab .tab-code{font-size:18px;font-weight:800}
.ledger-currency-tab .tab-balance{font-weight:700}
@media (max-width: 700px){
  .ledger-currency-tabs{display:grid;grid-template-columns:1fr}
  .ledger-currency-tab{min-width:0}
}


.driver-source-tag{display:inline-block;padding:2px 8px;border-radius:999px;border:1px solid #dbe3ee;background:#f8fafc;font-weight:700;font-size:12px}
.driver-pill .small{margin-top:2px}


/* ---- Coupons page polish v0.1.92 ---- */
.coupons-card{padding:18px;}
.coupon-count-pill{padding:8px 12px;border-radius:999px;border:1px solid #dbe3ee;background:#f8fafc;font-weight:700;white-space:nowrap;}
.coupons-table-scroll{overflow-x:auto;overflow-y:visible;margin-top:10px;}
.coupons-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;}
.coupons-table th{position:sticky;top:0;background:#f8fafc;z-index:2;text-align:left;font-size:12px;letter-spacing:.02em;text-transform:uppercase;color:#475569;border-bottom:1px solid #e5e7eb;padding:12px 10px;}
.coupons-table td{padding:14px 10px;border-bottom:1px solid #eef2f7;vertical-align:top;}
.coupons-table tbody tr:nth-child(even){background:#fbfdff;}
.coupons-table tbody tr:hover{background:#f8fafc;}
.coupons-table .badge{display:inline-flex;align-items:center;justify-content:center;min-width:78px;}
.coupons-table td[data-label="Code"] strong{font-size:15px;color:#0f172a;}
.coupons-table td[data-label="Validity"] .small,
.coupons-table td[data-label="Match"] .small{line-height:1.4;}
.coupons-table td[data-label="Actions"]{min-width:220px;}
.coupons-table td[data-label="Actions"] .action-cluster .btn{min-width:72px;justify-content:center;text-align:center;}
@media (max-width: 900px){
  .coupons-table{min-width:0;}
  .coupons-table thead{display:none;}
  .coupons-table tbody tr{display:block;border:1px solid #e5e7eb;border-radius:16px;margin:0 0 14px 0;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.06);background:#fff;}
  .coupons-table tbody td{display:grid !important;grid-template-columns:minmax(96px,38%) minmax(0,1fr);gap:10px;padding:10px 12px;border-bottom:1px solid #eef2f7;white-space:normal;word-break:break-word;}
  .coupons-table tbody td:before{content:attr(data-label);font-weight:700;color:#374151;}
  .coupons-table tbody td:last-child{border-bottom:none;}
  .coupons-table td[data-label="Actions"] .action-cluster{display:grid;grid-template-columns:1fr;gap:8px;}
  .coupons-table td[data-label="Actions"] .action-cluster .btn{width:100%;}
  .coupon-count-pill{align-self:flex-start;}
}


/* ---- Coupon + company form polish v0.1.95 ---- */
.coupon-form-card,.companies-form-card{padding:20px;border-radius:18px;box-shadow:0 10px 28px rgba(15,23,42,.04);}
.coupon-form-layout,.companies-form-layout{display:grid;gap:18px;}
.coupon-form-grid,.companies-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 18px;}
.form-field,.coupon-form-grid > div{min-width:0;}
.form-field label,.coupon-form-grid label{display:block;font-weight:700;color:#0f172a;margin-bottom:8px;}
.form-field input,.form-field select,.form-field textarea,.coupon-form-grid input,.coupon-form-grid select,.coupon-form-grid textarea{width:100%;box-sizing:border-box;border:1px solid #d7deea;border-radius:12px;padding:11px 12px;background:#fff;transition:border-color .15s ease, box-shadow .15s ease;}
.form-field textarea,.coupon-form-grid textarea{resize:vertical;min-height:108px;}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus,.coupon-form-grid input:focus,.coupon-form-grid select:focus,.coupon-form-grid textarea:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 4px rgba(59,130,246,.12);}
.form-field .small,.coupon-form-grid .small{display:block;margin-top:6px;line-height:1.45;color:#64748b;}
.split-inputs{display:grid;grid-template-columns:minmax(160px,.95fr) minmax(120px,.65fr);gap:10px;}
.split-inputs--compact{align-items:start;}
.checkbox-inline{display:inline-flex !important;align-items:center;gap:10px;font-weight:700;color:#0f172a;margin:0;padding:12px 14px;border:1px solid #dbe3ee;border-radius:12px;background:#f8fafc;}
.checkbox-inline input{width:auto !important;margin:0;}
.coupon-toggle-field,.companies-toggle-field{display:flex;align-items:flex-end;}
.coupon-form-actions,.companies-form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:4px;}
.form-field--full{grid-column:1 / -1;}
.companies-form-head{margin-bottom:6px;}
.companies-table td[data-label="Billing"] .small{line-height:1.4;}
@media (max-width: 1100px){
  .coupon-form-grid,.companies-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .form-field--full{grid-column:1 / -1;}
}
@media (max-width: 720px){
  .coupon-form-grid,.companies-form-grid,.split-inputs{grid-template-columns:1fr;}
  .coupon-form-card,.companies-form-card{padding:16px;}
  .coupon-form-actions .btn,.companies-form-actions .btn{width:100%;justify-content:center;text-align:center;}
  .coupon-toggle-field,.companies-toggle-field{align-items:stretch;}
  .checkbox-inline{width:100%;justify-content:flex-start;}
}


/* ---- Forms redesign v0.1.98 ---- */
.form-shell{display:grid;gap:18px}
.form-section{border:1px solid #e6ebf2;border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);padding:18px 18px 16px;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.form-section-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.form-section-title{margin:0;font-size:18px;line-height:1.25;color:#0f172a}
.form-section-copy{margin:6px 0 0 0;color:#64748b;font-size:13px;line-height:1.45}
.form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.form-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 18px}
.form-field{min-width:0}
.form-field--span-2{grid-column:span 2}
.form-field--span-3{grid-column:span 3}
.form-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.form-field label,.coupon-form-grid label{display:block;font-size:13px;font-weight:700;color:#0f172a;margin-bottom:8px;line-height:1.35}
.form-field input,.form-field select,.form-field textarea,.coupon-form-grid input,.coupon-form-grid select,.coupon-form-grid textarea{
  width:100%;box-sizing:border-box;border:1px solid #d7deea;border-radius:12px;padding:11px 12px;background:#fff;transition:border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea,.coupon-form-grid textarea{resize:vertical;min-height:120px}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus,.coupon-form-grid input:focus,.coupon-form-grid select:focus,.coupon-form-grid textarea:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 4px rgba(59,130,246,.12)}
.form-hint{display:block;margin-top:7px;font-size:12px;line-height:1.45;color:#64748b}
.form-inline-pair{display:grid;grid-template-columns:minmax(160px,.95fr) minmax(130px,.75fr);gap:10px}
.form-inline-pair--equal{grid-template-columns:1fr 1fr}
.form-checkbox-tile{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 14px;border:1px solid #dbe3ee;border-radius:12px;background:#f8fafc;font-weight:600;color:#0f172a}
.form-checkbox-tile input{width:auto!important;margin:0}
.form-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:4px}
.form-actions .btn.secondary{background:#fff;border:1px solid #d7deea;color:#0f172a}
.card.card-form{padding:22px;border-radius:20px;box-shadow:0 12px 32px rgba(15,23,42,.04)}
.form-meta-pill{padding:7px 11px;border-radius:999px;border:1px solid #dbe3ee;background:#f8fafc;font-weight:700;font-size:12px;white-space:nowrap;color:#334155}
.form-compact-note{margin:0;color:#64748b;font-size:13px;line-height:1.5}
.site-picker{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0}
.site-picker .btn{height:42px}
.site-picker select{min-width:220px}
.form-section .checkbox-inline{margin:0}
.form-switch-field{display:flex;align-items:end}
@media (max-width:1100px){
  .form-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-field--span-3{grid-column:span 2}
}
@media (max-width:760px){
  .card.card-form{padding:16px}
  .form-grid-2,.form-grid-3,.form-inline-pair,.form-inline-pair--equal{grid-template-columns:1fr}
  .form-field--span-2,.form-field--span-3{grid-column:auto}
  .form-actions .btn,.site-picker .btn{width:100%;justify-content:center;text-align:center}
  .site-picker{align-items:stretch}
  .site-picker > div{width:100%}
  .site-picker select{min-width:0}
}

/* ---- Company ledger mirror ---- */
.ledger-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}
.ledger-summary-card{padding:18px;border-radius:18px;border:1px solid #e6ebf2;box-shadow:0 10px 24px rgba(15,23,42,.04)}
.ledger-summary-value{font-size:24px;line-height:1.15;font-weight:800;color:#0f172a;margin:10px 0 6px}
.ledger-company-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}
.ledger-layout-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:18px;align-items:start}
.inline-confirm-form{display:grid;grid-template-columns:minmax(92px,110px) auto;gap:8px;align-items:center}
.inline-confirm-form input{width:100%;box-sizing:border-box;border:1px solid #d7deea;border-radius:10px;padding:9px 10px;background:#fff}
.company-ledger-table td[data-label="Actions"]{min-width:240px}
.company-ledger-table td[data-label="Pick"]{width:36px}
.company-ledger-table td[data-label="Pick"] input{width:auto}
@media (max-width:1100px){
  .ledger-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ledger-layout-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .ledger-summary-grid,.ledger-company-meta{grid-template-columns:1fr}
  .inline-confirm-form{grid-template-columns:1fr}
}

/* Header spacing polish: gives admin nav buttons room without changing flow */
header{
  min-height:72px;
  padding:18px 16px;
  gap:16px;
  align-items:flex-start;
}
header > div:last-child{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
header > div:last-child .btn{
  margin-right:0 !important;
}
header > div:first-child{
  padding-top:6px;
  min-width:220px;
}
