:root{color-scheme:dark;--background: #101010;--foreground: #f7f7f7;--card: #181818;--muted: #242424;--muted-soft: rgba(255, 255, 255, .045);--muted-foreground: #a6a6a6;--border: #303030;--primary: #f5f5f5;--primary-foreground: #181818;--danger: #e05252;--danger-soft: rgba(224, 82, 82, .12);--success: #58bd86;--success-soft: rgba(88, 189, 134, .13);--warning: #e3ae55;--warning-soft: rgba(227, 174, 85, .14);--shadow: 0 20px 55px rgba(0, 0, 0, .28);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--background);color:var(--foreground)}:root[data-theme=light]{color-scheme:light;--background: #f5f6f8;--foreground: #171717;--card: #ffffff;--muted: #f0f1f3;--muted-soft: rgba(16, 24, 40, .035);--muted-foreground: #707070;--border: #e0e1e4;--primary: #202020;--primary-foreground: #ffffff;--danger: #c63b3b;--danger-soft: rgba(198, 59, 59, .1);--success: #237b4b;--success-soft: rgba(35, 123, 75, .1);--warning: #956414;--warning-soft: rgba(149, 100, 20, .12);--shadow: 0 20px 55px rgba(39, 43, 54, .12)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:var(--background);color:var(--foreground)}button,input,select,textarea{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 13px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--foreground);cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}button:hover{background:var(--muted)}button:active{transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.55}button.primary{border-color:var(--primary);background:var(--primary);color:var(--primary-foreground);font-weight:700}button.primary:hover{opacity:.9;background:var(--primary)}button.wide{width:100%}input,select,textarea{width:100%;min-height:42px;border:1px solid var(--border);border-radius:8px;background:var(--muted-soft);color:var(--foreground);padding:10px 12px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}select option{background:var(--card);color:var(--foreground)}input:focus,select:focus,textarea:focus{border-color:var(--muted-foreground);box-shadow:0 0 0 3px color-mix(in srgb,var(--muted-foreground) 18%,transparent)}textarea{min-height:84px;resize:vertical}label{display:grid;gap:7px;color:var(--muted-foreground);font-size:12px;font-weight:600}small,.muted{color:var(--muted-foreground)}h1,h2,h3,p{margin:0}h1{font-size:24px;letter-spacing:0}.app-shell{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh;transition:grid-template-columns .24s ease}.app-shell.is-collapsed{grid-template-columns:68px minmax(0,1fr)}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;border-right:1px solid var(--border);background:var(--card)}.brand{display:flex;align-items:center;gap:12px;height:64px;min-height:64px;padding:10px 14px;border-bottom:1px solid var(--border)}.brand-mark{width:40px;height:40px;object-fit:contain;flex:0 0 auto}.brand-copy{overflow:hidden}.brand-copy strong,.brand-copy span{display:block;white-space:nowrap}.brand-copy strong{font-size:14px}.brand-copy span{margin-top:2px;color:var(--muted-foreground);font-size:12px}.sidebar-nav{display:grid;gap:4px;padding:12px}.sidebar-nav button,.sidebar-footer button{justify-content:flex-start;width:100%;border-color:transparent;color:var(--muted-foreground);font-size:14px;font-weight:600}.sidebar-nav button:hover,.sidebar-footer button:hover{color:var(--foreground)}.sidebar-nav button.active{border-color:var(--primary);background:var(--primary);color:var(--primary-foreground)}.sidebar-footer{display:grid;gap:3px;margin-top:auto;padding:12px;border-top:1px solid var(--border)}.sidebar-user{overflow:hidden;padding:7px 10px;text-overflow:ellipsis;white-space:nowrap}.is-collapsed .brand{justify-content:center;padding-inline:6px}.is-collapsed .brand-mark{width:48px;height:42px}.is-collapsed .sidebar-nav,.is-collapsed .sidebar-footer{padding-inline:8px}.is-collapsed .sidebar-nav button,.is-collapsed .sidebar-footer button{justify-content:center;padding-inline:0}.workspace{min-width:0;padding:24px 28px 34px}.page{display:grid;gap:20px;max-width:1280px;margin:0 auto}.content-narrow{max-width:1120px}.content-wide{max-width:1540px}.new-order-page{max-width:1420px}.page-head,.panel-heading,.section-icon-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.actions,.filters,.manual-row,.row-actions,.order-footer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.panel{border:1px solid var(--border);border-radius:8px;background:var(--card);padding:20px}.table-panel{padding:0}.panel-title{color:var(--foreground);font-size:15px;font-weight:750}.panel-heading,.section-icon-heading{margin-bottom:16px}.panel-actions{margin-top:18px}.soft-tag{display:inline-flex;align-items:center;max-width:50%;overflow:hidden;border-radius:6px;background:var(--muted);color:var(--muted-foreground);padding:5px 9px;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.soft-tag.danger{background:var(--danger-soft);color:var(--danger)}.payment-with-warning{display:inline-flex;align-items:center;gap:6px;min-width:0}.tax-pending-symbol{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:18px;height:18px;border:1px solid color-mix(in srgb,var(--danger) 45%,transparent);border-radius:999px;background:var(--danger-soft);color:var(--danger);font-size:13px;font-weight:950;line-height:1}.customer-name-button{display:inline-grid;min-height:0;max-width:100%;justify-items:start;gap:2px;border:0;border-radius:6px;padding:0;background:transparent;color:var(--foreground);text-align:left}.customer-name-button:hover{background:transparent;color:var(--primary);text-decoration:underline}.customer-name-button small{color:var(--muted-foreground);text-decoration:none}.customer-name-button+.soft-tag{max-width:100%;margin-top:6px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.customer-form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px}.customer-form-grid label{gap:5px}.customer-form-grid input{min-height:38px;padding:8px 10px}.wide-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-bottom:15px}.settings-grid label:first-child,.settings-grid label:nth-child(3){grid-column:span 2}.section-icon-heading{justify-content:flex-start}.section-icon-heading>span{display:grid;width:38px;height:38px;place-items:center;border-radius:8px;background:var(--muted)}.section-icon-heading small{display:block;margin-top:3px}.type-switch{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.type-switch button{min-width:116px;min-height:44px;font-weight:700}.type-switch button.selected{border-color:var(--primary);background:var(--primary);color:var(--primary-foreground)}.type-switch button.entry{border-color:color-mix(in srgb,var(--danger) 60%,var(--border));color:var(--danger)}.type-switch button.entry:hover{background:var(--danger-soft)}.type-switch button.entry.selected{border-color:var(--danger);background:var(--danger);color:#fff}.entry-warning{display:flex;align-items:center;gap:10px;margin-top:14px;border:1px solid color-mix(in srgb,var(--danger) 45%,transparent);border-radius:8px;background:var(--danger-soft);color:var(--danger);padding:12px 14px;font-size:13px;font-weight:700}.order-main-blocks{display:grid;gap:20px}.order-customer-panel{order:-1}.new-order-page input,.new-order-page select,.new-order-page textarea{min-height:44px}.new-order-page .customer-form-grid input{min-height:38px;padding:8px 10px}.lookup{position:relative;display:flex;gap:9px;margin-bottom:16px}.search-field{display:flex;flex:1 1 280px;align-items:center;gap:9px;min-height:43px;border:1px solid var(--border);border-radius:8px;background:var(--muted-soft);padding:0 12px;color:var(--muted-foreground)}.search-field:focus-within{border-color:var(--muted-foreground);box-shadow:0 0 0 3px color-mix(in srgb,var(--muted-foreground) 18%,transparent)}.search-field input{min-height:0;border:0;background:transparent;padding:0;box-shadow:none}.suggestions{position:absolute;z-index:20;top:calc(100% + 7px);right:0;left:0;display:grid;max-height:310px;overflow:auto;border:1px solid var(--border);border-radius:8px;background:var(--card);padding:6px;box-shadow:var(--shadow)}.suggestions.inline{position:static;margin-top:14px;box-shadow:none}.customer-name-lookup{position:relative;min-width:0}.customer-suggestions{top:calc(100% + 7px)}.suggestions button{display:grid;grid-template-columns:42px 1fr auto;gap:10px;min-height:52px;border-color:transparent;text-align:left}.suggestions.inline button{grid-template-columns:1fr auto}.customer-suggestions button{display:grid;grid-template-columns:minmax(0,1fr);align-content:center;gap:4px;min-height:64px;overflow:hidden}.customer-suggestions span,.customer-suggestions small{min-width:0;overflow-wrap:anywhere}.customer-suggestion-name{display:grid;gap:2px;color:var(--foreground);line-height:1.25}.customer-suggestion-name span{color:var(--muted-foreground);font-size:12px}.customer-suggestions small{line-height:1.25}.suggestions img{width:42px;height:42px;border:1px solid var(--border);border-radius:6px;background:var(--muted);object-fit:cover}.manual-row{margin-bottom:15px;border-radius:8px;background:var(--muted-soft);padding:12px}.manual-row input{flex:1 1 160px;background:var(--card)}.table-wrap{width:100%;overflow-x:auto}.table-frame,.items-table-frame{overflow:hidden;overflow-x:auto;border:1px solid var(--border);border-radius:8px}table{width:100%;border-collapse:collapse}th,td{border-bottom:1px solid var(--border);padding:12px 14px;text-align:left;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr{transition:background .15s ease}tbody tr:hover{background:var(--muted-soft)}th{height:44px;background:var(--muted-soft);color:var(--muted-foreground);font-size:11px;font-weight:750;text-transform:uppercase}td{font-size:13px}td input,td select{min-height:38px;padding:7px 8px}.order-items-table{min-width:1120px;table-layout:fixed}.order-items-table .col-image{width:7%}.order-items-table .col-product{width:29%}.order-items-table .col-sku{width:11%}.order-items-table .col-quantity{width:8%}.order-items-table .col-unit-price{width:11%}.order-items-table .col-discount{width:17%}.order-items-table .col-total{width:11%}.order-items-table .col-actions{width:6%}.order-items-table td:nth-child(7){white-space:nowrap;font-weight:750}.stock-alert-product-name{color:var(--danger);font-weight:850}.stock-low-product-name{color:var(--warning);font-weight:850}.discount-controls{display:grid;grid-template-columns:minmax(64px,.8fr) minmax(82px,1.2fr);gap:6px}.order-item-thumbnail,.order-item-thumbnail-empty{display:grid;width:50px;height:50px;border:1px solid var(--border);border-radius:7px;background:var(--muted)}.order-item-thumbnail{object-fit:cover}.order-item-thumbnail-empty{place-items:center;color:var(--muted-foreground);font-size:9px;line-height:1.05;text-align:center}.icon-btn{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;color:var(--muted-foreground)}.danger-hover:hover{border-color:color-mix(in srgb,var(--danger) 45%,transparent);background:var(--danger-soft);color:var(--danger)}.totals-bar{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:22px;margin-top:14px;border-top:1px solid var(--border);padding-top:15px}.totals-bar-action{display:flex;align-items:center;min-width:160px;margin-right:auto}.split-payment-button{width:auto;min-height:38px;padding:0 14px;font-size:13px;white-space:nowrap}.totals-bar span{min-width:130px;color:var(--muted-foreground);font-size:12px}.totals-bar strong{display:block;margin-top:4px;color:var(--foreground);font-size:16px}.marketplace-final-total{min-width:160px}.marketplace-module-stamp{display:block;margin-top:8px;font-style:normal;font-size:28px;font-weight:950;line-height:1;text-transform:uppercase}.marketplace-module-stamp.site{color:#2563eb}.marketplace-module-stamp.shopee{color:#f97316}.order-footer-actions{justify-content:flex-end;border-top:1px solid var(--border);padding-top:17px}.order-footer-actions button{min-width:164px;min-height:46px}.edit-history-panel{display:grid;gap:12px}.edit-history-list{display:grid;gap:8px}.edit-history-item{display:grid;gap:5px;border:1px solid var(--border);border-radius:8px;background:var(--muted-soft);padding:10px 12px}.edit-history-item small{color:var(--muted-foreground);font-size:11px;font-weight:800}.edit-history-item span{color:var(--foreground);font-size:13px;line-height:1.45}.filters{align-items:stretch}.filters input[type=date],.filters select{width:auto;min-width:148px}.filters .search-field{min-width:260px}.history-filters{display:flex;flex-wrap:nowrap;align-items:flex-end;gap:7px;width:100%}.history-filters input,.history-filters select,.history-filters button,.history-filters .search-field{min-height:36px}.history-filters .search-field{flex:1 1 auto;padding:0 9px}.history-filters input[type=date],.history-filters select{min-width:104px;padding:7px 8px;font-size:13px}.history-date-range{display:inline-flex;align-items:flex-end;gap:7px;flex:0 0 auto}.history-date-range label{display:grid;gap:4px;color:var(--muted-foreground);font-size:11px;font-weight:800;line-height:1}.history-date-range input[type=date]{width:116px;min-width:116px}.history-filters .history-type-filter{width:96px;min-width:96px}.history-filters .history-payment-filter{width:138px;min-width:138px}.history-filters .history-seller-filter{width:104px;min-width:104px}.history-filters .history-confirmation-filter{width:166px;min-width:166px}.history-filters button{padding:7px 11px;white-space:nowrap}.history-search-lookup{position:relative;display:flex;flex:1 1 340px;min-width:220px}.history-search-lookup .search-field{width:100%;min-width:0}.entry-row{box-shadow:inset 3px 0 #8b5cf6}.exchange-row,.quote-row{box-shadow:inset 3px 0 #f59e0b}.payment-confirmed-side-row{box-shadow:inset 3px 0 #16a34a}.payment-confirmed-muted-row{opacity:.48;transition:opacity .15s ease,filter .15s ease}.payment-confirmed-muted-row:hover{opacity:1}.order-history-table tbody tr:not(.payment-confirmed-muted-row):hover{background:transparent}.order-history-table tbody tr.payment-confirmed-muted-row:hover{background:var(--muted-soft)}.canceled-row{box-shadow:inset 3px 0 0 var(--danger)}.order-history-table{table-layout:fixed}.order-history-table th,.order-history-table td{padding:10px 11px}.order-history-table th:nth-child(1),.order-history-table td:nth-child(1){width:104px}.order-history-table th:nth-child(2),.order-history-table td:nth-child(2){width:92px}.order-history-table th:nth-child(3),.order-history-table td:nth-child(3){width:18%}.order-history-table th:nth-child(4),.order-history-table td:nth-child(4){width:92px}.order-history-table th:nth-child(5),.order-history-table td:nth-child(5){width:118px}.order-history-table th:nth-child(6),.order-history-table td:nth-child(6){width:128px}.order-history-table th:nth-child(7),.order-history-table td:nth-child(7){width:110px}.order-history-table th:nth-child(8),.order-history-table td:nth-child(8){width:108px}.order-history-table th:nth-child(9),.order-history-table td:nth-child(9){width:286px}.order-history-table.with-selection-column th:nth-child(1),.order-history-table.with-selection-column td:nth-child(1){width:42px}.order-history-table.with-selection-column th:nth-child(2),.order-history-table.with-selection-column td:nth-child(2){width:104px}.order-history-table.with-selection-column th:nth-child(3),.order-history-table.with-selection-column td:nth-child(3){width:92px}.order-history-table.with-selection-column th:nth-child(4),.order-history-table.with-selection-column td:nth-child(4){width:16%}.order-history-table.with-selection-column th:nth-child(5),.order-history-table.with-selection-column td:nth-child(5){width:88px}.order-history-table.with-selection-column th:nth-child(6),.order-history-table.with-selection-column td:nth-child(6){width:116px}.order-history-table.with-selection-column th:nth-child(7),.order-history-table.with-selection-column td:nth-child(7){width:126px}.order-history-table.with-selection-column th:nth-child(8),.order-history-table.with-selection-column td:nth-child(8){width:104px}.order-history-table.with-selection-column th:nth-child(9),.order-history-table.with-selection-column td:nth-child(9){width:104px}.order-history-table.with-selection-column th:nth-child(10),.order-history-table.with-selection-column td:nth-child(10){width:286px}.order-history-table td{overflow-wrap:anywhere}.order-history-table td[data-label=Cliente]{overflow:hidden}.order-history-table td[data-label=Total],.order-history-table td[data-label=Data],.order-history-table td[data-label=Vendedor],.order-history-table td[data-label=Telefone]{white-space:nowrap}.order-history-table td[data-label=AÃ§Ãµes]{overflow:visible}.history-client-line{display:inline-flex;align-items:center;width:100%;max-width:100%;gap:6px;line-height:1.25}.history-client-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.payment-confirmation-tag{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:18px;height:18px;border-radius:999px;font-size:12px;font-weight:900;line-height:1}.payment-confirmation-tag.pending{border:1px solid #f59e0b;background:#fef3c7;color:#92400e}.payment-confirmation-tag.confirmed{border:1px solid #22c55e;background:#dcfce7;color:#15803d}:root[data-theme=dark] .payment-confirmation-tag.pending{background:#f59e0b2e;color:#fbbf24}:root[data-theme=dark] .payment-confirmation-tag.confirmed{background:#22c55e2e;color:#86efac}.order-payment-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.order-payment-tag{display:inline-flex;align-items:center;border-radius:999px;border:1px solid var(--border);padding:2px 7px;font-size:10px;font-weight:800;line-height:1.3}.order-payment-tag.boleto{border-color:#60a5fa;background:#3b82f638;color:#bfdbfe}.order-payment-tag.paid{border-color:#4ade80;background:#22c55e38;color:#bbf7d0}.order-payment-tag.partial{border-color:#fbbf24;background:#f59e0b38;color:#fde68a}:root[data-theme=light] .order-payment-tag.boleto{border-color:#93c5fd;background:#dbeafe;color:#1d4ed8}:root[data-theme=light] .order-payment-tag.paid{border-color:#86efac;background:#dcfce7;color:#166534}:root[data-theme=light] .order-payment-tag.partial{border-color:#fbbf24;background:#fef3c7;color:#92400e}.payment-confirm-btn{border-color:#16a34a;background:#16a34a;color:#fff}.payment-unconfirm-btn{border-color:color-mix(in srgb,var(--muted-foreground) 28%,transparent);background:transparent;color:color-mix(in srgb,var(--muted-foreground) 62%,transparent)}.payment-confirm-btn:hover{border-color:#15803d;background:#15803d;color:#fff}.payment-unconfirm-btn:hover{border-color:color-mix(in srgb,var(--danger) 62%,transparent);background:transparent;color:var(--danger)}.row-actions{flex-wrap:nowrap}.order-history-table .row-actions{gap:4px;flex-wrap:nowrap}.order-history-table .row-actions .icon-btn{width:27px;min-width:27px;height:27px;min-height:27px;padding:0;border-radius:7px}.order-history-table .row-actions button:not(.icon-btn){min-height:27px;padding:0 7px;border-radius:7px;font-size:11px;gap:4px}.select-column,.select-cell{width:42px;text-align:center}.order-select-checkbox{width:15px;min-width:15px;height:15px;margin:0;accent-color:var(--primary)}.bulk-confirmation-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid var(--border);padding:10px 14px;margin-top:0}.bulk-confirmation-bar span{color:var(--muted-foreground);font-size:12px;font-weight:800}.bulk-confirmation-bar>button{min-height:32px;padding:0 12px;border-radius:8px;font-size:12px;gap:6px}.select-many-button{border-color:#fff;background:#fff;color:#111827;font-weight:800}.select-many-button:hover{border-color:#f3f4f6;background:#f3f4f6;color:#111827}.payment-confirm-bulk{border-color:color-mix(in srgb,var(--success) 45%,transparent);background:color-mix(in srgb,var(--success) 8%,transparent);color:var(--success)}.payment-unconfirm-bulk,.payment-cancel-bulk{border-color:color-mix(in srgb,var(--danger) 45%,transparent);background:color-mix(in srgb,var(--danger) 8%,transparent);color:var(--danger)}.pagination-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--border);padding:12px 14px}.pagination-bar>span{color:var(--muted-foreground);font-size:12px;font-weight:650}.pagination-bar>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.pagination-bar strong{color:var(--foreground);font-size:12px;white-space:nowrap}.pagination-bar button{min-height:34px;padding:7px 11px;font-size:12px}.detail-grid,.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:18px}.detail-card,.stat-card{display:grid;gap:5px;min-height:68px;align-content:center;border:1px solid var(--border);border-radius:8px;background:var(--muted-soft);padding:12px}.detail-card strong,.stat-card strong{overflow:hidden;text-overflow:ellipsis}.product-manual-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;gap:14px}.span-2{grid-column:span 2}.product-cell{display:flex;align-items:center;gap:11px}.product-cell img,.product-cell span{display:grid;width:44px;height:44px;flex:0 0 auto;place-items:center;border:1px solid var(--border);border-radius:7px;background:var(--muted);color:var(--muted-foreground);font-size:10px;object-fit:cover}.stock-badge,.status{display:inline-flex;align-items:center;min-height:26px;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:750;white-space:nowrap}.stock-badge.in-stock,.status-saved,.status-printed{background:var(--success-soft);color:var(--success)}.stock-badge.low-stock,.status-draft,.status-quote{background:var(--warning-soft);color:var(--warning)}.stock-badge.out-stock,.status-entry,.status-canceled{background:var(--danger-soft);color:var(--danger)}.env-note{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px;border:1px solid var(--border);border-radius:8px;background:var(--muted-soft);padding:13px;font-size:13px}.empty-state{display:grid;min-height:150px;place-items:center;align-content:center;gap:8px;border:1px dashed var(--border);border-radius:8px;color:var(--muted-foreground);padding:20px;text-align:center}.empty-state.compact{min-height:88px;border:0}.alert{border:1px solid var(--border);border-radius:8px;padding:12px 14px;font-size:13px;font-weight:650}.alert.danger{border-color:color-mix(in srgb,var(--danger) 45%,transparent);background:var(--danger-soft);color:var(--danger)}.alert.success{border-color:color-mix(in srgb,var(--success) 45%,transparent);background:var(--success-soft);color:var(--success)}.loading-overlay,.modal-backdrop,.login-page{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;background:color-mix(in srgb,var(--background) 82%,transparent);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.loader-card{display:grid;justify-items:center;gap:13px;color:var(--muted-foreground);font-size:13px;font-weight:650}.loader-ring{width:42px;height:42px;border:4px solid var(--muted);border-top-color:var(--primary);border-radius:50%;animation:spin .82s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-page{padding:18px;background:color-mix(in srgb,var(--background) 93%,var(--muted))}.login-card{display:grid;width:min(390px,100%);gap:16px;border:1px solid var(--border);border-radius:12px;background:var(--card);padding:28px;box-shadow:var(--shadow)}.login-logo{width:100%;height:94px;object-fit:contain}.login-card h1{text-align:center;font-size:20px}.modal-card{width:min(820px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;border:1px solid var(--border);border-radius:10px;background:var(--card);padding:18px;box-shadow:var(--shadow)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.boleto-page .soft-tag+.soft-tag{margin-left:5px}.closing-customer-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.closing-pending-tag{margin-left:0}.closing-print-action{justify-content:center;width:100%}.boleto-customer-head{align-items:flex-start}.boleto-title-block{display:flex;min-width:0;align-items:flex-start;gap:12px}.boleto-title-block h1{overflow-wrap:anywhere;font-size:30px;line-height:1.12}.boleto-customer-summary .detail-grid{margin-bottom:0}.boleto-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);gap:20px;align-items:start}.boleto-orders-panel,.boleto-control-panel{min-width:0}.boleto-order-list{display:grid;gap:14px}.boleto-order-card{display:grid;gap:12px;border:1px solid var(--border);border-radius:8px;background:var(--muted-soft);padding:14px}.boleto-order-card.pending{border-color:color-mix(in srgb,var(--danger) 22%,var(--border));background:color-mix(in srgb,var(--danger) 8%,var(--card))}.boleto-order-card.sent{border-color:color-mix(in srgb,var(--success) 24%,var(--border));background:color-mix(in srgb,var(--success) 9%,var(--card))}.boleto-order-card.manual{border-color:color-mix(in srgb,var(--warning) 28%,var(--border));background:color-mix(in srgb,var(--warning) 8%,var(--card))}.boleto-order-card.selected{border-color:color-mix(in srgb,var(--primary) 64%,var(--border));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 38%,transparent)}.boleto-order-check{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:10px;color:var(--foreground);font-size:13px}.boleto-order-check input{width:18px;min-height:18px}.boleto-order-check .boleto-order-copy{display:grid;min-width:0;gap:3px}.boleto-order-check small{overflow-wrap:anywhere}.boleto-order-check .boleto-status{grid-column:3;justify-self:end;display:inline-flex;flex-direction:row}.compact-items-table{min-width:620px}.compact-items-table th,.compact-items-table td{padding:10px 11px}.boleto-control-panel{position:sticky;top:24px;display:grid;gap:16px}.boleto-batch-tabs{display:grid;gap:7px}.boleto-batch-tabs button{justify-content:flex-start;min-width:0;overflow:hidden}.boleto-batch-tabs button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.boleto-batch-tabs button.selected{border-color:var(--primary);background:var(--primary);color:var(--primary-foreground)}.boleto-total-box{display:grid;gap:4px;border:1px solid var(--border);border-radius:8px;background:var(--muted-soft);padding:14px}.boleto-total-box strong{font-size:24px;line-height:1.15}.boleto-total-box span{color:var(--muted-foreground);font-size:12px}.boleto-sent-time{display:block;margin-top:3px}.boleto-channel-tags{display:flex;flex-wrap:wrap;gap:7px}.boleto-channel-tags.compact{margin-left:32px}.boleto-channel-tag{display:inline-flex;align-items:center;gap:6px;min-height:26px;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:750;white-space:nowrap}.boleto-channel-tag small{color:currentColor;font-size:10px;font-weight:650;opacity:.82}.boleto-channel-tag.whatsapp,.boleto-channel-tag.email{background:var(--success-soft);color:var(--success)}.boleto-channel-tag.manual{background:var(--warning-soft);color:var(--warning)}.boleto-order-channel-status{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.boleto-order-channel-pill{display:inline-flex;align-items:center;gap:5px;min-height:24px;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:850;line-height:1;white-space:nowrap}.boleto-order-channel-pill.sent{border:1px solid color-mix(in srgb,var(--success) 38%,transparent);background:var(--success-soft);color:var(--success)}.boleto-order-channel-pill.error{border:1px solid color-mix(in srgb,var(--danger) 42%,transparent);background:var(--danger-soft);color:var(--danger)}.boleto-adjustment-form{display:grid;gap:8px}.correios-head-actions{flex-wrap:wrap;justify-content:flex-end}.correios-head-actions button{min-height:40px}.correios-filters{grid-template-columns:minmax(140px,.35fr) minmax(260px,1fr) minmax(150px,180px);align-items:end}.correios-search-btn{width:100%;min-width:0}.correios-history-filters{grid-template-columns:minmax(130px,.35fr) minmax(240px,.8fr) minmax(110px,140px);align-items:end;margin-bottom:12px}.soft-note{margin-top:10px;color:var(--muted-foreground);font-size:12px;font-weight:750}.correios-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(360px,.75fr);gap:14px;align-items:start}.correios-table th,.correios-table td{vertical-align:middle}.correios-status{display:inline-flex;align-items:center;gap:5px;min-height:25px;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:850;white-space:nowrap}.correios-status.pending{background:var(--muted);color:var(--muted-foreground)}.correios-status.sent{background:var(--success-soft);color:var(--success)}.correios-status.warning{background:var(--warning-soft);color:var(--warning)}.correios-status.danger{background:var(--danger-soft);color:var(--danger)}.block{display:block;margin-top:5px}.correios-detail-panel{position:sticky;top:14px}.correios-recipient-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.posting-list-box{display:grid;gap:14px}.posting-toolbar{display:flex;flex-wrap:wrap;gap:8px}.posting-grid{display:grid;grid-template-columns:minmax(190px,.28fr) minmax(0,1fr);gap:12px;align-items:start}.posting-history{display:grid;gap:8px;border:1px solid var(--border);border-radius:8px;padding:10px}.posting-history button{display:grid;justify-items:start;min-height:42px;padding:8px 10px}.posting-history button.active{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}.posting-history small{color:var(--muted-foreground)}.posting-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.posting-summary>div{border:1px solid var(--border);border-radius:8px;background:var(--muted);padding:12px}.posting-summary small{display:block;color:var(--muted-foreground);font-size:11px;font-weight:800;text-transform:uppercase}.posting-summary strong{display:block;margin-top:4px;font-size:18px}.posting-add-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.external-label-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;border-top:1px solid var(--border);padding-top:12px;margin-top:12px}.boleto-adjustment-line{display:grid;grid-template-columns:minmax(92px,.7fr) minmax(110px,1fr) auto;align-items:center;gap:8px}.boleto-adjustment-line span{color:var(--muted-foreground);font-size:12px;font-weight:750}.boleto-adjustment-line input,.boleto-adjustment-line button{min-width:0}.boleto-send-box{display:grid;gap:10px;border-top:1px solid var(--border);padding-top:16px}.boleto-file-drop{position:relative;display:flex;min-height:48px;align-items:center;justify-content:center;gap:9px;border:1px dashed var(--border);border-radius:8px;background:var(--muted-soft);color:var(--foreground);padding:12px;text-align:center;cursor:pointer}.boleto-file-drop.disabled{cursor:not-allowed;opacity:.55}.boleto-file-drop input{position:absolute;top:0;right:0;bottom:0;left:0;min-height:0;opacity:0;cursor:inherit}.boleto-status{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-direction:row;min-height:28px;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:750;line-height:1;white-space:nowrap}.boleto-status svg{flex:0 0 auto}.boleto-status.sent{background:var(--success-soft);color:var(--success)}.boleto-status.pending{background:var(--danger-soft);color:var(--danger)}.boleto-status.manual{background:var(--warning-soft);color:var(--warning)}.boleto-pdf-list{display:grid;gap:8px}.boleto-pdf-item{display:grid;grid-template-columns:22px minmax(0,1fr) 36px;align-items:center;gap:8px;border:1px solid var(--border);border-radius:8px;background:var(--muted-soft);padding:9px 10px}.boleto-pdf-item span{display:grid;min-width:0;gap:2px}.boleto-pdf-item strong,.boleto-pdf-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 1160px){.workspace{padding:20px}.customer-form-grid,.detail-grid,.stats-grid,.product-manual-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.boleto-workspace{grid-template-columns:1fr}.boleto-control-panel{position:static}}@media (max-width: 820px){.app-shell,.app-shell.is-collapsed{grid-template-columns:1fr}.sidebar{position:static;height:auto}.brand{justify-content:flex-start}.sidebar-nav,.sidebar-footer{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.sidebar-user,.sidebar-footer button:last-child{display:none}.is-collapsed .sidebar-nav button,.is-collapsed .sidebar-footer button{justify-content:flex-start;padding-inline:13px}.is-collapsed .sidebar-nav button span,.is-collapsed .sidebar-footer button span,.is-collapsed .brand-copy{display:block}.lookup{display:grid}.customer-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{display:grid;grid-template-columns:1fr 1fr}.filters .search-field{grid-column:1 / -1}.filters input[type=date],.filters select,.filters button{width:100%}.boleto-customer-head{display:grid}.boleto-customer-head>button{width:100%}}@media (max-width: 620px){.workspace{padding:16px}.customer-form-grid,.form-grid,.settings-grid,.detail-grid,.stats-grid,.product-manual-grid,.filters{grid-template-columns:1fr}.settings-grid label:first-child,.settings-grid label:nth-child(3),.span-2{grid-column:auto}.order-footer-actions{display:grid}.order-footer-actions button{width:100%}.pagination-bar,.pagination-bar>div{display:grid;width:100%}.pagination-bar button{width:100%}.boleto-title-block h1{font-size:24px}.boleto-order-check{grid-template-columns:22px minmax(0,1fr)}.boleto-order-check .boleto-status{grid-column:2;width:fit-content}.boleto-adjustment-line,.correios-layout,.correios-history-filters,.correios-filters,.correios-recipient-grid,.posting-grid,.posting-add-line,.external-label-box{grid-template-columns:1fr}.correios-head-actions{justify-content:stretch}.correios-head-actions button{flex:1 1 150px}.correios-detail-panel{position:static}}@media (max-width: 720px){.mobile-card-table{display:block;min-width:0;width:100%}.mobile-card-table thead{display:none}.mobile-card-table tbody{display:grid;gap:12px;padding:10px}.mobile-card-table tr{display:grid;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--card)}.mobile-card-table tr:hover{background:var(--card)}.mobile-card-table td{display:grid;grid-template-columns:minmax(88px,34%) minmax(0,1fr);align-items:center;gap:10px;min-width:0;border-bottom:1px solid var(--border);padding:9px 11px;overflow-wrap:anywhere;font-size:12px}.mobile-card-table.order-history-table th,.mobile-card-table.order-history-table td{width:auto}.mobile-card-table td:last-child{border-bottom:0}.mobile-card-table td[colspan]{display:block;padding:0}.mobile-card-table td[colspan]:before{content:none!important}.mobile-card-table td:before{content:attr(data-label);color:var(--muted-foreground);font-size:10px;font-weight:800;letter-spacing:0;text-transform:uppercase}.mobile-card-table .row-actions{flex-wrap:wrap;justify-content:flex-start;gap:7px}.mobile-card-table .row-actions button:not(.icon-btn){min-height:34px;padding:7px 10px;font-size:12px}.mobile-card-table .icon-btn{width:34px;min-width:34px;height:34px;min-height:34px}.mobile-card-table .soft-tag{max-width:100%}.mobile-card-table .product-cell{align-items:flex-start;gap:9px}.mobile-card-table .product-cell img,.mobile-card-table .product-cell span{width:38px;height:38px}.products-table td:nth-child(1):before{content:"Produto"}.products-table td:nth-child(2):before{content:"SKU"}.products-table td:nth-child(3):before{content:"PreÃ§o"}.products-table td:nth-child(4):before{content:"Estoque"}.products-table td:nth-child(5):before{content:"Status"}.products-table td:nth-child(6):before{content:"Sincronizado"}.boleto-customers-table td:nth-child(1):before{content:"Cliente"}.boleto-customers-table td:nth-child(2):before{content:"Contato"}.boleto-customers-table td:nth-child(3):before{content:"Pedidos boleto"}.boleto-customers-table td:nth-child(4):before{content:"Total pendente"}.boleto-customers-table td:nth-child(5):before{content:"Ãšltimo boleto enviado"}.boleto-customers-table td:nth-child(6):before{content:"Ãšltimo pedido"}.boleto-customers-table td:nth-child(7):before{content:"AÃ§Ãµes"}.closing-customers-table td:nth-child(3):before{content:"Pedidos fechamento"}.closing-customers-table td:nth-child(4):before{content:"Valor devido"}.closing-customers-table td:nth-child(5):before{content:"Ãšltimo pagamento"}.special-history-table td:nth-child(1):before{content:"NÃºmero"}.special-history-table td:nth-child(2):before{content:"Data"}.special-history-table td:nth-child(3):before{content:"MÃ³dulo"}.special-history-table td:nth-child(4):before{content:"Cliente"}.special-history-table td:nth-child(5):before{content:"Vendedor"}.special-history-table td:nth-child(6):before{content:"Pagamento"}.special-history-table td:nth-child(7):before{content:"Total bruto"}.special-history-table td:nth-child(8):before{content:"Total final"}.special-history-table td:nth-child(9):before{content:"Status"}.special-history-table td:nth-child(10):before{content:"Impresso"}.special-history-table td:nth-child(11):before{content:"AÃ§Ãµes"}.correios-queue-table td:nth-child(1):before{content:"Pedido"}.correios-queue-table td:nth-child(2):before{content:"Data"}.correios-queue-table td:nth-child(3):before{content:"Cliente"}.correios-queue-table td:nth-child(4):before{content:"Destino"}.correios-queue-table td:nth-child(5):before{content:"Total"}.correios-queue-table td:nth-child(6):before{content:"Status"}.correios-queue-table td:nth-child(7):before{content:"AÃ§Ãµes"}.correios-history-table td:nth-child(1):before{content:"Pedido"}.correios-history-table td:nth-child(2):before{content:"Cliente"}.correios-history-table td:nth-child(3):before{content:"Rastreio"}.correios-history-table td:nth-child(4):before{content:"Modalidade"}.correios-history-table td:nth-child(5):before{content:"Status pedido"}.correios-history-table td:nth-child(6):before{content:"Status etiqueta"}.correios-history-table td:nth-child(7):before{content:"AÃ§Ãµes"}.correios-posting-table td:nth-child(1):before{content:"Nome"}.correios-posting-table td:nth-child(2):before{content:"Pedido"}.correios-posting-table td:nth-child(3):before{content:"Rastreio"}.correios-posting-table td:nth-child(4):before{content:"Modalidade"}.correios-posting-table td:nth-child(5):before{content:"Status"}.correios-posting-table td:nth-child(6):before{content:"AÃ§Ãµes"}}
