:root{color-scheme:dark;--bg:#0a1020;--panel:#101a2c;--panel2:#141f34;--panel3:#192740;--border:#283751;--text:#f0f4fb;--muted:#97a8c3;--blue:#5f9bff;--blue2:#8cb8ff;--green:#40d3a1;--amber:#f2bd67;--red:#f28591;--shadow:0 22px 65px #0005;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}svg{flex-shrink:0}input,select,textarea{width:100%;outline:none;border:1px solid var(--border);background:#0d1729;color:var(--text);border-radius:11px;padding:11px 13px;transition:border-color .16s,box-shadow .16s}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #5f9bff21}textarea{min-height:86px;resize:vertical}input::placeholder,textarea::placeholder{color:#7386a4}label{font-size:.81rem;color:#bac9df;font-weight:650;display:block;margin-bottom:8px}h1,h2,h3,h4,p{margin-top:0}.muted{color:var(--muted)}.tiny{font-size:.76rem}.small{font-size:.86rem}.mono{font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.subtle{font-weight:400}.brand-icon{width:43px;height:43px;border-radius:13px;background:linear-gradient(145deg,#25467b,#1c2b49);display:grid;place-items:center;border:1px solid #5073a944;box-shadow:0 8px 24px #0002}.brand-icon svg{width:26px;height:26px}.brand{display:flex;gap:12px;align-items:center}.brand strong{display:block;font-size:1.25rem;letter-spacing:-.05em}.brand strong span{color:var(--blue2)}.brand small{color:var(--muted);font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700}.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:#0d1728;border-right:1px solid var(--border);padding:30px 17px;display:flex;flex-direction:column;gap:31px;position:sticky;top:0;height:100vh}.sidebar .brand{padding:0 10px}.nav-heading{font-size:.69rem;color:#627590;padding:0 12px;margin:0 0 12px;letter-spacing:.15em;font-weight:800}.nav-stack{display:grid;gap:5px}.nav-btn{display:flex;align-items:center;gap:13px;width:100%;padding:13px 14px;background:transparent;border:1px solid transparent;border-radius:12px;text-align:left;color:var(--muted);font-weight:650;font-size:.89rem}.nav-btn svg{width:18px;height:18px;stroke-width:1.75}.nav-btn:hover{background:#17263e;color:#e4eeff}.nav-btn.active{background:linear-gradient(90deg,#244571,#1a2b48);border-color:#3c5b84;color:#e6f0ff;box-shadow:inset 3px 0 var(--blue)}.sidebar-footer{margin-top:auto;padding:16px 12px;border:1px solid #263650;background:#111f34;border-radius:14px}.sidebar-footer .label-status{font-size:.74rem;color:var(--green);display:flex;align-items:center;gap:8px;font-weight:750}.dot{width:7px;height:7px;background:currentColor;border-radius:50%;display:inline-block}.sidebar-footer p{font-size:.74rem;color:var(--muted);line-height:1.5;margin:9px 0 0}.main{min-width:0}.topbar{padding:23px clamp(21px,3vw,48px);height:92px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:15px;background:#0c1527}.topbar-left{display:flex;align-items:center;gap:14px}.topbar .crumb{font-size:.84rem;color:var(--muted)}.topbar strong{font-size:.94rem}.topbar-right{display:flex;align-items:center;gap:14px}.avatar{width:35px;height:35px;display:grid;place-items:center;background:#263d60;border:1px solid #4a6690;border-radius:50%;font-weight:700;color:#aecfff;font-size:.79rem}.workspace{padding:clamp(20px,3vw,42px) clamp(20px,3.6vw,56px) 110px;max-width:1600px;margin:auto}.eyebrow{font-size:.73rem;letter-spacing:.13em;text-transform:uppercase;color:var(--blue2);font-weight:800;margin:0 0 10px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 27px}.page-heading h1{font-size:clamp(1.63rem,3vw,2.3rem);letter-spacing:-.058em;line-height:1.14;margin:0 0 8px;font-weight:790}.page-heading p{font-size:.9rem;color:var(--muted);margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:11px;min-height:42px;padding:10px 16px;border:1px solid var(--border);background:#1b2940;color:#eaf2ff;font-weight:750;font-size:.86rem;white-space:nowrap;transition:transform .13s,background .13s}.btn:hover:not(:disabled){transform:translateY(-1px);background:#253a59}.btn svg{width:17px;height:17px}.btn.primary{background:linear-gradient(115deg,#397ae8,#609cff);color:white;border-color:#6998ed;box-shadow:0 8px 24px #1a4c9e37}.btn.primary:hover{background:linear-gradient(115deg,#478af5,#7aacff)}.btn.ghost{border-color:transparent;background:transparent;color:var(--muted)}.btn.ghost:hover{color:white;background:var(--panel3)}.btn.danger{color:#ffd4d8;border-color:#8e465766;background:#4a28343c}.btn.sm{font-size:.79rem;padding:7px 11px;min-height:34px}.btn.icon-btn{width:40px;min-width:40px;padding:0}.btn.block{width:100%}.btn.text{background:transparent;border:0;color:var(--blue2);padding:4px 6px;min-height:0}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.stat{padding:22px 22px 19px;background:linear-gradient(145deg,#17243a,#121e32);border:1px solid var(--border);border-radius:17px;min-height:145px;position:relative;overflow:hidden}.stat:after{content:"";position:absolute;width:118px;height:118px;border-radius:50%;top:-72px;right:-29px;background:radial-gradient(circle,#5f9bff1f,transparent 70%)}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.stat-icon{width:37px;height:37px;display:grid;place-items:center;background:#2a4264;border-radius:12px;color:#93bdff}.stat-icon svg{width:18px;height:18px}.stat:nth-child(2) .stat-icon{color:var(--amber);background:#66503360}.stat:nth-child(3) .stat-icon{color:var(--green);background:#285f5555}.stat:nth-child(4) .stat-icon{color:#b9a4ff;background:#4e3f7a65}.stat .stat-title{color:var(--muted);font-size:.77rem;font-weight:750;margin:16px 0 7px}.stat .stat-value{font-size:clamp(1.4rem,2.3vw,2rem);font-weight:800;letter-spacing:-.055em;line-height:1}.stat .stat-caption{font-size:.7rem;color:#7185a4;margin-top:9px}.surface{border:1px solid var(--border);background:var(--panel);border-radius:17px;overflow:hidden}.surface-pad{padding:23px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.section-title h2{margin:0;font-size:1.08rem;letter-spacing:-.027em}.section-title small{color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,.8fr);gap:20px}.row-table{width:100%;border-collapse:collapse}.row-table th{text-align:left;font-size:.7rem;letter-spacing:.055em;text-transform:uppercase;font-weight:800;color:#8296b4;padding:13px 17px;background:#141f31;border-bottom:1px solid var(--border)}.row-table td{padding:15px 17px;border-bottom:1px solid #26344a;font-size:.83rem;vertical-align:middle}.row-table tr:last-child td{border-bottom:0}.row-table tbody tr{transition:background .12s}.row-table tbody tr:hover{background:#19283e}.strong{font-weight:750;color:#edf4ff}.stack{display:grid;gap:4px}.badge-status{display:inline-flex;align-items:center;gap:7px;border-radius:30px;padding:6px 10px;font-size:.7rem;font-weight:800;background:#28436a;color:#9dc6ff;white-space:nowrap}.badge-status.aberta{background:#273c5d;color:#9cc5ff}.badge-status.aguardando_aprovacao,.badge-status.aguardando_pecas{background:#5a482e;color:#ffcf86}.badge-status.em_andamento{background:#2d4a75;color:#a4c7ff}.badge-status.finalizada,.badge-status.entregue{background:#224f47;color:#72edbd}.badge-status.cancelada{background:#54313d;color:#ffa6b1}.item-click{cursor:pointer}.text-link{color:var(--blue2);font-weight:750;cursor:pointer;background:transparent;border:0;padding:0}.text-link:hover{text-decoration:underline}.quick-list{display:grid;gap:11px}.quick-card{border:1px solid #2c3c56;background:#142239;padding:15px 16px;border-radius:12px;display:flex;gap:12px;align-items:center;justify-content:space-between;min-width:0}.quick-card .iconbox{background:#294366;color:#a4c6f9;display:grid;place-items:center;border-radius:10px;width:37px;height:37px}.quick-card .iconbox svg{width:18px}.quick-card strong{font-size:.84rem;display:block}.quick-card small{font-size:.74rem;color:var(--muted);display:block;margin-top:5px}.quick-arrow{color:#7a8fae}.help-note{margin-top:16px;color:#8195b1;font-size:.78rem;line-height:1.6}.toolbar{padding:17px;display:flex;align-items:center;gap:12px;justify-content:space-between;border-bottom:1px solid var(--border);flex-wrap:wrap}.searchbox{position:relative;min-width:220px;max-width:440px;flex:1}.searchbox svg{position:absolute;top:12px;left:13px;color:#7388a9;width:18px;height:18px}.searchbox input{padding-left:40px}.toolbar .filter{width:auto;min-width:165px}.empty{padding:58px 24px;text-align:center;display:grid;justify-items:center}.empty .empty-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:18px;background:#223757;color:#a2c3fb;margin-bottom:19px}.empty svg{width:29px;height:29px}.empty h3{margin:0 0 8px;font-size:1.08rem}.empty p{color:var(--muted);font-size:.86rem;max-width:380px;line-height:1.65}.cards-mobile{display:none}.badge-count{display:inline-flex;background:#24334c;color:#9cb0cc;border-radius:20px;padding:3px 9px;font-size:.7rem}.vehicle-tag{font-size:.72rem;color:#bcd1ee;background:#243852;border:1px solid #364969;border-radius:7px;padding:3px 7px;display:inline-flex;align-items:center;width:fit-content;font-weight:780;letter-spacing:.045em}.customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:18px}.entity-card{border:1px solid var(--border);background:#142035;border-radius:14px;padding:19px;display:grid;gap:16px}.entity-top{display:flex;align-items:center;gap:12px}.entity-avatar{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:#29476a;color:#a5c6fa;font-size:1rem;font-weight:850}.entity-card h3{font-size:.89rem;margin:0 0 6px}.entity-card p{font-size:.78rem;color:var(--muted);margin:0}.entity-card .actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #2a3a50;padding-top:14px}.entity-card .tags{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#8fa4c0;font-size:.76rem}.editor-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(255px,.7fr);gap:21px;align-items:start}.form-section{padding:25px;border-bottom:1px solid var(--border)}.form-section:last-child{border-bottom:0}.form-section h2{font-size:1rem;margin:0 0 18px;display:flex;gap:9px;align-items:center}.form-section h2 .number{width:23px;height:23px;background:#315080;color:#b8d8ff;display:grid;place-items:center;border-radius:7px;font-size:.73rem}.fields{display:grid;gap:16px}.fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{min-width:0}.field input,.field select{min-width:0}.helper{font-size:.73rem;color:var(--muted);margin-top:6px;line-height:1.4}.items-head{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:16px}.items-head h2{margin:0}.item-line{display:grid;grid-template-columns:110px minmax(120px,2fr) 75px 125px 36px;align-items:end;gap:10px;padding:14px 0;border-bottom:1px solid #29384e}.item-line:last-child{border-bottom:0}.item-line label{font-size:.7rem}.item-line input,.item-line select{padding:10px}.item-line .btn{margin-bottom:1px}.empty-items{background:#142237;border:1px dashed #345074;padding:23px;text-align:center;color:var(--muted);border-radius:10px;font-size:.83rem}.summary-side{position:sticky;top:20px}.summary-number{font-size:2.2rem;letter-spacing:-.05em;font-weight:850}.line-total{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:13px;font-size:.86rem}.line-total .muted{font-weight:550}.line-total.important{border-top:1px solid var(--border);padding-top:18px;font-size:1.1rem;font-weight:850}.history-timeline{border-left:1px solid #355175;margin-left:7px;padding-left:19px;display:grid;gap:18px}.history-event{position:relative}.history-event:before{content:"";position:absolute;left:-24px;top:3px;width:9px;height:9px;border-radius:50%;background:var(--blue);border:2px solid #13223b}.history-event strong{font-size:.78rem;display:block}.history-event small{font-size:.7rem;color:var(--muted);display:block;margin-top:4px}.settings-card{max-width:720px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.detail-block{background:#15243a;border:1px solid var(--border);border-radius:12px;padding:16px}.detail-block h3{font-size:.8rem;margin:0 0 10px}.detail-block p{color:var(--muted);font-size:.84rem;line-height:1.6;margin:0}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-showcase{background:radial-gradient(circle at 20% 10%,#1b4672 0,transparent 35%),radial-gradient(circle at 100% 90%,#163a6f 0,transparent 42%),#0f1e33;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(32px,6vw,90px);border-right:1px solid #2b4267}.auth-showcase h1{font-size:clamp(2.2rem,5vw,4.8rem);line-height:1.07;letter-spacing:-.065em;max-width:610px;margin:0 0 26px}.auth-showcase h1 span{color:#80b0ff}.auth-showcase p{color:#adbfda;max-width:470px;line-height:1.8}.auth-content{display:grid;place-items:center;padding:24px;background:var(--bg)}.auth-box{max-width:410px;width:100%}.auth-box h2{font-size:1.9rem;letter-spacing:-.05em;margin:0 0 9px}.auth-box>p{color:var(--muted);line-height:1.6;font-size:.9rem;margin-bottom:29px}.auth-box .field{margin-bottom:17px}.auth-bullets{display:grid;gap:16px;margin-top:34px}.auth-bullets div{display:flex;align-items:center;gap:13px;color:#b3c8e5;font-size:.88rem}.auth-bullets svg{color:#86b4fc;width:18px}.mobile-header,.mobile-nav{display:none}.modal-layer{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:20;background:#020611c9;padding:17px;backdrop-filter:blur(6px)}.modal{width:min(100%,610px);max-height:min(90vh,780px);overflow-y:auto;background:#142037;border:1px solid #3c5272;border-radius:19px;box-shadow:var(--shadow)}.modal-header{padding:21px 25px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.modal-header h2{margin:0;font-size:1.13rem}.modal-body{padding:25px}.modal-footer{padding:19px 25px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border)}#toast{position:fixed;bottom:25px;right:24px;z-index:99;max-width:min(90vw,410px);display:none;padding:15px 19px;border-radius:12px;background:#203954;border:1px solid #568ac4;box-shadow:var(--shadow);font-size:.85rem;font-weight:650}#toast.visible{display:block}#toast.error{border-color:#a85163;background:#4a2835}.loading-screen{height:100vh;display:grid;align-content:center;justify-items:center;gap:16px;color:var(--muted)}.loader{width:32px;height:32px;border:3px solid #304a6d;border-top-color:var(--blue);border-radius:50%;animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.actions-inline{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.aside-footnote{font-size:.74rem;line-height:1.6;color:#8094b2;margin-top:16px}.inline-icon{display:inline-flex;gap:8px;align-items:center}.inline-icon svg{width:16px;height:16px}.separator{border:0;border-top:1px solid var(--border);margin:16px 0}.mobile-order{display:grid;gap:9px}.mobile-order-top{display:flex;gap:8px;justify-content:space-between;align-items:start}.mobile-order .name{font-weight:760;font-size:.91rem}.mobile-order .subtitle{color:var(--muted);font-size:.77rem}.mobile-order .foot{display:flex;justify-content:space-between;align-items:center;margin-top:4px}.note-box{background:#14243a;border:1px solid #284e77;border-radius:12px;padding:14px 16px;color:#b0c9ed;line-height:1.6;font-size:.82rem}
@media(max-width:1250px){.stat-grid{grid-template-columns:repeat(2,1fr)}.customer-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.editor-grid{grid-template-columns:1fr}.summary-side{position:static}.row-table th,.row-table td{padding-left:12px;padding-right:12px}}
@media(max-width:800px){.shell{display:block}.sidebar{display:none}.topbar{height:70px;padding:12px 18px}.topbar .crumb{display:none}.topbar-right .small{display:none}.workspace{padding:24px 16px 100px}.mobile-header{display:flex}.mobile-header .brand strong{font-size:1.1rem}.mobile-nav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;background:#111d32ec;border-top:1px solid #33435f;backdrop-filter:blur(15px);padding:7px 6px calc(7px + env(safe-area-inset-bottom));z-index:10}.mobile-nav button{background:transparent;border:0;display:grid;justify-items:center;gap:5px;color:#869cb9;font-size:.62rem;padding:5px 0}.mobile-nav button svg{width:21px;height:21px}.mobile-nav button.active{color:var(--blue2)}.page-heading{align-items:flex-start}.page-heading h1{font-size:1.65rem}.page-heading p{font-size:.79rem}.page-heading .btn{padding:9px 10px;font-size:.77rem}.stat-grid{gap:10px}.stat{padding:16px;min-height:134px}.stat .stat-title{font-size:.7rem}.stat .stat-value{font-size:1.5rem}.auth-layout{display:block}.auth-showcase{display:none}.auth-content{min-height:100vh}.customer-grid{grid-template-columns:1fr;padding:12px}.row-table.hide-mobile,.hide-mobile{display:none}.cards-mobile{display:grid;gap:10px;padding:12px}.cards-mobile .entity-card{padding:15px}.item-line{grid-template-columns:1fr 1fr 40px}.item-line .item-desc{grid-column:1/-1;grid-row:2}.item-line .item-kind{grid-column:1/3}.item-line .item-delete{grid-column:3;grid-row:1;align-self:end}.item-line .item-qty{grid-column:1}.item-line .item-price{grid-column:2}.form-section{padding:19px 15px}.fields.three{grid-template-columns:1fr 1fr}.modal-body{padding:18px}.modal-footer{padding:15px}.modal-header{padding:18px}.detail-grid{grid-template-columns:1fr}.toolbar{gap:9px}.searchbox{min-width:100%;max-width:none}.toolbar .filter{flex:1}}
@media(max-width:470px){.page-heading{flex-direction:column;align-items:stretch;gap:13px}.page-heading .btn{align-self:flex-start}.fields.two,.fields.three{grid-template-columns:1fr}.stat .stat-value{font-size:1.3rem}.stat-icon{width:32px;height:32px}.surface-pad{padding:17px}.topbar-right{gap:6px}.auth-box h2{font-size:1.6rem}.item-line{grid-template-columns:1fr 1fr 40px}}

/* Personalização da marca da oficina */
.brand-icon-photo{overflow:hidden;background:#eef4ff;border-color:#536f94}
.brand-icon-photo img,.avatar-logo img{width:100%;height:100%;object-fit:contain}
.avatar-logo{overflow:hidden;background:#f6f8fd;border:1px solid #4c6a91}
.logo-settings-grid{display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.logo-preview{background:#f4f7fb;border:1px dashed #7690af;border-radius:16px;width:230px;max-width:100%;height:150px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:15px;color:#55627b}
.logo-preview img{display:block;width:100%;height:100%;object-fit:contain}
.logo-empty{display:grid;justify-items:center;gap:10px;text-align:center;font-size:13px}
.logo-empty svg{width:40px;height:40px;color:#55709d}
.logo-controls{display:flex;align-items:flex-start;flex-direction:column;gap:13px;max-width:360px}
.logo-controls p{line-height:1.55;margin:0}
.logo-controls .btn{cursor:pointer}
.logo-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}
.logo-file-input:focus-visible + .btn{outline:2px solid #8fc1ff}
@media(max-width:600px){.logo-settings-grid{display:grid;gap:18px}.logo-preview{width:100%;max-width:290px}}


/* v1.2 — tamanho consistente dos ícones e histórico legível */
svg{width:20px;height:20px;flex-shrink:0}
.quick-card>svg,.customer-history-link>svg{width:18px;height:18px}
.quick-card>div,.quick-card>span:first-child{min-width:0}
.customer-history-item{display:flex;align-items:center;gap:12px;min-width:0;border:1px solid #2c3c56;background:#142239;border-radius:12px;padding:8px 10px}
.customer-history-link{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;min-width:0;border:0;background:transparent;color:inherit;text-align:left;padding:8px 6px;border-radius:8px}
.customer-history-link:hover{background:#1b2c47}
.customer-history-text{display:block;min-width:0;flex:1;overflow-wrap:anywhere}
.customer-history-text strong{display:block;font-size:.85rem;line-height:1.45}
.customer-history-text small{display:block;color:var(--muted);font-size:.75rem;margin-top:5px;line-height:1.45}
.customer-history-item>.btn{flex-shrink:0}
.btn.btn-finish{background:#164e46;border:1px solid #2c806e;color:#d9fff0;font-weight:720}
.btn.btn-finish:hover{background:#20685b;border-color:#57bfa2}
.btn.btn-finish:focus-visible,.customer-history-link:focus-visible,.mobile-order-link:focus-visible{outline:2px solid #80cdb4;outline-offset:2px}
.mobile-order-link{display:block;width:100%;border:0;background:transparent;color:inherit;padding:0;text-align:left}
.mobile-finish-action{padding-top:10px;border-top:1px solid #304158}
.mobile-finish-action .btn{width:100%;justify-content:center}
@media(max-width:640px){.customer-history-item{flex-wrap:wrap;gap:5px}.customer-history-link{flex-basis:100%}.customer-history-item>.btn{width:100%;justify-content:center}}
