@import "tailwindcss";
@source "../views";

:root {
    --canvas: #f8f8f5;
    --surface: #ffffff;
    --navy: #0a1e45;
    --navy-2: #173056;
    --teal: #078f91;
    --teal-strong: #057f81;
    --teal-soft: #e2f3f2;
    --line: #e1e5e4;
    --line-strong: #cfd8d6;
    --muted: #667085;
    --muted-light: #98a2b3;
    --orange: #f05a2a;
    --green: #40a957;
    --yellow: #e9a23b;
    --blue: #4385d0;
    --shadow: 0 10px 30px rgba(10, 30, 69, .06);
    --shadow-lg: 0 24px 70px rgba(10, 30, 69, .16);
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--navy); font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }
.is-hidden { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 248px; display: flex; flex-direction: column; padding: 24px 16px 17px; border-right: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(18px); }
.brand-row { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 42px; height: 31px; position: relative; display: inline-block; flex: 0 0 auto; }
.brand-mark::after { content: ""; position: absolute; right: 1px; top: 4px; width: 24px; height: 19px; border: 5px solid var(--teal); border-left: 0; border-bottom-right-radius: 14px; border-top-right-radius: 8px; transform: skewX(12deg); }
.brand-mark span { position: absolute; left: 0; height: 4px; border-radius: 99px; background: var(--teal); }
.brand-mark span:nth-child(1) { top: 6px; width: 27px; }
.brand-mark span:nth-child(2) { top: 14px; left: 8px; width: 24px; }
.brand-mark span:nth-child(3) { top: 22px; left: 14px; width: 21px; }
.brand-name { font-size: 25px; font-weight: 850; letter-spacing: -1.3px; }
.primary-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 24px; }
.nav-item { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border: 0; border-radius: 11px; background: transparent; color: var(--navy-2); font-size: 13.5px; font-weight: 650; transition: background .16s, color .16s, transform .16s; }
a.nav-item:hover { background: #f1f8f7; transform: translateX(2px); }
.nav-item svg { width: 20px; height: 20px; }
.nav-item-active { color: #066d70; background: linear-gradient(90deg, #dcefee, #edf8f6); }
.nav-item small { margin-left: auto; color: #9aa5b1; font-size: 8px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.nav-item-disabled { cursor: default; opacity: .57; }
.nav-badge { min-width: 21px; height: 21px; display: grid; place-items: center; margin-left: auto; padding: 0 5px; border-radius: 99px; background: #fff0eb; color: var(--orange); font-size: 10px; font-weight: 800; }
.sidebar-footer { margin-top: auto; }
.booking-link { display: flex; align-items: center; gap: 8px; margin: 0 5px 10px; color: var(--teal); font-size: 11px; font-weight: 750; }
.booking-link svg { width: 15px; height: 15px; }
.branch-card { min-height: 68px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 6px 20px rgba(10,30,69,.04); }
.branch-icon, .resource-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.branch-icon svg, .resource-icon svg { width: 19px; }
.branch-card strong, .branch-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch-card strong { font-size: 11px; }
.branch-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.logout-button { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #f3f5f5; color: var(--muted); cursor: pointer; }
.logout-button:hover { color: var(--orange); background: #fff0eb; }
.logout-button svg { width: 16px; }
.mobile-close, .mobile-menu { display: none; }
.sidebar-backdrop { display: none; }

.dashboard { grid-column: 2; min-width: 0; }
.topbar { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.76); backdrop-filter: blur(18px); }
.greeting-wrap { display: flex; align-items: center; gap: 12px; }
.topbar h1 { margin: 2px 0 0; font-size: clamp(24px,2.1vw,34px); line-height: 1.1; letter-spacing: -1.2px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 12px; font-weight: 550; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.dashboard-content { padding: 22px 28px 32px; }
.panel { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }

.primary-button, .secondary-button, .ghost-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border-radius: 11px; font-size: 12.5px; font-weight: 750; cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s, border-color .16s; }
.primary-button { border: 1px solid var(--teal); background: linear-gradient(135deg,#0aa0a2,#07898b); color: white; box-shadow: 0 8px 18px rgba(7,143,145,.18); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 11px 22px rgba(7,143,145,.25); }
.secondary-button { border: 1px solid #afd1cf; background: #f2f9f8; color: #067579; }
.secondary-button:hover { border-color: var(--teal); background: var(--teal-soft); }
.ghost-button { border: 1px solid var(--line); background: white; color: var(--muted); }
.ghost-button:hover { border-color: var(--line-strong); background: #f8faf9; }
.full { width: 100%; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; transition: .16s; }
.icon-button:hover { border-color: #a8cfcc; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(10,30,69,.07); }
.icon-button.compact { width: 36px; height: 36px; }
.icon-button.compact svg { width: 17px; }
.notification-button { position: relative; }
.notification-button span { position: absolute; right: -5px; top: -6px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; border: 2px solid white; border-radius: 50%; background: var(--teal); color: white; font-size: 8px; font-weight: 800; }
.toast { position: fixed; z-index: 55; top: 112px; right: 28px; display: flex; align-items: center; gap: 9px; max-width: 420px; padding: 13px 16px; border-radius: 12px; background: white; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-lg); animation: toast-in .25s ease both; }
.toast svg { width: 18px; }
.toast-success { border: 1px solid #bce2c6; color: #297e3e; }
.toast-danger { border: 1px solid #f1c5bc; color: #b5452b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

.section-kicker { display: block; margin-bottom: 4px; color: var(--teal); font-size: 9px; font-weight: 850; letter-spacing: 1.2px; }
.section-kicker.light { color: #79e1df; }
.panel-heading { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.5px; }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.metric-card { min-height: 122px; display: flex; align-items: center; gap: 15px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 26px rgba(10,30,69,.045); }
.metric-icon { width: 47px; height: 47px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; background: var(--teal-soft); color: var(--teal); }
.metric-icon svg { width: 24px; height: 24px; }
.metric-card p { margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
.metric-card strong { display: block; font-size: 24px; line-height: 1.1; letter-spacing: -.8px; }
.metric-card small { display: flex; align-items: center; gap: 3px; margin-top: 6px; color: var(--muted); font-size: 9.5px; }
.metric-card small svg { width: 12px; height: 12px; color: var(--green); }
.metric-emergency .metric-icon { background: #fff0eb; color: var(--orange); }

.operations-grid { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(330px,.95fr); gap: 16px; }
.map-panel { overflow: hidden; }
.route-toggle { min-height: 35px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); font-size: 10px; font-weight: 800; }
.route-toggle svg { width: 16px; }
.map-canvas { position: relative; min-height: 430px; overflow: hidden; background: #edf1ed; isolation: isolate; }
.map-canvas::before { content: ""; position: absolute; inset: 0; opacity: .58; background-image: linear-gradient(26deg, transparent 46%, rgba(255,255,255,.9) 47%, rgba(255,255,255,.9) 50%, transparent 51%), linear-gradient(112deg, transparent 48%, rgba(211,219,214,.75) 49%, rgba(211,219,214,.75) 51%, transparent 52%); background-size: 150px 110px, 210px 150px; }
.map-canvas::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 23% 25%,rgba(141,188,154,.19),transparent 25%), radial-gradient(circle at 70% 75%,rgba(141,188,154,.19),transparent 28%); }
.map-text { position: absolute; z-index: 2; color: #88958f; font-size: 11px; font-weight: 750; }
.avanos { top: 72px; left: 22%; } .nevsehir { top: 58%; left: 36%; color: #596a63; font-size: 14px; } .urgup { top: 67%; right: 16%; } .goreme { top: 36%; right: 31%; }
.map-road { position: absolute; z-index: 1; height: 8px; border: 2px solid rgba(255,255,255,.88); border-radius: 50%; background: #d6ded9; transform-origin: left center; }
.road-one { width: 90%; top: 52%; left: 5%; transform: rotate(-13deg); } .road-two { width: 67%; top: 23%; left: 18%; transform: rotate(38deg); } .road-three { width: 58%; top: 82%; left: 22%; transform: rotate(-55deg); }
.route-line { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; fill: none; pointer-events: none; }
.route-line path { stroke: var(--teal); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 8 8; filter: drop-shadow(0 3px 4px rgba(7,143,145,.2)); }
.route-line .route-secondary { stroke-width: 3; opacity: .57; }
.location-pin { position: absolute; z-index: 4; width: 32px; height: 32px; display: grid; place-items: center; border: 3px solid white; border-radius: 50% 50% 50% 8px; background: var(--navy); color: white; box-shadow: 0 5px 12px rgba(10,30,69,.25); transform: rotate(-45deg); }
.location-pin svg { width: 15px; transform: rotate(45deg); }
.pin-one { left: 15%; top: 68%; } .pin-two { left: 49%; top: 50%; } .pin-three { right: 13%; top: 25%; }
.team-marker { position: absolute; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border: 2px solid white; border-radius: 99px; background: white; box-shadow: 0 6px 18px rgba(10,30,69,.17); }
.team-marker b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-size: 8px; }
.team-marker strong { max-width: 95px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.team-one { left: 25%; bottom: 25%; } .team-two { right: 25%; top: 28%; } .team-three { right: 18%; bottom: 18%; }
.map-status { position: absolute; right: 14px; bottom: 13px; z-index: 7; display: flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 9px; background: rgba(255,255,255,.92); color: var(--muted); font-size: 9px; font-weight: 750; box-shadow: 0 5px 16px rgba(10,30,69,.1); }
.map-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(64,169,87,.13); }
.resource-strip { min-height: 85px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.resource-strip > div { display: flex; align-items: center; gap: 10px; padding: 13px 15px; }
.resource-strip > div + div { border-left: 1px solid var(--line); }
.resource-strip strong, .resource-strip small { display: block; }
.resource-strip strong { font-size: 10.5px; } .resource-strip small { max-width: 130px; margin-top: 4px; color: var(--muted); font-size: 8.5px; line-height: 1.35; }
.appointments-panel { display: flex; flex-direction: column; overflow: hidden; }
.appointments-list { flex: 1; padding: 5px 16px; }
.appointment-row { min-height: 91px; display: grid; grid-template-columns: 45px 17px minmax(0,1fr) auto; align-items: center; gap: 5px; padding: 9px 0; border-bottom: 1px solid #edf0ef; transition: background .15s; }
.appointment-row:hover { background: #fafcfb; }
.appointment-row time { align-self: start; padding-top: 11px; font-size: 10px; font-weight: 800; }
.appointment-timeline { align-self: stretch; position: relative; }
.appointment-timeline::after { content: ""; position: absolute; top: 27px; bottom: -13px; left: 7px; width: 1px; background: var(--line); }
.appointment-row:last-child .appointment-timeline::after { display: none; }
.appointment-timeline i { position: absolute; top: 16px; left: 3px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px #b9dfdc; }
.appointment-main strong, .appointment-main span, .appointment-main small { display: block; }
.appointment-main strong { font-size: 11px; }
.appointment-main span { margin-top: 4px; font-size: 9.5px; font-weight: 650; }
.appointment-main small { display: flex; align-items: center; gap: 3px; margin-top: 5px; color: var(--muted); font-size: 8px; }
.appointment-main small svg { width: 11px; height: 11px; }
.appointment-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.appointment-side > b { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #edf2f4; font-size: 8px; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 23px; padding: 0 8px; border-radius: 99px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.status-warning { background: #fff5dd; color: #9a6507; } .status-info { background: #e8f1fc; color: #356ca9; } .status-teal { background: var(--teal-soft); color: #08777a; } .status-success { background: #e8f6eb; color: #328344; } .status-danger { background: #fff0eb; color: #c64727; }
.panel-footer-link { min-height: 53px; display: flex; align-items: center; justify-content: center; gap: 7px; border-top: 1px solid var(--line); color: var(--teal); font-size: 10px; font-weight: 800; }
.panel-footer-link svg { width: 14px; }
.empty-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; color: var(--muted); text-align: center; }
.empty-state svg { width: 34px; height: 34px; margin-bottom: 10px; color: #b7c5c1; }
.empty-state strong { color: var(--navy); font-size: 13px; }
.empty-state p { margin: 6px 0 0; font-size: 10px; }

.list-panel { overflow: hidden; }
.list-toolbar { min-height: 103px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.list-toolbar h2 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.list-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 10.5px; }
.filter-form { display: flex; align-items: center; gap: 7px; }
.filter-form select, .filter-form > input { min-height: 40px; max-width: 165px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: white; outline: 0; font-size: 10.5px; }
.search-input { min-width: 245px; min-height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.search-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,143,145,.1); }
.search-input svg { width: 16px; color: var(--muted); }
.search-input input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10.5px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { height: 43px; padding: 0 15px; border-bottom: 1px solid var(--line); background: #fbfcfb; color: var(--muted); text-align: left; font-size: 8px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.data-table td { min-height: 67px; padding: 13px 15px; border-bottom: 1px solid #edf0ef; vertical-align: middle; font-size: 10.5px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfc; }
.data-table td > strong, .data-table td > small { display: block; }
.data-table td > small { margin-top: 4px; color: var(--muted); font-size: 8.5px; }
.record-number { color: var(--teal); }
.plate-line { display: flex !important; align-items: center; gap: 4px; }
.plate-line svg { width: 12px; height: 12px; }
.person-cell { display: flex; align-items: center; gap: 7px; }
.person-cell b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #edf2f4; font-size: 8px; }
.person-cell span { font-size: 9.5px; font-weight: 650; }
.table-actions { width: 50px; }
.plate-badge { display: inline-flex; min-width: 76px; justify-content: center; padding: 6px 8px; border: 2px solid var(--navy); border-radius: 5px; background: white; font-weight: 850; letter-spacing: .5px; }
.vin-value { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: .7px; }
.count-badge { display: inline-flex; padding: 6px 9px; border-radius: 99px; background: #f0f4f3; color: var(--muted); font-size: 8.5px; font-weight: 750; }
.pagination { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); }
.pagination-link { min-height: 35px; display: inline-flex; align-items: center; gap: 5px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 9.5px; font-weight: 750; }
.pagination-link:hover:not(.disabled) { border-color: #a8cfcc; color: var(--teal); }
.pagination-link.disabled { opacity: .45; }
.pagination-link svg { width: 14px; }
.pagination-info { color: var(--muted); font-size: 9px; }

.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(8,24,51,.57); backdrop-filter: blur(5px); }
.modal-backdrop.is-open { display: flex; animation: fade-in .15s ease both; }
.modal-card { width: min(620px,100%); max-height: calc(100vh - 48px); overflow: hidden; border-radius: 19px; background: white; box-shadow: var(--shadow-lg); }
.modal-large { width: min(920px,100%); }
.modal-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 21px; letter-spacing: -.6px; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.modal-form { max-height: calc(100vh - 140px); overflow-y: auto; }
.form-section { padding: 21px 23px; border-bottom: 1px solid var(--line); }
.form-section > h2, .form-section > h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; font-size: 14px; letter-spacing: -.2px; }
.form-section > h2 > span, .form-section > h3 > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 10px; }
.form-grid { display: grid; gap: 13px; }
.form-grid.cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field > span:first-child { color: #344054; font-size: 9.5px; font-weight: 750; }
.form-field em { color: var(--muted-light); font-size: 8px; font-style: normal; font-weight: 550; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: white; outline: 0; font-size: 11px; transition: border .15s,box-shadow .15s; }
.form-field textarea { min-height: 76px; padding-top: 10px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,143,145,.1); }
.form-field.required-highlight > span:first-child { color: var(--teal); }
.form-field.required-highlight input { border-color: #81c5c2; background: #fbfefe; }
.span-2 { grid-column: span 2; }
.span-full { grid-column: 1/-1; }
.field-help { color: var(--muted); font-size: 8px; line-height: 1.4; }
.field-error { color: #c64727; font-size: 8.5px; font-weight: 650; }
.currency-input, .input-icon { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; }
.currency-input:focus-within, .input-icon:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,143,145,.1); }
.currency-input b { padding-left: 12px; color: var(--muted); font-size: 11px; }
.currency-input input, .input-icon input { border: 0; box-shadow: none !important; }
.input-icon svg { width: 17px; margin-left: 12px; color: var(--muted); }
.checkbox-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9.5px; cursor: pointer; }
.checkbox-field input { width: 16px; height: 16px; accent-color: var(--teal); }
.modal-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 15px 22px; border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
@keyframes fade-in { from { opacity: 0; } }

.detail-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.72fr); gap: 16px; align-items: start; }
.detail-main { overflow: hidden; }
.detail-hero { min-height: 120px; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 22px; border-bottom: 1px solid var(--line); background: linear-gradient(125deg,#effafa,#fff); }
.detail-hero.emergency { background: linear-gradient(125deg,#fff1ec,#fff); }
.detail-hero-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--teal); color: white; }
.detail-hero.emergency .detail-hero-icon { background: var(--orange); }
.detail-hero-icon svg { width: 25px; height: 25px; }
.detail-hero div > span { color: var(--teal); font-size: 8px; font-weight: 850; letter-spacing: 1px; }
.detail-hero.emergency div > span { color: var(--orange); }
.detail-hero h2 { margin: 4px 0 3px; font-size: 20px; }
.detail-hero p { margin: 0; color: var(--muted); font-size: 10px; }
.detail-section-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px 22px; }
.detail-section-grid article { min-height: 105px; display: flex; align-items: center; gap: 12px; padding: 17px 3px; border-bottom: 1px solid var(--line); }
.detail-section-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.detail-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: #f1f6f5; color: var(--teal); }
.detail-icon svg { width: 18px; }
.detail-section-grid article div small,.detail-section-grid article div strong,.detail-section-grid article div span,.detail-section-grid article div a { display: block; }
.detail-section-grid article div small { margin-bottom: 5px; color: var(--muted); font-size: 7.5px; font-weight: 850; letter-spacing: .8px; }
.detail-section-grid article div strong { font-size: 11px; }
.detail-section-grid article div span,.detail-section-grid article div a { margin-top: 4px; color: var(--muted); font-size: 9px; }
.detail-section-grid article div a { color: var(--teal); }
.notes-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; padding: 0 22px 18px; }
.notes-grid div { padding: 13px; border-radius: 11px; background: #f7f9f8; }
.notes-grid small { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.notes-grid p { margin: 6px 0 0; font-size: 9.5px; line-height: 1.55; }
.price-summary { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: #fbfcfb; }
.price-summary span { padding: 16px 18px; }
.price-summary span + span { border-left: 1px solid var(--line); }
.price-summary small,.price-summary strong { display: block; }
.price-summary small { color: var(--muted); font-size: 8px; }
.price-summary strong { margin-top: 4px; font-size: 12px; }
.price-summary .total { background: var(--navy); color: white; }
.price-summary .total small { color: #b8c5d9; }
.price-summary .total strong { font-size: 16px; }
.detail-sidebar { display: flex; flex-direction: column; gap: 13px; }
.action-panel,.timeline-panel { padding: 18px; }
.action-panel header,.timeline-panel header { margin-bottom: 14px; }
.action-panel h3,.timeline-panel h3 { margin: 0; font-size: 14px; }
.action-panel form { display: flex; flex-direction: column; gap: 11px; }
.status-timeline { display: flex; flex-direction: column; }
.status-timeline > div { min-height: 63px; display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 7px; position: relative; }
.status-timeline > div > i { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.status-timeline > div:not(:last-child)::before { content: ""; position: absolute; top: 13px; bottom: 0; left: 4px; width: 1px; background: var(--line); }
.status-timeline strong,.status-timeline small { display: block; }
.status-timeline strong { font-size: 9.5px; }.status-timeline small { margin-top: 3px; color: var(--muted); font-size: 7.5px; }.status-timeline p { margin: 5px 0 0; color: var(--muted); font-size: 8px; }

.card-list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 16px; }
.entity-card { min-height: 104px; display: grid; grid-template-columns: 47px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; transition: .16s; }
.entity-card:hover { border-color: #b7d9d6; box-shadow: 0 7px 18px rgba(10,30,69,.05); }
.entity-avatar { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; background: var(--teal-soft); color: var(--teal); font-size: 12px; font-weight: 850; }
.entity-main strong,.entity-main a,.entity-main small { display: block; }.entity-main strong { font-size: 11px; }.entity-main a { margin-top: 4px; color: var(--teal); font-size: 9px; }.entity-main small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.entity-stats { display: flex; gap: 13px; }.entity-stats span { text-align: center; }.entity-stats strong,.entity-stats small { display: block; }.entity-stats strong { font-size: 15px; }.entity-stats small { color: var(--muted); font-size: 7px; }
.service-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; align-items: start; }
.service-category-card { overflow: hidden; }
.service-category-card > header { min-height: 99px; display: grid; grid-template-columns: 43px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 17px; border-bottom: 1px solid var(--line); }
.category-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: var(--teal-soft); color: var(--teal); }.category-icon svg { width: 21px; }
.service-category-card h2 { margin: 0; font-size: 14px; line-height: 1.25; }
.service-list article { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; border-bottom: 1px solid #edf0ef; }.service-list article:last-child { border-bottom: 0; }
.service-list article > div:first-child strong,.service-list article > div:first-child span { display: block; }.service-list article > div:first-child strong { font-size: 10px; }.service-list article > div:first-child span { margin-top: 5px; color: var(--muted); font-size: 8px; }
.vin-required { display: inline-flex; align-items: center; gap: 3px; color: var(--teal); }.vin-required svg { width: 11px; height: 11px; }
.service-price { text-align: right; }.service-price > strong { display: block; font-size: 11px; }.status-dot { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--muted); font-size: 7.5px; }.status-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-light); }.status-dot.active::before { background: var(--green); }

.auth-page { min-height: 100vh; background: #eff4f3; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px,1.05fr) minmax(430px,.95fr); }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 45px 55px; background: linear-gradient(145deg,#071b3e 0%,#0a3151 56%,#087e81 125%); color: white; }
.auth-visual::before { content: ""; position: absolute; width: 610px; height: 610px; right: -270px; bottom: -240px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 85px rgba(255,255,255,.025),0 0 0 170px rgba(255,255,255,.02); }
.auth-visual .brand-mark span { background: #4cd1ce; }.auth-visual .brand-mark::after { border-color: #4cd1ce; }.auth-brand { display: flex; align-items: center; gap: 10px; }.auth-brand .brand-name { font-size: 27px; }
.auth-message { position: relative; z-index: 1; max-width: 570px; }.auth-message h1 { margin: 9px 0 17px; font-size: clamp(42px,5vw,69px); line-height: .99; letter-spacing: -3.6px; }.auth-message > p { max-width: 540px; color: #c4d3df; font-size: 15px; line-height: 1.7; }
.auth-points { display: flex; flex-direction: column; gap: 13px; margin-top: 30px; }.auth-points span { display: flex; align-items: center; gap: 9px; color: #e7f0f5; font-size: 12px; }.auth-points svg { width: 19px; color: #63d8d4; }
.auth-visual > small { position: relative; z-index: 1; color: #8fa9bc; font-size: 9px; }
.auth-form-wrap { display: grid; place-items: center; padding: 45px; background: #fbfcfa; }
.auth-form { width: min(410px,100%); }.auth-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 21px; border-radius: 16px; background: var(--teal-soft); color: var(--teal); }.auth-icon svg { width: 27px; height: 27px; }
.auth-form h2 { margin: 0; font-size: 28px; letter-spacing: -1px; }.auth-form > p { margin: 7px 0 25px; color: var(--muted); font-size: 11px; }.auth-form .form-field { margin-bottom: 15px; }.auth-form .checkbox-field { margin: 3px 0 17px; }.auth-submit { width: 100%; min-height: 48px; }.demo-credentials { display: grid; grid-template-columns: auto 1fr; gap: 4px 9px; margin-top: 19px; padding: 12px 14px; border: 1px dashed #b9d8d5; border-radius: 10px; background: #f7fbfa; color: var(--muted); font-size: 8px; }.demo-credentials strong { grid-row: span 2; align-self: center; color: var(--teal); font-size: 8px; text-transform: uppercase; }

.booking-page { min-height: 100vh; background: linear-gradient(180deg,#f2f7f5 0,#fbfbf8 420px); }
.booking-topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(24px,calc((100vw - 1100px)/2)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); backdrop-filter: blur(14px); }.booking-topbar .brand-mark { transform: scale(.88); transform-origin: left center; }.booking-topbar .brand-name { font-size: 22px; }.booking-topbar > span { color: var(--muted); font-size: 9px; }.booking-topbar > span strong { color: var(--navy); }
.booking-shell { width: min(1060px,calc(100% - 36px)); margin: 0 auto; padding: 58px 0 40px; }
.booking-intro { max-width: 760px; margin: 0 auto 34px; text-align: center; }.booking-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 17px; background: var(--teal); color: white; box-shadow: 0 12px 25px rgba(7,143,145,.22); }.booking-icon svg { width: 27px; height: 27px; }.booking-intro h1 { margin: 7px 0 12px; font-size: clamp(33px,5vw,52px); line-height: 1.05; letter-spacing: -2.2px; }.booking-intro > p { max-width: 670px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.65; }.booking-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 20px; }.booking-trust span { display: flex; align-items: center; gap: 5px; color: #53645e; font-size: 9px; font-weight: 650; }.booking-trust svg { width: 14px; color: var(--teal); }
.booking-form { max-width: 900px; margin: 0 auto; overflow: hidden; }.booking-form .form-section { padding: 28px 31px; }.booking-form .form-section > h2 { margin-bottom: 20px; font-size: 16px; }.form-alert { display: flex; align-items: center; gap: 11px; margin: 19px 30px 0; padding: 13px; border: 1px solid #f0c2b7; border-radius: 11px; background: #fff5f1; color: #a9432b; font-size: 9px; }.form-alert svg { width: 19px; }.form-alert strong { display: block; font-size: 10px; }
.service-option-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.service-option { cursor: pointer; }.service-option input { position: absolute; opacity: 0; pointer-events: none; }.service-option-content { min-height: 145px; display: flex; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; transition: .16s; }.service-option-content > svg { width: 24px; height: 24px; margin-bottom: 13px; color: var(--teal); }.service-option-content strong { font-size: 11px; }.service-option-content small { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.4; }.service-option-content b { margin-top: auto; padding-top: 10px; color: var(--teal); font-size: 8.5px; }.service-option input:checked + .service-option-content { border-color: var(--teal); background: #f2fbfa; box-shadow: 0 0 0 3px rgba(7,143,145,.11); }
.request-type-switch { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 16px; }.request-type-switch label { cursor: pointer; }.request-type-switch input { position: absolute; opacity: 0; }.request-type-switch label > span { min-height: 72px; display: grid; grid-template-columns: 35px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; }.request-type-switch svg { grid-row: span 2; width: 22px; color: var(--teal); }.request-type-switch strong { align-self: end; font-size: 10px; }.request-type-switch small { align-self: start; color: var(--muted); font-size: 8px; }.request-type-switch input:checked + span { border-color: var(--teal); background: #f1faf9; box-shadow: 0 0 0 3px rgba(7,143,145,.09); }.request-type-switch label:last-child input:checked + span { border-color: var(--orange); background: #fff5f1; box-shadow: 0 0 0 3px rgba(240,90,42,.08); }.request-type-switch label:last-child svg { color: var(--orange); }
.privacy { margin: 19px 30px 0; }.booking-submit { width: calc(100% - 60px); min-height: 50px; margin: 18px 30px 8px; }.privacy-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0 20px 24px; color: var(--muted); font-size: 7.5px; text-align: center; }.privacy-note svg { width: 11px; }.booking-footer { padding: 0 0 35px; color: var(--muted); font-size: 8px; text-align: center; }
.success-page { display: grid; place-items: center; padding: 30px; }.success-card { width: min(500px,100%); padding: 42px; text-align: center; }.success-check { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: #e5f6e9; color: var(--green); box-shadow: 0 0 0 10px rgba(64,169,87,.07); }.success-check svg { width: 34px; height: 34px; }.success-card h1 { margin: 6px 0 9px; font-size: 36px; letter-spacing: -1.5px; }.success-card > p { max-width: 390px; margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.6; }.success-number { margin: 23px 0; padding: 16px; border: 1px dashed #9dcac7; border-radius: 12px; background: #f5fbfa; }.success-number small,.success-number strong { display: block; }.success-number small { color: var(--muted); font-size: 8px; }.success-number strong { margin-top: 5px; color: var(--teal); font-size: 17px; letter-spacing: .5px; }.success-card > a { margin: 3px; }.success-card footer { margin-top: 28px; color: var(--muted); font-size: 8px; }.success-card footer .brand-name { color: var(--navy); font-size: 14px; }

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(2,1fr); }
    .operations-grid { grid-template-columns: 1fr; }
    .appointments-panel { min-height: 480px; }
    .service-category-grid { grid-template-columns: 1fr 1fr; }
    .list-toolbar { align-items: flex-start; flex-direction: column; }
    .filter-form { width: 100%; flex-wrap: wrap; }
    .search-input { flex: 1; }
}

@media (max-width: 820px) {
    .app-shell { display: block; }
    .sidebar { transform: translateX(-105%); box-shadow: 20px 0 50px rgba(10,30,69,.18); transition: transform .2s ease; }
    .sidebar.sidebar-open { transform: translateX(0); }
    .mobile-close, .mobile-menu { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
    .mobile-close { width: 34px; height: 34px; }.mobile-menu { width: 40px; height: 40px; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; border: 0; background: rgba(10,30,69,.44); }.sidebar-backdrop.is-open { display: block; }
    .dashboard { min-height: 100vh; }
    .topbar { min-height: 86px; padding: 15px 18px; }
    .dashboard-content { padding: 17px; }
    .top-actions .icon-button { display: none; }
    .topbar h1 { font-size: 23px; }
    .detail-grid { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: 1fr; }.auth-visual { min-height: 420px; padding: 35px; }.auth-message h1 { font-size: 46px; }.auth-form-wrap { padding: 55px 24px; }
    .booking-shell { padding-top: 38px; }
}

@media (max-width: 620px) {
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 105px; }
    .resource-strip { grid-template-columns: 1fr; }.resource-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .map-canvas { min-height: 350px; }
    .primary-button, .secondary-button, .ghost-button { padding: 0 12px; }
    .top-actions .primary-button { width: 42px; padding: 0; font-size: 0; }.top-actions .primary-button svg { width: 19px; }
    .card-list-grid { grid-template-columns: 1fr; }
    .service-category-grid { grid-template-columns: 1fr; }
    .form-grid.cols-2, .detail-section-grid, .notes-grid, .price-summary { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .price-summary span + span { border-left: 0; border-top: 1px solid var(--line); }
    .detail-hero { grid-template-columns: 44px 1fr; }.detail-hero > .status-badge { grid-column: 1/-1; justify-self: start; }.detail-hero-icon { width: 43px; height: 43px; }
    .list-toolbar { padding: 17px; }.filter-form { display: grid; grid-template-columns: 1fr 1fr; }.search-input { grid-column: 1/-1; min-width: 0; }.filter-form select,.filter-form > input { max-width: none; width: 100%; }
    .pagination-info { display: none; }
    .modal-backdrop { padding: 0; align-items: flex-end; }.modal-card { max-height: 96vh; border-radius: 18px 18px 0 0; }.modal-header { min-height: 82px; }.form-section { padding: 18px; }
    .auth-visual { min-height: 390px; padding: 27px; }.auth-message h1 { font-size: 38px; letter-spacing: -2.3px; }.auth-message > p { font-size: 12px; }.auth-points { margin-top: 20px; }
    .booking-topbar { padding: 0 18px; }.booking-topbar > span { display: none; }.booking-shell { width: calc(100% - 22px); }.booking-intro h1 { font-size: 35px; }.booking-intro > p { font-size: 10.5px; }.service-option-grid { grid-template-columns: 1fr; }.service-option-content { min-height: 110px; }.request-type-switch { grid-template-columns: 1fr; }.booking-form .form-section { padding: 21px 18px; }.privacy { margin-inline: 18px; }.booking-submit { width: calc(100% - 36px); margin-inline: 18px; }.success-card { padding: 30px 20px; }
}
