:root{--red:#c6212c;--navy:#1c303f;--ink:#142b3b;--muted:#72808b;--line:#dce0e4;--bg:#f3f4f5}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 Inter,Arial,sans-serif}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,a{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{color:var(--red)}button{border:0}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #d47980;outline-offset:3px}input,textarea{width:100%;border:1px solid var(--line);padding:13px;background:#fff;color:var(--ink);border-radius:0}input:focus,textarea:focus{outline:1px solid var(--red)}label{display:block;font-weight:600;margin-bottom:16px}label input,label textarea{margin-top:7px}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-.7px;line-height:1.2}h2{font-size:20px;line-height:1.3}h3{font-size:16px}small,.muted{font-size:12px;color:var(--muted)}[hidden]{display:none!important}.primary,.outline,.text-button{padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:600}.primary{background:var(--red);color:white}.primary:hover{background:#a51d27;color:#fff}.outline{border:1px solid var(--line);background:#fff;color:var(--ink)}.text-button{background:transparent;color:var(--red);padding:8px;font-size:12px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.6px;margin-bottom:12px}.brand{display:flex;align-items:center;gap:12px;padding:27px 22px;color:var(--ink)}.brand>b{font-size:36px;font-weight:900;line-height:1}.brand>b span{color:var(--red)}.brand strong{font-size:19px;letter-spacing:.5px}.brand strong>span{color:var(--red)}.brand small{display:block;font-size:8px;letter-spacing:1px}#sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:#fff;border-right:1px solid var(--line);z-index:20;display:flex;flex-direction:column}nav{margin-top:12px}nav a{display:flex;gap:15px;align-items:center;padding:18px 24px;font-size:12px;font-weight:750;text-transform:uppercase}nav a.active{background:var(--red);color:white}nav svg{width:18px;height:18px}#navCount{margin-left:auto;background:#f0f1f3;color:var(--navy);padding:0 6px}.side-note{margin:auto 20px 24px;padding:18px 12px;border:1px solid var(--line);font-size:9px;font-weight:700;letter-spacing:.5px}.side-note p{font-size:12px;font-weight:400;margin:12px 0 0;letter-spacing:0}.status-dot{display:inline-block;width:7px;height:7px;background:#33825c;border-radius:50%;margin-right:5px}.workspace{margin-left:244px}.topbar{display:flex;align-items:center;gap:20px;padding:18px 30px;background:var(--bg);position:sticky;top:0;z-index:10;border-bottom:1px solid var(--line)}.reference{display:flex;flex:1}.reference input{min-width:0;height:44px}.reference button{width:48px;height:44px;padding:10px}.hello{max-width:210px}.hello small{display:block;color:var(--red)}.hello span{font-size:11px;text-decoration:underline}.cart-header{display:flex;align-items:center;background:var(--navy);color:#fff;padding:12px 20px;gap:24px;min-width:165px;white-space:nowrap}.cart-header:hover{color:#fff}.cart-header small{display:block;color:#d7dfe5;text-align:center;font-size:10px}.cart-header svg{width:28px;height:28px}.icon-button{display:none;background:#fff;font-size:22px}main{padding:28px 30px;max-width:1800px;margin:auto}.page-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:7px 0 24px}.page-heading h1{margin:0}.page-heading>span,.section-heading>span{font-size:12px;color:var(--muted)}.page-heading .eyebrow{color:var(--red);margin-bottom:8px}.hero-grid{display:grid;grid-template-columns:minmax(320px,1fr) 1.65fr;gap:18px}.vehicle-search{background:var(--navy);color:#fff;padding:30px;display:flex;flex-direction:column;justify-content:center;min-height:335px}.vehicle-search h2{font-size:28px;letter-spacing:-.6px}.vehicle-search p{color:#c4cfd7;font-size:13px;max-width:360px}.vehicle-search label{font-size:12px;margin-bottom:6px}.plate-input{display:flex;height:52px}.plate-input>span{background:#073c99;color:#fff;width:30px;flex-shrink:0;font-size:12px;text-align:center;padding-top:4px}.plate-input b{display:block}.plate-input input{text-align:center;font-weight:750;letter-spacing:1.5px;min-width:0;margin:0;border:0;text-transform:uppercase}.plate-input button{font-size:11px;padding:10px}.vehicle-search small{color:#afbdc7;margin-top:22px;font-size:10px}.hero-promo{position:relative;overflow:hidden;background:#e8e9eb;display:flex;align-items:center;padding:30px;min-height:335px;border:1px solid var(--line)}.hero-promo>div{position:relative;z-index:1;max-width:65%}.hero-promo h2{font-size:35px;letter-spacing:-1px;line-height:1.08;margin-bottom:20px}.hero-promo h2 span{color:var(--red)}.hero-promo p{font-size:12px}.hero-promo img{position:absolute;right:-4%;width:49%;height:100%;object-fit:contain;mix-blend-mode:multiply}.hero-promo .eyebrow{color:var(--red);font-size:9px}.section-heading{margin-top:30px;margin-bottom:12px}.section-heading h2{margin:0;font-size:17px}.section-heading>a{font-size:12px;color:var(--red)}.activity-grid,.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.activity-card{background:#fff;padding:24px;border:1px solid var(--line);position:relative;min-height:165px;display:flex;flex-direction:column;gap:12px}.activity-card>svg{position:absolute;right:22px;top:20px;color:#89949c}.activity-card>span{font-size:9px;font-weight:700;color:var(--muted);padding-right:26px}.activity-card strong{font-size:21px;line-height:1.3}.activity-card>a{font-size:11px;color:var(--red)}.steps{background:#fff;border:1px solid var(--line);padding:28px;gap:32px}.steps article>b{font-size:22px;color:var(--red)}.steps h3{margin:10px 0}.steps p{font-size:12px;color:var(--muted);margin:0}.vehicle-bar{display:flex;gap:12px;align-items:center;border:1px solid var(--red);padding:12px 16px;background:#fff;margin-bottom:26px}.vehicle-bar>svg{color:var(--red)}.vehicle-bar strong{font-size:12px}.vehicle-bar .text-button{margin-left:auto;white-space:nowrap}.mini-plate{background:var(--navy);color:white;padding:4px 9px;font-weight:700;white-space:nowrap;font-size:11px}.catalog-toolbar{display:flex;align-items:center;gap:12px;background:white;border:1px solid var(--line);padding:16px}.catalog-toolbar input{max-width:300px}.catalog-toolbar>span{margin-left:auto;font-size:12px;color:var(--muted)}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;background:#fff;padding:26px;border:1px solid var(--line);border-top:0}.product-list{border-top:1px solid var(--line)}.product-row{display:grid;grid-template-columns:100px minmax(160px,1fr) 100px 120px 130px;align-items:center;gap:18px;padding:20px;background:#fff;border:1px solid var(--line);border-top:0}.product-row img,.cart-line img{width:90px;height:90px;object-fit:contain}.product-row .product-info strong{display:block;font-size:16px}.product-row p{font-size:12px;margin:4px 0}.product-row .price{font-size:20px;font-weight:750}.product-row .price small{display:block;font-size:10px;font-weight:400}.stock{font-size:11px;color:#23774c;white-space:nowrap}.product-actions input{padding:8px;text-align:center;margin-bottom:8px}.product-actions button{width:100%;font-size:11px;padding:9px}.product-row .brand-label{color:var(--red);font-size:10px;font-weight:700}.empty{padding:45px;background:#fff;border:1px solid var(--line);text-align:center;color:var(--muted)}.empty a{display:block;color:var(--red);margin-top:15px}.checkout-grid{display:grid;grid-template-columns:1fr 360px;gap:22px}.cart-line{display:grid;grid-template-columns:75px 1fr 70px 100px 28px;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);padding:18px;margin-bottom:12px}.cart-line img{width:70px;height:70px}.cart-line small{display:block}.cart-line input{padding:8px;text-align:center}.cart-line button{background:#fff1f2;color:var(--red);font-size:20px}.checkout-summary{background:#fff;border:1px solid var(--line);padding:25px;align-self:start}.checkout-summary .primary{width:100%}dl{margin:18px 0}dl>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}dt{color:var(--muted)}dd{margin:0;font-weight:600}.grand-total{border-top:1px solid var(--line);padding-top:15px;font-size:19px}.grand-total dt{color:var(--ink);font-weight:700}.order-row{display:flex;align-items:center;gap:20px;background:white;border:1px solid var(--line);padding:22px;margin-bottom:12px;width:100%;text-align:left}.order-row>div{flex:1}.order-row small{display:block}.badge{display:inline-block;padding:6px 10px;font-size:10px;font-weight:700;white-space:nowrap;background:#fff0d0;color:#926500}.badge.separated{background:#e4f1ff;color:#215a98}.badge.completed{background:#e2f5e9;color:#246842}.badge.cancelled{background:#fce4e5;color:#b62932}.pagination{display:flex;gap:20px;align-items:center;justify-content:center;margin-top:24px}.account-card{background:#fff;border:1px solid var(--line);padding:30px;max-width:760px}.account-card dl>div{padding-bottom:10px;border-bottom:1px solid var(--line)}footer{border-top:1px solid var(--line);margin-top:40px;padding:20px 0;color:var(--muted);font-size:10px;display:flex;justify-content:space-between;gap:18px}dialog{border:0;padding:34px;max-width:780px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;color:var(--ink);box-shadow:0 20px 90px #12243333}dialog::backdrop{background:#15283888}dialog h2{padding-right:35px}dialog .close{position:absolute;top:12px;right:12px;background:#fff1f2;color:var(--red);width:34px;height:34px;font-size:25px}#messageDialog{max-width:460px;text-align:center;padding-top:45px}#messageDialog .primary{min-width:120px}.success-symbol{background:#e3f5e9;color:#26834e;font-size:32px;border-radius:50%;width:62px;height:62px;margin:0 auto 20px}#notice{padding:13px 18px;background:#e7f3ea;border-left:3px solid #2b8754;margin-bottom:20px}#notice.error,.error{color:#b8222e}#notice.error{background:#fff0f1;border-color:var(--red)}.login-screen{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-story{background:var(--navy);color:#fff;position:relative;overflow:hidden;padding:40px 10%}.login-story .brand{padding:0;color:white;margin-bottom:80px}.login-story h1{font-size:58px;position:relative;z-index:1}.login-story>p{max-width:380px;position:relative;z-index:1}.login-story>img{position:absolute;width:70%;right:-8%;bottom:-5%;opacity:.45}.login-form{align-self:center;width:100%;max-width:470px;padding:50px;margin:auto}.login-form h2{font-size:34px;letter-spacing:-1px}.login-form>p{color:var(--muted)}.login-form>.primary{width:100%;justify-content:space-between}.login-form>.eyebrow{color:var(--red)}.login-form small{display:block;margin-top:22px}
@media(min-width:1550px){main{padding:35px 40px}.hero-promo{min-height:360px}.hero-promo h2{font-size:45px}}
@media(max-width:1200px){#sidebar{width:205px}.workspace{margin-left:205px}.brand{padding:25px 16px;gap:8px}.brand strong{font-size:16px}.topbar{padding:15px 22px;gap:12px}main{padding:24px 22px}.hello{display:none}.hero-grid{grid-template-columns:1fr 1fr}.hero-promo h2{font-size:29px}.hero-promo img{opacity:.4;width:60%}.hero-promo>div{max-width:90%}.vehicle-search{padding:24px}.plate-input button span{display:none}.product-row{grid-template-columns:85px 1fr 85px 95px;gap:12px}.product-row>.stock{grid-column:2;grid-row:2}.product-actions{grid-column:4;grid-row:1/3}.checkout-grid{grid-template-columns:1fr}.checkout-summary{max-width:none}.category-grid{grid-template-columns:repeat(2,1fr)}.cart-header{min-width:140px;gap:15px}}
@media(max-width:800px){#sidebar{transform:translateX(-100%);transition:transform .2s;width:244px;box-shadow:0 0 40px #10243233}body.menu-open #sidebar{transform:translateX(0)}.workspace{margin-left:0}.icon-button{display:block;padding:6px}.topbar{padding:10px 14px;gap:10px}.topbar>.text-button{display:none}.cart-header{min-width:auto;padding:10px;gap:10px}.cart-header small{display:none}.cart-header svg{width:20px}.cart-header strong{font-size:12px}.reference input{font-size:12px}.reference button{width:36px}main{padding:22px 16px}.page-heading h1{font-size:25px}.page-heading>span{display:none}.hero-grid{grid-template-columns:1fr}.hero-promo{min-height:270px}.hero-promo h2{font-size:35px}.hero-promo img{opacity:.8;width:45%}.hero-promo>div{max-width:70%}.vehicle-search{min-height:270px}.plate-input button span{display:block}.activity-grid{gap:8px}.activity-card{padding:16px 12px;min-height:180px}.activity-card>svg{display:none}.activity-card>span{padding:0;font-size:8px}.activity-card strong{font-size:17px}.steps{gap:20px;padding:20px}.steps h3{font-size:14px}.steps p{font-size:11px}.vehicle-bar{flex-wrap:wrap;gap:8px}.vehicle-bar strong{flex:1;min-width:180px}.vehicle-bar .text-button{padding:0}.catalog-toolbar{flex-wrap:wrap}.catalog-toolbar input{max-width:none;flex:1;min-width:140px}.catalog-toolbar>span{width:100%;margin:0}.category-grid{gap:16px;padding:16px}.product-row{grid-template-columns:65px 1fr 95px;padding:14px;gap:12px}.product-row img{width:60px;height:70px}.product-row .product-info strong{font-size:14px}.product-row .price{grid-column:2;font-size:17px}.product-actions{grid-column:3;grid-row:1/4}.product-row>.stock{grid-row:3}.cart-line{grid-template-columns:55px 1fr 60px 24px;gap:10px;padding:12px}.cart-line img{width:50px}.cart-line>strong{grid-column:2}.cart-line>button{grid-column:4;grid-row:1}.cart-line input{grid-column:3;grid-row:1}.order-row{padding:16px;gap:12px;flex-wrap:wrap}.order-row>div{min-width:160px}.order-row>strong{margin-left:auto}.login-screen{grid-template-columns:1fr}.login-story{padding:28px;min-height:260px}.login-story .brand{margin-bottom:35px}.login-story h1{font-size:38px}.login-story>p:not(.eyebrow){display:none}.login-story>img{width:45%;right:0}.login-form{padding:35px 24px}.login-form h2{font-size:28px}footer{flex-direction:column}}
@media(max-width:480px){.category-grid{grid-template-columns:1fr}.steps{grid-template-columns:1fr}.steps article{border-bottom:1px solid var(--line);padding-bottom:16px}.hero-promo h2{font-size:30px}.activity-grid{grid-template-columns:1fr}.activity-card{min-height:auto;gap:8px}.activity-card>svg{display:block}.page-heading{align-items:flex-start;flex-wrap:wrap}.hero-promo{padding:24px}}

@media(max-width:800px){.hero-promo img{opacity:.3;width:42%;right:-4%;bottom:0;height:75%}.hero-promo>div{max-width:88%}}

.stock.unavailable{color:#a04343;font-weight:600}.unavailable-note{font-size:11px;color:var(--muted);display:block;text-align:center;background:#f3f4f5;padding:14px 8px}

/* Uma única vista de categorias: cartões compactos, sem ilustrações. */
#categoryGrid{align-items:start;grid-auto-rows:auto;gap:24px}
#categoryGrid .category-card{display:flex;flex-direction:column;min-width:0;height:310px;padding:20px 16px 16px;border-bottom:2px solid var(--red);overflow:hidden;background:#fff}
#categoryGrid .category-card header{flex-shrink:0;min-height:54px;margin-bottom:12px}
#categoryGrid .category-card h3{font-size:16px;line-height:1.35;margin:0 0 5px;overflow-wrap:anywhere}
#categoryGrid .category-card header small{font-size:11px;color:var(--muted)}
#categoryGrid .category-links{min-height:0;overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:6px;padding-right:4px}
#categoryGrid .category-links button{display:block;flex-shrink:0;background:none;padding:2px 0;text-align:left;color:var(--ink);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
#categoryGrid .category-links button:hover{color:var(--red);text-decoration:underline}
#categoryGrid .category-all{flex-shrink:0;margin-top:auto;padding:14px 0 0;text-align:left;color:var(--red);background:#fff;font-size:12px;font-weight:700}
.category-no-results{grid-column:1/-1;padding:24px;color:var(--muted)}
@media(max-width:800px){#categoryGrid{gap:16px}#categoryGrid .category-card{padding:16px 8px;height:300px}}
#categoryGrid .category-links{overflow:hidden}
#categoryGrid .category-links button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* Ordem e agrupamento do catálogo normal TecPlus. */
@media(min-width:1350px){#categoryGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:20px}}
#categoryGrid .category-links button{display:flex;align-items:center;gap:10px;white-space:normal}
#categoryGrid .category-links button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
#categoryGrid .category-links button>small{flex-shrink:0;padding:1px 7px;background:#eef3fc;color:var(--red);border-radius:12px;font-size:10px}
#categoryGrid .category-card header b{color:var(--red)}
.category-footer{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-top:auto;padding-top:12px;flex-shrink:0;flex-wrap:wrap}
#categoryGrid .category-footer .category-all{margin:0;padding:7px 9px;background:var(--red);color:#fff;font-size:11px}
.category-products{background:none;color:var(--red);font-size:11px;padding:7px 0}
#typesList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#typesList button{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#f6f7f9;padding:13px;text-align:left;color:var(--ink)}
#typesList button:hover{background:#fcebed}#typesList span{overflow-wrap:anywhere}#typesList small{white-space:nowrap;color:var(--red)}
@media(max-width:600px){#typesList{grid-template-columns:1fr}}
/* Encomendas detalhadas e seleção de viaturas */
#categoryGrid .category-card{height:350px}#categoryGrid .category-card h3{font-size:18px}#categoryGrid .category-card header small{font-size:12px}#categoryGrid .category-links button{font-size:14px}#categoryGrid .category-links button>small{font-size:12px}.remove-vehicle{width:34px;height:34px;background:#fff0f1;color:#c6212c;font-size:26px;flex-shrink:0}.manual-search-button{padding:12px;margin-top:12px;background:#fff;color:var(--ink);font-weight:600;text-align:left}.vehicle-history{margin:26px 0}#vehicleHistory{display:flex;gap:12px;overflow:auto;padding-bottom:8px}.history-item{background:white;border:1px solid var(--line);padding:14px 18px;min-width:170px;text-align:left;color:var(--ink)}.history-item strong,.history-item span{display:block}.history-item span{font-size:12px;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item strong{color:var(--red)}
#manualVehicleDialog{width:min(1050px,94vw)}#manualNavigation{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}#manualNavigation button{padding:10px;background:#edf0f3;color:var(--ink)}#manualChoices{max-height:45dvh;overflow:auto;margin:16px 0;gap:12px;padding:2px}.brand-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.version-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.manual-choice{position:relative;padding:20px 12px 12px;border:1px solid var(--line);margin:0;cursor:pointer;min-width:0;background:white}.manual-choice:has(input:checked){border-color:var(--red);background:#fff6f7}.manual-choice input{width:18px;height:18px;position:absolute;right:8px;top:6px;accent-color:var(--red);margin:0}.manual-choice strong,.manual-choice small{display:block;overflow-wrap:anywhere}.manual-choice img{width:60px;height:45px;object-fit:contain;display:block;margin:8px auto}.brand-choices .manual-choice{text-align:center}.brand-initial{font-size:24px;color:var(--red);display:block;margin:8px}.manual-footer{border-top:1px solid var(--line);padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:16px}.manual-footer span{max-width:65%;font-size:13px}.manual-footer button{flex-shrink:0}
#orderDialog{width:min(1100px,96vw);background:#f3f4f5}.order-tools{display:flex;justify-content:flex-end;margin:10px 0 20px;padding-right:25px}.order-paper{background:#fff;padding:32px;border:1px solid var(--line)}.paper-header,.paper-parties,.paper-bottom{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-bottom:24px}.paper-header{border-bottom:2px solid var(--red);padding-bottom:20px}.paper-header p{font-size:12px;margin-bottom:8px}.paper-number{text-align:right}.paper-number h2{font-size:25px}.paper-parties{background:#f8f9fa;padding:18px}.paper-parties h3,.paper-bottom h3{font-size:13px;text-transform:uppercase;color:var(--muted)}.paper-parties p{font-size:13px;margin:8px 0}.paper-table-wrap{overflow-x:auto;margin-bottom:26px}.paper-table{border-collapse:collapse;width:100%;font-size:12px}.paper-table-wrap>.paper-table{min-width:730px}.paper-table th{background:#1c303f;color:#fff;padding:12px 8px;text-align:right}.paper-table td{padding:12px 8px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap;vertical-align:top}.paper-table th:first-child,.paper-table td:first-child{text-align:left}.paper-table td:first-child{white-space:normal;min-width:180px}.paper-table td span,.paper-table td small{display:block}.paper-table td span{margin-top:5px}.paper-bottom dl{margin:0}.paper-bottom dl>div{display:flex;justify-content:space-between;gap:12px;padding:8px}.paper-bottom dd{margin:0;white-space:nowrap}.grand-total{font-size:20px;font-weight:bold;border-top:2px solid var(--red)}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.order-paper footer{font-size:11px;border-top:1px solid var(--line);padding:16px 0 0;margin-top:25px}
@media(max-width:700px){.brand-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.version-choices{grid-template-columns:1fr}.manual-footer{align-items:stretch;flex-direction:column}.manual-footer span{max-width:100%}#manualVehicleDialog{padding:24px 16px}.paper-header,.paper-parties,.paper-bottom{grid-template-columns:1fr;gap:16px}.paper-number{text-align:left}.order-paper{padding:16px}#orderDialog{padding:24px 10px}#categoryGrid .category-card{height:350px}}
@media print{@page{size:A4;margin:12mm}body{background:white}body>*:not(#orderDialog){display:none!important}#orderDialog[open]{display:block;position:static;width:100%;max-width:none;max-height:none;margin:0;padding:0;overflow:visible;border:0;background:white}#orderDialog::backdrop{display:none}#orderDialog .close,.order-tools{display:none!important}.order-paper{border:0;padding:0}.paper-header,.paper-parties,.paper-bottom{grid-template-columns:1fr 1fr}.paper-number{text-align:right}.paper-table-wrap{overflow:visible}.paper-table-wrap>.paper-table{min-width:0;font-size:10px}.paper-table th,.paper-table td{padding:8px 5px}.paper-table tr{break-inside:avoid}.paper-table thead{display:table-header-group}}
#orderDialog{max-width:1100px}#manualVehicleDialog{max-width:1050px}
@media print{#orderDialog[open]{max-width:none}}
/* Documento de encomenda e fotografia da viatura */
.selected-vehicle-image{width:132px;height:82px;object-fit:contain;background:#fff;flex-shrink:0}.vehicle-bar:has(.selected-vehicle-image:not([hidden]))>svg{display:none}.vehicle-bar{padding:14px 20px;gap:18px}.vehicle-bar #vehicleTitle{font-size:14px;line-height:1.6}
#orderDialog{width:100vw;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:0 32px 40px;border:0;background:#eef1f4;overflow:auto}#orderDialog>.close{position:fixed;top:18px;right:22px;z-index:5;background:#fff0f1}.order-tools{position:sticky;top:0;z-index:3;max-width:1120px;margin:0 auto;padding:20px 58px 20px 0;background:#eef1f4;align-items:center;justify-content:space-between;gap:18px}.order-tools>div>strong{display:block;font-size:20px}.order-tools .eyebrow{color:var(--muted);display:block;margin:0 0 3px;font-size:9px}.order-tools button{background:var(--navy);color:#fff;border:0;padding:13px 24px}.order-paper{max-width:1120px;margin:auto;padding:44px 48px;box-shadow:0 8px 35px #172e4010;border:1px solid #e1e6eb;border-radius:4px}.document-brand{font-size:38px;line-height:1;font-weight:900;letter-spacing:-2px;color:var(--navy);margin-bottom:16px}.document-brand span{color:var(--red)}.paper-header{padding-bottom:26px;margin-bottom:0;align-items:start}.paper-header h2{font-size:22px;margin-bottom:10px}.paper-number h2{font-size:29px;letter-spacing:-.8px}.paper-number .badge{display:inline-block;padding:7px 12px;border-radius:4px;font-weight:700}.document-summary{display:grid;grid-template-columns:1.4fr 1fr 1fr;padding:24px 0;margin-bottom:25px;border-bottom:1px solid var(--line);gap:24px}.document-summary>div{display:flex;flex-direction:column;border-right:1px solid var(--line)}.document-summary>div:last-child{border:0}.document-summary span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.7px}.document-summary strong{font-size:22px;margin:4px 0}.document-summary>div:first-child strong{font-size:30px;color:var(--red)}.paper-parties{background:none;padding:0;gap:24px;margin-bottom:30px}.paper-parties section{border:1px solid var(--line);border-radius:5px;padding:20px 22px}.paper-parties h3{letter-spacing:1px;font-size:10px;margin-bottom:14px}.paper-table-wrap>.paper-table th{font-size:10px;text-transform:uppercase;letter-spacing:.3px;padding:14px 10px}.paper-table-wrap>.paper-table td{padding:18px 10px}.paper-table-wrap>.paper-table tbody tr:nth-child(even){background:#f8fafb}.paper-table-wrap>.paper-table td:first-child strong{font-size:13px}.paper-table-wrap>.paper-table td span{color:#536574}.paper-table-wrap>.paper-table td:last-child{font-weight:700}.paper-bottom{gap:40px}.paper-bottom dl{padding:18px;background:#f6f8fa;border-radius:5px}.paper-bottom .grand-total{margin-top:8px;padding-top:16px;font-size:23px}.order-paper footer{color:var(--muted)}
@media(max-width:700px){.selected-vehicle-image{width:100px;height:70px}.vehicle-bar{padding:12px;gap:10px}.vehicle-bar #vehicleTitle{font-size:13px;min-width:140px}.vehicle-bar .mini-plate{margin-left:0}#orderDialog{padding:0 12px 24px}.order-tools{padding:18px 42px 16px 0;gap:8px}.order-tools>div>strong{font-size:16px}.order-tools button{padding:10px;font-size:11px}.order-paper{padding:22px 16px}.paper-header{grid-template-columns:1fr;gap:16px}.paper-number h2{font-size:25px}.document-summary{grid-template-columns:1fr 1fr;gap:16px}.document-summary>div:first-child{grid-column:1/-1;border-right:0}.document-summary>div:last-child strong{font-size:17px}.paper-parties section{padding:16px}.paper-table-wrap{overflow:visible}.paper-table-wrap>.paper-table{min-width:0;display:block}.paper-table-wrap>.paper-table thead{display:none}.paper-table-wrap>.paper-table tbody{display:block}.paper-table-wrap>.paper-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:5px;margin-bottom:14px;padding:12px;gap:0 16px}.paper-table-wrap>.paper-table td{display:block;text-align:left;white-space:normal;min-width:0;padding:9px 0}.paper-table-wrap>.paper-table td:first-child{grid-column:1/-1;padding-bottom:14px}.paper-table-wrap>.paper-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);font-weight:400;margin-bottom:4px}.paper-table-wrap>.paper-table td:last-child{color:var(--red)}.paper-bottom{grid-template-columns:1fr;gap:18px}.paper-bottom .paper-table td:first-child{min-width:0}}
@media print{#orderDialog[open]{width:100%;height:auto;max-height:none;padding:0;background:white;overflow:visible}.order-paper{padding:0;border:0;box-shadow:none;max-width:none}.document-brand{font-size:26px}.document-summary{padding:14px 0;margin-bottom:16px;grid-template-columns:1.4fr 1fr 1fr}.paper-header{padding-bottom:16px}.paper-parties{margin-bottom:18px}.paper-parties section{padding:12px}.paper-table-wrap>.paper-table td{padding:10px 6px}.paper-table-wrap>.paper-table th{padding:10px 6px}.paper-bottom{break-inside:avoid}.document-summary>div:first-child strong{font-size:25px}}
@media(max-width:700px){.order-tools{padding-right:56px}}
@media print{.paper-table-wrap>.paper-table{display:table;min-width:0}.paper-table-wrap>.paper-table thead{display:table-header-group}.paper-table-wrap>.paper-table tbody{display:table-row-group}.paper-table-wrap>.paper-table tr{display:table-row;border:0;padding:0}.paper-table-wrap>.paper-table td{display:table-cell;text-align:right;white-space:normal}.paper-table-wrap>.paper-table td:first-child{text-align:left}.paper-table-wrap>.paper-table td[data-label]:before{display:none}.document-summary>div:first-child{grid-column:auto}.paper-bottom{grid-template-columns:1fr 1fr}}

.all-brands-action{text-align:center}.all-brands-action:has(button:not([hidden])){margin:18px 0}.brand-choices{grid-template-columns:repeat(7,minmax(0,1fr))}@media(max-width:1000px){.brand-choices{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.brand-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}

#manualVehicleDialog{width:96vw;max-width:1400px}#manualVehicleDialog #manualChoices{max-height:65dvh}.credit-summary{background:#f0f5f8;border:1px solid var(--line);padding:15px;margin:15px 0 20px}.credit-summary>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0}.credit-summary strong{white-space:nowrap}.credit-summary p{margin:10px 0 0}#headerCredit{color:var(--ink);font-size:11px;margin-top:4px}

.product-row .price .pvp-label{display:block;font-size:10px;font-weight:700;color:var(--muted);letter-spacing:.8px}.product-row .price .pvp-value{display:block;font-size:21px;color:var(--ink)}.product-row .price .discounted-price{display:block;font-size:13px;font-weight:600;color:var(--red);margin-top:4px}.product-row .price small{margin-top:5px}

.product-specs{margin-top:12px}.product-specs dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 18px}.product-specs dl>div{display:flex;gap:8px;border-bottom:1px solid #eef0f2;padding:4px 0;font-size:12px;min-width:0}.product-specs dt{color:var(--muted);font-weight:400}.product-specs dd{margin:0 0 0 auto;font-weight:600;overflow-wrap:anywhere;text-align:right}@media(max-width:800px){.product-specs dl{grid-template-columns:1fr}}

/* Especificações em linhas compactas, como a referência do cliente. */
.product-specs{margin-top:6px}.product-specs dl{display:flex;flex-direction:column;gap:3px}.product-specs dl>div{display:block;border:0;padding:0;font-size:14px;line-height:1.5}.product-specs dt{display:inline;color:#98a2b3;font-weight:400}.product-specs dt::after{content:': '}.product-specs dd{display:inline;margin:0;color:#64748b;font-weight:400;text-align:left;overflow-wrap:anywhere}

.product-no-image{display:flex;align-items:center;justify-content:center;width:90px;height:80px;background:#f7f8fa;border:1px solid var(--line);color:var(--muted);font-size:11px;text-align:center}.cart-line>.product-no-image{width:60px;height:60px}@media(max-width:800px){.product-row>.product-no-image{width:60px;height:70px}.cart-line>.product-no-image{width:50px;height:50px}}

/* Login: imagem completa no fluxo, sem cortes nem sobreposição do formulário. */
.login-screen{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100dvh}.login-story{display:flex;flex-direction:column;background:linear-gradient(145deg,#fafafa,#e9edf0);color:var(--ink);padding:40px clamp(28px,5vw,84px);min-width:0;overflow:hidden}.login-story .gs-brand{margin:0 0 30px;padding:0;align-self:flex-start}.gs-brand img{display:block;object-fit:contain;width:auto;max-width:100%;height:auto}.login-story .gs-brand img{width:125px}.login-story h1{font-size:clamp(36px,4vw,58px);line-height:1.08;margin-bottom:20px}.login-story>.eyebrow{color:var(--red)}.login-story>p{max-width:420px;color:#526373}.login-story>img{position:static;display:block;width:100%;max-width:620px;height:auto;max-height:320px;object-fit:contain;margin:auto auto 0;opacity:1;mix-blend-mode:multiply;flex-shrink:0}.login-form{max-width:480px;padding:40px;min-width:0}#sidebar .gs-brand{justify-content:center;padding:18px 20px 8px}#sidebar .gs-brand img{width:92px}.document-brand img{display:block;width:70px;height:auto}
@media(max-width:800px){.login-screen{grid-template-columns:1fr}.login-story{padding:26px 28px;min-height:0}.login-story .gs-brand{margin-bottom:20px}.login-story .gs-brand img{width:88px}.login-story h1{font-size:36px;margin-bottom:0}.login-story>.eyebrow{margin-bottom:10px}.login-story>img{max-height:155px;width:100%;margin:18px auto 0}.login-form{padding:30px 24px}.login-story>p:not(.eyebrow){display:none}}

.history-entry{position:relative;flex-shrink:0}.history-entry .history-item{height:100%;padding-right:45px}.history-remove{position:absolute;right:7px;top:7px;width:28px;height:28px;line-height:24px;font-size:23px;color:#c6212c;background:#fff0f1;border-radius:4px}.history-remove:hover{background:#ffe0e3}

/* Login GS: fotografia em todo o painel, sem imagem pequena no rodapé. */
#loginScreen{grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);min-height:100dvh;background:#fff}
#loginScreen .login-story{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:100dvh;padding:48px clamp(32px,5vw,86px);background:#17242d url('login-parts-wallpaper.png') center center/cover no-repeat;color:#fff}
#loginScreen .login-story::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(13,24,32,.06) 12%,rgba(13,24,32,.18) 36%,rgba(13,24,32,.88) 76%,#0d1820 100%)}
#loginScreen .login-story .gs-brand{align-self:flex-start;padding:16px 22px;background:#fff;border-radius:8px;margin:0 0 auto;box-shadow:0 8px 28px #0002}
#loginScreen .login-story .gs-brand img{width:104px;height:auto}
#loginScreen .login-story>.eyebrow{color:#fff;letter-spacing:2px;margin:100px 0 18px;font-size:11px}
#loginScreen .login-story h1{color:white;font-size:clamp(40px,4.4vw,68px);line-height:1.05;letter-spacing:-1.7px;margin:0 0 22px;max-width:600px}
#loginScreen .login-story>p:not(.eyebrow){display:block;color:#dce4e9;max-width:410px;font-size:15px;line-height:1.65;margin:0}
#loginScreen .login-form{width:100%;max-width:500px;padding:48px;margin:auto;align-self:center}
#loginScreen .login-form h2{font-size:36px;line-height:1.15;margin-bottom:14px}
#loginScreen .login-form>p:not(.error){margin-bottom:32px;font-size:14px}
#loginScreen .login-form label{font-size:13px;margin-bottom:20px}
#loginScreen .login-form input{height:54px;border-radius:5px;background:#fbfcfd}
#loginScreen .login-form>.primary{min-height:52px;border-radius:5px;margin-top:4px}
#loginScreen .login-form>small{padding-top:20px;border-top:1px solid var(--line);line-height:1.6}
@media(min-width:801px) and (max-height:700px){#loginScreen .login-story{padding-top:28px;padding-bottom:28px}#loginScreen .login-story .gs-brand img{width:75px}#loginScreen .login-story>.eyebrow{margin-top:38px}#loginScreen .login-story h1{font-size:42px}#loginScreen .login-form{padding:28px 40px}}
@media(max-width:800px){#loginScreen{grid-template-columns:1fr}#loginScreen .login-story{min-height:360px;padding:24px 28px;background-position:center 38%}#loginScreen .login-story .gs-brand{padding:10px 14px;border-radius:5px}#loginScreen .login-story .gs-brand img{width:60px}#loginScreen .login-story>.eyebrow{font-size:9px;margin:32px 0 10px}#loginScreen .login-story h1{font-size:36px;margin-bottom:12px;letter-spacing:-.8px}#loginScreen .login-story>p:not(.eyebrow){font-size:12px;max-width:310px}#loginScreen .login-form{max-width:500px;padding:30px 26px 36px}#loginScreen .login-form h2{font-size:28px}#loginScreen .login-form>p:not(.error){margin-bottom:24px}}

.equivalent-label{display:inline-block;background:#eef4fa;color:#315777;border:1px solid #dce7f0;border-radius:4px;padding:3px 7px;font-size:10px;font-weight:600;margin:0 8px 6px 0}.product-info .equivalent-label+.brand-label{display:inline-block}

.product-row .price .price-with-vat{display:block;margin-top:9px;padding-top:8px;border-top:1px solid var(--line);font-size:15px;font-weight:700;color:var(--ink)}.product-row .price .price-with-vat small{display:block;margin-top:2px;font-size:11px;font-weight:400;color:var(--muted)}

/* Feedback ao adicionar e entradas reservadas do menu */
#sidebar{overflow-y:auto}#sidebar .side-note{flex-shrink:0;margin-top:auto}#sidebar nav{flex-shrink:0}nav .menu-placeholder{cursor:default;color:var(--muted)}nav .menu-placeholder:hover{color:var(--muted);background:transparent}
.cart-flying-image{position:fixed;z-index:1001;object-fit:contain;pointer-events:none;background:#fff;border-radius:8px;box-shadow:0 6px 24px #142b3b22}
.cart-added-toast{position:fixed;right:24px;bottom:24px;z-index:1002;display:flex;align-items:center;gap:20px;max-width:calc(100vw - 32px);padding:16px 20px;background:#fff;border:1px solid #cfe6d9;border-left:4px solid #238454;border-radius:8px;box-shadow:0 8px 32px #142b3b26;color:#185b3a;animation:cart-toast-in .25s ease-out}
.cart-added-toast span{overflow-wrap:anywhere}.cart-added-toast a{white-space:nowrap;font-weight:700;text-decoration:underline}
@keyframes cart-toast-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.cart-added-toast{right:16px;bottom:16px;gap:8px;align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.cart-added-toast{animation:none}}

.history-entry .history-item{display:flex;align-items:center;gap:12px;min-height:76px}.history-item .history-brand{width:44px;height:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:center;overflow:visible}.history-brand img{width:44px;height:44px;object-fit:contain}.history-item .history-details{min-width:0;max-width:230px}.history-item .history-details>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-brand-fallback{font-weight:700;color:var(--muted)}

#quoteDialog{width:1000px;max-width:95vw;max-height:90dvh;overflow:auto;padding:24px;border:0;border-radius:16px}#quoteDialog .dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.quote-items{width:100%;border-collapse:collapse;min-width:650px}.quote-items th,.quote-items td{padding:14px 10px;text-align:right;border-bottom:1px solid #e5e7eb}.quote-items th:first-child,.quote-items td:first-child{text-align:left}.quote-totals{display:flex;justify-content:flex-end;gap:24px;flex-wrap:wrap;padding-top:24px}
