:root{
--bg:#f5f7fa;--fg:#182033;--card:#fff;--primary:#1a3b89;--primary2:#224898;--muted:#6b7280;--border:#dfe4eb;--soft:#edf1f6;--red:#dc2626;--green:#16a34a;--yellow:#ca8a04;--violet:#7c3aed;--blue:#2563eb;--cyan:#0ea5e9;--radius:15px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--fg);background:var(--bg)}h1,h2,h3,h4{font-family:"Segoe UI",Arial,sans-serif}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.app{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:256px;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:30;transition:.2s}.sidebar.collapsed{width:76px}.brand{display:flex;align-items:center;gap:10px;padding:20px 16px}.brand-icon{width:40px;height:40px;border-radius:12px;background:var(--primary);color:#fff;display:grid;place-items:center;flex:none}.brand-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.brand-copy{line-height:1.1}.brand-copy strong{display:block;color:var(--primary);font-size:14px;font-weight:800}.brand-copy small{font-size:11px;color:var(--muted)}.sidebar.collapsed .brand-copy,.sidebar.collapsed .nav span,.sidebar.collapsed .account,.sidebar.collapsed .logout span,.sidebar.collapsed .collapse-btn span:last-child{display:none}.nav{padding:8px 12px;display:grid;gap:4px}.nav a{min-height:48px;padding:0 12px;border-radius:12px;display:flex;align-items:center;gap:12px;color:#687386;font-size:14px;font-weight:650}.nav a svg,.logout svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav a:hover{background:var(--soft);color:var(--fg)}.nav a.active{background:var(--primary);color:#fff}.sidebar-bottom{margin-top:auto;padding:14px 12px;border-top:1px solid var(--border)}.account{padding:0 10px 8px}.account strong{display:block;font-size:12px}.account small{font-size:11px;color:var(--muted);text-transform:capitalize}.sidebar-bottom form{margin:0}.logout,.collapse-btn{border:0;background:none;width:100%;display:flex;align-items:center;gap:12px;padding:11px 10px;border-radius:10px;cursor:pointer}.logout{color:var(--red);font-weight:650}.logout:hover{background:#fef2f2}.collapse-btn{color:var(--muted);font-size:12px}.collapse-btn:hover{background:var(--soft)}.main{padding-left:256px;transition:.2s}.sidebar.collapsed~.main{padding-left:76px}.container{max-width:1210px;margin:0 auto;padding:22px 32px 42px}.mobile-top,.bottom-nav{display:none}.page-title p{margin:0 0 4px;color:var(--muted);font-size:14px}.page-title h1,.title-row h1,.narrow>h1{margin:0;font-size:30px;font-weight:800}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:26px}.stat-card{background:#fff;border:1px solid var(--border);border-radius:17px;padding:16px;box-shadow:0 1px 3px #0000000a;min-height:142px}.stat-card.stat-wide{grid-column:span 2}.stat-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;margin-bottom:14px}.stat-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.stat-card strong{display:block;font-size:28px;font-weight:800}.stat-card small{color:var(--muted);font-size:12px}.tone-primary{background:#eaf0ff;color:var(--primary)}.tone-gray{background:#f3f4f6;color:#4b5563}.tone-yellow{background:#fef9c3;color:#a16207}.tone-blue{background:#dbeafe;color:#1d4ed8}.tone-violet{background:#ede9fe;color:#6d28d9}.tone-green{background:#dcfce7;color:#15803d}.tone-red{background:#fee2e2;color:#b91c1c}.tone-cyan{background:#e0f2fe;color:#0284c7}.action-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:28px}.action{min-height:112px;border:1px solid var(--border);border-radius:17px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:750;transition:.15s}.action svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8}.action:hover{border-color:var(--primary);background:#f8faff}.primary-action{background:var(--primary);color:#fff;border-color:var(--primary)}.primary-action:hover{background:#163477}.attention-box{border:1px solid #fecaca;background:#fff7f7;border-radius:17px;padding:18px;margin-top:28px}.attention-box header{display:flex;align-items:center;justify-content:space-between;color:#c81e1e}.attention-box header>div{display:flex;align-items:center;gap:8px}.attention-box header svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.attention-box header>span{background:#ef4444;color:#fff;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:800}.attention-box>p{font-size:13px;color:var(--muted);margin:12px 0 0}.attention-list{display:grid;gap:8px;margin-top:12px}.attention-list a{background:#fff;border:1px solid #fecaca;border-radius:12px;padding:11px;display:flex;align-items:center;justify-content:space-between}.attention-list a div{display:flex;flex-direction:column}.attention-list a small{color:var(--muted);margin-top:2px}.title-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.title-actions{display:flex;gap:8px}.primary,.secondary,.danger-outline,.danger-btn,.whatsapp-btn,.small-primary{border-radius:12px;min-height:42px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;font-weight:750;cursor:pointer}.primary{background:var(--primary);color:#fff}.primary:hover{background:#163477}.secondary{background:#fff;color:var(--fg);border-color:var(--border)}.secondary:hover{background:var(--soft)}.big{min-height:49px}.full{width:100%}.primary svg,.secondary svg,.danger-outline svg,.whatsapp-btn svg,.small-primary svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9}.searchbar{height:48px;border:1px solid var(--border);background:#fff;border-radius:12px;display:flex;align-items:center;padding:0 13px;gap:9px}.searchbar svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.8}.searchbar input{border:0;outline:0;background:transparent;width:100%}.client-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.client-card{background:#fff;border:1px solid var(--border);border-radius:17px;padding:15px;box-shadow:0 1px 2px #00000008}.client-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.client-name{display:flex;align-items:center;gap:9px;min-width:0}.client-name>span{width:36px;height:36px;border-radius:50%;background:#e9effb;color:var(--primary);display:grid;place-items:center}.client-name svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.client-name strong{font-size:14px}.client-name>div{min-width:0}.client-name>div strong,.client-name>div small{display:block}.client-name>div small{color:var(--muted);font-size:11px}.mini-actions{display:flex;gap:2px}.mini-actions form{margin:0}.mini-actions button{width:30px;height:30px;border:0;background:none;border-radius:8px;display:grid;place-items:center;cursor:pointer;color:var(--muted)}.mini-actions button:hover{background:var(--soft)}.mini-actions .danger-icon{color:var(--red)}.mini-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.client-meta{margin-top:12px;display:grid;gap:5px;font-size:12px;color:var(--muted)}.client-meta p{margin:0;display:flex;gap:6px;align-items:center}.client-meta svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}.role-pill{display:inline-block;margin-top:13px;background:var(--soft);border-radius:999px;padding:4px 9px;font-size:11px;text-transform:capitalize;font-weight:650}.empty{text-align:center;color:var(--muted);font-size:13px;padding:70px 0}.modal{position:fixed;inset:0;background:#0008;z-index:80;display:none;align-items:center;justify-content:center;padding:20px}.modal.open{display:flex}.modal-panel{width:min(100%,440px);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;padding:22px;box-shadow:0 20px 60px #0004}.modal-lg{width:min(100%,680px)}.modal-panel>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modal-panel h2{margin:0;font-size:20px}.modal-panel>header button{width:32px;height:32px;border:0;background:none;border-radius:8px;display:grid;place-items:center}.modal-panel>header svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.form-grid label,.stack-form label,.order-form label,.report-filter label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:var(--muted)}.form-grid input,.form-grid select,.form-grid textarea,.stack-form input,.stack-form select,.order-form input,.order-form select,.order-form textarea,.filters input,.filters select,.report-filter input{border:1px solid #d7dee8;background:#fff;border-radius:9px;min-height:41px;padding:8px 10px;outline:none;color:var(--fg)}textarea{resize:vertical}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.order-form input:focus,.order-form select:focus,.order-form textarea:focus{border-color:var(--primary);box-shadow:0 0 0 2px #1a3b8919}.span-2{grid-column:span 2}.modal-actions,.form-actions{display:flex;gap:10px;margin-top:6px}.modal-actions>*{flex:1}.stack-form{display:grid;gap:11px}.narrow{max-width:700px;margin:0 auto}.narrow.wide-detail{max-width:780px}.back{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:13px;font-weight:650;margin-bottom:17px}.back svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.order-form{margin-top:18px;background:#fff;border:1px solid var(--border);border-radius:17px;padding:19px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.total-box{background:var(--soft);border-radius:11px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between}.total-box strong{font-size:13px}.total-box span{font-size:20px;color:var(--primary);font-weight:800}.form-actions>*{flex:1}.error-text{color:var(--red)}.orders-search{display:flex;gap:8px}.orders-search .searchbar{flex:1}.filters{display:none;grid-template-columns:repeat(5,1fr) auto;gap:10px;background:#fff;border:1px solid var(--border);border-radius:15px;padding:13px;margin-top:10px}.filters.show{display:grid}.filters>*{min-width:0}.orders-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.order-card{background:#fff;border:1px solid var(--border);border-radius:17px;overflow:hidden;box-shadow:0 1px 2px #00000008}.order-card.stuck{border-color:#ef444499;box-shadow:0 0 0 1px #ef444433}.order-card-body{display:block;padding:15px}.order-card header{display:flex;justify-content:space-between;align-items:center}.order-card header>strong{color:var(--primary);font-weight:800}.order-card h3{font-size:14px;margin:10px 0 3px}.order-card p{font-size:13px;color:var(--muted);margin:0}.order-money{display:flex;align-items:center;justify-content:space-between;margin-top:13px}.order-money>strong{font-size:14px}.pay{font-size:10px;padding:3px 7px;border-radius:999px;font-weight:700}.pay.pago{background:#dcfce7;color:#15803d}.pay.pendente{background:#fef9c3;color:#a16207}.order-card small{display:block;color:var(--muted);font-size:10px;margin-top:9px}.order-card footer{display:flex;gap:8px;padding:0 15px 13px}.order-card footer a{height:34px;border-radius:8px;background:var(--soft);display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:650;flex:1}.order-card footer svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}.order-card footer .whats{flex:0 0 42px;background:#16a34a;color:#fff}.status{display:inline-flex;color:#fff!important;border-radius:999px;padding:4px 9px;font-size:10px;font-weight:700;white-space:nowrap}.big-status{font-size:12px;padding:6px 11px}.st-feito{background:#6b7280}.st-comprado{background:#eab308}.st-passado{background:#3b82f6}.st-etiquetado{background:#8b5cf6}.st-postado{background:#22c55e}.st-cancelado{background:#ef4444}.table-wrap{margin-top:16px;background:#fff;border:1px solid var(--border);border-radius:17px;overflow:auto}.table-wrap table,.report-table table{width:100%;border-collapse:collapse;font-size:12px}.table-wrap th,.table-wrap td,.report-table th,.report-table td{padding:10px 11px;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap}.table-wrap th{background:var(--soft);font-size:10px;text-transform:uppercase;color:var(--muted)}.row-stuck{background:#fff5f5}.small-primary{min-height:30px;padding:0 10px;background:var(--primary);color:#fff;font-size:10px}.detail-top{display:flex;align-items:center;justify-content:space-between}.detail-head,.progress-box,.detail-grid,.history-box,.report-table,.report-block{background:#fff;border:1px solid var(--border);border-radius:17px;padding:18px;margin-top:14px}.detail-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.detail-head h1{margin:0;color:var(--primary);font-size:25px}.detail-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.cancel-reason{width:100%;background:#fee2e2;color:#b91c1c;border-radius:10px;padding:10px;font-size:12px}.progress-box{display:flex;align-items:flex-start}.progress-step{display:flex;flex:0 0 86px;flex-direction:column;align-items:center;gap:6px;text-align:center}.step-circle{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e5e7eb;color:#9ca3af;font-size:11px;font-weight:800}.step-circle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}.progress-step.done .step-circle{background:var(--primary);color:#fff}.progress-step small{font-size:9px;font-weight:650;color:var(--muted)}.progress-step.done small{color:var(--fg)}.progress-line{height:4px;background:#e5e7eb;flex:1;margin-top:16px;border-radius:99px}.progress-line.done{background:var(--primary)}.detail-actions{margin-top:14px}.advance{width:100%;min-height:52px;font-size:14px}.detail-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.whatsapp-btn{background:#16a34a;color:#fff}.danger-outline{background:#fff7f7;border-color:#fca5a5;color:#b91c1c}.danger-btn{background:#dc2626;color:#fff}.complete{background:#dcfce7;color:#15803d;border-radius:13px;padding:12px;text-align:center;font-size:13px;font-weight:750}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.detail-grid div{display:flex;flex-direction:column}.detail-grid small{color:var(--muted);font-size:10px;font-weight:650}.detail-grid strong{font-size:13px;margin-top:2px}.history-box h2,.report-table h2,.report-block h2{font-size:15px;margin:0 0 13px}.timeline{display:grid}.timeline-row{display:flex;gap:10px}.timeline-mark{display:flex;align-items:center;flex-direction:column;width:12px}.timeline-mark span{width:10px;height:10px;border-radius:50%}.timeline-mark i{width:1px;background:var(--border);flex:1}.timeline-row>div:last-child{padding-bottom:14px}.timeline-row strong{display:block;font-size:12px}.timeline-row small{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:10px;margin-top:2px}.timeline-row small svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8}.timeline-row em{display:block;color:var(--muted);font-size:10px;margin-top:3px}.report-filter{display:flex;align-items:end;gap:12px;background:#fff;border:1px solid var(--border);border-radius:15px;padding:14px}.report-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}.report-stats>div{background:#fff;border:1px solid var(--border);border-radius:15px;padding:14px}.report-stats small{display:block;color:var(--muted);font-size:10px}.report-stats strong{font-size:20px}.primary-text{color:var(--primary)}.green-box{background:#f0fdf4!important;border-color:#bbf7d0!important;color:#15803d}.yellow-box{background:#fefce8!important;border-color:#fef08a!important;color:#a16207}.report-blocks{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.report-block{margin-top:0}.report-block div{display:flex;justify-content:space-between;font-size:12px;margin-top:6px}.report-block p{font-size:12px;color:var(--muted)}.report-table{overflow:auto}.report-table th{color:var(--muted);font-size:10px}.report-stuck{display:flex;justify-content:space-between;font-size:12px;margin-top:6px}.toast-msg{position:relative;margin-bottom:14px;border-radius:12px;padding:11px 14px;font-size:12px;font-weight:650}.toast-success{background:#dcfce7;color:#166534}.toast-error{background:#fee2e2;color:#991b1b}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-left{position:relative;overflow:hidden;background:var(--primary);color:#fff;padding:48px;display:flex;flex-direction:column;justify-content:space-between}.login-glow{position:absolute;width:380px;height:380px;border-radius:50%;filter:blur(50px);opacity:.25}.glow-a{right:-100px;top:-100px;background:#38bdf8}.glow-b{left:-120px;bottom:-150px;background:#fff}.login-brand{position:relative;display:flex;align-items:center;gap:10px}.login-logo{background:#ffffff22}.login-brand strong{font-size:20px}.login-hero{position:relative;margin:auto 0}.login-hero h1{font-size:44px;line-height:1.08;margin:0;font-weight:800}.install-btn{position:relative;width:max-content;border:0;background:#ffffff20;color:#fff;border-radius:999px;padding:10px 14px;font-weight:650}.install-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.login-right{display:grid;place-items:center;padding:24px}.login-box{width:min(100%,370px)}.login-mobile-logo{display:none}.login-box h2{font-size:25px;margin:0}.login-box>p{color:var(--muted);font-size:13px;margin:5px 0 0}.login-form{display:grid;gap:8px;margin-top:22px}.login-form label{font-size:12px;font-weight:700}.input-icon{height:48px;border:1px solid var(--border);border-radius:12px;display:flex;align-items:center}.input-icon svg{width:17px;height:17px;margin:0 11px;fill:none;stroke:var(--muted);stroke-width:1.8}.input-icon input{border:0;outline:0;flex:1;padding-right:10px}.remember{font-weight:500!important;color:var(--muted);margin:4px 0}.login-note{margin-top:26px;border:1px solid var(--border);background:var(--soft);border-radius:12px;padding:11px;font-size:10px;color:var(--muted)}.login-note strong,.login-note span{display:block}.login-note strong{color:var(--fg)}.bottom-nav{display:none}
@media(max-width:1050px){.stats-grid{grid-template-columns:repeat(3,1fr)}.action-grid{grid-template-columns:repeat(3,1fr)}.orders-cards,.client-grid{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:repeat(3,1fr)}}
@media(max-width:767px){.sidebar{display:none}.main{padding-left:0}.container{padding:18px 14px 84px}.mobile-top{display:flex;position:sticky;top:0;z-index:25;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--border);padding:9px 14px}.brand-mobile{padding:0}.brand-mobile .brand-icon{width:35px;height:35px;border-radius:10px}.brand-mobile strong{color:var(--primary);font-size:13px}.mobile-logout{border:0;background:none;color:var(--red)}.mobile-logout svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:35;background:#fff;border-top:1px solid var(--border)}.bottom-nav a{flex:1;padding:8px 2px;display:flex;align-items:center;flex-direction:column;gap:2px;color:var(--muted);font-size:9px;font-weight:700}.bottom-nav a.active{color:var(--primary)}.bottom-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.page-title h1,.title-row h1,.narrow>h1{font-size:25px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:9px}.stat-card{min-height:130px}.stat-wide{grid-column:span 2!important}.action-grid{grid-template-columns:repeat(2,1fr)}.client-grid,.orders-cards{grid-template-columns:1fr}.orders-search{flex-direction:column}.filters{grid-template-columns:1fr 1fr}.detail-grid,.report-blocks{grid-template-columns:1fr}.report-stats{grid-template-columns:1fr 1fr}.progress-box{overflow:auto}.progress-step{flex-basis:70px}.login{grid-template-columns:1fr}.login-left{display:none}.login-right{min-height:100vh}.login-mobile-logo{display:flex;align-items:center;gap:10px;margin-bottom:26px}.login-mobile-logo>div{display:flex;flex-direction:column}.login-mobile-logo strong{color:var(--primary)}.login-mobile-logo small{color:var(--muted);font-size:10px}.modal{align-items:flex-end;padding:0}.modal-panel{border-radius:22px 22px 0 0;max-height:92vh}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}}
@media print{.no-print,.sidebar,.mobile-top,.bottom-nav{display:none!important}.main{padding-left:0!important}.container{max-width:none;padding:0}.detail-head,.progress-box,.detail-grid,.history-box,.report-table,.report-block{box-shadow:none}}

.order-section{background:#f1f4f8;border-radius:12px;padding:12px}.order-section>strong{display:block;color:#6b7280;font-size:10px;letter-spacing:.05em;margin-bottom:9px}.subgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.order-section label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:var(--muted)}.order-section input{border:1px solid #d7dee8;background:#fff;border-radius:9px;min-height:41px;padding:8px 10px;outline:none;color:var(--fg)}.finance-card{background:#fff;border:1px solid var(--border);border-radius:17px;padding:18px;margin-top:14px}.finance-card h2{font-size:15px;margin:0 0 13px}.detail-grid-flat{margin:0;padding:0;border:0;box-shadow:none}.profit-box{display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--soft);font-size:13px;font-weight:700}.profit-box strong{font-size:18px}.profit-positive{color:#16a34a}.profit-negative{color:#dc2626}.modal-intro{margin:-5px 0 15px;color:var(--muted);font-size:12px}.trash-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.trash-card{background:#fff7f7;border:1px solid #fecaca;border-radius:17px;padding:15px}.trash-card header{display:flex;align-items:center;justify-content:space-between}.trash-card header>strong{color:var(--primary)}.trash-card h3{font-size:14px;margin:12px 0 3px}.trash-card>p{font-size:12px;color:var(--muted);margin:0}.trash-reason{margin-top:12px;background:#fff;border-radius:11px;padding:11px;display:flex;flex-direction:column;font-size:11px}.trash-reason>strong{color:#b91c1c}.trash-reason>span{color:var(--muted);margin-top:3px}.trash-reason>small{color:var(--muted);margin-top:8px}.trash-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.trash-actions form{margin:0}.trash-empty{padding:70px 20px;display:flex;align-items:center;flex-direction:column;color:var(--muted)}.trash-empty svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.7;margin-bottom:10px}.trash-empty strong{color:var(--fg)}.daily-buying{background:#eef3ff;border:1px solid #b9c8ef;border-radius:17px;padding:16px;margin-top:14px}.daily-buying h2{font-size:16px;color:var(--primary);margin:0}.daily-buying>div>p{font-size:11px;color:var(--muted);margin:3px 0}.daily-buying form{display:flex;align-items:end;gap:10px;margin-top:12px}.daily-buying label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:11px;font-weight:700}.daily-buying input{min-height:40px;border:1px solid var(--border);border-radius:9px;padding:7px 10px}.daily-buying>p{font-size:12px;color:var(--muted);margin:12px 0 0}
@media(max-width:767px){.subgrid,.trash-grid,.trash-actions{grid-template-columns:1fr}.daily-buying form{align-items:stretch;flex-direction:column}.daily-buying form .primary{width:100%}}

.install-sidebar{padding:0 12px 8px}.install-app-btn{width:100%;min-height:44px;border:1px solid #c9d5ef;background:#eef3ff;color:var(--primary);border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 12px;font-weight:750;cursor:pointer}.install-app-btn:hover{background:#e2eaff}.install-app-icon{width:25px;height:25px;border-radius:8px;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:16px;font-weight:900}.sidebar.collapsed .install-app-btn span:last-child{display:none}.sidebar.collapsed .install-app-btn{justify-content:center;padding:0}.mobile-top-actions{display:flex;align-items:center;gap:5px}.mobile-install{width:34px;height:34px;border:1px solid #c9d5ef;border-radius:9px;background:#eef3ff;color:var(--primary);font-weight:900;font-size:18px}.pwa-install-modal{position:fixed;inset:0;z-index:9999;background:#0009;display:none;align-items:center;justify-content:center;padding:20px}.pwa-install-modal.open{display:flex}.pwa-install-card{position:relative;width:min(100%,430px);background:#fff;border-radius:22px;padding:28px;box-shadow:0 25px 80px #0005;text-align:center}.pwa-logo img{width:82px;height:82px;border-radius:21px;box-shadow:0 10px 28px #1a3b8933}.pwa-install-card h2{margin:16px 0 6px;font-size:22px}.pwa-install-card>p{color:var(--muted);font-size:13px;line-height:1.5}.pwa-close{position:absolute;top:12px;right:12px;width:32px;height:32px;border:0;border-radius:9px;background:var(--soft);font-size:20px;color:var(--muted);cursor:pointer}.pwa-ios-help{text-align:left;background:#f5f7fa;border-radius:13px;padding:12px 14px;margin:14px 0}.pwa-ios-help ol{margin:0;padding-left:21px}.pwa-ios-help li{font-size:12px;margin:7px 0;line-height:1.45}.install-app-btn.installed{opacity:.6}.install-app-btn.pwa-ready{box-shadow:0 0 0 2px #1a3b8915}
@media(max-width:767px){.install-sidebar{display:none}.pwa-install-card{padding:24px 18px}.pwa-logo img{width:72px;height:72px}}

/* V6 - MULTIPRODUTO E CONTABILIDADE */
.order-form-width{max-width:900px}.multi-order-form{grid-template-columns:1fr 1fr}.product-editor{background:#fff;border:1px solid var(--border);border-radius:15px;padding:14px}.product-editor-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.product-editor-header>div{display:flex;flex-direction:column}.product-editor-header>div>strong{font-size:14px}.product-editor-header small{font-size:10px;color:var(--muted);margin-top:2px}.add-product-btn{white-space:nowrap}.product-lines{display:grid;gap:10px}.product-line{border:1px solid #dce2ea;background:#f8fafc;border-radius:13px;padding:12px}.product-line-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.product-line-top>strong{font-size:11px;color:var(--primary);text-transform:uppercase;letter-spacing:.04em}.remove-product{width:28px;height:28px;border:0;border-radius:8px;background:#fee2e2;color:#b91c1c;font-size:18px;cursor:pointer}.product-line-grid{display:grid;grid-template-columns:minmax(220px,2fr) .7fr 1fr 1fr;gap:9px}.product-line-grid label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:10px;font-weight:700}.product-line-grid input{width:100%;min-height:40px;border:1px solid #d7dee8;background:#fff;border-radius:9px;padding:7px 9px;outline:none;color:var(--fg)}.money-input{display:flex;align-items:center;border:1px solid #d7dee8;background:#fff;border-radius:9px;overflow:hidden}.money-input>span{padding-left:9px;color:var(--muted);font-size:11px;font-weight:700}.money-input input{border:0!important}.product-line-results{display:flex;justify-content:flex-end;gap:18px;margin-top:9px;padding-top:8px;border-top:1px dashed #d7dee8;font-size:10px;color:var(--muted)}.product-line-results strong{color:var(--fg)}.accounting-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;background:#f1f4f8;border-radius:14px;padding:11px}.accounting-summary>div{background:#fff;border:1px solid #dde3eb;border-radius:11px;padding:10px;display:flex;flex-direction:column}.accounting-summary small{color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800;letter-spacing:.04em}.accounting-summary strong{font-size:17px;margin-top:3px}.accounting-summary .net-summary{border-color:#b9c8ef;background:#f7f9ff}.accounting-formula{font-size:10px;color:var(--muted);background:#eef3ff;border-radius:9px;padding:8px 10px}.positive-money{color:#15803d!important}.negative-money{color:#b91c1c!important}.financial-heading{display:flex;align-items:end;justify-content:space-between;margin-top:24px;margin-bottom:10px}.financial-heading span{font-size:9px;color:var(--primary);font-weight:800;letter-spacing:.12em}.financial-heading h2{font-size:16px;margin:2px 0 0}.operation-heading{margin-top:28px}.finance-dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.finance-dashboard-card{background:#fff;border:1px solid var(--border);border-radius:17px;padding:15px;box-shadow:0 1px 2px #00000008;display:flex;flex-direction:column}.finance-dashboard-card small{font-size:10px;color:var(--muted);font-weight:700}.finance-dashboard-card strong{font-size:22px;margin-top:4px}.finance-dashboard-card span{font-size:9px;color:var(--muted);margin-top:4px}.gross-card{border-color:#bbf7d0;background:#f8fffa}.net-card{border-color:#a9bcec;background:#f7f9ff}.finance-mini-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:9px}.finance-mini-row>div{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--border);border-radius:11px;padding:9px 11px;font-size:10px}.finance-mini-row span{color:var(--muted)}.order-money>div{display:flex;flex-direction:column}.order-money>div small{margin:0}.order-profit-mini{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--border);padding-top:8px;margin-top:9px;font-size:9px;color:var(--muted)}.order-products-detail{background:#fff;border:1px solid var(--border);border-radius:17px;padding:18px;margin-top:14px}.order-products-detail h2{font-size:15px;margin:0 0 12px}.order-products-table{overflow:auto}.order-products-table table{width:100%;border-collapse:collapse;font-size:11px}.order-products-table th,.order-products-table td{padding:8px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}.order-products-table th{background:#f5f7fa;color:var(--muted);font-size:9px;text-transform:uppercase}.accounting-summary-detail{margin:0}.finance-expense-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.finance-expense-list>div{display:flex;flex-direction:column;background:#f8fafc;border-radius:10px;padding:9px}.finance-expense-list span{font-size:9px;color:var(--muted)}.finance-expense-list strong{font-size:13px;margin-top:2px}.modal-xl{width:min(100%,900px)}.edit-financial-form{grid-template-columns:1fr 1fr}.financial-report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.report-finance-card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:14px;display:flex;flex-direction:column}.report-finance-card small{font-size:9px;color:var(--muted);font-weight:800;text-transform:uppercase}.report-finance-card strong{font-size:20px;margin-top:4px}.report-finance-card span{font-size:9px;color:var(--muted);margin-top:3px}.gross-report{background:#f8fff9;border-color:#bbf7d0}.net-report{background:#f7f9ff;border-color:#b9c8ef}.report-expense-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:8px}.report-expense-summary>div{background:#fff;border:1px solid var(--border);border-radius:11px;padding:9px;display:flex;flex-direction:column}.report-expense-summary span{font-size:9px;color:var(--muted)}.report-expense-summary strong{font-size:12px;margin-top:2px}.report-formula{margin-top:8px}.financial-orders-table{margin-top:14px}.financial-orders-table>h2{font-size:15px;margin:0 0 8px}.report-financial-table{margin-top:0}
@media(max-width:1050px){.finance-dashboard-grid,.financial-report-grid{grid-template-columns:repeat(2,1fr)}.report-expense-summary{grid-template-columns:repeat(3,1fr)}.product-line-grid{grid-template-columns:2fr .7fr 1fr 1fr}}
@media(max-width:767px){.multi-order-form,.edit-financial-form{grid-template-columns:1fr}.product-editor-header{align-items:stretch;flex-direction:column}.add-product-btn{width:100%}.product-line-grid{grid-template-columns:1fr 1fr}.product-name-field{grid-column:span 2}.product-line-results{flex-direction:column;gap:4px}.accounting-summary,.finance-dashboard-grid,.financial-report-grid{grid-template-columns:1fr 1fr}.finance-mini-row,.finance-expense-list{grid-template-columns:1fr}.report-expense-summary{grid-template-columns:1fr 1fr}.modal-xl{width:100%}}

/* V8 - BACKUP & EXPORTAÇÃO */
.page-subtitle{margin:4px 0 0;color:var(--muted);font-size:11px}.backup-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.backup-info-card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:14px}.backup-info-card strong{display:block;font-size:13px}.backup-info-card p{font-size:10px;color:var(--muted);line-height:1.45;margin:5px 0 0}.backup-warning{display:flex;align-items:center;gap:10px;background:#fff8e6;border:1px solid #fde68a;border-radius:12px;padding:11px 13px;margin-top:10px}.backup-warning strong{color:#92400e;font-size:11px}.backup-warning span{color:#785d19;font-size:10px}.backup-list-card{background:#fff;border:1px solid var(--border);border-radius:17px;margin-top:14px;overflow:hidden}.backup-list-card>header{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid var(--border)}.backup-list-card h2{font-size:14px;margin:0}.backup-list-card header p{font-size:9px;color:var(--muted);margin:3px 0 0}.backup-list{display:grid}.backup-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--border)}.backup-row:last-child{border-bottom:0}.backup-file-icon{width:42px;height:42px;border-radius:11px;background:#eef3ff;color:var(--primary);display:grid;place-items:center;font-size:10px;font-weight:900}.backup-file-main{flex:1;min-width:0;display:flex;flex-direction:column}.backup-file-main strong{font-size:11px;word-break:break-all}.backup-file-main span{font-size:9px;color:var(--muted);margin-top:2px}.backup-actions{display:flex;align-items:center;gap:7px}.backup-actions form{margin:0}.backup-restore-note{background:#eef3ff;border-radius:13px;padding:13px;margin-top:12px}.backup-restore-note strong{font-size:11px;color:var(--primary)}.backup-restore-note p{font-size:10px;color:var(--muted);line-height:1.45;margin:4px 0 0}
@media(max-width:767px){.backup-info-grid{grid-template-columns:1fr}.backup-row{align-items:flex-start;flex-wrap:wrap}.backup-file-main{min-width:calc(100% - 58px)}.backup-actions{width:100%;padding-left:54px}.backup-actions .secondary,.backup-actions form{flex:1}.backup-actions form button{width:100%}}

/* V9 - VENDEDOR */
.seller-label{display:block;color:var(--primary);font-size:9px;font-weight:700;margin:1px 0 4px}

/* V11 - COMPARTILHAMENTO DE PDF */
.report-title-share{align-items:flex-start}.report-share-note{display:block;color:var(--muted);font-size:9px;margin-top:3px}.report-share-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.share-whatsapp,.share-email{min-height:38px;padding:0 12px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:10px;font-weight:800}.share-whatsapp{background:#eaf8ef;border:1px solid #b7e2c4;color:#16743a}.share-email{background:#f5f6f8;border:1px solid #d7dbe1;color:#374151}.share-whatsapp:hover{background:#ddf4e6}.share-email:hover{background:#eceff3}[data-share-pdf]:disabled{opacity:.65;cursor:wait}
@media(max-width:767px){.report-title-share{flex-direction:column;gap:10px}.report-share-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.report-share-actions>*{width:100%}}

/* V15 - SITUAÇÃO DOS CLIENTES */
.customer-status-filter{align-items:end;flex-wrap:wrap}.late-only-check{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;padding-bottom:9px}.late-only-check input{width:auto!important;min-height:auto!important}
.customer-status-summary{display:grid;grid-template-columns:repeat(2,minmax(160px,220px));gap:9px;margin:12px 0}.customer-status-summary>div{background:#fff;border:1px solid var(--border);border-radius:13px;padding:11px;display:flex;flex-direction:column}.customer-status-summary small{font-size:9px;color:var(--muted);font-weight:700}.customer-status-summary strong{font-size:20px;margin-top:2px}.customer-status-summary .late-summary{background:#fff4f4;border-color:#f1a9a9}.customer-status-summary .late-summary strong{color:#b91c1c}
.customer-status-groups{display:grid;gap:14px}.customer-status-card{background:#fff;border:1px solid var(--border);border-radius:16px;overflow:hidden}.customer-status-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;background:#eef3ff;border-bottom:1px solid #cbd5e1}.customer-status-card h2{font-size:14px;margin:0;color:var(--primary)}.customer-status-card header p{font-size:9px;color:var(--muted);margin:3px 0 0}.customer-status-badges{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.customer-status-badges span,.customer-status-badges strong{font-size:9px;padding:5px 8px;border-radius:999px;background:#fff;border:1px solid #d7deea}.customer-status-badges strong{background:#fff0f0;border-color:#efb1b1;color:#b91c1c}
.customer-status-table table{min-width:1280px}.customer-status-table th,.customer-status-table td{font-size:10px;font-weight:700;padding:7px 6px}.customer-status-table th{font-size:9px;font-weight:800;background:#f4f6f9}.stage-cell{text-align:center}.stage-done{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e7f7ed;color:#15803d;font-weight:900}.stage-pending{color:#9ca3af}.late-order-row{background:#fff0f0!important}.late-order-row td{border-color:#efb1b1!important}.late-order-label{color:#b91c1c;font-size:9px;font-weight:900}.observation-cell{min-width:220px;white-space:normal}

/* V17 - SITUAÇÃO POR DATA + RASTREIO */
.status-date-groups{display:grid;gap:20px}
.status-date-section{display:grid;gap:10px}
.status-date-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--primary);color:#fff;border-radius:15px;padding:13px 16px}
.status-date-header span{display:block;font-size:8px;font-weight:800;letter-spacing:.12em;opacity:.8}
.status-date-header h2{margin:2px 0 0;font-size:21px;color:#fff}
.status-date-counts{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.status-date-counts span,.status-date-counts strong{font-size:9px;padding:5px 8px;border:1px solid #ffffff55;border-radius:999px;background:#ffffff14}
.status-date-counts strong{background:#fff0f0;color:#b91c1c;border-color:#fff}
.tracking-id-cell{color:var(--primary);font-weight:900;white-space:normal;word-break:break-word;min-width:120px}
.customer-status-table table{min-width:1450px}
@media(max-width:767px){.status-date-header{align-items:flex-start;flex-direction:column}.status-date-counts{width:100%}}
