:root{--teal:#008b91;--teal-dark:#006d73;--orange:#f36a3d;--blue:#005080;--ink:#173c49;--muted:#667b83;--line:#e1e9eb;--soft:#f5f8f9;--radius:16px;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;font-size:16px;line-height:1.5}
*{box-sizing:border-box}body{margin:0}a{color:var(--teal-dark);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--orange);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:2.25rem;letter-spacing:-1.3px;line-height:1.18;margin-bottom:0}h2{font-size:1.2rem;letter-spacing:-.3px}small{font-size:.8125rem}.muted{color:var(--muted);font-size:.9375rem}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:32px 18px;z-index:30}.brand{display:block;text-align:center;margin-bottom:42px}.brand img{width:168px;height:112px;object-fit:contain}.nav-caption{font-size:.75rem;letter-spacing:1.6px;color:var(--muted);margin:0 14px 15px}.sidebar nav{display:grid;gap:7px}.sidebar nav a{display:flex;align-items:center;gap:14px;padding:12px 15px;border-radius:10px;color:#526c76;font-size:.9375rem;font-weight:600}.sidebar nav a:hover{background:var(--soft);text-decoration:none}.sidebar nav a span{font-size:1.3rem;width:24px;text-align:center}.sidebar nav a.active{background:#e6f4f3;color:var(--teal-dark)}.sidebar-bottom{margin-top:auto;font-size:.75rem;color:var(--muted);padding:24px 8px 0}.brand-dot{display:inline-block;background:var(--orange);width:7px;height:7px;border-radius:50%;margin-right:5px}.workspace{margin-left:238px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 42px;background:#fff}.top-title{font-size:.875rem;color:var(--muted)}.user-link{display:flex;gap:12px;align-items:center;font-size:.875rem;color:var(--ink)}.user-link small{display:block;color:var(--muted)}.avatar{display:grid;place-items:center;width:39px;height:39px;background:#e6f4f3;border-radius:50%;font-weight:bold;color:var(--teal-dark)}.menu-button{display:none}.workspace main{padding:38px 42px;max-width:1580px;margin:auto;min-height:calc(100vh - 144px)}footer{padding:16px 42px;color:var(--muted);font-size:.75rem;border-top:1px solid var(--line)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:1.6px;color:var(--teal-dark);margin-bottom:9px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 20px;border:1px solid var(--teal);border-radius:9px;background:var(--teal);color:#fff;font-size:.9375rem;font-weight:600;text-align:center}.button:hover{background:var(--teal-dark);color:#fff;text-decoration:none}.button.secondary{background:white;color:var(--teal-dark);border-color:#c9dedf}.button.secondary:hover{background:#eef7f7}.full{width:100%}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:36px}.stat{border:1px solid var(--line);border-radius:var(--radius);padding:21px 22px;position:relative;overflow:hidden}.stat:before{content:'';position:absolute;top:24px;right:20px;width:8px;height:8px;border-radius:50%;background:var(--teal)}.stat.orange:before{background:var(--orange)}.stat.blue:before{background:var(--blue)}.stat>span{color:var(--muted);font-size:.875rem}.stat strong{display:block;font-size:2.5rem;line-height:1.6;letter-spacing:-1.5px;font-weight:600}.stat small{color:var(--muted)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:24px 0 16px}.section-heading h2{margin:0}.section-heading a{font-size:.875rem}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:var(--radius);background:#fff}table{border-collapse:collapse;width:100%;font-size:.875rem}th{text-align:left;font-size:.75rem;letter-spacing:.3px;color:var(--muted);background:#f7fafb;font-weight:600;padding:15px 20px}td{padding:18px 20px;border-top:1px solid var(--line);vertical-align:middle}td small{display:block;color:var(--muted);margin-top:4px}.product-name{font-weight:600;color:var(--ink)}.nowrap{white-space:nowrap}.badge{display:inline-block;padding:4px 10px;border-radius:6px;background:#edf1f3;color:#526c76;font-size:.75rem;white-space:nowrap}.disponivel,.fechado,.concluida{background:#e6f5ee;color:#236b49}.avaliacao,.aberto{background:#fff0e1;color:#965a1d}.reparo,.pecas{background:#eaf1fa;color:#315f8a}.vendido{background:#e3f4f3;color:#076f72}.descartado,.devolvida{background:#fbeceb;color:#a13b38}.bottom-note{margin-top:28px;padding:24px 28px;background:#eef7f7;border-radius:var(--radius);display:flex;justify-content:space-between;align-items:center}.bottom-note h2{font-size:1.65rem;margin-bottom:5px}.bottom-note p{margin:0;font-size:.875rem;color:var(--muted)}.panel{padding:25px;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:24px;background:white}.panel>h2{margin-bottom:22px}summary{cursor:pointer;font-weight:600;min-height:30px}details[open]>summary{margin-bottom:24px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-grid.single{grid-template-columns:1fr}.wide{grid-column:1/-1}label{display:flex;flex-direction:column;gap:7px;color:#395963;font-size:.875rem;font-weight:600}input,select,textarea{width:100%;min-height:46px;border:1px solid #cbd9de;border-radius:8px;padding:11px 12px;background:#fff;color:var(--ink);font-size:1rem;font-weight:400}textarea{resize:vertical}.money-input{display:flex;align-items:center;border:1px solid #cbd9de;border-radius:8px;padding-left:12px;gap:7px;background:#fff}.money-input>span{font-weight:400;color:var(--muted)}.money-input input{border:0;min-width:0}.form-end{margin-top:4px}.form-end .button{min-width:180px}.lot-grid,.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.lot-card{display:block;border:1px solid var(--line);border-radius:var(--radius);padding:25px;color:var(--ink)}.lot-card:hover{border-color:var(--teal);text-decoration:none}.card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.card-top h2,.card-top .eyebrow{margin:0}.lot-card h2{font-size:1.4rem;margin:22px 0 6px}.lot-card p{color:var(--muted)}.lot-foot{display:flex;justify-content:space-between;gap:14px;padding-top:18px;border-top:1px solid var(--line);font-size:.875rem}.lot-summary{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.compact-form{display:flex;align-items:center;gap:25px}.compact-form p{flex:1;margin:0;font-size:.875rem;color:var(--muted)}.filters{display:flex;align-items:flex-end;gap:16px;margin-bottom:22px}.filters label:first-of-type{flex:2}.filters label{flex:1}.pagination{display:flex;justify-content:flex-end;gap:24px;margin-top:24px}.detail-banner{display:flex;justify-content:space-between;gap:22px;background:#f5f9fa;border-radius:var(--radius);padding:25px;margin-bottom:18px}.detail-banner p{margin:8px 0 0}.detail-banner h2{font-size:1.8rem;margin:8px 0 0}.action-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}.cost-note{font-size:.875rem;color:var(--muted)}.photos{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:18px}.photos img{width:150px;height:150px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}.upload{display:flex;align-items:flex-end;gap:16px}.upload label{flex:1}.facts{display:grid;grid-template-columns:1fr 1fr;gap:24px}.facts dt{font-size:.875rem;color:var(--muted)}.facts dd{margin:6px 0 0;overflow-wrap:anywhere}.timeline{list-style:none;margin:0;padding:0 0 0 16px;border-left:2px solid #cce5e5}.timeline li{margin:0 0 20px;position:relative}.timeline li:before{content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:var(--teal);left:-21px;top:8px}.timeline strong{font-size:.875rem;font-weight:400}.timeline small{display:block;color:var(--muted);margin-top:4px}.empty{padding:50px 25px;border:1px dashed #cedcdf;border-radius:var(--radius);text-align:center}.empty-mark{font-size:2rem;color:var(--teal)}.empty h3{font-size:1.15rem;margin:12px 0 8px}.empty p{color:var(--muted);max-width:440px;margin:0 auto 18px}.alert{padding:16px 20px;border-radius:10px;margin-bottom:24px;font-size:.9375rem}.error{background:#fff0e8;color:#953d1b;border:1px solid #ffd6bc}.success{background:#e9f7f0;color:#226d49}.auth{max-width:460px;margin:7vh auto;padding:30px}.auth-logo{display:block;width:210px;height:140px;object-fit:contain;margin:0 auto 36px}.auth h1{font-size:1.8rem;margin-bottom:15px}.auth .form-grid{margin-top:28px}.auth .button{width:100%}.inline-form{display:inline}.text-button{border:0;background:none;color:var(--teal-dark);padding:10px;font:inherit}.sale-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(210px,1fr);gap:28px}.sale-help{background:#eef7f7;border-radius:var(--radius);padding:28px;height:fit-content;border-top:4px solid var(--orange)}.sale-help h2{font-size:1.45rem}.sale-help p{font-size:.9375rem;color:#526e76}.sale-products{max-height:480px;overflow:auto;margin:22px 0 28px;border:1px solid var(--line);border-radius:10px}.sale-product{display:flex;justify-content:space-between;gap:16px;padding:16px;border-bottom:1px solid var(--line)}.sale-product:last-child{border:0}.sale-product[hidden]{display:none}.sale-product.selected{background:#eff9f7}.product-check{flex-direction:row;align-items:center;gap:12px;flex:1}.product-check input,.loss-ack input{width:22px;height:22px;min-height:22px;flex-shrink:0;accent-color:var(--teal)}.product-check small{display:block;font-weight:400;color:var(--muted);margin-top:3px}.sale-price{width:125px;flex-shrink:0;font-size:.75rem}.sale-price input:disabled{background:#f1f4f5;color:#899a9f}.checkout{display:flex;flex-direction:column;gap:12px;margin:24px 0;padding:20px;background:var(--soft);border-radius:10px}.checkout>span{display:flex;justify-content:space-between;align-items:center}.checkout strong{font-size:1.65rem}.checkout small{color:var(--muted)}.loss-ack{padding:18px;background:#fff0e8;border:1px solid #ffbb99;border-radius:10px;margin:20px 0;flex-direction:row;align-items:center}.report dl{margin:0 0 20px}.report dl>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:.875rem}.report dt{color:var(--muted)}.report dd{margin:0;font-weight:600;white-space:nowrap}.report .report-total{font-size:1rem;color:var(--teal-dark);margin-top:8px}.negative{color:#b04735}.positive{color:#1e7a55}
@media(min-width:1500px){.workspace main{padding-top:48px}.stats{gap:24px}.stat{padding:26px}}
@media(max-width:1150px){.sidebar{width:205px}.workspace{margin-left:205px}.workspace main{padding:30px 24px}.topbar{padding:0 24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-layout{grid-template-columns:1fr}.sale-help{display:none}.filters{flex-wrap:wrap}.filters label:first-of-type{flex-basis:100%}}
@media(max-width:760px){h1{font-size:1.8rem}.sidebar{transform:translateX(-100%);width:245px;transition:transform .15s}.menu-open .sidebar{transform:translateX(0);box-shadow:0 0 0 100vmax #173c4944;top:68px}.workspace{margin-left:0}.topbar{height:68px;padding:0 18px;position:sticky;top:0;z-index:40}.menu-button{display:block;border:0;background:#edf6f6;border-radius:8px;min-width:44px;min-height:44px;font-size:1.3rem;color:var(--teal-dark)}.top-title{display:none}.workspace main{padding:26px 16px}.page-heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:24px}.page-heading .button{min-height:44px;padding:10px 14px}.stats{gap:12px;margin-bottom:28px}.stat{padding:18px 15px}.stat strong{font-size:2rem}.stat:before{right:12px;top:23px;width:6px;height:6px}.stat>span{font-size:.8125rem}.stat small{font-size:.75rem}.table-wrap table{min-width:680px}.lot-grid,.report-grid,.form-grid,.facts{grid-template-columns:1fr}.panel{padding:20px 16px}.filters{gap:12px}.filters label{min-width:calc(50% - 12px)}.filters .button{width:100%}.bottom-note{align-items:flex-start;flex-direction:column;gap:20px;padding:24px}.compact-form{flex-direction:column;align-items:stretch}.upload{flex-direction:column;align-items:stretch}.detail-banner{padding:20px;flex-wrap:wrap}.lot-summary{gap:12px}.sale-product{padding:14px 10px;gap:10px}.sale-price{width:106px}.product-check{gap:8px}.product-check strong{font-size:.875rem}.report dl>div{gap:10px}.report dd{font-size:.875rem}.auth{margin:3vh auto}.section-heading a{font-size:.8125rem}footer{padding:16px}.lot-foot{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
