:root{font-family:Inter,'Segoe UI',Arial,sans-serif;color:#223332;background:#f3f5f5;font-size:16px;--green:#153d3a;--muted:#627674;--line:#dfe7e5;--gold:#eed1a0}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;font-weight:600;letter-spacing:-1px;margin-bottom:8px}h2{font-size:1.15rem;font-weight:600}h3{font-size:1rem}p{line-height:1.55}.muted,small{color:var(--muted)}small{font-size:.82rem}.layout{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--green);color:white;padding:32px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{padding:0 18px 32px;border-bottom:1px solid #ffffff20;margin-bottom:26px}.brand strong{font:40px Georgia,serif;color:var(--gold);letter-spacing:-3px}.brand span{display:block;font-size:.72rem;letter-spacing:3px;margin-top:3px}.brand small{display:block;color:#a8c2bd;margin-top:18px;font-size:.78rem}.nav-label{font-size:.7rem;letter-spacing:2px;color:#9ab6b0;margin:10px 16px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{color:#c9dcd7;border:0;text-align:left;background:transparent;border-radius:8px;padding:12px 16px;font-size:.92rem;display:flex;gap:13px;align-items:center}.nav button:hover{background:#ffffff0d}.nav button.active{background:#ffffff15;color:#fff;box-shadow:inset 3px 0 var(--gold)}.icon{width:19px;height:19px;display:inline-block;vertical-align:middle;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding:24px 16px 0;color:#adc5c0;font-size:.82rem}.sidebar-bottom strong{display:block;color:white;margin-bottom:4px}.sidebar-bottom button{margin-top:15px;background:none;border:0;color:#adc5c0;padding:0}.workspace{min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 36px;font-size:.86rem;color:var(--muted)}.topbar strong{font-weight:500;color:#294441}.avatar{background:#e8efeb;color:var(--green);border-radius:50%;width:34px;height:34px;display:inline-grid;place-items:center;font-size:.8rem;font-weight:600;margin-left:12px}.content{padding:32px 36px 60px;max-width:1700px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px}.eyebrow{text-transform:uppercase;letter-spacing:2px;color:#70837d;font-size:.7rem;margin-bottom:10px}.heading p{color:var(--muted);font-size:.9rem;margin-bottom:0}.btn{border:1px solid var(--line);border-radius:7px;padding:10px 16px;background:white;color:#294441;display:inline-flex;align-items:center;gap:8px;justify-content:center;text-decoration:none;font-size:.9rem;font-weight:500;min-height:42px}.btn:hover{background:#f1f6f3}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.primary:hover{background:#22514b}.btn.danger{color:#a13b37}.btn.small{padding:6px 10px;min-height:32px;font-size:.82rem}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.card{background:white;border:1px solid var(--line);border-radius:10px;padding:22px}.metric-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.87rem;margin-bottom:20px}.metric-top .icon{color:#75958a}.metric-value{font-size:2rem;letter-spacing:-1px;font-weight:600;margin-bottom:8px}.metric-note{font-size:.8rem;color:var(--muted)}.grid2{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:22px}.panel-head{padding:20px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:16px}.panel-head h2{margin:0}.panel-body{padding:24px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.88rem;text-align:left}th{background:#f8faf9;font-size:.72rem;text-transform:uppercase;letter-spacing:.7px;color:#667c75;font-weight:600;padding:14px 20px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:17px 20px;border-bottom:1px solid #edf1ef;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcfb}td strong{font-weight:600}td small{display:block;margin-top:5px}.number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.badge{display:inline-block;padding:5px 9px;border-radius:5px;font-size:.76rem;white-space:nowrap;background:#edf1ef;color:#526963}.badge.green{background:#e8f2ec;color:#32684a}.badge.amber{background:#fbf1dc;color:#8b6426}.badge.red{background:#fbeae8;color:#a5473a}.badge.blue{background:#eaf0f7;color:#48678b}.empty{padding:44px 24px;text-align:center;color:var(--muted)}.empty .icon{height:30px;width:30px;color:#90a69e;margin-bottom:12px}.empty strong{display:block;color:#36534a;font-weight:500;margin-bottom:8px}.empty p{font-size:.88rem;max-width:420px;margin:0 auto 18px}.toolbar{display:flex;gap:12px;margin-bottom:20px;align-items:center}.search{max-width:390px;flex:1}.toolbar select{max-width:240px}.link{border:0;background:none;color:var(--green);font-weight:600;padding:0;text-align:left;cursor:pointer}.summary-strip{display:flex;gap:32px;padding:18px 24px;background:#eef3f0;border-bottom:1px solid var(--line);flex-wrap:wrap}.summary-strip small{display:block;margin-bottom:6px}.summary-strip strong{font-weight:600}.info{background:#f0f5f2;padding:14px 18px;border-left:3px solid #8ba99c;border-radius:4px;color:#456359;font-size:.87rem;margin:16px 0;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .wide{grid-column:1/-1}label{display:block;font-size:.85rem;font-weight:500;color:#3f5750}input,select,textarea{display:block;width:100%;border:1px solid #cfdcd5;background:#fff;color:#203a30;border-radius:6px;padding:10px 12px;min-height:43px;font-size:.94rem}label input,label select,label textarea{margin-top:7px}textarea{resize:vertical;min-height:80px}input:focus,select:focus,textarea:focus{outline:2px solid #538471;border-color:transparent}input[type=checkbox]{width:auto;min-height:0;display:inline;margin-right:8px}dialog{border:0;border-radius:12px;padding:0;width:min(760px,calc(100vw - 32px));max-height:90vh;box-shadow:0 30px 100px #102e3450;color:#223332}dialog.large{width:min(1080px,calc(100vw - 32px))}dialog::backdrop{background:#0b242c70;backdrop-filter:blur(2px)}.modal-head{padding:22px 26px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:white;z-index:2}.modal-head h2{margin:0;font-size:1.2rem}.modal-body{padding:26px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:22px;border-top:1px solid var(--line);margin-top:24px}.close{background:none;border:0;font-size:26px;color:var(--muted)}.error{background:#fbeae8;color:#a33b32;padding:12px;border-radius:6px;margin:14px 0;font-size:.9rem}.item-card{background:#f8faf9;border:1px solid var(--line);border-radius:8px;padding:16px;margin-bottom:12px}.item-grid{display:grid;grid-template-columns:1.6fr 2.5fr .7fr 1fr auto;gap:10px;align-items:end}.item-extra{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-top:10px}.section-label{display:flex;justify-content:space-between;align-items:center;margin:24px 0 14px}.section-label h3{margin:0}.total-box{text-align:right;font-size:1.1rem;padding:16px;background:#edf3ef;border-radius:6px;margin-top:16px}.total-box strong{font-size:1.5rem;margin-left:20px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.auth-art{background:var(--green);padding:10vh 12%;display:flex;flex-direction:column;justify-content:space-between;color:#fff}.auth-art .brand{border:0;padding:0}.auth-art .brand strong{font-size:72px}.auth-art h1{font:3rem Georgia,serif;line-height:1.15;color:#f0e4d0;max-width:420px}.auth-art p{color:#aac6bc;max-width:350px}.auth-form{padding:48px;max-width:500px;width:100%;margin:auto}.auth-form label{margin-bottom:18px}.auth-form .btn{width:100%;margin-top:10px}.boot{padding:20vh;text-align:center;font-size:40px;color:var(--green)}.boot span{font-size:16px;letter-spacing:3px}.boot p{font-size:16px}.onboarding{background:var(--green);color:#fff;padding:26px 28px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:20px}.onboarding p{margin:8px 0 0;color:#c2d6ce;font-size:.9rem}.onboarding h2{margin:0}.onboarding .btn{background:var(--gold);border-color:var(--gold);white-space:nowrap}.detail-head{display:flex;justify-content:space-between;gap:16px}.detail-head h3{font-size:1.2rem;margin-bottom:8px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.detail-grid small{display:block;margin-bottom:6px}.note{white-space:pre-wrap;overflow-wrap:anywhere}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.step{background:#f8faf9;border-radius:6px;padding:18px}.step span{font:1.8rem Georgia;color:#8eaa9b;display:block;margin-bottom:10px}.step p{font-size:.84rem;color:var(--muted);margin:8px 0 0}#toast{position:fixed;bottom:28px;right:28px;background:#153d3a;color:white;padding:14px 22px;border-radius:8px;box-shadow:0 8px 30px #0002;z-index:10;display:none;max-width:450px}#toast.show{display:block}.mobile-title{display:none}.subtle{font-size:.85rem;color:var(--muted);margin-top:8px}.print-only{display:none}.nowrap{white-space:nowrap}
.cep-button{margin-top:8px}
@media(max-width:1150px){.cards{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.content{padding:26px 24px}.sidebar{padding:26px 12px}.layout{grid-template-columns:210px minmax(0,1fr)}.topbar{padding:0 24px}.item-grid{grid-template-columns:1fr 2fr .7fr 1fr auto}}
@media(max-width:760px){.layout{display:block}.sidebar{height:auto;position:static;padding:16px}.brand{padding:0 8px 12px;margin:0;border:0}.brand strong{font-size:28px}.brand span{display:inline;margin-left:14px}.brand small,.nav-label,.sidebar-bottom{display:none}.nav{flex-direction:row;overflow:auto;padding-top:12px}.nav button{white-space:nowrap;padding:10px;font-size:.85rem}.nav button .icon{display:none}.topbar{height:60px;padding:0 18px}.content{padding:24px 16px}.heading{align-items:flex-start}.heading h1{font-size:1.6rem}.heading .btn{padding:10px}.cards{gap:10px}.card{padding:16px}.metric-value{font-size:1.6rem}.metric-top{font-size:.8rem}.form-grid,.item-grid,.item-extra,.detail-grid{grid-template-columns:1fr}.steps{grid-template-columns:1fr}.onboarding{flex-direction:column;align-items:flex-start}.auth{display:block}.auth-art{padding:28px}.auth-art h1,.auth-art p{display:none}.auth-art .brand strong{font-size:40px}.auth-form{padding:32px 24px}.modal-body{padding:18px}.toolbar{flex-wrap:wrap}.toolbar .search{max-width:none;flex-basis:100%}.summary-strip{gap:18px}td,th{padding:12px}.detail-head{flex-direction:column}.panel-head{padding:16px}.item-card .btn{margin-top:8px}}
@media print{body{background:white}.layout,#toast{display:none!important}dialog[open]{position:static;display:block;width:100%;max-width:none;max-height:none;box-shadow:none;border:0;overflow:visible}dialog::backdrop{display:none}.modal-head{position:static}.modal-head .close,.no-print,.modal-footer{display:none!important}.modal-body{padding:0}.print-only{display:block}table{font-size:11pt}.panel{break-inside:avoid}.badge{border:1px solid #ccc}.print-only h1{font:24pt Georgia}.print-only p{font-size:10pt}}

.cards.three-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.cards.three-cards{grid-template-columns:1fr}}

.classification-options{display:flex;flex-wrap:wrap;gap:10px;max-height:210px;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:7px}.classification-choice{display:flex;align-items:center;padding:10px 12px;background:#f0f5f2;border-radius:5px;cursor:pointer}.classification-choice input{margin:0 8px 0 0}.classification-create{display:flex;align-items:flex-end;gap:10px;margin-top:14px}.classification-create label{flex:1}.classification-create .btn{flex-shrink:0}@media(max-width:760px){.classification-create{align-items:stretch;flex-direction:column}}

.select-plus{display:flex;align-items:stretch;margin-top:7px}.select-plus select{min-width:0;border-radius:6px 0 0 6px}.add-plus{border:0;border-radius:0 6px 6px 0;background:#139664;color:white;font-size:24px;min-width:40px;cursor:pointer}.add-plus:hover{background:#107c53}.add-plus:disabled{opacity:.4;cursor:default}

input.calculated-price[readonly]{background:#e5eaf0;color:#374b63;border-color:#b7c3d0;font-weight:600;cursor:not-allowed}
.lookup{min-width:0;position:relative}.lookup>label{display:block;margin-bottom:6px}.lookup-text{width:100%}.lookup-results{position:relative;z-index:5;margin-top:5px;border:1px solid #a9bfba;border-radius:7px;background:#fff;box-shadow:0 5px 16px #153d3a15}.lookup-results[hidden]{display:none}.lookup [role=listbox]{max-height:245px;overflow-y:auto}.lookup-option{padding:11px 12px;cursor:pointer;border-bottom:1px solid #edf1ef;overflow-wrap:anywhere}.lookup-option strong{display:block;font-size:.9rem;font-weight:500}.lookup-option small{display:block;margin-top:4px}.lookup-option:hover,.lookup-option[aria-selected=true]{background:#e5f1ec;color:#153d3a}.lookup-status{padding:9px 12px;color:#627674;font-size:.78rem;line-height:1.4}
.receipt-check{margin-top:20px}.receipt-check p{margin:10px 0}.receipt-confirm{display:flex;align-items:flex-start;gap:10px;margin-top:18px;font-weight:600}.receipt-confirm input{width:18px;height:18px;flex-shrink:0;margin-top:2px}#receipt-preview{font-weight:600}#report-filters{align-items:end;margin-bottom:22px}#report-error{color:#a33131}
.stock-filter{display:flex;align-items:center;gap:8px;white-space:nowrap}.stock-reserved{display:flex;align-items:center;gap:8px;white-space:nowrap}.stock-reserved input{width:18px;height:18px;margin:0}.stock-pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin:14px 0 28px;font-size:.85rem}.toolbar{flex-wrap:wrap}@media(max-width:760px){.stock-pagination{flex-wrap:wrap;justify-content:center}}
.profit-negative{color:#a12d2d}.profit-positive{color:#175b42}.profit-items{padding:14px;background:#f5f8f7}.profit-items>strong{display:block;margin-bottom:10px}@media print{.profit-items{background:white}.profit-negative,.profit-positive{color:inherit}}
