@font-face{font-family:Inter;src:url('assets/inter.woff2') format('woff2');font-display:swap}@font-face{font-family:Sora;src:url('assets/sora.woff2') format('woff2');font-display:swap}:root{--navy:#061b2c;--navy2:#153b55;--yellow:#ffd000;--ink:#172b39;--muted:#657783;--line:#e3eaf0;--bg:#f4f6f8;--white:#fff;--green:#16794f;--red:#a8403a;--shadow:0 12px 40px #0b273710}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px Inter,Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.hidden{display:none!important}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at 14% 10%,#e7eef2,transparent 36%),linear-gradient(140deg,#f5f7f8,#e9eef1)}.back{position:absolute;top:24px;left:28px;color:#425c6c;font-size:12px;font-weight:700}.auth-card{width:min(450px,100%);padding:30px;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow)}.logo{width:min(290px,100%);height:84px;object-fit:contain;margin:0 auto 15px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.13em;color:#74848f}.auth-card>.eyebrow{text-align:center}.auth-card h1{text-align:center;font:700 24px Sora;margin:8px 0}.muted{color:var(--muted);font-size:12px;line-height:1.55}.auth-card>.muted{text-align:center;margin-bottom:20px}.auth-card label{display:grid;gap:6px;font-size:11px;font-weight:700;margin:13px 0;color:#4d6270}.auth-card input,.field input,.field select,.field textarea{border:1px solid #d8e1e7;border-radius:8px;padding:11px;background:white;color:var(--ink);min-width:0}.auth-card input:focus,.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid #ffd00065;border-color:#bc9900}.button{border:1px solid transparent;border-radius:8px;padding:10px 13px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.button.primary{background:var(--yellow);color:var(--navy)}.button.dark{background:var(--navy);color:white}.button.outline{background:white;border-color:#d9e2e8;color:#314a5b}.auth-card .button{width:100%;margin-top:8px}.textlink{display:block;margin:14px auto 0;border:0;background:transparent;color:#425c6c;font-size:11px;text-decoration:underline}.security{border-top:1px solid var(--line);margin-top:18px;padding-top:14px;color:#71818c;font-size:10px;line-height:1.5;text-align:center}.notice{padding:11px 12px;border-radius:8px;background:#fff4c4;border:1px solid #eddfaa;color:#5e4b00;font-size:11px;line-height:1.5;margin:12px 0}.notice.error{background:#fdecea;border-color:#f4c5c0;color:#91352e}.notice.ok{background:#e8f5ee;border-color:#c6e8d4;color:#176543}.app{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:var(--navy);color:#d1dde5;display:flex;flex-direction:column;z-index:20}.sidebrand{height:106px;padding:12px 18px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-bottom:1px solid #ffffff16}.sidebrand img{width:190px;height:56px;object-fit:contain}.sidebrand small{font-size:8px;letter-spacing:.18em;color:#9aafbd}.tenant{padding:15px 20px 5px;color:#9aafbd;font-size:10px;font-weight:800;letter-spacing:.1em}.nav{overflow:auto;padding:5px 10px 16px;display:grid;gap:3px}.navgroup{margin-top:10px}.navtitle{padding:7px 10px;color:#6f8999;font-size:9px;letter-spacing:.12em;font-weight:800}.nav button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;background:transparent;color:#c2d0d9;border-radius:8px;padding:9px 10px;font-size:11px;font-weight:600}.nav button:hover{background:#ffffff12}.nav button.active{background:var(--yellow);color:var(--navy);font-weight:800}.nav .ico{width:19px;text-align:center;font-size:15px}.sidefoot{margin-top:auto;border-top:1px solid #ffffff16;padding:13px;display:flex;align-items:center;gap:10px;font-size:11px}.sidefoot b,.sidefoot small{display:block;max-width:165px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidefoot small{font-size:9px;color:#a3b5c0;margin-top:3px}.avatar{width:32px;height:32px;border-radius:50%;background:#25475d;color:var(--yellow);display:grid;place-items:center;font-weight:800}.main{margin-left:244px;min-width:0}.topbar{height:77px;position:sticky;top:0;z-index:10;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 25px;gap:14px}.topbar small{color:var(--muted);font-size:10px}.topbar h2{font:700 17px Sora;margin:4px 0}.topactions{display:flex;align-items:center;gap:10px}.live-dot{font-size:10px;color:var(--green);font-weight:700}.live-dot:before{content:'';display:inline-block;width:7px;height:7px;background:#1b9a68;border-radius:50%;margin-right:6px}.hamb{display:none}.content{max-width:1560px;margin:auto;padding:26px 28px 55px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:20px}.page-head h1{font:700 24px Sora;margin:6px 0}.page-head p{font-size:12px;color:var(--muted);line-height:1.55}.actions{display:flex;gap:8px;flex-wrap:wrap}.grid{display:grid;gap:14px}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:17px;box-shadow:var(--shadow);min-width:0}.metric-label{font-size:10px;color:var(--muted);font-weight:700}.metric-value{font:700 23px Sora;margin:10px 0 5px;color:var(--navy)}.metric-note{font-size:10px;color:#81909b}.section-title{font:700 14px Sora;margin:0 0 13px}.toolbar{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:14px}.search{min-width:230px;border:1px solid var(--line);border-radius:8px;padding:9px 11px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px}th{text-align:left;text-transform:uppercase;letter-spacing:.06em;color:#85939d;font-size:9px;padding:11px 8px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:12px 8px;border-bottom:1px solid #edf1f3;color:#536774;vertical-align:middle}td strong{color:#203747}.badge{display:inline-flex;padding:5px 8px;border-radius:99px;background:#edf2f5;color:#506572;font-weight:700;font-size:9px;white-space:nowrap}.badge.yellow{background:#fff4c6;color:#6c5500}.badge.green{background:#e5f5eb;color:#176b46}.badge.red{background:#fdecea;color:#9f403a}.field{display:grid;gap:6px;margin:11px 0}.field label{font-size:11px;font-weight:700;color:#4b606e}.field textarea{min-height:72px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.full{grid-column:1/-1}.empty-state{border:1px dashed #ccd8df;border-radius:10px;padding:25px;text-align:center;color:#758691;font-size:12px;line-height:1.6;background:#fbfcfd}.status-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.status-line:last-child{border:0}.timeline{display:grid;gap:12px}.timeline-row{display:flex;gap:10px;border-bottom:1px solid var(--line);padding-bottom:12px}.dot{width:10px;height:10px;border-radius:50%;background:var(--yellow);margin-top:3px;flex:none}.timeline-row b{font-size:11px}.timeline-row p{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.5}.notice-panel{background:#fff8de;border:1px solid #f0e1a8;color:#5c4c12;border-radius:9px;padding:12px;font-size:11px;line-height:1.55}.modal-back{position:fixed;inset:0;z-index:30;background:#061b2c88;display:grid;place-items:center;padding:14px}.modal{background:#fff;width:min(700px,100%);max-height:92vh;overflow:auto;border-radius:14px;padding:20px;box-shadow:0 20px 70px #0003}.modal-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}.modal-head h2{font:700 18px Sora}.close{border:1px solid var(--line);background:#f6f8f9;border-radius:7px;padding:7px 10px}#toast{position:fixed;right:18px;bottom:18px;z-index:50;background:var(--navy);color:#fff;padding:12px 15px;border-radius:9px;opacity:0;transform:translateY(8px);transition:.2s;font-size:11px;pointer-events:none}#toast.show{opacity:1;transform:none}@media(max-width:1100px){.grid.four{grid-template-columns:repeat(2,1fr)}.content{padding:22px 18px}}@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:none}.main{margin-left:0}.hamb{display:block;background:none;border:0;font-size:19px;color:var(--navy)}.topbar{padding:0 12px}.topbar .live-dot{display:none}.content{padding:19px 12px 40px}.page-head{display:block}.page-head .actions{margin-top:12px}.grid.four,.grid.three,.grid.two{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.auth-wrap{padding:16px}.auth-card{padding:24px 19px}.back{top:13px;left:15px}}

.order-summary{margin:18px 0;padding:16px;border:1px solid #dce4ea;border-radius:10px;background:#f7f9fb}.order-summary h3{margin-top:0}.item-row{padding:14px;border:1px solid #dce4ea;border-radius:8px;margin:12px 0}.button.danger{color:#9c302b;border-color:#e0bab7;background:white}.modal:has(#orderForm){width:min(1000px,100%)}.modal .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.button:disabled{opacity:.55;cursor:not-allowed}
.crm-calendar{min-width:850px;table-layout:fixed}
.crm-calendar col.crm-hour-column{width:64px}
.crm-calendar td{vertical-align:top;padding:5px;min-height:36px}
.crm-slot{border:0;background:transparent;color:inherit;cursor:pointer;min-width:30px;min-height:30px}
.crm-event{display:block;width:100%;margin:4px 0;text-align:left;padding:8px;border:1px solid var(--event);border-left:4px solid var(--event);border-radius:8px;color:inherit;background:color-mix(in srgb,var(--event) 9%,transparent);cursor:pointer;overflow-wrap:anywhere}
.crm-today,.crm-now{background:#2563eb16}.crm-now{box-shadow:inset 0 2px #2563eb}
#crmProfileSummary{margin:16px 0}#crmProfileVehicles .card{margin:8px 0}
.crm-stage{color:inherit;background:color-mix(in srgb,var(--stage) 16%,transparent);border-left:4px solid var(--stage)}

.agenda-window,.app[data-page=agenda]:fullscreen{display:block;background:#f5f6f8;overflow:auto}
.agenda-window.hidden{display:none}
.agenda-window .sidebar,.agenda-window .hamb,.app[data-page=agenda]:fullscreen .sidebar,.app[data-page=agenda]:fullscreen .hamb{display:none}
.agenda-window .main,.app[data-page=agenda]:fullscreen .main{margin-left:0;width:100%}
.agenda-surface [aria-pressed=true]{color:#061b2c;background:#ffd000;border-color:#ffd000}
.agenda-surface .crm-calendar td{vertical-align:top}
.agenda-surface .table-scroll{overflow-x:auto}
.agenda-surface .crm-calendar{width:100%;min-width:0}
.agenda-surface .crm-calendar[data-mode=week],.agenda-surface .crm-calendar[data-mode=month]{min-width:1120px}
.agenda-surface .crm-event{cursor:grab;overflow-wrap:normal;font-size:14px}
.agenda-surface .crm-event[draggable=false]{cursor:default}
.crm-event .textlink{display:grid;justify-items:start;gap:4px;max-width:100%;text-align:left}
.crm-event .textlink strong{font-size:16px;white-space:normal;overflow-wrap:break-word}
.crm-event-time{font-size:14px;font-weight:800}
.crm-event small{display:inline-block;margin-top:4px;color:#4b5563;font-weight:600}
.crm-event-note{margin-top:.35rem;font-size:.8rem;color:#4b5563}
.crm-event-controls{display:flex;gap:.35rem;margin-top:.4rem}
.crm-event-controls button{min-width:2rem;min-height:2rem;border:1px solid #d6dde4;border-radius:5px;background:white;color:#061b2c}

.business-board{display:grid;grid-template-columns:repeat(9,minmax(220px,1fr));gap:.9rem;overflow-x:auto;padding-bottom:.75rem}
.business-board h3{margin-top:0}
.business-ticket{padding:.65rem;margin-top:.65rem;border:1px solid #dce2e9;border-left:4px solid #ffd000;border-radius:8px;cursor:grab;overflow-wrap:anywhere}
.business-ticket p{margin:.3rem 0}
#workshopBusiness .card,#workshopReceivables .card,#financePayables .card{margin-top:1rem}
.staff-grid { display:grid; grid-template-columns:minmax(160px, .65fr) minmax(0, 1.35fr); gap:16px; }
.staff-account { display:grid; gap:4px; width:100%; text-align:left; padding:12px; border:1px solid #dce1e8; background:#f5f6f8; color:#061b2c; border-radius:8px; margin-bottom:6px; overflow-wrap:anywhere; cursor:pointer; }
.staff-account:hover,.staff-account:focus-visible { border-color:#ac8800; background:#fff7c9; }
.staff-account small { color:#4b5563; }
.staff-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; flex-wrap:wrap; overflow-wrap:anywhere; }
.staff-form { display:grid; gap:12px; }
.staff-category { border:1px solid #dce1e8; border-radius:8px; padding:10px; margin:8px 0; }
.staff-category summary { cursor:pointer; font-weight:700; }
.staff-permission { padding:8px 0; border-bottom:1px solid #e7eaf0; }
.staff-permission:last-child { border-bottom:0; }
.staff-permission > div { display:flex; flex-wrap:wrap; gap:8px; padding-top:6px; }
.staff-check { display:inline-flex; gap:6px; align-items:center; }
.staff-check input { accent-color:#ffd000; }
#staffManager [role="alert"]:empty,#staffLink [role="alert"]:empty { display:none; }
@media (max-width:680px) { .staff-grid { grid-template-columns:1fr; } }
.staff-account[aria-pressed="true"] { border-color:#ac8800; background:#fff7c9; }
#staffSearch { display:flex; gap:8px; align-items:end; }
#staffSearch .field { flex:1 1 180px; }
.staff-heading p { margin-bottom:0; }

.workshop-fleet-brand { display:flex; align-items:center; gap:12px; }
.workshop-fleet-brand .fleet-brand-mark { width:min(180px,45vw); }
.workshop-fleet-brand .fleet-approved-avatar { width:64px; }

/* Agenda operacional para monitor da oficina */
.agenda-surface .crm-event-compact{padding:0;margin:2px 0;border-radius:5px}
.crm-event-compact button{display:block;width:100%;padding:4px 6px;border:0;background:transparent;color:#061b2c;text-align:left;font:inherit;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.crm-event-compact button:focus-visible{outline:2px solid #061b2c;outline-offset:-2px}
.agenda-surface .crm-calendar:has(.crm-event-compact) td{padding:3px}
.app[data-page=agenda]:fullscreen .topbar,.agenda-window .topbar{display:none}
.app[data-page=agenda]:fullscreen #content,.agenda-window #content{padding:8px}
.app[data-page=agenda]:fullscreen #content:has(.agenda-surface)>:not(#crmCalendar),.agenda-window #content:has(.agenda-surface)>:not(#crmCalendar){display:none}
.app[data-page=agenda]:fullscreen .agenda-surface,.agenda-window .agenda-surface{padding:8px;margin:0}
.app[data-page=agenda]:fullscreen .agenda-surface .toolbar,.agenda-window .agenda-surface .toolbar{flex-wrap:nowrap;gap:5px;overflow-x:auto;margin-bottom:6px}
.app[data-page=agenda]:fullscreen .agenda-surface .toolbar .button,.agenda-window .agenda-surface .toolbar .button{padding:5px 8px;white-space:nowrap}
.app[data-page=agenda]:fullscreen .agenda-surface h3,.agenda-window .agenda-surface h3{margin:4px 0}
.app[data-page=agenda]:fullscreen .crm-calendar[data-mode=week],.agenda-window .crm-calendar[data-mode=week]{min-width:700px}
.crm-event-compact button{white-space:normal;display:grid;gap:2px;padding:7px 8px}.crm-event-compact button strong{font-size:15px;overflow-wrap:break-word}.crm-event-compact button span{font-size:13px;overflow-wrap:break-word}
.crm-event-compact .crm-event-vehicle{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:14px}
.crm-event-compact .crm-event-mechanic{font-weight:400;white-space:normal}

.sidebar-close{display:none}
@media(max-width:760px){.sidebar-close{display:block;align-self:flex-end;margin:8px 12px 0;background:transparent;border:1px solid #8faabb;color:#fff;border-radius:6px;padding:7px 12px}}

@media(max-width:760px){
 .topbar>div{min-width:0}.topbar .topactions{flex-shrink:0}
 .topbar h2{font-size:15px;overflow-wrap:anywhere}
 .status-line{flex-wrap:wrap;align-items:flex-start}
 .status-line>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .status-line>span:last-child{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
 .actions{display:flex;flex-wrap:wrap;gap:6px}
 .actions .button{max-width:100%;white-space:normal}
}
.cadastro-picker-back{position:fixed;inset:0;z-index:3000;background:#061b2caa;display:grid;place-items:center;padding:12px}
.cadastro-picker-panel{background:#fff;color:#061b2c;border-radius:14px;width:min(760px,100%);max-height:90vh;display:flex;flex-direction:column;gap:12px;padding:20px;box-shadow:0 20px 60px #0005}
.cadastro-picker-panel input{width:100%;padding:12px;border:1px solid #b8c5d0;border-radius:8px;font:inherit}
.cadastro-picker-results{overflow:auto;min-height:100px;max-height:65vh;display:grid;align-content:start;gap:5px}
.cadastro-picker-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(140px,2fr) auto;gap:12px;align-items:center;text-align:left;background:#f5f6f8;color:#061b2c;border:1px solid #dbe3e8;border-radius:8px;padding:10px;cursor:pointer}
.cadastro-picker-row:hover,.cadastro-picker-row:focus{border-color:#ffcd00;background:#fff8d9}
.cadastro-picker-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cadastro-picker-row em{font-style:normal;font-weight:700}
@media(max-width:600px){.cadastro-picker-row{grid-template-columns:1fr auto}.cadastro-picker-row span{grid-column:1/-1;grid-row:2;white-space:normal}}
#crmFinanceOverview .card{display:flex;flex-direction:column;gap:12px;min-height:94px}
#crmFinanceOverview .card small{line-height:1.4;color:#536171;font-weight:600}
#crmFinanceOverview .card b{font-size:clamp(1.2rem,2vw,1.65rem);line-height:1.2}
#workshopReceivables .toolbar{align-items:center;gap:12px;flex-wrap:wrap}
#workshopReceivables td:last-child{white-space:nowrap}
#financePayables input[type=date],#financialReportForm input[type=date]{min-height:42px}
#orderForm .form-grid,#crmPaymentBundle .form-grid,#financialReportForm{gap:12px 16px}
#orderForm .field,#crmPaymentBundle .field,#financialReportForm .field{margin:0;align-content:start;line-height:1.4;font-weight:600;color:#405565}
#orderForm .field input,#orderForm .field select,#orderForm .field textarea,#crmPaymentBundle .field input,#crmPaymentBundle .field select,#financialReportForm .field input,#financialReportForm .field select{min-height:42px;width:100%}
#orderForm .section-title{margin:18px 0 12px}
#orderForm .order-summary{display:grid;gap:7px;margin:18px 0}
#orderForm .order-summary p{margin:0;line-height:1.5}
#orderForm>button[type=submit],#orderForm>button[data-close]{margin:8px 8px 0 0}
#crmPaymentBundle .crm-payment-split{border:1px solid var(--line);border-radius:10px;background:#f9fbfc;padding:14px;margin:12px 0}
#crmPaymentBundle .crm-payment-split [data-remove-split]{align-self:end;min-height:42px}
#crmPaymentBundle>p:first-child{line-height:1.6;margin:0 0 16px;color:#405565}
#crmPaymentBundle>button{min-height:42px;margin:6px 8px 0 0}
#financePeriod{justify-content:flex-start;align-items:end;gap:12px}
#financePeriod label{display:grid;gap:6px;min-width:150px;font-size:11px;font-weight:700;color:#405565}
#financePeriod input[type=date],#financePeriod .button{min-height:42px}
#financialReportForm .button{align-self:end;min-height:42px}
@media(max-width:760px){#crmPaymentBundle .crm-payment-split{padding:12px}#financePeriod label{min-width:min(100%,160px)}#financialReportForm .button{width:100%}}
