﻿:root {
  --navy: #061f3f;
  --deep: #03152e;
  --ink: #07162b;
  --muted: #64748b;
  --line: #dce6ef;
  --soft: #f5f8fb;
  --blue: #0f74e8;
  --teal: #07a899;
  --green: #12a66b;
  --orange: #ff9f1f;
  --red: #ff5361;
  --purple: #7b61ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #eef3f8; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(15,116,232,.28); outline-offset: 2px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar { min-height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 16px; color: #f2f8ff; background: radial-gradient(circle at 12% 0%, rgba(10, 132, 255, .35), transparent 27%), linear-gradient(180deg, #06284d, #03162f 72%, #021126); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 8px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #d9efff; border: 3px solid #1b92ff; font-weight: 950; font-size: 24px; transform: rotate(-8deg); }
.brand strong { font-size: 30px; letter-spacing: 0; }
.shop-select { border: 1px solid rgba(226, 241, 255, .22); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; background: rgba(255, 255, 255, .055); }
.shop-select span { font-size: 13px; font-weight: 780; }
.shop-select select { width: 100%; color: #d9eaff; background: transparent; border: 0; outline: 0; }
.nav { display: grid; gap: 7px; }
.nav-item, .sub-nav { min-height: 46px; border: 0; border-radius: 8px; padding: 0 14px; display: flex; align-items: center; gap: 12px; color: #eaf5ff; background: transparent; font-weight: 730; text-align: left; }
.nav-item i { width: 24px; height: 24px; border: 1px solid rgba(213, 232, 248, .45); border-radius: 7px; display: grid; place-items: center; color: #9fd7e5; font-size: 10px; font-style: normal; }
.nav-item b { margin-left: auto; min-width: 30px; height: 24px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: var(--blue); font-size: 12px; }
.nav-item.active, .nav-item:hover { background: linear-gradient(135deg, rgba(15, 116, 232, .98), rgba(8, 73, 143, .94)); }
.sub-nav { margin-left: 42px; min-height: 30px; color: #bdd0e6; border-left: 1px solid rgba(220, 236, 255, .24); }
.sub-nav.active { color: #27d9c6; }
.revenue-card, .user-card { border: 1px solid rgba(226, 241, 255, .2); border-radius: 8px; background: rgba(255, 255, 255, .06); }
.revenue-card { margin-top: auto; padding: 16px; }
.revenue-card p { margin: 0 0 10px; }
.revenue-card strong { display: block; font-size: 28px; }
.revenue-card small { color: #42d98c; }
.revenue-card svg { width: 100%; height: 72px; margin: 10px 0; }
.target { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .17); }
.target i { display: block; height: 100%; background: linear-gradient(90deg, #3ddc97, #9df168); }
.revenue-card button { width: 100%; height: 40px; margin-top: 14px; border: 1px solid #468fd8; border-radius: 8px; color: #e8f5ff; background: transparent; }
.user-card { display: flex; gap: 12px; align-items: center; padding: 12px; }
.user-card span, .avatar { width: 42px; height: 42px; border-radius: 999px; display: inline-grid; place-items: center; color: #062045; background: #d8eaff; font-weight: 850; }
.user-card small { display: block; color: #bdd0e6; }
.workspace { min-width: 0; overflow-x: auto; }
.topbar { min-height: 76px; padding: 15px 24px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-badge { border: 1px solid rgba(15,116,232,.22); border-radius: 999px; padding: 5px 10px; color: #075bb8; background: #e8f2ff; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.demo-strip { margin: 14px 24px 0; border: 1px solid rgba(15,116,232,.2); border-radius: 8px; padding: 12px 14px; color: #07487f; background: linear-gradient(135deg,#e8f2ff,#f8fbff); font-weight: 750; }
.topbar h1 { margin: 0; font-size: 24px; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.top-select { margin-left: auto; }
.top-select select, .date-btn, .icon-btn { height: 42px; border: 1px solid #cbd8e5; border-radius: 8px; background: #fff; color: var(--ink); }
.top-select select { min-width: 190px; padding: 0 12px; }
.date-btn { padding: 0 18px; }
.icon-btn { width: 42px; font-weight: 850; }
.alert { color: var(--red); }
.view { display: none; padding: 20px 24px; }
.view.active { display: block; }
.panel, .kpi-card, .quick-actions, .flow-section, .metric-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.97); box-shadow: 0 14px 32px rgba(25,46,72,.06); }
.panel { padding: 16px; min-width: 0; }
.panel-head, .rule-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel h2, .panel-head h2 { margin: 0; font-size: 16px; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 14px; }
.kpi-card { min-height: 118px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.kpi-icon { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-weight: 950; font-size: 22px; }
.kpi-icon.blue { background: linear-gradient(135deg, #1786ff, #045fd0); }
.kpi-icon.green { background: linear-gradient(135deg, #33c388, #078a5b); }
.kpi-icon.orange { background: linear-gradient(135deg, #ffb43f, #ff8b00); }
.kpi-icon.red { background: linear-gradient(135deg, #ff7d88, #ff4658); }
.kpi-card p { margin: 0; color: var(--muted); font-weight: 760; }
.kpi-card strong { display: block; margin: 3px 0; color: var(--ink); font-size: 30px; }
.kpi-card small { color: var(--green); }
.kpi-card:nth-child(4) small { color: var(--blue); }
.kpi-card:last-child small { color: var(--red); }
.quick-actions { min-height: 78px; margin: 14px 0; padding: 16px; display: grid; grid-template-columns: 150px repeat(5, 1fr); gap: 12px; align-items: center; }
.quick-actions h2 { margin: 0; font-size: 16px; }
.quick-actions button { height: 50px; border: 1px solid rgba(15,116,232,.35); border-radius: 8px; color: #066bd4; background: #f7fbff; font-weight: 850; }
.quick-actions button:nth-child(3), .quick-actions button:nth-child(5) { color: #087545; border-color: rgba(19,168,109,.34); background: #f6fffb; }
.quick-actions button:nth-child(4) { color: #6d35c9; border-color: rgba(123,97,255,.35); background: #fbf8ff; }
.quick-actions button:nth-child(6) { color: #d76100; border-color: rgba(255,159,31,.45); background: #fffaf2; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 14px; }
.schedule-panel { grid-column: 1 / 2; }
.lift-panel { grid-column: 2 / 3; }
.workorders-panel { grid-column: 3 / 4; }
.vehicles-panel, .receivable-panel { grid-column: span 2; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 10px 8px; border-bottom: 1px solid #ebf1f6; text-align: left; vertical-align: middle; }
th { color: var(--muted); font-weight: 740; }
.tag { padding: 4px 8px; border-radius: 7px; font-size: 11px; white-space: nowrap; }
.green-tag { color: #087545; background: #dff8e9; }
.blue-tag { color: #0a5fca; background: #e2efff; }
.orange-tag { color: #b45700; background: #fff0df; }
.red-tag { color: #d82929; background: #ffe5e5; }
.purple-tag { color: #6d35c9; background: #eee7ff; }
.link-btn { width: 100%; height: 36px; border: 0; margin-top: 10px; color: var(--blue); background: transparent; font-weight: 780; }
.lift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lift-grid button { min-height: 150px; border: 1px solid #cfe4d8; border-radius: 8px; padding: 10px; display: grid; gap: 5px; background: #fbfffd; text-align: left; }
.lift-grid .busy { border-color: #ffc174; background: #fffaf2; }
.lift-grid .fault { border-color: #ffb0b0; background: #fff8f8; }
.lift-grid em { width: fit-content; margin-left: auto; padding: 4px 8px; border-radius: 7px; color: #087545; background: #dff8e9; font-style: normal; font-size: 11px; }
.lift-grid .busy em { color: #b45700; background: #fff0df; }
.lift-grid .fault em { color: #d82929; background: #ffe5e5; }
.lift-grid .empty { color: #64748b; background: #edf2f7; }
.car { height: 48px; border-radius: 40px 40px 16px 16px; position: relative; background: #e7edf4; box-shadow: inset 0 -12px 0 rgba(0,0,0,.12); }
.white-car { background: linear-gradient(#fff, #d6dde5); }
.gray-car { background: linear-gradient(#939aa4, #58616d); }
.dark-car { background: linear-gradient(#2d3745, #111827); }
.empty-car { opacity: .28; }
.warn-text { color: #e97400; }
.red-text { color: var(--red); }
.notice-list { display: grid; gap: 8px; }
.notice-list button { border: 0; border-bottom: 1px solid #edf2f7; padding: 8px 0; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; background: transparent; text-align: left; }
.notice-list span { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 10px; font-weight: 900; }
.notice-list small { display: block; color: var(--muted); }
.notice-list em { padding: 4px 8px; border-radius: 7px; color: #087545; background: #dff8e9; font-size: 11px; font-style: normal; }
.notice-list .warn { color: #b45700; background: #fff0df; }
.donut { width: 140px; height: 140px; margin: 12px auto; border-radius: 999px; display: grid; place-items: center; position: relative; background: conic-gradient(var(--green) 0 41%, var(--orange) 41% 92%, var(--red) 92% 100%); }
.donut:after { content: ""; position: absolute; inset: 38px; border-radius: inherit; background: #fff; }
.donut strong, .donut small { position: relative; z-index: 1; }
.donut strong { transform: translateY(14px); }
.donut small { transform: translateY(-12px); color: var(--muted); }
.payment-status p { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; color: var(--muted); }
.payment-status i { width: 10px; height: 10px; border-radius: 999px; background: var(--green); }
.payment-status .orange-dot { background: var(--orange); }
.payment-status .red-dot { background: var(--red); }
.service-layout { display: grid; grid-template-columns: 330px minmax(760px, 1fr) 390px; gap: 14px; }
.order-list-panel, .service-main, .side-panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.order-list-panel { padding: 14px; }
.order-list-panel h2 { margin: 0 0 14px; }
.search-box { height: 42px; border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: 1fr 58px; align-items: center; overflow: hidden; }
.search-box input { border: 0; outline: 0; padding-left: 12px; }
.search-box span { height: 100%; display: grid; place-items: center; color: var(--muted); border-left: 1px solid var(--line); font-size: 12px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.filter-grid button { min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #53657c; }
.filter-grid .active { color: #087545; border-color: #8bd8bd; background: #f4fffb; }
.work-list { display: grid; gap: 9px; }
.work-card { min-height: 140px; border: 1px solid var(--line); border-radius: 8px; padding: 13px; display: grid; grid-template-columns: 1fr auto; gap: 7px; background: #fff; text-align: left; }
.work-card.active { border-color: var(--blue); background: #f3f8ff; }
.work-card span, .work-card small, .work-card b { grid-column: 1 / -1; }
.work-card span { font-size: 18px; font-weight: 800; }
.work-card small, .work-card b { color: var(--muted); font-weight: 500; }
.work-card em { padding: 4px 8px; border-radius: 7px; color: #b45700; background: #fff0df; font-style: normal; font-size: 11px; }
.work-card .green-status { color: #087545; background: #dff8e9; }
.new-work { width: 100%; height: 54px; margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #334155; }
.service-head { min-height: 82px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.service-head h1 { margin: 0; font-size: 30px; }
.service-head small { color: var(--muted); }
.service-head span { padding: 8px 12px; border-radius: 8px; color: #b45700; background: #fff0df; }
.service-head button { margin-left: auto; height: 42px; border: 1px solid #ccd8e5; border-radius: 8px; background: #fff; padding: 0 16px; }
.service-head button + button { margin-left: 0; }
.green-btn { color: #fff !important; border: 0 !important; background: var(--green) !important; }
.blue-btn { color: #fff !important; border: 0 !important; background: var(--blue) !important; }
.service-grid { padding: 14px; display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 12px; }
.vehicle-card { grid-column: 1 / -1; }
.vehicle-info { display: grid; grid-template-columns: 1fr 230px 1fr; gap: 22px; }
.vehicle-info p { color: var(--muted); margin: 10px 0; }
.vehicle-info b, .vehicle-info small { display: block; color: var(--ink); margin-top: 4px; }
.car-photo { min-height: 170px; border-radius: 8px; background: radial-gradient(circle at 50% 30%, #ffffff, #e8eef5 48%, #d7e0ea), linear-gradient(160deg, transparent 50%, #ccd8e5 51%); position: relative; overflow: hidden; }
.car-photo:after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 38px; height: 58px; border-radius: 50px 50px 18px 18px; background: linear-gradient(#f7fbff, #b9c5d2); box-shadow: inset 0 -12px 0 rgba(0,0,0,.12); }
.complaint { border: 1px solid #ffc174; border-radius: 8px; padding: 12px; background: #fffaf2; }
.complaint p { margin: 8px 0 0; }
.timeline { margin: 10px 0 0; padding-left: 20px; border-left: 2px solid #b9d9ff; }
.timeline li { margin: 0 0 18px; padding-left: 12px; }
.timeline b, .timeline span, .timeline small { display: block; }
.timeline b { color: #087545; }
.checklist-card p, .service-info p { display: flex; justify-content: space-between; margin: 14px 0; color: var(--muted); }
.checklist-card b, .service-info b { color: #087545; }
.quote-table { grid-column: 1 / -1; }
.quote-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.quote-total button { border: 0; color: var(--blue); background: transparent; font-weight: 800; }
.quote-total strong { color: var(--blue); font-size: 22px; }
.side-panel { padding: 12px; display: grid; gap: 12px; align-content: start; }
.chat { min-height: 260px; padding: 18px; border-radius: 8px; background: #f5efe9; }
.chat p, .attachment { width: fit-content; max-width: 86%; padding: 12px 14px; border-radius: 8px; line-height: 1.45; background: #fff; }
.chat small, .attachment small { display: block; margin-top: 8px; color: var(--muted); text-align: right; }
.outgoing, .attachment { margin-left: auto; background: #dcf8c6 !important; }
.attachment { color: #14422d; font-weight: 800; }
.quote-summary p { display: flex; justify-content: space-between; color: var(--muted); }
.quote-summary p:nth-of-type(4) b { color: var(--blue); font-size: 22px; }
.quote-summary button { width: 100%; height: 52px; border: 1px solid #ffc174; border-radius: 8px; color: #b45700; background: #fffaf2; font-weight: 850; }
.automation-layout { display: grid; grid-template-columns: minmax(900px, 1fr) 390px; gap: 14px; }
.flow-section { padding: 14px; }
.rule-head { min-height: 64px; margin-bottom: 12px; }
.rule-head h1 { margin: 0 0 8px; font-size: 20px; }
.rule-head h2 { margin: 0; font-size: 17px; }
.rule-head h2 span { margin-left: 12px; padding: 4px 10px; border-radius: 999px; color: var(--green); background: #dff8e9; font-size: 12px; }
.rule-head button { height: 38px; min-width: 92px; border: 1px solid #ccd8e5; border-radius: 8px; background: #fff; }
.publish-btn { color: #fff !important; border: 0 !important; background: linear-gradient(135deg, #0bb58a, #079c8f) !important; }
.flow-canvas { height: 640px; border: 1px solid var(--line); border-radius: 8px; position: relative; overflow: hidden; background-image: radial-gradient(#dce7ef 1px, transparent 1px); background-size: 14px 14px; }
.flow-canvas:before { content: ""; position: absolute; left: 172px; right: 210px; top: 112px; height: 2px; background: #0b2447; }
.flow-canvas:after { content: ""; position: absolute; left: 160px; right: 350px; top: 390px; height: 2px; background: #0b2447; }
.toolbox { position: absolute; left: 10px; top: 10px; width: 42px; display: grid; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; z-index: 2; }
.toolbox button { height: 30px; border: 0; border-radius: 6px; background: transparent; font-size: 10px; }
.node { position: absolute; min-width: 142px; min-height: 62px; border: 1px solid #91d8bd; border-radius: 8px; padding: 10px; display: grid; place-items: center; background: #f8fffc; color: #172033; font-weight: 780; text-align: center; box-shadow: 0 10px 24px rgba(14,42,70,.06); }
.node.blue { border-color: #7eb6f4; background: #f4f9ff; }.node.purple { border-color: #b5a4f5; background: #fbf8ff; }.node.green { border-color: #8bd8bd; background: #f6fffb; }.node.orange { border-color: #ffc174; background: #fffaf2; }.node.red { border-color: #ff9d9d; background: #fff8f8; }
.decision { min-width: 86px; min-height: 86px; transform: rotate(45deg); border-color: #ffa826; color: #d77100; background: #fffaf0; }
.decision:hover { transform: rotate(45deg) translateY(-2px); }
.n1 { left: 82px; top: 82px; }.n2 { left: 260px; top: 82px; }.n3 { left: 438px; top: 82px; }.d1 { left: 625px; top: 70px; }.n4 { left: 782px; top: 82px; }.n5 { right: 65px; top: 82px; }.n6 { left: 455px; top: 230px; }
.n7 { right: 66px; top: 250px; }.n8 { right: 250px; top: 365px; }.n9 { right: 445px; top: 365px; }.d2 { left: 622px; top: 350px; }.n10 { left: 448px; top: 500px; }.n11 { left: 250px; top: 365px; }.d3 { left: 125px; top: 350px; }.n12 { left: 80px; top: 500px; }.n13 { left: 305px; top: 500px; }.n14 { left: 505px; top: 500px; }.n15 { left: 700px; top: 500px; }
.automation-side { display: grid; gap: 12px; align-content: start; }
.phone { width: 280px; min-height: 315px; margin: 12px auto 0; border: 10px solid #172033; border-radius: 34px; overflow: hidden; background: #f5f0ea; }
.phone-top { height: 46px; background: #e7edf4; }
.phone p { margin: 28px 18px; padding: 14px; border-radius: 8px; background: #dcf8c6; line-height: 1.45; }
.phone small { display: block; color: var(--muted); text-align: right; }
.phone-input { margin: 0 14px 14px; border-radius: 999px; padding: 11px 14px; color: var(--muted); background: #fff; }
.pdf-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 12px; background: #fbfdff; }
.pdf-card b { color: var(--blue); font-size: 26px; }
.pdf-preview button { margin-top: 10px; border: 1px solid #ccd8e5; border-radius: 8px; background: #fff; padding: 8px 12px; }
.variables p { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; margin: 0; border-bottom: 1px solid #edf2f7; color: var(--teal); font-weight: 850; }
.variables span { color: var(--muted); font-weight: 500; }
.failed-wa h2 b { float: right; width: 26px; height: 26px; border-radius: 999px; display: inline-grid; place-items: center; color: var(--red); background: #ffe2e2; font-size: 12px; }
.automation-bottom { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 180px) 1.2fr 1fr; gap: 12px; }
.metric-card { min-height: 118px; padding: 16px; }
.metric-card small, .metric-card span { color: var(--muted); }
.metric-card strong { display: block; margin: 10px 0; font-size: 30px; }
.selected { outline: 2px solid rgba(15,116,232,.34) !important; outline-offset: -2px; }
tbody tr, .kpi-card, .node, .metric-card { cursor: pointer; }
tbody tr:hover, .kpi-card:hover, .node:hover, .metric-card:hover, .work-card:hover { outline: 2px solid rgba(8,168,153,.22); outline-offset: -2px; }
.toast { position: fixed; right: 22px; bottom: 22px; padding: 14px 18px; border-radius: 8px; color: #fff; background: #061f3f; box-shadow: 0 18px 36px rgba(0,0,0,.22); opacity: 0; transform: translateY(18px); pointer-events: none; transition: .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 1300px) {
  .app-shell { grid-template-columns: 230px 1fr; }
  .kpi-grid, .dashboard-grid, .service-layout, .automation-layout, .automation-bottom { grid-template-columns: 1fr; }
  .schedule-panel, .lift-panel, .workorders-panel, .vehicles-panel, .receivable-panel, .vehicle-card, .quote-table { grid-column: auto; }
  .flow-canvas { min-width: 1120px; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; }
  .topbar { flex-wrap: wrap; }
  .top-select { margin-left: 0; width: 100%; }
  .top-select select { width: 100%; }
  .quick-actions, .lift-grid, .vehicle-info, .service-grid, .filter-grid { grid-template-columns: 1fr; }
}
