/* Go2CoachHire record workspace, inspired by HubSpot's navigation and CRM patterns. */
:root { --bg:#f3f5f7; --panel:#fff; --line:#dce3ea; --text:#263b50; --muted:#65798c; --brand:#087f80; --nav:#233346; --nav-hover:#30445a; --nav-text:#dce5ef; }
html[data-theme=dark] { --bg:#111923; --panel:#1b2734; --line:#344657; --text:#e2ebf3; --muted:#a6b6c6; --brand:#70d6c6; --nav:#14202d; --nav-hover:#263b50; --nav-text:#dce5ef; }
body { font-size:14px; }
h1 { font-size:26px; letter-spacing:-.5px; } h2 { font-size:19px; } h3 { font-size:16px; }
button,.button,input,select,textarea { border-radius:5px; } button,.button { font-weight:600; } button:focus-visible,a:focus-visible,summary:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
.panel,.card { border-radius:8px; box-shadow:0 1px 2px #00000005; border:1px solid var(--line); }
.notice { border-radius:6px; } .empty { padding:28px; } .heading { margin-bottom:22px; } .heading p { font-size:13px; }
.hub-shell { display:block; padding-left:228px; }
.hub-shell .sidebar { display:flex; flex-direction:column; position:fixed; inset:0 auto 0 0; width:228px; height:100dvh; padding:20px 12px 12px; background:var(--nav); color:var(--nav-text); border:0; z-index:80; }
.hub-shell .brand { color:#fff; padding:0 8px 20px; gap:10px; } .hub-shell .brand-mark { background:#168888; color:white; width:34px; height:34px; border-radius:7px; } .hub-shell .brand-name { font-size:16px; } .hub-shell .brand-name small { font-size:8px; color:#b7c8d8; letter-spacing:1px; }
.hub-shell .sidebar nav { display:block; flex:1; overflow-y:auto; margin:0; padding:0; scrollbar-width:thin; }
.hub-category { display:flex; align-items:center; gap:12px; width:100%; background:transparent; border:0; color:var(--nav-text); padding:12px; font-size:13px; justify-content:flex-start; }
.hub-category:hover,.hub-category[aria-expanded=true] { background:var(--nav-hover); color:#fff; } .nav-chevron { margin-left:auto; }
.hub-shell .hub-nav-links { padding:4px 0 8px 14px; } .hub-shell [hidden] { display:none!important; }
.hub-nav-item { display:flex; align-items:center; border-left:1px solid #506075; }
.hub-shell .sidebar nav a { color:var(--nav-text); display:block; flex:1; font-size:12px; padding:9px 10px; border-radius:4px; margin:0; background:transparent; text-decoration:none; min-width:0; }
.hub-shell .sidebar nav a:hover,.hub-shell .sidebar nav a.active { background:var(--nav-hover); color:#fff; } .hub-shell .sidebar nav a.active { border-left:3px solid #6ed4c4; padding-left:7px; }
.hub-nav-item button { flex:0 0 26px; padding:5px; border:0; background:none; color:#bad1df; }.hub-nav-item button[aria-pressed=true] { color:#8ae0d0; }
.hub-favourites { padding:0 10px 14px; margin-bottom:6px; border-bottom:1px solid #415268; } .hub-favourites .nav-label { color:#a3b9cc; font-size:10px; } .hub-favourites p { font-size:11px; color:#a3b9cc; margin:7px 0; }
.hub-shell .sidebar footer { padding:14px 6px 0; border-top:1px solid #415268; margin-top:12px; background:transparent; } .hub-shell .sidebar footer .workspace-profile { display:flex; } .hub-shell .sidebar footer button { color:var(--nav-text); border:1px solid #506075; background:transparent; width:auto; padding:6px 10px; margin:0; font-size:11px; }.hub-shell .sidebar footer .actions { margin-top:12px; }.hub-shell .workspace-profile small { color:#b0c2d1; }
.hub-shell .main { min-width:0; max-width:none; margin:0; padding:0; } .hub-shell .topbar { height:64px; min-height:64px; padding:12px 70px 12px 26px; margin:0; border-bottom:1px solid var(--line); background:var(--panel); gap:16px; } .hub-shell .breadcrumb { font-size:12px; white-space:nowrap; }.hub-shell #content { padding:26px; max-width:1800px; margin:auto; }
.hub-shell .topbar-actions { min-width:0; flex:1; justify-content:flex-end; gap:14px; padding:0; }.hub-shell .global-search { margin:0; width:100%; }.hub-shell .global-search input { width:100%; min-width:0; background:var(--bg); font-size:12px; }
.hub-search { position:relative; width:min(400px,45vw); } #globalResults { position:absolute; top:45px; right:0; width:420px; max-width:calc(100vw - 32px); max-height:65vh; overflow:auto; background:var(--panel); border:1px solid var(--line); border-radius:8px; box-shadow:0 15px 40px #0003; z-index:100; padding:12px; } #globalResults section+section { border-top:1px solid var(--line); margin-top:10px;padding-top:10px; } #globalResults strong,#globalResults small { display:block; font-size:11px;color:var(--muted);padding:5px; } #globalResults a { display:block; padding:8px;font-size:13px;overflow-wrap:anywhere; } #globalResults a:hover { background:var(--bg); }
.hub-create { position:relative; } .hub-create summary { white-space:nowrap; font-size:12px; cursor:pointer; }.hub-create>div { position:absolute; top:45px; right:0; min-width:180px; padding:8px; background:var(--panel); border:1px solid var(--line); border-radius:6px; box-shadow:0 10px 30px #0002;z-index:60; }.hub-create a { display:block;padding:10px; }
#navToggle { display:none; } .hub-nav-backdrop { position:fixed;inset:0;width:100%;height:100%;border:0;background:#0006;z-index:75; }
.theme-toggle { position:fixed;top:14px;right:20px;width:35px;height:35px;z-index:90;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:6px; }.hub-shell .mobile-logout { display:none; }
.tablewrap { border-radius:6px; } table th { background:var(--bg); font-size:10px; letter-spacing:.55px; text-transform:uppercase; padding:13px 14px; } table td { padding:14px; font-size:13px; } tbody tr:hover { background:color-mix(in srgb,var(--brand) 4%,var(--panel)); }
.orders-workspace .queue-tabs { border-radius:6px; } .tabs { gap:0; border-bottom:1px solid var(--line); }.tabs button { border-radius:0; border:0; border-bottom:3px solid transparent; padding:13px 16px; }.tabs button.active { border-bottom-color:var(--brand);background:transparent;color:var(--brand); }
#dialog { border-radius:10px; width:min(820px,calc(100vw - 32px)); max-width:820px; padding:28px; } #dialog::backdrop { background:#10213585;backdrop-filter:blur(2px); } #dialog h2 { border-bottom:1px solid var(--line); padding-bottom:18px; } #dialog form>.actions { padding-top:18px;border-top:1px solid var(--line);margin-top:22px; }
@media(max-width:1100px) { .hub-shell { padding-left:208px; }.hub-shell .sidebar { width:208px; }.hub-shell #content { padding:20px; }.hub-shell .breadcrumb { display:none; } }
@media(max-width:760px) { .hub-shell { padding-left:0; }.hub-shell .sidebar { width:248px; transform:translateX(-100%); transition:transform .18s ease; }.hub-shell.nav-open .sidebar { transform:translateX(0); } #navToggle { display:block; padding:7px 10px; }.hub-shell .topbar { padding:10px 56px 10px 14px;height:auto;min-height:62px; }.hub-shell .topbar-actions { gap:8px; }.hub-search { width:auto;flex:1; }.hub-shell .global-search { display:block; }.hub-create summary { font-size:0; padding:8px 10px; }.hub-create summary:after { content:'+';font-size:18px; }.hub-shell #content { padding:18px 14px; }.theme-toggle { top:13px;right:12px; }.heading { gap:15px; }.heading h1 { font-size:23px; }.heading .actions { flex-wrap:wrap; }.hub-shell .sidebar footer .actions { display:flex; }.hub-shell .sidebar footer .workspace-profile { display:flex; } }
@media(prefers-reduced-motion:reduce) { .hub-shell .sidebar { transition:none; } }
@media print { .hub-shell { padding:0; }.hub-shell .sidebar,.hub-shell .topbar,.theme-toggle { display:none!important; }.hub-shell #content { padding:0; } }

.record-heading { display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 22px;padding:0 0 18px;border-bottom:1px solid var(--line); }.record-heading h1 { margin:8px 0; }.record-heading p { color:var(--muted);font-size:12px;margin:0; }
.record-grid { display:grid;grid-template-columns:230px minmax(0,1fr) 230px;gap:20px;align-items:start; }.record-grid>.panel { margin:0; }.record-main { min-width:0; }.record-identity { padding:22px 18px; }.record-identity h2 { margin:12px 0;overflow-wrap:anywhere; }.record-identity dl { font-size:13px; }.record-identity dt { color:var(--muted);font-size:11px;margin:18px 0 5px; }.record-identity dd { margin:0;overflow-wrap:anywhere;white-space:pre-line; }.record-avatar { display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--brand) 14%,var(--panel));color:var(--brand);font-size:24px;font-weight:700; }.record-related .panel { padding:18px;margin-bottom:18px; }.record-related p { font-size:12px;color:var(--muted); }.related-item { display:block;padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;font-size:13px; }.related-item:last-child { border-bottom:0; }.related-item small { display:block;color:var(--muted);font-size:11px;margin:5px 0; }.related-item .order-status { margin-top:6px;font-size:10px; }.record-side-actions { display:grid;gap:9px;margin-top:22px; }.record-name,.record-customer { font-weight:700; }.record-tabs { margin-bottom:20px;overflow-x:auto;display:flex;white-space:nowrap; }.record-metrics { display:flex;border:1px solid var(--line);border-radius:7px;background:var(--panel);margin-bottom:20px; }.record-metrics>div { padding:20px;flex:1;border-right:1px solid var(--line); }.record-metrics>div:last-child { border:0; }.record-metrics small,.record-metrics strong { display:block; }.record-metrics small { font-size:11px;color:var(--muted); }.record-metrics strong { font-size:25px;margin-top:7px; }.record-event { border:1px solid var(--line);border-radius:6px;padding:18px;margin:15px 0; }.record-event>div { display:flex;gap:10px;justify-content:space-between; }.record-event small { font-size:11px;color:var(--muted); }.record-event p,.preserve-lines { white-space:pre-wrap;overflow-wrap:anywhere; }.contact-record .order-status { display:block;margin-top:6px;font-size:11px; }
.hub-booking .booking-summary { display:block;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;margin:22px 0 0; }.hub-booking .booking-summary>div { border:0;border-bottom:1px solid var(--line);padding:13px 0; }.hub-booking .booking-summary strong { font-size:18px; }.hub-booking .booking-summary small { font-size:10px; }
.hub-booking .booking-route { margin:0 0 20px;display:block;padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:7px; }.hub-booking .booking-route h2 { font-size:18px; }.hub-booking .booking-route p { font-size:12px; }.hub-booking .order-status-panel { margin-top:12px;display:flex;flex-direction:row;justify-content:space-between;max-width:none; }.hub-booking .booking-route .eyebrow { font-size:10px; }.hub-booking .booking-controls { display:block;position:static;padding:0 0 15px;margin-bottom:5px; }.hub-booking .booking-controls .tabs { display:flex;overflow:auto;flex-wrap:nowrap;white-space:nowrap;margin-bottom:10px; }.hub-booking .booking-controls .tabs button { padding:12px 13px;font-size:12px; }.hub-booking #saveState { display:block;text-align:right; }.hub-booking #orderForm { display:block; }.hub-booking #orderForm>section { margin-bottom:18px; }.hub-booking [data-panel=activity] { display:block; }.hub-booking .next-step { padding:15px;gap:10px;flex-wrap:wrap;font-size:12px; }.hub-booking .next-step strong { font-size:13px; }.hub-booking .next-step span { font-size:11px; }.hub-booking[data-record-view=journey] .record-related,.hub-booking[data-record-view=suppliers] .record-related { display:none; }.hub-booking[data-record-view=journey] .record-grid,.hub-booking[data-record-view=suppliers] .record-grid { grid-template-columns:230px minmax(0,1fr); }.hub-booking .panel { padding:20px; }.hub-booking .formgrid { gap:16px; }.hub-booking .booking-shortcuts { gap:7px; }.hub-booking [data-panel=activity] .private-notes { margin:0 0 20px;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:7px; }.hub-booking .driver-coverage { border-radius:7px; }.hub-booking .itinerary-card { border-radius:8px; }.hub-booking.booking-create #orderForm { display:grid;grid-template-columns:1fr 1fr;gap:20px; }.hub-booking.booking-create .booking-summary { display:none; }
@media(max-width:1400px) { .record-grid { grid-template-columns:210px minmax(0,1fr);gap:18px; }.record-related { grid-column:2;display:grid;grid-template-columns:1fr 1fr;gap:18px; }.record-related .panel { margin:0; }.hub-booking[data-record-view=journey] .record-grid,.hub-booking[data-record-view=suppliers] .record-grid { grid-template-columns:210px minmax(0,1fr); } }
@media(max-width:1050px) { .record-grid { grid-template-columns:190px minmax(0,1fr);gap:14px; }.hub-booking[data-record-view=journey] .record-grid,.hub-booking[data-record-view=suppliers] .record-grid { grid-template-columns:190px minmax(0,1fr); }.record-metrics>div { padding:14px; }.hub-booking .formgrid { grid-template-columns:1fr; }.hub-booking.booking-create #orderForm { grid-template-columns:1fr; }.hub-booking.booking-create [data-panel] { grid-column:auto;grid-row:auto; } }
@media(max-width:760px) { .record-grid,.hub-booking[data-record-view=journey] .record-grid,.hub-booking[data-record-view=suppliers] .record-grid { display:block; }.record-identity { margin-bottom:20px!important; }.record-related { display:block;margin-top:18px; }.record-related .panel { margin-bottom:18px; }.record-identity dl { display:grid;grid-template-columns:100px 1fr;gap:10px; }.record-identity dt,.record-identity dd { margin:0; }.record-identity .booking-summary { display:grid;grid-template-columns:1fr 1fr;gap:12px; }.hub-booking .booking-route h2 { font-size:17px; }.hub-booking .panel { padding:16px; }.hub-booking .record-identity { padding:18px; }.record-metrics strong { font-size:21px; }.record-tabs button { padding:12px;font-size:12px; }.record-heading h1 { font-size:23px; }.hub-booking .heading .actions { width:100%; }.hub-booking .record-related { display:none; } }
.record-facts-toggle { display:none; }
@media(max-width:760px) { .record-facts-toggle { display:block;float:right;font-size:11px;padding:5px 7px; }.hub-booking .record-identity:not(.facts-open) dl,.hub-booking .record-identity:not(.facts-open) .booking-summary { display:none; }.hub-booking .record-identity h2 { margin-top:6px;font-size:18px; }.hub-booking .record-identity .eyebrow { display:none; }.hub-booking .record-identity { margin-bottom:14px!important; } }

/* New quotes follow the form order: customer first, then itinerary. */
.hub-booking.booking-create #orderForm > [data-panel] { grid-column:auto; grid-row:auto; order:0; }

.datetime-field { min-width:0; display:grid; gap:7px; font-size:13px; }
.datetime-controls { display:grid; grid-template-columns:minmax(0,1fr) 68px 74px; gap:8px; }
.datetime-controls label { min-width:0; font-size:11px; color:var(--muted); }
.datetime-controls input,.datetime-controls select { min-width:0; width:100%; padding-left:8px; padding-right:6px; color:var(--text); }

.leg .datetime-field { grid-column:1/-1; }

.vehicle-option-info { padding:12px 14px; border:1px solid var(--line); border-radius:6px; background:var(--bg); font-size:12px; }
.vehicle-option-info p { margin:6px 0; white-space:pre-wrap; }

.leg-copy-actions { flex-wrap:wrap; gap:8px; margin:12px 0; }
.leg-copy-actions button { font-size:12px; }
.source-order-link { display:block; margin-top:12px; font-size:12px; }
.linked-orders { margin-top:12px; font-size:12px; }
