/* Car Rental App admin — Oak Garden admin shell, AR Digital orange/black */
:root{
  --og-primary:#f26b1d;      /* AR Digital orange */
  --og-dark:#c9530f;
  --og-accent:#ff8a3d;
  --og-sidebar:#111111;      /* black */
  --og-sidebar-hover:#222222;
  --og-bg:#f4f4f5;
  --og-card:#ffffff;
  --og-border:#e4e4e7;
  --og-text:#18181b;
  --og-muted:#71717a;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--og-bg);
  color:var(--og-text);
  font-size:14px;
}
a{color:var(--og-primary);text-decoration:none}
a:hover{text-decoration:underline}

/* ---- Shell ---- */
.admin-shell{display:flex;min-height:100vh}
.admin-sidebar{
  width:232px;
  background:var(--og-sidebar);
  color:#e4e4e7;
  flex-shrink:0;
  position:fixed;top:0;bottom:0;left:0;
  display:flex;flex-direction:column;
  z-index:40;
}
.admin-main{margin-left:232px;flex:1;min-width:0;display:flex;flex-direction:column}

.sidebar-head{
  padding:18px 20px;
  display:flex;align-items:center;gap:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.sidebar-head img{width:38px;height:38px;border-radius:8px;background:#fff;padding:3px;object-fit:contain}
.sidebar-head span{font-weight:700;font-size:15px;line-height:1.2}
.sidebar-head small{display:block;color:var(--og-accent);font-weight:600;font-size:11px;letter-spacing:.05em;text-transform:uppercase}

.sidebar-nav{padding:12px 10px;overflow-y:auto;flex:1}
.sidebar-credit{padding:14px 16px;border-top:1px solid rgba(255,255,255,.1);font-size:11px;line-height:1.5;color:#a1a1aa;letter-spacing:.02em}
.sidebar-credit a{color:var(--og-accent);font-weight:700;text-decoration:none}
.sidebar-credit a:hover{text-decoration:underline}
.sidebar-nav a{
  display:flex;align-items:center;gap:11px;
  padding:10px 14px;border-radius:8px;
  color:#d4d4d8;font-weight:500;margin-bottom:2px;
  transition:background .12s,color .12s;
}
.sidebar-nav a:hover{background:var(--og-sidebar-hover);color:#fff;text-decoration:none}
.sidebar-nav a.active{background:var(--og-primary);color:#fff;box-shadow:inset 3px 0 0 var(--og-accent)}
.sidebar-nav a i{font-size:17px;width:20px;text-align:center}
.sidebar-nav .nav-badge{
  margin-left:auto;background:var(--og-accent);color:#111111;
  font-size:11px;font-weight:700;border-radius:20px;padding:1px 8px;min-width:20px;text-align:center;
}
.sidebar-nav .nav-sep{color:#71717a;font-size:11px;text-transform:uppercase;letter-spacing:.08em;padding:14px 14px 6px;font-weight:700}

/* ---- Topbar ---- */
.admin-topbar{
  background:var(--og-card);border-bottom:1px solid var(--og-border);
  padding:0 24px;height:60px;display:flex;align-items:center;gap:16px;
  position:sticky;top:0;z-index:30;
}
.admin-topbar .page-title{font-weight:700;font-size:18px;margin:0}
.admin-topbar .spacer{flex:1}
.admin-topbar .tb-user{color:var(--og-muted);font-weight:500}
.admin-topbar .tb-user b{color:var(--og-text)}
.admin-topbar a.tb-link{
  color:var(--og-primary);font-weight:600;display:inline-flex;align-items:center;gap:6px;
}
.admin-content{padding:24px;max-width:1400px;width:100%}

/* ---- Cards ---- */
.card{
  background:var(--og-card);border:1px solid var(--og-border);border-radius:12px;
  margin-bottom:20px;
}
.card-header{
  padding:14px 18px;border-bottom:1px solid var(--og-border);
  font-weight:700;display:flex;align-items:center;gap:10px;
}
.card-header .spacer{flex:1}
.card-body{padding:18px}

/* ---- Stat cards ---- */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-bottom:22px}
.stat-card{
  background:var(--og-card);border:1px solid var(--og-border);border-radius:12px;padding:16px;
  display:flex;align-items:center;gap:14px;
  container-type:inline-size;   /* .val sizes off the CARD, not the viewport */
}
.stat-card .ico{
  width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  font-size:19px;background:#fdeee4;color:var(--og-primary);flex-shrink:0;
}
.stat-card .ico.amber{background:#fdf1dc;color:#b6790f}
.stat-card .ico.blue{background:#e2eefb;color:#1f6fc4}
.stat-card .ico.red{background:#fce4e4;color:#c0392b}
/* text column must be allowed to shrink, else long money values overflow the card */
.stat-card > div:last-child{min-width:0;flex:1}
/* Keep the figure on ONE line — shrink the type rather than wrap the number.
   cqw tracks the card's own width, which vw can't: the grid reflows columns, so a
   narrower viewport can mean wider cards (and vice versa). */
.stat-card .val{font-size:clamp(13px,8.5cqw,19px);font-weight:800;line-height:1.15;white-space:nowrap}
.stat-card .lbl{color:var(--og-muted);font-size:12.5px;font-weight:500;margin-top:2px}

/* ---- Tables ---- */
.table-wrap{overflow-x:auto}
table.admin-table{width:100%;border-collapse:collapse;font-size:13.5px}
table.admin-table th,table.admin-table td{padding:11px 14px;text-align:left;vertical-align:middle}
table.admin-table thead th{
  background:#f4f4f5;color:var(--og-muted);font-weight:700;font-size:11.5px;
  text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--og-border);white-space:nowrap;
}
table.admin-table tbody tr{border-bottom:1px solid var(--og-border)}
table.admin-table tbody tr:hover{background:#fafafa}
table.admin-table tbody tr:last-child{border-bottom:none}

/* ---- Sortable columns ---- */
table.admin-table thead th a.sort-link{
  display:inline-flex;align-items:center;gap:5px;color:inherit;text-decoration:none;cursor:pointer;
}
table.admin-table thead th a.sort-link:hover{color:var(--og-primary)}
table.admin-table thead th a.sort-link .bi{font-size:11px;opacity:.35;transition:opacity .12s}
table.admin-table thead th a.sort-link:hover .bi{opacity:.75}
table.admin-table thead th a.sort-link.is-sorted{color:var(--og-primary)}
table.admin-table thead th a.sort-link.is-sorted .bi{opacity:1}
/* Phones hide the header row (the table becomes cards), so sorting moves to a select. */
.sort-mobile{display:none;align-items:center;gap:8px;margin:0 0 10px}
.sort-mobile .flabel{margin:0;white-space:nowrap}
.sort-mobile .form-select{width:auto;flex:1;min-width:0}

.thumb{width:44px;height:44px;border-radius:8px;object-fit:cover;background:#f4f4f5;border:1px solid var(--og-border)}
.child-row td:first-child{padding-left:34px;position:relative}
.child-row td:first-child::before{content:"\21B3";position:absolute;left:14px;color:var(--og-muted)}

/* ---- Badges ---- */
.badge{display:inline-block;padding:3px 9px;border-radius:20px;font-size:11.5px;font-weight:700;color:#fff;line-height:1.4}
.bg-info{background:#1f8fb8!important;color:#fff}
.bg-warning{background:#f0ad2e!important}
.bg-primary{background:var(--og-primary)!important}
.bg-success{background:#2e9e4b!important}
.bg-danger{background:#c0392b!important}
.bg-secondary{background:#71717a!important}
.text-dark{color:#18181b!important}
.badge-soft{background:#f4f4f5;color:var(--og-muted)}

/* ---- Buttons ---- */
.btn{
  display:inline-flex;align-items:center;gap:7px;justify-content:center;
  padding:8px 15px;border-radius:8px;font-weight:600;font-size:13.5px;
  border:1px solid transparent;cursor:pointer;background:#fff;color:var(--og-text);
  transition:.12s;text-decoration:none;line-height:1.2;
}
.btn:hover{text-decoration:none;filter:brightness(.97)}
.btn-primary{background:var(--og-primary);color:#fff}
.btn-primary:hover{background:var(--og-dark);color:#fff}
.btn-dark{background:var(--og-dark);color:#fff}
.btn-accent{background:var(--og-accent);color:#111111}
.btn-outline{background:#fff;border-color:var(--og-border);color:var(--og-text)}
.btn-outline:hover{border-color:var(--og-primary);color:var(--og-primary)}
.btn-danger{background:#c0392b;color:#fff}
.btn-danger:hover{background:#a5311f;color:#fff}
.btn-sm{padding:5px 10px;font-size:12.5px;border-radius:7px}
.btn-icon{padding:6px 9px}
.btn-group-inline{display:inline-flex;gap:6px}

/* ---- Forms ---- */
.form-row{margin-bottom:16px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.form-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.form-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
label.flabel{display:block;font-weight:600;margin-bottom:6px;font-size:13px}
label.flabel .req{color:#c0392b}
.form-control,.form-select,textarea.form-control{
  width:100%;padding:9px 12px;border:1px solid var(--og-border);border-radius:8px;
  font-size:14px;font-family:inherit;background:#fff;color:var(--og-text);
}
.form-control:focus,.form-select:focus,textarea:focus{
  outline:none;border-color:var(--og-primary);box-shadow:0 0 0 3px rgba(242,107,29,.18);
}
textarea.form-control{resize:vertical;min-height:80px}
.form-hint{color:var(--og-muted);font-size:12px;margin-top:5px}
.form-check{display:flex;align-items:center;gap:9px;font-weight:500}
.form-check input{width:17px;height:17px;accent-color:var(--og-primary)}
.input-group{display:flex}
.input-group .addon{padding:9px 12px;background:#f4f4f5;border:1px solid var(--og-border);border-right:none;border-radius:8px 0 0 8px;color:var(--og-muted);font-weight:600}
.input-group .form-control{border-radius:0 8px 8px 0}

/* ---- Alerts ---- */
.alert{padding:12px 16px;border-radius:9px;margin-bottom:18px;font-weight:500;display:flex;align-items:center;gap:9px}
.alert-success{background:#e4f4e6;color:#1e6b2c;border:1px solid #bfe3c4}
.alert-danger{background:#fbe6e4;color:#a5311f;border:1px solid #f0c3bd}
.alert-info{background:#e2eefb;color:#1f5c9a;border:1px solid #c2dcf5}

/* ---- Misc ---- */
.filter-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:16px}
.filter-bar .form-control,.filter-bar .form-select{width:auto;min-width:150px}
.orders-filter{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin-bottom:18px;background:#fafafa;border:1px solid #e4e4e7;border-radius:10px;padding:14px}
.orders-filter .of-field{display:flex;flex-direction:column;gap:4px}
.orders-filter .flabel{font-size:.74rem;font-weight:600;color:#4b5563;margin:0}
.orders-filter .form-control,.orders-filter .form-select{min-width:150px}
.orders-filter input[type=date]{min-width:140px}
.orders-filter .of-actions{display:flex;gap:8px;align-items:flex-end}
.orders-filter .of-daterange .of-dates{display:flex;gap:6px;align-items:center}
.orders-filter .of-daterange .of-dates span{color:#a1a1aa}
.orders-filter .of-daterange input[type=date]{min-width:140px}
.bulk-bar{background:#fdf3ec;border:1px solid var(--og-border);border-radius:10px;padding:12px 16px;margin-bottom:16px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.muted{color:var(--og-muted)}
.text-end{text-align:right}
.text-center{text-align:center}
.nowrap{white-space:nowrap}
.mb-0{margin-bottom:0}.mt-0{margin-top:0}
.d-flex{display:flex}.gap-2{gap:10px}.align-center{align-items:center}
.pill-toggle{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11.5px;font-weight:700}
.pill-on{background:#e4f4e6;color:#1e6b2c}
.pill-off{background:#f0e2e0;color:#a5311f}
.empty-state{text-align:center;padding:48px 20px;color:var(--og-muted)}
.empty-state i{font-size:38px;display:block;margin-bottom:10px;opacity:.5}
.detail-list{list-style:none;padding:0;margin:0}
.detail-list li{display:flex;padding:7px 0;border-bottom:1px solid var(--og-border);gap:12px}
.detail-list li:last-child{border-bottom:none}
.detail-list .dk{color:var(--og-muted);width:150px;flex-shrink:0;font-weight:500}
.detail-list .dv{font-weight:600}
.two-col{display:grid;grid-template-columns:2fr 1fr;gap:20px;align-items:start}
.totals-table{width:100%;font-size:14px}
.totals-table td{padding:6px 0}
.totals-table tr.grand td{font-size:17px;font-weight:800;border-top:2px solid var(--og-border);padding-top:10px}
.pagination{display:flex;gap:6px;list-style:none;padding:0;margin:18px 0 0;flex-wrap:wrap}
.pagination a,.pagination strong{display:block;padding:7px 12px;border:1px solid var(--og-border);border-radius:8px;background:#fff;font-weight:600}
.pagination strong{background:var(--og-primary);color:#fff;border-color:var(--og-primary)}


/* ================= Responsive ================= */
/* collapse multi-column form grids on any small screen */
@media(max-width:900px){
  .form-grid,.form-grid-3,.form-grid-4,.two-col{grid-template-columns:1fr}
}

/* Tablet (769–900px): sidebar shrinks to an icon rail */
@media(min-width:769px) and (max-width:900px){
  .admin-sidebar{width:64px}
  .admin-main{margin-left:64px}
  .sidebar-head span,.sidebar-head small,.sidebar-nav a span,.sidebar-nav .nav-badge,.sidebar-nav .nav-sep{display:none}
  .sidebar-nav a{justify-content:center}
}

/* hamburger + backdrop (hidden until phone width) */
.admin-menu-btn{display:none;background:none;border:0;font-size:22px;color:var(--og-primary);cursor:pointer;padding:2px 6px;margin-right:2px;line-height:1}
.nav-backdrop{display:none}

/* Phone (≤768px): off-canvas drawer + kanban card tables */
@media(max-width:768px){
  .admin-menu-btn{display:inline-flex;align-items:center}
  .admin-sidebar{transform:translateX(-100%);transition:transform .25s ease;z-index:1200;box-shadow:2px 0 18px rgba(0,0,0,.25)}
  .admin-shell.nav-open .admin-sidebar{transform:none}
  .admin-main{margin-left:0}
  .nav-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1150}
  .admin-shell.nav-open .nav-backdrop{display:block}
  .admin-topbar{padding:0 14px;gap:10px}
  .admin-topbar .tb-link span{display:none}          /* icon-only View Store / Logout */
  .admin-content{padding:16px 14px}
  .card-header{flex-wrap:wrap;row-gap:10px}

  /* filters stack full-width for easy tapping */
  .filter-bar,.orders-filter{flex-direction:column;align-items:stretch}
  .filter-bar > div,.orders-filter .of-field,.orders-filter .of-actions{width:100%}
  .filter-bar .form-control,.filter-bar .form-select,
  .orders-filter .form-control,.orders-filter .form-select{width:100%;min-width:0}
  .orders-filter .of-daterange .of-dates{display:flex;gap:8px}
  .orders-filter .of-daterange .of-dates input[type=date]{flex:1;min-width:0}
  .orders-filter .of-actions{justify-content:flex-start}

  /* the header row goes away below, so the sort select takes over */
  .sort-mobile{display:flex}

  /* ---- table → kanban cards ---- */
  .table-wrap{overflow:visible}
  .admin-table{border:0;background:transparent;font-size:14px}
  .admin-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .admin-table,.admin-table tbody{display:block;width:100%}
  .admin-table tbody tr{
    display:block;position:relative;background:var(--og-card);
    border:1px solid var(--og-border);border-radius:12px;
    box-shadow:0 1px 3px rgba(0,0,0,.06);padding:12px 14px;margin-bottom:14px;
  }
  .admin-table tbody tr:hover{background:var(--og-card)}
  /* value flows to the right; label floats left — keeps multi-element
     cells (name+SKU, customer+email) grouped instead of splitting */
  .admin-table tbody td{
    display:block;padding:8px 0;border:0;border-bottom:1px dashed var(--og-border);
    text-align:right;min-height:34px;
  }
  .admin-table tbody td::after{content:"";display:table;clear:both}
  .admin-table tbody td:last-child{border-bottom:0}
  .admin-table tbody td[data-label]::before{
    content:attr(data-label);float:left;max-width:45%;padding-top:2px;text-align:left;
    color:var(--og-muted);font-weight:700;font-size:10.5px;
    text-transform:uppercase;letter-spacing:.04em;
  }
  /* thumbnail cell → image at top, no label */
  .admin-table td.mc-media{text-align:left;padding-top:0}
  .admin-table td.mc-media::before{display:none}
  .admin-table td.mc-media .thumb{width:56px;height:56px}
  /* checkbox cell → pinned top-right of the card */
  .admin-table td.mc-check{position:absolute;top:12px;right:12px;padding:0;border:0;min-height:0}
  .admin-table td.mc-check::before{display:none}
  /* action buttons → full-width footer */
  .admin-table td.mc-actions{
    display:flex;justify-content:flex-start;flex-wrap:wrap;gap:8px;text-align:left;
    border-bottom:0;border-top:1px solid var(--og-border);margin-top:6px;padding-top:12px;
  }
  .admin-table td.mc-actions::before{display:none}
  .admin-table td.mc-actions .btn{flex:0 0 auto}
  .admin-table td.mc-actions .btn-icon{padding:7px 12px}   /* bigger tap targets */
  /* subcategory cards flagged with an accent edge */
  .admin-table tr.child-row{border-left:3px solid var(--og-accent)}
  .admin-table tr.child-row td:first-child{padding-left:0}
  .admin-table tr.child-row td:first-child::before{content:attr(data-label);position:static;left:auto}
  /* empty-state spanning cell stays full width */
  .admin-table td[colspan]{display:block;text-align:center;border:0;padding:20px 0}
  .admin-table td[colspan]::before{display:none}
}
/* sidebar: active item = orange fill on black, white text */
.sidebar-nav a.active{box-shadow:inset 3px 0 0 #fff}
.sidebar-nav .nav-badge{color:#111}
.sidebar-nav a.is-todo{opacity:.55}
:focus-visible{outline:2px solid var(--og-primary);outline-offset:2px}

/* ---- Car rental additions ---- */
.form-error{color:#c0392b;font-size:12.5px;margin-top:5px;font-weight:500}
.is-invalid{border-color:#c0392b!important}
.tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--og-border);margin-bottom:20px}
.tabs a{padding:10px 14px;font-weight:600;color:var(--og-muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs a:hover{color:var(--og-text);text-decoration:none}
.tabs a.active{color:var(--og-primary);border-bottom-color:var(--og-primary)}
.status{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:12.5px;white-space:nowrap}
.status::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.st-active{color:#1e7b34}.st-out_of_service{color:#c0392b}.st-retired{color:#71717a}.st-warn{color:#b6790f}
.branch-switch{display:flex;align-items:center;gap:6px}
.branch-switch select{padding:6px 10px;border:1px solid var(--og-border);border-radius:8px;font:inherit;font-size:13px;background:#fff;max-width:200px}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-bottom:14px}
.photo-grid figure{margin:0;border:1px solid var(--og-border);border-radius:10px;overflow:hidden;background:#fafafa}
.photo-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.photo-grid figcaption{display:flex;gap:6px;padding:6px;justify-content:space-between;align-items:center;font-size:12px}
.hours-table td{padding:6px 4px}
.hours-table{table-layout:fixed}
.hours-table td:nth-child(1){width:44px}.hours-table td:nth-child(2){width:88px}
.hours-table input[type=time]{width:100%;min-width:0;padding:8px 6px}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}
fieldset{border:0;padding:0;margin:0;min-width:0}
.diff{font-size:12px;color:var(--og-muted);max-width:520px;word-break:break-word}
.diff b{color:var(--og-text);font-weight:600}
@media(max-width:768px){.d-none-sm{display:none!important}.branch-switch select{max-width:130px}}
@media(max-width:768px){.hours-table td:nth-child(2){width:78px}.hours-table input[type=time]{padding:6px 4px;font-size:13px}.hours-table .form-check{font-size:12.5px;gap:5px}}
.two-col > *,.form-grid > *,.form-grid-3 > *,.form-grid-4 > *{min-width:0}
.detail-list .dv{min-width:0;overflow-wrap:anywhere}
input[type=file]{max-width:100%}
/* M2 booking/verification states */
.st-confirmed,.st-approved,.st-ok{color:#1e7b34}.st-pending_review,.st-submitted,.st-draft{color:#b6790f}
.st-awaiting_payment{color:#c9530f}.st-cancelled,.st-expired,.st-replacement_requested,.st-no_show,.st-bad{color:#c0392b}.st-required{color:#71717a}
.doc-frame{width:100%;height:420px;border:1px solid var(--og-border);border-radius:8px;background:#fafafa;object-fit:contain}
.lines-t{width:100%;border-collapse:collapse}.lines-t td{padding:6px 0;border-bottom:1px solid var(--og-border)}.lines-t td:last-child{text-align:right}
.terms-pre{white-space:pre-wrap;max-height:260px;overflow:auto;background:#fafafa;border:1px solid var(--og-border);border-radius:8px;padding:12px;font-size:13px}
.form-check input{flex:none}
/* M3 billing statuses */
.st-paid,.st-succeeded,.st-collected,.st-processed,.st-refunded,.st-released,.st-done,.st-held{color:#1e7b34}
.st-open,.st-scheduled,.st-pending,.st-processing,.st-requested,.st-collecting,.st-received,.st-authorised,.st-due,.st-issued,.st-applied,.st-partially_applied{color:#b6790f}
.st-failed,.st-action_required,.st-requires_action,.st-rejected,.st-uncollectible,.st-disputed,.st-unknown{color:#c0392b}
.st-void,.st-canceled,.st-ignored,.st-superseded{color:#71717a}
/* M4 schedule timeline */
.sched-card{overflow:hidden}
.sched-legend{display:flex;gap:14px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--og-border);font-size:12.5px;color:var(--og-muted)}
.sched-legend span{display:inline-flex;align-items:center;gap:6px}.sched-legend .sb{position:static;display:inline-block;width:14px;height:10px;border-radius:3px;padding:0}
.sched{overflow-x:auto}
.sched-row{display:grid;grid-template-columns:200px minmax(640px,1fr);border-bottom:1px solid var(--og-border);min-height:46px}
.sched-head{position:sticky;top:0;background:#fafafa;font-size:12px;font-weight:600;color:var(--og-muted);min-height:32px}
.sched-car{padding:6px 10px;border-right:1px solid var(--og-border);font-size:13px;line-height:1.35;background:#fff;position:sticky;left:0;z-index:2}
.sched-head .sched-car{background:#fafafa;display:flex;align-items:center}
.sched-track{position:relative}
.sched-day{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding-left:6px;border-left:1px solid var(--og-border);white-space:nowrap;overflow:hidden}
.sched-grid{position:absolute;top:0;bottom:0;border-left:1px dashed #ececec}
.sched-now{position:absolute;top:0;bottom:0;border-left:2px solid #c0392b;z-index:3}
.sb{position:absolute;top:9px;height:28px;border-radius:6px;padding:0 6px;font-size:11.5px;line-height:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff;text-decoration:none;z-index:1;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.sb:hover,.sb:focus{text-decoration:none;filter:brightness(1.08);outline:2px solid #111;outline-offset:1px;z-index:4;color:#fff}
.sb.hold{background:repeating-linear-gradient(45deg,#f6b37a,#f6b37a 6px,#f9c79d 6px,#f9c79d 12px);color:#5a2a05}
.sb.booking{background:#f26b1d}.sb.rental{background:#1e7b34}.sb.overdue{background:#c0392b}
.sb.cleaning{background:#b6790f}.sb.maintenance{background:#3f3f46}.sb.transfer{background:#2563eb}.sb.done{background:#c9c9cf;color:#333}
@media(max-width:768px){.sched-row{grid-template-columns:120px minmax(560px,1fr)}.sched-car{font-size:12px}}
.bar-mini{height:4px;background:#eee;border-radius:2px;margin-top:4px;min-width:60px}.bar-mini i{display:block;height:100%;background:var(--og-primary);border-radius:2px}
.pwa-bar{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;background:#111;color:#fff;border-radius:10px;padding:12px 16px;display:flex;gap:12px;align-items:center;justify-content:space-between;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.pwa-bar.warn{background:#c0392b}.pwa-bar button{background:#f26b1d;color:#fff;border:0;border-radius:8px;padding:6px 14px;font:inherit;font-weight:600;cursor:pointer}
.alert-warning{background:#fdf3dc;color:#8a5a06;border:1px solid #f3dca6}
[hidden]{display:none!important}
/* Setup guide (top-right drawer + full page) */
.guide-btn{display:inline-flex;align-items:center;gap:6px;background:#111;color:#fff;border:0;border-radius:20px;padding:6px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.guide-btn:hover{background:var(--og-primary)}.guide-btn .pill{background:var(--og-primary);border-radius:10px;padding:1px 7px;font-size:11.5px}
.guide-btn:hover .pill{background:#111}
.g-drawer{position:fixed;top:0;right:0;bottom:0;width:min(480px,100vw);background:#fff;z-index:80;box-shadow:-12px 0 32px rgba(0,0,0,.18);display:flex;flex-direction:column;transform:translateX(105%);transition:transform .22s ease}
.g-drawer.open{transform:none}
.g-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.25);z-index:79;display:none}.g-backdrop.open{display:block}
.g-head{display:flex;gap:10px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--og-border)}.g-head>div{flex:1}
.g-close{background:none;border:0;font-size:18px;cursor:pointer;padding:6px;border-radius:6px}.g-close:hover{background:#f2f2f2}
.g-bar{height:6px;background:#eee;margin:0 16px;border-radius:3px;overflow:hidden}.g-bar i{display:block;height:100%;background:var(--og-primary);transition:width .3s}
.g-scroll{overflow:auto;padding:10px 16px 30px;flex:1}
.g-stage h3{font-size:14px;margin:16px 0 2px;display:flex;align-items:center;gap:8px}.g-stage h3 span{margin-left:auto;font-weight:600;color:var(--og-muted);font-size:12px}
.g-stage>p.muted,.g-stage p.muted{font-size:12.5px;margin:0 0 8px}
.g-step{border:1px solid var(--og-border);border-radius:10px;margin-bottom:8px;background:#fff}
.g-step>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;font-weight:600;font-size:13.5px}
.g-step>summary::-webkit-details-marker{display:none}
.g-step>summary:focus-visible{outline:2px solid var(--og-primary);outline-offset:2px;border-radius:10px}
.g-tick{width:22px;height:22px;border-radius:50%;border:2px solid #d4d4d8;display:inline-flex;align-items:center;justify-content:center;flex:none;color:#d4d4d8;font-size:11px}
.g-step.is-done .g-tick{background:#1e7b34;border-color:#1e7b34;color:#fff}
.g-step.is-done .g-title{color:var(--og-muted)}
.g-step[open]{border-color:var(--og-primary);box-shadow:0 2px 10px rgba(242,107,29,.12)}
.g-auto{margin-left:auto;font-size:11px;color:#1e7b34;background:#e6f4ea;border-radius:10px;padding:2px 8px}
.g-body{padding:0 14px 14px 44px;font-size:13.5px;line-height:1.55}
.g-body ol{margin:0 0 10px;padding-left:18px}.g-body li{margin-bottom:4px}
.g-shot{display:block;position:relative;width:100%;padding:0;border:1px solid var(--og-border);border-radius:8px;overflow:hidden;cursor:zoom-in;background:#fafafa;margin:6px 0 10px}
.g-shot img{display:block;width:100%;height:auto}
.g-shot span{position:absolute;right:8px;bottom:8px;background:rgba(17,17,17,.8);color:#fff;font-size:11.5px;border-radius:6px;padding:3px 8px}
.g-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.g-zoom{position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:90;display:flex;align-items:center;justify-content:center;padding:20px;cursor:zoom-out}
.g-zoom img{max-width:100%;max-height:100%;border-radius:8px;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.g-page .g-body{padding-left:44px}.g-page .g-shot{max-width:760px}
@media(max-width:768px){.guide-btn .lbl{display:none}.g-body{padding-left:14px}}
@media print{.admin-sidebar,.admin-topbar,.g-actions,.g-shot span{display:none!important}.g-step{break-inside:avoid}.g-step .g-body{display:block!important}}
.lines-t .form-check{width:100%}.lines-t .form-check input[type=text]{flex:1;min-width:0}
@media(max-width:768px){.admin-topbar{gap:8px}.admin-topbar .tb-link span{display:none}.admin-topbar a.tb-link[href*="security"]{display:none}.branch-switch select{max-width:104px}.admin-topbar .page-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
/* SaaS subscription */
.sub-strip{align-items:center;gap:10px;flex-wrap:wrap}.sub-strip span{flex:1;min-width:200px}
.plan-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.plan-card{border:2px solid var(--og-border);border-radius:12px;padding:18px}
.plan-card.is-current{border-color:var(--og-primary);background:#fff7f1}
.plan-card .price{font-size:30px;font-weight:800;margin:4px 0 8px}.plan-card .price small{font-size:13px;color:var(--og-muted);font-weight:600}
