:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#1e293b;background:#f1f5f9}*{box-sizing:border-box}body{margin:0}header{background:#0f172a;color:white;padding:16px 28px;display:flex;justify-content:space-between;align-items:center;gap:18px}header strong{font-size:20px}header span{margin-left:14px;color:#94a3b8}nav{display:flex;gap:14px;flex-wrap:wrap}nav a{color:#e2e8f0;text-decoration:none}.nav-dropdown{position:relative;display:flex;align-items:center}.nav-dropdown-toggle{color:#e2e8f0!important;margin-left:0!important;cursor:pointer}.nav-dropdown-menu{display:none;position:absolute;top:100%;left:0;min-width:190px;background:#0f172a;border:1px solid #334155;border-radius:9px;padding:7px;box-shadow:0 10px 25px #0f172a40;z-index:1000}.nav-dropdown:hover .nav-dropdown-menu,.nav-dropdown:focus-within .nav-dropdown-menu{display:block}.nav-dropdown-menu a{display:block;padding:9px 10px;border-radius:6px;white-space:nowrap}.nav-dropdown-menu a:hover{background:#1e293b}.container{max-width:1180px;margin:28px auto;padding:0 18px}h1{margin-top:0}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.card,.panel{background:white;border-radius:14px;padding:20px;box-shadow:0 4px 18px #0f172a0f}.card b{display:block;font-size:30px}.card span{color:#64748b}.page-title{display:flex;justify-content:space-between;align-items:center;gap:14px}.button,button{background:#2563eb;color:white;border:0;border-radius:9px;padding:10px 15px;text-decoration:none;cursor:pointer;font-weight:600}.secondary{background:#475569}.danger{background:#b91c1c}label{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;font-weight:600}input,select,textarea{padding:10px 11px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;background:white}textarea{min-height:88px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px 18px}.full{grid-column:1/-1}.checks{display:grid;grid-template-columns:repeat(2,1fr);align-content:start}.checks label{flex-direction:row;font-weight:400}table{width:100%;border-collapse:collapse}th,td{padding:11px;border-bottom:1px solid #e2e8f0;text-align:left}.badge{background:#e0e7ff;color:#3730a3;padding:8px 12px;border-radius:999px;font-weight:700}.actions{display:flex;gap:10px;margin:14px 0}.alert{padding:12px 14px;border-radius:9px;margin-bottom:16px}.alert.success{background:#dcfce7;color:#166534}.alert.error{background:#fee2e2;color:#991b1b}.login-body{min-height:100vh;display:grid;place-items:center;background:#e2e8f0}.login-card{width:min(420px,92vw);background:white;padding:28px;border-radius:16px;box-shadow:0 12px 40px #0f172a1f}.login-card button{width:100%}.two-cols{display:grid;grid-template-columns:1fr 1.4fr;gap:18px}.item-row{display:grid;grid-template-columns:2fr 1fr 1fr 120px auto;align-items:center;gap:10px;margin-bottom:10px}@media(max-width:850px){.cards{grid-template-columns:repeat(2,1fr)}.form-grid,.two-cols{grid-template-columns:1fr}.item-row{grid-template-columns:1fr}.full{grid-column:auto}header{align-items:flex-start;flex-direction:column}}

.muted{color:#6b7280;font-size:.92rem}.panel h3{margin-top:1.4rem;margin-bottom:.5rem}

.item-subtotal{font-weight:700;white-space:nowrap;color:#334155}
.cep-line{display:grid;grid-template-columns:1fr auto;gap:8px}.cep-button{white-space:nowrap}.cep-ok{color:#166534}.cep-error{color:#b91c1c}@media(max-width:600px){.cep-line{grid-template-columns:1fr}.cep-button{width:100%}}

.cliente-picker{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;padding:14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;margin-bottom:6px}.cliente-picker label{margin-bottom:0}.cliente-link{margin-bottom:14px;white-space:nowrap}.search-line{display:flex;gap:8px;align-items:center;margin-bottom:14px}.search-line input{flex:1}.table-wrap{overflow-x:auto}@media(max-width:850px){.cliente-picker{grid-template-columns:1fr}.cliente-link{margin-bottom:0}.search-line{align-items:stretch;flex-direction:column}}
.table-actions{display:flex;gap:7px;align-items:center;white-space:nowrap}.table-actions form{margin:0}.table-actions .button,.table-actions button{padding:8px 10px}

.badge-not-sent{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca}
.badge-sent{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}
.badge-neutral{background:#e2e8f0;color:#334155}
.wms-warning,.wms-success{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:10px;margin:14px 0 4px}.wms-warning{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.wms-success{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.wms-warning strong,.wms-success strong{font-size:1.05rem}.card-not-sent{border-top:4px solid #dc2626}.card-sent{border-top:4px solid #16a34a}

/* v9 - padronização de ações e filtros administrativos */
.button.small, button.small{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 14px;border-radius:8px;line-height:1;text-decoration:none;white-space:nowrap}
.table-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-filter-panel{margin-bottom:18px;padding-top:14px;padding-bottom:14px}
.admin-filter-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.admin-filter-form label{margin:0;min-width:300px;flex:1}
.admin-filter-form .button{margin-bottom:0}
@media(max-width:600px){.admin-filter-form{align-items:stretch;flex-direction:column}.admin-filter-form label{min-width:0}.admin-filter-form .button{width:100%}}

/* v12 - retorno resumido para depositante e auditoria técnica exclusiva do ADMIN */
.integration-summary{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border-radius:10px;margin:12px 0}.integration-summary.error{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}.technical-panel{margin-top:18px}.integration-log{border:1px solid #e2e8f0;border-radius:10px;margin-top:12px;overflow:hidden;background:#f8fafc}.integration-log summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;cursor:pointer;font-weight:700;background:#f1f5f9}.integration-log-body{padding:14px}.integration-log pre{margin:8px 0 16px;padding:12px;border-radius:8px;background:#0f172a;color:#e2e8f0;white-space:pre-wrap;word-break:break-word;max-height:360px;overflow:auto;font-size:.84rem}.integration-log h3{margin-bottom:6px}@media(max-width:650px){.integration-log summary{align-items:flex-start;flex-direction:column}}

/* v13 - destaque visual dos logs de integração */
.integration-log-ok{border-color:#86efac;background:#f0fdf4}.integration-log-ok summary{background:#dcfce7;color:#166534}
.integration-log-error{border-color:#fca5a5;background:#fef2f2}.integration-log-error summary{background:#fee2e2;color:#991b1b}
.log-filters{display:grid;grid-template-columns:2fr 1fr auto;gap:14px;align-items:end}.log-filters label{margin:0}.log-filters>div{padding-bottom:1px}
.logs-table .log-row-ok{background:#f0fdf4}.logs-table .log-row-error{background:#fef2f2}.logs-table .log-row-ok:hover{background:#dcfce7}.logs-table .log-row-error:hover{background:#fee2e2}
.log-result{display:inline-block;padding:5px 9px;border-radius:999px;font-size:.78rem;font-weight:800}.log-result-ok{background:#dcfce7;color:#166534;border:1px solid #86efac}.log-result-error{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}.small-button{padding:7px 10px;font-size:.85rem}
@media(max-width:800px){.log-filters{grid-template-columns:1fr}.logs-table{display:block;overflow-x:auto;white-space:nowrap}}


/* v15 - correção controlada de item rejeitado por COD_REJ_ITEM=1 */
.correction-panel{margin:16px 0;border-left:4px solid #f59e0b}.editable-error-row{background:#fff7ed}.editable-error-row select{min-width:280px}.locked-field{display:inline-block;padding:6px 9px;border-radius:7px;background:#e2e8f0;color:#475569;font-weight:700;font-size:.85rem}
@media(max-width:700px){.editable-error-row select{min-width:210px}}

/* v16 - administração e rastreabilidade */
.audit-filters { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); align-items:end; }
.audit-event { display:inline-block; padding:3px 7px; border:1px solid #cbd5e1; border-radius:5px; font-size:12px; font-weight:700; background:#f8fafc; }
.technical-json { max-width:520px; max-height:260px; overflow:auto; white-space:pre-wrap; word-break:break-word; font-size:12px; }
details summary { cursor:pointer; font-weight:600; }
a.button{display:inline-block;text-decoration:none;padding:8px 12px;border-radius:6px}.button.secondary{background:#e9edf2;color:#1f2937}


/* v24 - ajustes de navegação e formulários administrativos */
.user-register-page{max-width:760px;margin-left:auto;margin-right:auto}
.user-register-page .page-title{justify-content:center;text-align:center}
.user-register-page .panel{max-width:720px;margin-left:auto;margin-right:auto;width:100%}
.self-access{white-space:nowrap;display:inline-block}
@media(max-width:850px){.user-register-page .page-title{justify-content:flex-start;text-align:left}}


/* v25 - dashboard operacional e configurações */
.card-info{border-top:4px solid #2563eb}.card-error{border-top:4px solid #f59e0b}.dashboard-filter{margin-bottom:18px}.dashboard-grid{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(480px,1.7fr);gap:18px;align-items:start}.dashboard-grid h2{margin-top:0}.pending-list{display:grid;gap:9px}.pending-list>div,.pending-list>a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border-radius:9px;background:#f8fafc;border:1px solid #e2e8f0;color:#334155;text-decoration:none}.pending-list strong{min-width:34px;text-align:center;border-radius:999px;background:#e2e8f0;padding:4px 9px}.pending-list>a:hover{background:#f1f5f9}.dashboard-table th,.dashboard-table td{white-space:nowrap}.dashboard-cards{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.dashboard-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:550px){.dashboard-cards{grid-template-columns:1fr}}

/* v26 - pesquisa dinâmica e alinhamento dos itens do pedido */
.item-row{display:grid;grid-template-columns:minmax(320px,1fr) 125px 155px auto;align-items:end;gap:12px;margin-bottom:12px;padding:14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;max-width:100%;overflow:visible}
.item-row>*{min-width:0}.item-field{margin:0}.item-value{min-width:0}.item-remove{align-self:end;white-space:nowrap;margin-bottom:0}
.product-search{position:relative;min-width:0}.product-search-line{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:7px;align-items:center}.product-query{width:100%;min-width:0}.item-refresh{padding:9px 0;min-width:42px;font-size:1.25rem;line-height:1}
.product-selected{display:block;margin-top:6px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}.product-error{color:#b91c1c!important}
.product-results{position:absolute;left:0;right:42px;top:44px;z-index:30;max-height:300px;overflow:auto;background:#fff;border:1px solid #cbd5e1;border-radius:9px;box-shadow:0 10px 24px #0f172a24;padding:5px}
.product-result{display:grid;grid-template-columns:minmax(90px,auto) minmax(0,1fr) auto;gap:9px;width:100%;text-align:left;background:#fff;color:#1f2937;border-radius:7px;padding:9px 10px;font-weight:400;align-items:start}.product-result:hover{background:#eff6ff}.product-result strong{white-space:nowrap}.product-result span{white-space:normal;overflow-wrap:anywhere}.product-result small{color:#64748b;white-space:nowrap}.product-result-empty{padding:10px;color:#64748b}
.item-subtotal{display:block;margin-top:5px;font-size:.82rem;white-space:nowrap;color:#334155}
@media(max-width:900px){.item-row{grid-template-columns:minmax(250px,1fr) 110px 145px auto}}
@media(max-width:700px){.item-row{grid-template-columns:1fr}.item-remove{width:100%}.product-results{right:0}}


/* v27 - status, cancelamento e alinhamento da linha de itens */
.badge-not-sent{background:#dbeafe;color:#1d4ed8;border:1px solid #93c5fd}
.badge-error{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca}
.badge-cancelled{background:#e5e7eb;color:#374151;border:1px solid #d1d5db}
.badge-cancel-pending{background:#ffedd5;color:#9a3412;border:1px solid #fdba74}
.wms-info,.wms-cancel-warning,.wms-cancelled{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:10px;margin:14px 0 4px}
.wms-info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}
.wms-cancel-warning{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.wms-cancelled{background:#f3f4f6;color:#374151;border:1px solid #d1d5db}
.wms-info strong,.wms-cancel-warning strong,.wms-cancelled strong{font-size:1.05rem}
.item-row{align-items:start}
.item-control{display:flex;flex-direction:column;min-width:0;margin:0}
.item-field.item-control>input{margin-top:0}
.item-value .item-subtotal{min-height:18px}
.item-remove{align-self:start;margin-top:24px}
.product-search.item-control{padding-top:0}
.product-search.item-control::before{content:'Mercadoria';font-weight:600;font-size:.92rem;line-height:1.25;margin-bottom:6px;color:#334155}
@media(max-width:700px){.item-remove{margin-top:0}}
.card-not-sent{border-top-color:#2563eb}

/* v28 - lista de pedidos: status e ações em uma única linha */
.orders-table{min-width:1120px}
.orders-table th:nth-child(5),.orders-table td:nth-child(5){min-width:205px;white-space:nowrap}
.orders-table th:nth-child(7),.orders-table td:nth-child(7){min-width:265px;white-space:nowrap}
.orders-table .badge{display:inline-block;white-space:nowrap}
.orders-table .table-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;white-space:nowrap}
.orders-table .table-actions form{display:inline-flex;flex:0 0 auto;margin:0}
.orders-table .table-actions .button,.orders-table .table-actions button{flex:0 0 auto;white-space:nowrap}
.order-open-button{background:#e9edf2!important;color:#1f2937!important;border:1px solid #d5dbe3}
.order-open-button:hover{background:#dfe5ec!important}

/* v32 - status operacional CorpEM/WMS separado do status de integração do portal */
.orders-table th:nth-child(5),.orders-table td:nth-child(5){min-width:150px;white-space:nowrap}
.orders-table th:nth-child(6),.orders-table td:nth-child(6){min-width:300px}
.orders-table .wms-status-cell{line-height:1.35}
.orders-table th:last-child,.orders-table td:last-child{min-width:230px}


/* v33 - status WMS sem código, cores por etapa e ações alinhadas */
.orders-table{min-width:1280px}
.orders-table th,.orders-table td{vertical-align:middle}
.orders-table th:nth-child(5),.orders-table td:nth-child(5){min-width:185px;white-space:nowrap}
.orders-table th:nth-child(6),.orders-table td:nth-child(6){min-width:360px;white-space:nowrap}
.orders-table th:nth-child(7),.orders-table td:nth-child(7){min-width:175px;white-space:nowrap}
.orders-table th:nth-child(8),.orders-table td:nth-child(8){min-width:285px;white-space:nowrap}
.orders-table .wms-status-cell{white-space:nowrap;line-height:1}
.wms-status-badge{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border-radius:999px;font-size:.86rem;font-weight:700;white-space:nowrap;border:1px solid transparent}
.wms-status-received{background:#e2e8f0;color:#334155;border-color:#cbd5e1}
.wms-status-waiting{background:#e0e7ff;color:#4338ca;border-color:#c7d2fe}
.wms-status-separating{background:#fef3c7;color:#92400e;border-color:#fde68a}
.wms-status-separated{background:#ede9fe;color:#6d28d9;border-color:#ddd6fe}
.wms-status-checkout{background:#ffedd5;color:#c2410c;border-color:#fed7aa}
.wms-status-checkout-done{background:#ccfbf1;color:#0f766e;border-color:#99f6e4}
.wms-status-confirmed{background:#cffafe;color:#0e7490;border-color:#a5f3fc}
.wms-status-nf{background:#dcfce7;color:#15803d;border-color:#bbf7d0}
.wms-status-shipped{background:#d1fae5;color:#047857;border-color:#a7f3d0}
.wms-status-neutral{background:#f1f5f9;color:#475569;border-color:#e2e8f0}
.orders-table .table-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:nowrap;white-space:nowrap;width:max-content;min-width:100%}
.orders-table .table-actions form{display:inline-flex;align-items:center;margin:0;flex:0 0 auto}
.orders-table .table-actions .button,.orders-table .table-actions button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:36px;margin:0;white-space:nowrap}


/* v34 - compactação da lista de pedidos, data BR e acabamento visual */
.orders-table{min-width:1160px;table-layout:auto}
.orders-table th,.orders-table td{padding:10px 9px}
.orders-table th{font-size:.79rem;letter-spacing:.025em;text-transform:uppercase;color:#64748b;background:#f8fafc;border-bottom:1px solid #dbe3ec}
.orders-table tbody tr{transition:background-color .15s ease,box-shadow .15s ease}
.orders-table tbody tr:hover{background:#f8fbff}
.orders-table th:nth-child(1),.orders-table td:nth-child(1){min-width:90px}
.orders-table th:nth-child(2),.orders-table td:nth-child(2){min-width:125px;max-width:165px}
.orders-table th:nth-child(3),.orders-table td:nth-child(3){min-width:175px;max-width:250px}
.orders-table th:nth-child(4),.orders-table td:nth-child(4){min-width:105px;white-space:nowrap}
.orders-table th:nth-child(5),.orders-table td:nth-child(5){min-width:155px;white-space:nowrap}
.orders-table th:nth-child(6),.orders-table td:nth-child(6){min-width:285px;max-width:315px;white-space:nowrap;padding-right:5px}
.orders-table th:nth-child(7),.orders-table td:nth-child(7){min-width:155px;width:155px;white-space:nowrap;padding-left:5px;padding-right:6px}
.orders-table th:nth-child(8),.orders-table td:nth-child(8){min-width:250px;white-space:nowrap;padding-left:6px}
.orders-table .wms-status-cell{padding-right:5px}
.wms-status-badge{min-height:32px;padding:6px 10px;font-size:.80rem;box-shadow:inset 0 0 0 1px #ffffff80}
.date-time-pill{display:inline-flex;align-items:center;min-height:30px;padding:5px 8px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:.80rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.orders-table .table-actions{gap:6px;width:auto;min-width:0}
.orders-table .table-actions form{display:inline-flex;align-items:center;margin:0}
.orders-table .table-actions .button,.orders-table .table-actions button{min-height:34px;height:34px;padding:7px 10px;border-radius:7px;font-size:.82rem;line-height:1;box-shadow:none}
.orders-table .table-actions .order-open-button{background:#eef2f6!important;border-color:#d8e0e8;color:#334155!important}
.orders-table .table-actions .order-open-button:hover{background:#e4eaf0!important}
.orders-table .table-actions button:not(.danger){background:#2563eb}
.orders-table .table-actions button:not(.danger):hover{background:#1d4ed8}
.orders-table .table-actions .danger{background:#b91c1c}
.orders-table .table-actions .danger:hover{background:#991b1b}
.table-wrap{border:1px solid #e2e8f0;border-radius:12px;overflow-x:auto;background:#fff}
.orders-table{margin:0}
.orders-table tbody tr:last-child td{border-bottom:0}
@media(max-width:1250px){.container{max-width:1140px}.orders-table{min-width:1130px}.orders-table th:nth-child(6),.orders-table td:nth-child(6){min-width:270px;max-width:300px}.orders-table th:nth-child(8),.orders-table td:nth-child(8){min-width:245px}}

/* v35 - compactacao da area Status WMS / Atualizacao */
.orders-table{min-width:1085px}
.orders-table th:nth-child(6),.orders-table td:nth-child(6){min-width:0;width:auto;max-width:none;white-space:nowrap;padding-left:7px;padding-right:2px}
.orders-table th:nth-child(7),.orders-table td:nth-child(7){min-width:145px;width:145px;white-space:nowrap;padding-left:2px;padding-right:5px}
.orders-table .wms-status-cell{width:1%;white-space:nowrap;padding-right:2px}
.orders-table .wms-status-cell .badge{width:auto;max-width:none}
.orders-table .order-updated-at{padding-left:2px}
@media(max-width:1250px){.orders-table{min-width:1065px}.orders-table th:nth-child(6),.orders-table td:nth-child(6){min-width:0;max-width:none}.orders-table th:nth-child(7),.orders-table td:nth-child(7){min-width:145px;width:145px}}

/* v36 - logs de integração e consultas de status WMS */
.integration-type{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;background:#eef2f7;color:#344054;border:1px solid #dbe2ea}
.integration-type-status{background:#eef6ff;color:#175cd3;border-color:#b2ddff}
.integration-type-pedido{background:#ecfdf3;color:#027a48;border-color:#abefc6}
.integration-type-cancelamento{background:#fff4ed;color:#b93815;border-color:#f9dbaf}
.logs-table .log-date-cell{white-space:nowrap;font-variant-numeric:tabular-nums}
.logs-table .integration-message-cell{min-width:320px;max-width:620px}
.log-technical-error{margin-top:5px;color:#b42318;font-size:12px;font-weight:600}
.log-json-details{margin-top:7px}
.log-json-details summary{cursor:pointer;color:#175cd3;font-weight:700;font-size:12px;user-select:none}
.log-json-details[open] summary{margin-bottom:8px}
.log-json-grid{display:grid;grid-template-columns:1fr;gap:8px;min-width:0}
.log-json-grid>div{min-width:0}
.log-json-grid strong{display:block;margin-bottom:4px;font-size:12px;color:#475467}
.log-json-grid pre{margin:0;max-width:100%;max-height:260px;overflow:auto;padding:10px;border:1px solid #e4e7ec;border-radius:8px;background:#f9fafb;font-size:11px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
@media (min-width:1450px){.log-json-grid{grid-template-columns:1fr 1fr}}

/* v38 - atualização automática/manual da lista e status WMS resumido */
.orders-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.orders-refresh-button{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:38px;margin:0;background:#f8fafc!important;color:#334155!important;border:1px solid #d8e0e8!important;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.orders-refresh-button:hover{background:#eef2f6!important;border-color:#cbd5e1!important}
.orders-table th:nth-child(6),.orders-table td:nth-child(6){width:1%;min-width:120px;max-width:210px;white-space:nowrap}
.orders-table .wms-status-badge{max-width:210px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:650px){.page-title{align-items:flex-start}.orders-page-actions{width:100%;justify-content:flex-start}.orders-page-actions .button,.orders-page-actions button{flex:1 1 auto}}


/* v39 - status local + status WMS no detalhe do pedido */
.order-detail-title{align-items:flex-start;gap:18px}
.order-detail-statuses{display:flex;align-items:flex-end;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.order-detail-status-item{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.order-detail-status-caption{font-size:.72rem;font-weight:700;letter-spacing:.035em;text-transform:uppercase;color:#64748b;line-height:1}
.order-detail-status-item .badge,.order-detail-status-item .wms-status-badge{min-height:34px;display:inline-flex;align-items:center}
@media(max-width:760px){.order-detail-title{flex-direction:column}.order-detail-statuses{width:100%;justify-content:flex-start}.order-detail-status-item{min-width:0}}

/* v40 - dashboards distintos para administração e depositantes */
.dashboard-eyebrow{display:inline-block;margin-bottom:7px;font-size:.72rem;font-weight:800;letter-spacing:.11em;color:#64748b}.dashboard-header-actions,.depositor-hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.admin-dashboard-title,.depositor-dashboard-hero{margin-bottom:18px}.admin-dashboard-title h1,.depositor-dashboard-hero h1{margin:0 0 5px}.admin-dashboard-title p,.depositor-dashboard-hero p{margin:0;color:#64748b}.admin-dashboard-filter{padding:15px 18px}.admin-dashboard-filter .admin-filter-form{align-items:flex-end}.admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.admin-kpi-card{position:relative;overflow:hidden;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px;box-shadow:0 4px 16px #0f172a0a}.admin-kpi-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#2563eb}.admin-kpi-card.kpi-alert:before{background:#ef4444}.admin-kpi-card .kpi-label{display:block;color:#64748b;font-size:.82rem;font-weight:700}.admin-kpi-card strong{display:block;margin:7px 0 4px;font-size:2rem;line-height:1;color:#0f172a}.admin-kpi-card small{color:#94a3b8}.admin-overview-grid{display:grid;grid-template-columns:minmax(330px,.9fr) minmax(430px,1.25fr);gap:18px;margin-bottom:18px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}.section-heading h2{margin:0 0 3px}.section-heading p{margin:0}.dashboard-total-pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.78rem;font-weight:700;white-space:nowrap}.admin-health-list,.admin-depositor-list{display:grid;gap:8px}.admin-health-list a,.admin-depositor-list a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #e2e8f0;border-radius:10px;text-decoration:none;color:#334155;background:#fff;transition:.15s ease}.admin-health-list a:hover,.admin-depositor-list a:hover{border-color:#cbd5e1;background:#f8fafc;transform:translateY(-1px)}.admin-health-list span{display:flex;align-items:center;gap:9px}.admin-health-list strong{min-width:34px;text-align:center;padding:4px 9px;border-radius:999px;background:#f1f5f9}.health-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.health-blue{background:#2563eb}.health-red{background:#ef4444}.health-orange{background:#f59e0b}.health-slate{background:#64748b}.health-gray{background:#94a3b8}.admin-depositor-list a>div:first-child{display:flex;flex-direction:column;gap:3px}.admin-depositor-list small{color:#94a3b8}.depositor-mini-stats{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.depositor-mini-stats span{padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.75rem;font-weight:700}.depositor-mini-stats .has-error{background:#fee2e2;color:#b91c1c}.admin-integrations-panel{margin-top:0}.text-link{color:#2563eb;font-weight:700;text-decoration:none;white-space:nowrap}.text-link:hover{text-decoration:underline}.admin-dashboard-table th,.admin-dashboard-table td{white-space:nowrap}

.depositor-dashboard-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 24px;border-radius:16px;background:linear-gradient(135deg,#fff 0%,#f8fbff 100%);border:1px solid #dbeafe;box-shadow:0 6px 22px #0f172a0b}.depositor-summary-strip{display:grid;grid-template-columns:1.2fr .7fr .8fr 1.2fr;gap:1px;margin-bottom:16px;background:#e2e8f0;border:1px solid #e2e8f0;border-radius:13px;overflow:hidden}.depositor-summary-strip>div{background:#fff;padding:13px 15px;min-width:0}.depositor-summary-strip span{display:block;color:#94a3b8;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;font-weight:700;margin-bottom:4px}.depositor-summary-strip strong{display:block;color:#334155;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.depositor-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.depositor-kpi-card{position:relative;display:block;padding:18px;border-radius:14px;background:#fff;border:1px solid #e2e8f0;text-decoration:none;color:#0f172a;box-shadow:0 4px 16px #0f172a08;transition:.16s ease;overflow:hidden}.depositor-kpi-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px #0f172a12}.depositor-kpi-card:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:#2563eb}.depositor-kpi-card.kpi-pending:after{background:#f59e0b}.depositor-kpi-card.kpi-error:after{background:#ef4444}.depositor-kpi-card.kpi-integrated:after{background:#22c55e}.depositor-kpi-card.kpi-cancelled:after{background:#94a3b8}.depositor-kpi-card span{display:block;color:#64748b;font-weight:700;font-size:.82rem}.depositor-kpi-card strong{display:block;font-size:2rem;line-height:1;margin:8px 0 5px}.depositor-kpi-card small{color:#94a3b8}.depositor-main-grid{display:grid;grid-template-columns:minmax(430px,1.35fr) minmax(300px,.8fr);gap:18px;margin-bottom:18px}.wms-flow-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.wms-flow-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 10px;border:1px solid #eef2f7;border-radius:10px;background:#fbfdff}.wms-flow-row .wms-status-badge{min-height:28px;padding:5px 8px;font-size:.72rem;max-width:160px;overflow:hidden;text-overflow:ellipsis}.wms-flow-row strong{min-width:26px;text-align:center;font-size:1rem}.depositor-shortcuts{display:grid;gap:9px}.depositor-shortcuts>a{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #e2e8f0;border-radius:11px;text-decoration:none;color:#334155;background:#fff;transition:.15s ease}.depositor-shortcuts>a:hover{background:#f8fafc;border-color:#bfdbfe}.shortcut-icon{width:34px;height:34px;border-radius:9px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;font-size:1.05rem;font-weight:800;flex:0 0 auto}.depositor-shortcuts a>div{display:flex;flex-direction:column;gap:2px}.depositor-shortcuts small{color:#94a3b8}.depositor-recent-table th,.depositor-recent-table td{white-space:nowrap}.depositor-recent-table .wms-status-badge{min-height:29px;padding:5px 9px;font-size:.75rem}
@media(max-width:1000px){.admin-kpi-grid,.depositor-kpi-grid{grid-template-columns:repeat(2,1fr)}.admin-overview-grid,.depositor-main-grid{grid-template-columns:1fr}.wms-flow-list{grid-template-columns:repeat(2,minmax(0,1fr))}.depositor-summary-strip{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.depositor-dashboard-hero,.admin-dashboard-title{align-items:flex-start;flex-direction:column}.dashboard-header-actions,.depositor-hero-actions{width:100%}.dashboard-header-actions .button,.depositor-hero-actions .button{flex:1;text-align:center}.admin-kpi-grid,.depositor-kpi-grid,.depositor-summary-strip{grid-template-columns:1fr}.wms-flow-list{grid-template-columns:1fr}}

/* v44 - filtros de período do dashboard */
.dashboard-period-filter{margin-bottom:16px;padding:14px 16px;background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%)}
.dashboard-period-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.dashboard-period-form label{margin:0;min-width:155px;color:#475569;font-size:.78rem;font-weight:700}
.dashboard-period-form input[type=date],.dashboard-period-form select{margin-top:5px;min-height:39px}
.dashboard-period-form .button{margin:0;min-height:39px;display:inline-flex;align-items:center;justify-content:center}
.period-filter-title{display:flex;flex-direction:column;gap:2px;min-width:250px;margin-right:auto}
.period-filter-title strong{color:#334155;font-size:.92rem}.period-filter-title small{color:#94a3b8;font-size:.76rem;font-weight:500}
.dashboard-period-caption{margin-top:10px;padding-top:9px;border-top:1px solid #eef2f7;color:#64748b;font-size:.8rem}
.dashboard-period-caption strong{color:#334155}
.wms-status-cancelled{background:#f1f5f9!important;color:#475569!important;border-color:#cbd5e1!important}
.wms-flow-cancelled{background:#f8fafc}
@media(max-width:760px){.dashboard-period-form{align-items:stretch}.dashboard-period-form label,.period-filter-title{min-width:100%;width:100%}.dashboard-period-form .button{flex:1}.admin-dashboard-filter .dashboard-period-form label{min-width:100%}}
/* v45 - pendências operacionais carregadas entre dias/períodos */
.depositor-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.depositor-kpi-card.kpi-carryover:after{background:#7c3aed}
.carryover-badge,.period-order-badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 8px;border-radius:999px;font-size:.7rem;font-weight:800;white-space:nowrap}
.carryover-badge{background:#f3e8ff;color:#7e22ce;border:1px solid #e9d5ff}
.period-order-badge{background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe}
@media(max-width:1180px){.depositor-kpi-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.depositor-kpi-grid{grid-template-columns:1fr}}

/* v47 - navegação corporativa, filtros, paginação e ciclo visual */
:root{--sidebar-w:238px;--topbar-h:62px;--surface:#fff;--surface-soft:#f8fafc;--line:#e2e8f0;--text:#0f172a;--muted:#64748b;--primary:#2563eb;--primary-soft:#eff6ff;--radius:12px}
body.app-shell{background:#f5f7fb}.app-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-w);background:#0f172a;color:#cbd5e1;z-index:100;display:flex;flex-direction:column;border-right:1px solid #1e293b}.sidebar-brand{height:76px;padding:15px 16px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #1e293b}.brand-mark{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#2563eb;color:white;font-weight:900;font-size:1.15rem}.sidebar-brand strong,.sidebar-brand small{display:block}.sidebar-brand strong{color:#fff;font-size:.96rem}.sidebar-brand small{margin-top:2px;color:#94a3b8;font-size:.72rem;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-nav{padding:12px 10px;display:flex;flex-direction:column;gap:3px;overflow:auto;flex:1}.sidebar-nav>a{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:9px;color:#cbd5e1;text-decoration:none;font-weight:650;font-size:.87rem;transition:.15s}.sidebar-nav>a:hover{background:#1e293b;color:#fff}.sidebar-nav>a.active{background:#1d4ed8;color:#fff;box-shadow:inset 3px 0 0 #93c5fd}.sidebar-nav .sidebar-quick-new{margin-top:7px;background:#172554;color:#dbeafe}.nav-icon{width:21px;text-align:center;font-size:1rem}.sidebar-section{margin:14px 10px 5px;color:#64748b;font-size:.66rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800}.sidebar-user{padding:12px;border-top:1px solid #1e293b;display:flex;align-items:center;gap:9px}.sidebar-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#334155;color:#fff;font-weight:800}.sidebar-user-copy{min-width:0;flex:1}.sidebar-user-copy strong,.sidebar-user-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-copy strong{color:#f8fafc;font-size:.78rem}.sidebar-user-copy small{color:#94a3b8;font-size:.68rem}.sidebar-logout{color:#94a3b8;text-decoration:none;padding:7px;border-radius:8px}.sidebar-logout:hover{background:#1e293b;color:#fff}.app-content{margin-left:var(--sidebar-w);min-height:100vh}.app-topbar{height:var(--topbar-h);position:sticky;top:0;z-index:60;background:#ffffffeb;backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:20px}.breadcrumb{display:flex;align-items:center;gap:7px;color:#94a3b8;font-size:.8rem}.breadcrumb a{color:#64748b;text-decoration:none}.breadcrumb strong{color:#334155}.global-order-search{display:flex;align-items:center;border:1px solid #dbe3ec;border-radius:9px;background:#fff;overflow:hidden;height:38px;min-width:300px}.global-order-search>span{padding-left:10px;color:#94a3b8}.global-order-search input{border:0!important;box-shadow:none!important;margin:0!important;min-width:0;height:36px;padding:7px 8px}.global-order-search button{height:38px;border-radius:0;margin:0;padding:7px 13px;font-size:.78rem}.mobile-topbar{display:none}.sidebar-backdrop{display:none}.app-content>.container{max-width:1500px;padding:24px 28px}.page-eyebrow{display:block;color:#64748b;font-size:.68rem;font-weight:800;letter-spacing:.11em;margin-bottom:4px}
.filters-panel{padding:0!important;overflow:hidden}.filters-panel summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;font-weight:800;color:#334155;list-style:none}.filters-panel summary::-webkit-details-marker{display:none}.filters-panel summary:after{content:'＋';color:#64748b}.filters-panel[open] summary:after{content:'−'}.filters-panel summary small{margin-left:auto;color:#94a3b8;font-weight:500}.orders-filter-grid{border-top:1px solid #eef2f7;padding:15px 16px;display:grid;grid-template-columns:1.25fr 1fr 1fr .85fr .85fr auto;gap:10px;align-items:end}.orders-filter-grid label{margin:0;font-size:.76rem;font-weight:700;color:#475569}.orders-filter-grid input,.orders-filter-grid select{margin-top:5px;min-height:39px}.filter-actions{display:flex;gap:7px}.filter-actions .button{min-height:39px;margin:0;display:inline-flex;align-items:center}.compact-filter{padding:12px 15px}.orders-list-panel{padding:0;overflow:hidden}.orders-list-panel .table-wrap{border:0;border-radius:0}.sticky-table{max-height:calc(100vh - 285px);overflow:auto}.sticky-table table thead th{position:sticky;top:0;z-index:4;box-shadow:0 1px 0 #dbe3ec}.order-number-link{font-weight:800;color:#1d4ed8;text-decoration:none}.order-number-link:hover{text-decoration:underline}.pagination{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;border-top:1px solid #e2e8f0;background:#f8fafc;color:#64748b;font-size:.8rem}.pagination>div{display:flex;gap:7px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:35px 18px;color:#94a3b8;text-align:center}.empty-state strong{color:#475569;font-size:1rem}
.wms-flow-row{text-decoration:none;color:inherit;transition:.15s ease}.wms-flow-row:hover{border-color:#bfdbfe;background:#f8fbff;transform:translateY(-1px)}
.order-progress-panel{margin:15px 0}.order-progress-track{display:grid;grid-template-columns:repeat(9,minmax(90px,1fr));gap:0;overflow-x:auto;padding:8px 2px 4px}.progress-step{position:relative;min-width:96px;text-align:center;color:#94a3b8;font-size:.68rem;font-weight:700;padding:0 4px}.progress-step:before{content:'';position:absolute;top:14px;left:-50%;width:100%;height:2px;background:#e2e8f0}.progress-step:first-child:before{display:none}.progress-dot{position:relative;z-index:2;width:29px;height:29px;margin:0 auto 7px;border:2px solid #cbd5e1;border-radius:50%;display:grid;place-items:center;background:#fff;color:#fff;font-size:.72rem}.progress-step.done{color:#15803d}.progress-step.done:before,.progress-step.current:before{background:#86efac}.progress-step.done .progress-dot{background:#22c55e;border-color:#22c55e}.progress-step.current{color:#1d4ed8}.progress-step.current .progress-dot{border-color:#2563eb;background:#eff6ff;color:#2563eb;box-shadow:0 0 0 4px #dbeafe}.progress-step span{display:block;line-height:1.25}
.settings-tabs{display:flex;gap:5px;margin-bottom:14px;border-bottom:1px solid #e2e8f0}.settings-tab{border:0;background:transparent;color:#64748b;border-radius:8px 8px 0 0;padding:10px 14px;margin:0;font-size:.84rem}.settings-tab:hover{background:#f8fafc;color:#334155}.settings-tab.active{color:#1d4ed8;background:#eff6ff;box-shadow:inset 0 -2px 0 #2563eb}.settings-tab-panel{display:none}.settings-tab-panel.active{display:block}
@media(max-width:1050px){.orders-filter-grid{grid-template-columns:repeat(3,1fr)}.filter-actions{grid-column:span 3}.global-order-search{min-width:230px}}
@media(max-width:800px){body.app-shell{padding-top:50px}.mobile-topbar{position:fixed;top:0;left:0;right:0;height:50px;z-index:110;background:#0f172a;color:#fff;display:flex;align-items:center;gap:10px;padding:0 12px}.mobile-topbar span{margin-left:auto;color:#94a3b8;font-size:.72rem}.sidebar-toggle{background:transparent!important;padding:5px 8px;margin:0;font-size:1.2rem}.app-sidebar{transform:translateX(-102%);transition:.2s ease}.sidebar-open .app-sidebar{transform:translateX(0)}.sidebar-open .sidebar-backdrop{display:block;position:fixed;inset:0;background:#0f172a88;z-index:90}.app-content{margin-left:0}.app-topbar{height:auto;min-height:54px;padding:8px 12px}.breadcrumb{display:none}.global-order-search{width:100%;min-width:0}.app-content>.container{padding:16px 12px}.orders-filter-grid{grid-template-columns:1fr 1fr}.filter-actions{grid-column:span 2}.sticky-table{max-height:none}.filters-panel summary small{display:none}}
@media(max-width:520px){.orders-filter-grid{grid-template-columns:1fr}.filter-actions{grid-column:span 1;flex-wrap:wrap}.filter-actions .button{flex:1}.pagination{align-items:flex-start;gap:8px;flex-direction:column}.global-order-search button{padding:7px 9px}.order-progress-track{grid-template-columns:repeat(9,90px)}}
.app-topbar span{margin-left:0}.app-topbar strong{font-size:.8rem}.mobile-topbar strong{font-size:.9rem}.mobile-topbar span{margin-left:auto}.app-sidebar nav{display:flex;gap:3px;flex-wrap:nowrap}

/* v48 - cadastros do administrador e busca contextual */
.sidebar-menu-group{margin:2px 10px 8px;border-radius:10px}
.sidebar-menu-group.active{background:rgba(255,255,255,.055)}
.sidebar-group-title{display:flex;align-items:center;gap:10px;padding:9px 10px 5px;color:#dbe5f2;font-size:.93rem;font-weight:700}
.sidebar-subnav{display:grid;gap:2px;padding:0 7px 7px 36px}
.sidebar-subnav a{display:block;padding:7px 10px;border-radius:7px;color:#aebed0;font-size:.84rem;text-decoration:none}
.sidebar-subnav a:hover,.sidebar-subnav a.active{background:rgba(255,255,255,.08);color:#fff}
.sidebar-nav>.sidebar-mercadorias{margin:0;border-radius:9px}
.sidebar-mercadorias>summary.sidebar-group-title{list-style:none;cursor:pointer;gap:10px;padding:10px 11px;border-radius:9px;color:#cbd5e1;font-size:.87rem;font-weight:650;transition:.15s}
.sidebar-mercadorias>summary::-webkit-details-marker{display:none}
.sidebar-mercadorias>summary::after{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:auto;margin-right:3px;transition:transform .15s}
.sidebar-mercadorias[open]>summary::after{transform:rotate(225deg)}
.sidebar-mercadorias>summary:hover{background:#1e293b;color:#fff}
.sidebar-mercadorias>summary:focus-visible{outline:2px solid #93c5fd;outline-offset:-2px}
.sidebar-mercadorias.active>summary{background:#1d4ed8;color:#fff;box-shadow:inset 3px 0 0 #93c5fd}
.sidebar-mercadorias:not([open])>.sidebar-subnav{display:none}
.sidebar-mercadorias>.sidebar-subnav{padding-left:32px}
.page-title-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media (max-width:700px){.page-title-actions{width:100%}.page-title-actions .button{width:100%;text-align:center}}

/* v50 - Nota Fiscal via XML */
.nf-panel{border-top:3px solid #2563eb}
.nf-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.nf-summary-grid>div{padding:12px 14px;border:1px solid var(--border,#e2e8f0);border-radius:10px;background:rgba(248,250,252,.7);min-width:0}
.nf-summary-grid span{display:block;font-size:12px;color:#64748b;margin-bottom:4px}
.nf-summary-grid strong{display:block;font-size:15px;overflow-wrap:anywhere}
.nf-summary-grid .nf-key{grid-column:span 3}
.nf-actions{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid #e2e8f0}
.nf-upload-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;flex:1}
.nf-upload-form label{margin:0;min-width:280px;flex:1}
.nf-upload-form input[type=file]{padding:9px;background:#fff}
.nf-extra{margin-top:10px}
@media(max-width:760px){.nf-summary-grid{grid-template-columns:1fr 1fr}.nf-summary-grid .nf-key{grid-column:span 2}.nf-actions,.nf-upload-form{align-items:stretch}.nf-upload-form label{min-width:100%}}
.order-nf-ref{display:block;margin-top:4px;color:#64748b;font-size:11px;font-weight:600}

.checkbox-row{display:flex!important;align-items:center;gap:10px;font-weight:600}.checkbox-row input[type=checkbox]{width:18px;height:18px;margin:0;flex:0 0 auto}.orders-table .order-nf-ref{display:block;margin-top:4px}


/* v56 - Novo pedido mais compacto e otimizado */
.order-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 14px;padding:17px 18px}
.order-form-grid label{margin-bottom:8px;gap:4px;font-size:.82rem}
.order-form-grid input,.order-form-grid select,.order-form-grid textarea{padding:8px 9px;min-height:37px;border-radius:7px}
.order-form-grid textarea{min-height:68px;resize:vertical}
.order-form-grid h2{margin:10px 0 3px;font-size:1.05rem}
.order-form-grid .full{grid-column:1/-1}
.order-form-grid .field-wide{grid-column:span 2}
.order-form-grid .field-compact{max-width:220px}
.order-form-grid .cliente-picker{padding:11px 12px;gap:10px}
.order-form-grid .cep-line{gap:6px}
.order-form-grid .cep-button{padding:8px 12px}
@media(max-width:900px){.order-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-form-grid .field-wide{grid-column:1/-1}}
@media(max-width:620px){.order-form-grid{grid-template-columns:1fr;padding:14px}.order-form-grid .full,.order-form-grid .field-wide{grid-column:auto}.order-form-grid .field-compact{max-width:none}}

/* v57 - cadastro rápido de cliente e transporte opcional */
.cliente-quick-help{display:block;margin-top:.35rem}
.quick-client-form{max-width:640px;margin:0 auto}
.quick-client-success{max-width:640px;margin:0 auto}
.quick-client-form label{margin-bottom:.65rem}
@media (max-width:760px){.quick-client-form{max-width:none}}


/* v58 - revisão geral de alinhamento, labels e espaçamentos */
/* Impede textos/labels de invadirem células vizinhas em qualquer formulário */
.form-grid > *, .order-form-grid > *, .cliente-picker > * {min-width:0}
label {min-width:0}
label > input, label > select, label > textarea {width:100%;min-width:0;max-width:100%}
small.muted {line-height:1.35;overflow-wrap:anywhere}

/* Novo pedido: hierarquia visual e alinhamento consistente */
.order-form-grid{align-items:start}
.order-form-grid > label{width:100%;align-self:start}
.order-form-grid h2{line-height:1.25}
.order-form-grid .field-compact{width:100%;max-width:220px}
.order-form-grid .field-wide{min-width:0}
.order-form-grid .cliente-picker{align-items:start}
.order-form-grid .cliente-picker label{width:100%}
.order-form-grid .cliente-link{align-self:end;margin-bottom:0}
.order-form-grid .cliente-quick-help{grid-column:1/-1;margin:0;line-height:1.35}

/* Cliente retira: corrige sobreposição causada pelo label global em coluna */
.order-form-grid .checkbox-row,
.checkbox-row{
  flex-direction:row!important;
  justify-content:flex-start;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-height:37px;
  margin:0;
  padding:7px 10px;
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#f8fafc;
  line-height:1.2;
  white-space:nowrap;
}
.order-form-grid .checkbox-row input[type=checkbox],
.checkbox-row input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px;padding:0;margin:0;flex:0 0 18px}
#clienteRetiraInfo{clear:both;margin:0 0 4px}
#clienteRetiraInfo .wms-info{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;line-height:1.4;overflow-wrap:anywhere}
#clienteRetiraInfo .wms-info strong{flex:0 0 auto}
#clienteRetiraInfo .wms-info span{min-width:0;flex:1 1 420px}

/* Transporte: mantém campos compactos sem desalinhamento */
.order-form-grid #nome_trp,
.order-form-grid #cnpj_trp,
.order-form-grid #tipo_frete,
.order-form-grid #uf_trp{width:100%}

/* Botões e linhas internas não devem estourar a largura disponível */
.cep-line{min-width:0}
.cep-line input{min-width:0}
.actions,.nf-actions,.nf-upload-form{min-width:0}

@media(max-width:900px){
  .order-form-grid .field-compact{max-width:none}
  .order-form-grid .cliente-link{align-self:stretch;text-align:center}
}
@media(max-width:620px){
  .order-form-grid .checkbox-row,.checkbox-row{width:100%;white-space:normal}
  #clienteRetiraInfo .wms-info{display:block}
  #clienteRetiraInfo .wms-info strong{display:block;margin-bottom:4px}
}

/* Importação de NF-e: grade independente, alinhada e responsiva */
#camposImportacaoXml{width:100%;min-width:0;margin-top:8px}
#camposImportacaoXml[hidden]{display:none!important}
#camposImportacaoXml>p{margin:0 0 12px;line-height:1.45}
.xml-import-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;align-items:start;width:100%}
.xml-import-grid label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0!important;color:#334155;font-size:.82rem;font-weight:700}
.xml-import-grid input[type=file]{display:block;width:100%;max-width:100%;min-width:0;min-height:42px;margin:0;padding:7px 8px;overflow:hidden;background:#fff}
.xml-import-actions{grid-column:1/-1;display:flex;justify-content:flex-start;align-items:center;padding-top:2px}
.xml-import-actions .button{width:auto;min-height:39px;margin:0}
#importacaoNfeStatus{display:block;margin-top:9px;line-height:1.4}
@media(max-width:900px){.xml-import-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.xml-import-grid{grid-template-columns:1fr}.xml-import-actions .button{width:100%;justify-content:center}}

/* Cadastro de mercadoria: apresentação, alinhamento e responsividade */
.product-create-title{align-items:flex-end;margin-bottom:14px}.product-create-title h1{margin-bottom:4px}.product-create-title p{margin:0}
.product-create-context{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding:10px 14px;border:1px solid #bfdbfe;border-radius:11px;background:#eff6ff;color:#1e40af}.product-create-context>span{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.product-create-context strong{color:#1e3a8a}.product-create-context small{margin-left:auto;color:#64748b}
.product-create-form{display:grid;gap:14px;max-width:1050px}.product-form-section{margin:0;padding:18px 20px}.product-section-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:17px;padding-bottom:12px;border-bottom:1px solid #e2e8f0}.product-section-heading>span{width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;border-radius:8px;background:#dbeafe;color:#1d4ed8;font-size:.78rem;font-weight:900}.product-section-heading h2{margin:1px 0 3px;font-size:1.05rem;color:#0f172a}.product-section-heading p{margin:0;color:#64748b;font-size:.82rem}
.product-fields-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;align-items:start}.product-fields-grid label,.product-policy-row label{min-width:0;margin:0;color:#334155;font-size:.8rem;font-weight:750}.product-fields-grid label>em{float:right;color:#b91c1c;font-size:.59rem;font-style:normal;text-transform:uppercase;letter-spacing:.04em}.product-fields-grid input,.product-fields-grid select,.product-policy-row select{width:100%;min-width:0;min-height:41px;margin-top:6px}.product-fields-grid label>small,.product-policy-row label>small{display:block;margin-top:5px;color:#64748b;font-size:.69rem;font-weight:500;line-height:1.35}.product-field-wide{grid-column:span 2}.product-policy-row{max-width:620px;margin-bottom:15px}
.product-control-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.product-control-card{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px!important;min-width:0;min-height:82px;margin:0!important;padding:12px;border:1px solid #dbe3ec;border-radius:10px;background:#f8fafc;cursor:pointer;transition:.15s}.product-control-card:hover{border-color:#93c5fd;background:#f0f7ff}.product-control-card input{width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;margin:2px 0 0!important;padding:0}.product-control-card span{display:flex;flex-direction:column;gap:3px;min-width:0}.product-control-card strong{color:#334155;font-size:.8rem}.product-control-card small{color:#64748b;font-size:.68rem;font-weight:500;line-height:1.3}
.product-measure-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.field-optional{float:right;color:#64748b;font-size:.62rem;font-weight:700;text-transform:uppercase}.input-prefix{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;margin-top:6px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;overflow:hidden}.input-prefix>span{padding:0 10px;color:#64748b;font-size:.78rem;font-weight:700}.input-prefix input{margin:0!important;border:0;border-left:1px solid #e2e8f0;border-radius:0;outline:0}.product-form-actions{display:flex;justify-content:flex-end;gap:9px;padding:3px 0 12px}.product-form-actions .button,.product-form-actions button{min-width:150px;text-align:center}
@media(max-width:900px){.product-fields-grid,.product-measure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-field-wide{grid-column:span 2}}
@media(max-width:620px){.product-create-title{align-items:flex-start;flex-direction:column}.product-create-title>.button{width:100%;text-align:center}.product-create-context{align-items:flex-start;flex-direction:column;gap:3px}.product-create-context small{margin-left:0}.product-form-section{padding:15px}.product-fields-grid,.product-measure-grid,.product-control-grid{grid-template-columns:1fr}.product-field-wide{grid-column:auto}.product-form-actions{flex-direction:column-reverse}.product-form-actions .button,.product-form-actions button{width:100%}}

/* v59 - revisão de indentação visual e retorno WMS do depositante */
.order-form-grid{grid-auto-flow:row;align-items:start}
.order-form-grid>h2.full{width:100%;padding-top:8px;padding-bottom:5px;margin:8px 0 2px;border-bottom:1px solid #e2e8f0}
.order-form-grid>label{position:relative;overflow:visible}
.order-form-grid>.checkbox-row.full{display:inline-flex!important;grid-column:1/-1;width:fit-content!important;max-width:100%;justify-self:start;align-self:start;margin:2px 0 4px!important}
.order-form-grid>.checkbox-row.full+ #clienteRetiraInfo{grid-column:1/-1;width:100%;margin:0 0 5px!important}
.order-form-grid .wms-info{margin:0!important}
.order-form-grid .field-compact{justify-self:start}

.order-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:2px 0 20px}
.order-info-card{min-width:0;padding:15px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.order-info-card h2{margin:0 0 10px;font-size:1rem;color:#0f172a}
.order-info-card>p{margin:0 0 10px;overflow-wrap:anywhere}
.section-title-inline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.section-title-inline h2{margin:0}
.compact-badge{padding:5px 9px;font-size:.75rem;white-space:nowrap}
.detail-list{display:grid;gap:7px;margin:0}
.detail-list>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;align-items:start}
.detail-list dt{color:#64748b;font-size:.78rem;font-weight:700}
.detail-list dd{margin:0;color:#334155;font-size:.88rem;overflow-wrap:anywhere}

.wms-return-card{display:flex;align-items:center;gap:13px;margin:18px 0 4px;padding:14px 16px;border:1px solid #bbf7d0;border-radius:12px;background:linear-gradient(135deg,#f0fdf4,#f8fafc)}
.wms-return-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#16a34a;color:#fff;font-size:1.05rem;font-weight:900}
.wms-return-content{display:flex;flex-direction:column;gap:3px;min-width:0}
.wms-return-label{font-size:.70rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#15803d}
.wms-return-content strong{color:#14532d;font-size:.95rem;line-height:1.35;overflow-wrap:anywhere}
.wms-return-date{display:inline-flex;width:max-content;max-width:100%;margin-top:3px;padding:4px 8px;border-radius:7px;background:#fff;border:1px solid #dcfce7;color:#475569;font-size:.79rem;font-weight:700;font-variant-numeric:tabular-nums}

@media(max-width:760px){
 .order-info-grid{grid-template-columns:1fr}
 .detail-list>div{grid-template-columns:82px minmax(0,1fr)}
 .section-title-inline{align-items:flex-start;flex-wrap:wrap}
}

/* v60 — Lista de pedidos: revisão visual e alinhamento final */
.orders-list-panel{border:1px solid #e5eaf0;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.045)}
.orders-table-wrap{overflow:auto;background:#fff}
.orders-table-v60{width:100%;min-width:1180px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.orders-table-v60 th,.orders-table-v60 td{box-sizing:border-box}
.orders-table-v60 thead th{height:44px;padding:10px 12px;background:#f8fafc;color:#64748b;font-size:.72rem;font-weight:800;letter-spacing:.055em;text-transform:uppercase;border-bottom:1px solid #dfe7ef;vertical-align:middle}
.orders-table-v60 tbody td{padding:12px;border-bottom:1px solid #edf1f5;color:#334155;font-size:.86rem;vertical-align:middle;background:#fff}
.orders-table-v60 tbody tr:hover td{background:#f8fbff}
.orders-table-v60 th:nth-child(1),.orders-table-v60 td:nth-child(1){width:10%}
.orders-table-v60 th:nth-child(2),.orders-table-v60 td:nth-child(2){width:13%}
.orders-table-v60 th:nth-child(3),.orders-table-v60 td:nth-child(3){width:24%}
.orders-table-v60 th:nth-child(4),.orders-table-v60 td:nth-child(4){width:10%}
.orders-table-v60 th:nth-child(5),.orders-table-v60 td:nth-child(5){width:12%}
.orders-table-v60 th:nth-child(6),.orders-table-v60 td:nth-child(6){width:12%}
.orders-table-v60 th:nth-child(7),.orders-table-v60 td:nth-child(7){width:11%}
.orders-table-v60 th:nth-child(8),.orders-table-v60 td:nth-child(8){width:18%}
.orders-table-v60 .align-right{text-align:right}
.order-id-cell,.order-depositor-cell,.order-destination-cell{min-width:0}
.order-primary-text{display:block;font-weight:700;color:#1f2937;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.order-number-link{display:inline-block;font-size:.94rem;line-height:1.2}
.order-meta-line{display:block;margin-top:5px;color:#64748b;font-size:.72rem;font-weight:600;line-height:1.3}
.order-transport-line{display:block;margin-top:5px;color:#64748b;font-size:.72rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.transport-label{font-weight:700;color:#475569}
.transport-chip{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;margin-right:4px;border-radius:999px;font-size:.67rem;font-weight:800;white-space:nowrap}
.transport-chip.pickup{background:#fff7ed;border:1px solid #fed7aa;color:#c2410c}
.order-value-cell{font-variant-numeric:tabular-nums;white-space:nowrap}
.orders-table-v60 .badge,.orders-table-v60 .wms-status-badge{max-width:100%;white-space:normal;line-height:1.2;text-align:center}
.orders-table-v60 .wms-status-cell{white-space:normal;padding:12px}
.orders-table-v60 .date-time-pill{display:inline-flex;justify-content:center;width:100%;max-width:142px;min-height:30px;padding:5px 7px;font-size:.75rem}
.table-actions-cell{padding-left:8px!important;padding-right:8px!important}
.orders-table-v60 .order-actions{display:grid;grid-template-columns:repeat(2,minmax(72px,1fr));gap:6px;width:100%;min-width:0;white-space:normal}
.orders-table-v60 .order-actions form{display:block;width:100%}
.orders-table-v60 .order-actions .button,.orders-table-v60 .order-actions button{width:100%;min-width:0;height:33px;min-height:33px;padding:6px 8px;font-size:.78rem;border-radius:7px}
.orders-table-v60 .order-actions form:last-child:nth-child(3){grid-column:1/-1}
@media(max-width:1300px){.orders-table-v60{min-width:1120px}.orders-table-v60 thead th,.orders-table-v60 tbody td{padding-left:9px;padding-right:9px}}
@media(max-width:800px){.sticky-table{max-height:none}.orders-list-panel{border-radius:10px}.orders-table-v60{min-width:1040px}}


/* v61 - configuração do DANFE/PDF e upload da NF-e */
.config-switch-card{margin:18px 0 22px;padding:16px 18px;border:1px solid #dbe4ef;border-radius:12px;background:#f8fafc}
.config-switch-row{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:18px;margin:0!important}
.config-switch-row>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.config-switch-row strong{font-size:14px;color:#0f172a}
.config-switch-row small{font-weight:400;line-height:1.45;color:#64748b}
.config-switch-row input[type=checkbox]{width:20px!important;height:20px!important;min-height:20px;flex:0 0 20px;margin:0}
.config-switch-note{margin:10px 0 0;padding-top:10px;border-top:1px solid #e2e8f0;font-size:12px;line-height:1.45;color:#64748b}
.nf-file-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,1fr);gap:12px;flex:1}
.nf-file-field{position:relative;padding:12px;border:1px solid #dbe4ef;border-radius:10px;background:#fff}
.nf-file-field label{min-width:0!important}
.nf-file-field .file-requirement{display:inline-flex;margin-top:6px;font-size:11px;font-weight:700;padding:3px 7px;border-radius:999px;background:#eef2ff;color:#3730a3}
.nf-file-field .file-requirement.optional{background:#f1f5f9;color:#475569}
.nf-files-saved{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.nf-file-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:7px 10px;border:1px solid #dbe4ef;border-radius:999px;background:#f8fafc;font-size:12px;color:#334155}
.nf-file-chip strong{color:#0f172a}.nf-file-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nf-pdf-policy{margin:10px 0 0;padding:10px 12px;border-radius:9px;background:#eff6ff;color:#1e40af;font-size:12px;line-height:1.45}
.nf-pdf-policy.required{background:#fff7ed;color:#9a3412}
@media(max-width:760px){.nf-file-grid{grid-template-columns:1fr}.config-switch-row{align-items:flex-start}}

/* v63 — Requisições manuais administrativas */
.manual-request-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.75fr);gap:18px;align-items:start}.manual-request-panel{margin:0}.manual-side-panel{margin:0;position:sticky;top:82px}.manual-form-grid,.manual-files-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.manual-files-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.manual-help-box{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;margin:14px 0;border:1px solid #bfdbfe;background:#eff6ff;border-radius:10px;color:#1e3a8a}.manual-help-box strong{white-space:nowrap}.manual-help-box.warning{border-color:#fed7aa;background:#fff7ed;color:#9a3412}.manual-json-input{min-height:420px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8rem;line-height:1.45;tab-size:2}.manual-inline-actions{display:flex;gap:10px;align-items:center;margin-top:8px}.manual-json-ok{color:#15803d;font-weight:700}.manual-json-error{color:#b91c1c;font-weight:700}.manual-confirm-box{display:flex!important;gap:12px;align-items:flex-start;margin:18px 0 14px;padding:13px 14px;border:1px solid #fca5a5;background:#fef2f2;border-radius:10px}.manual-confirm-box input{width:auto;margin-top:3px}.manual-confirm-box span{display:flex;flex-direction:column;gap:3px}.manual-confirm-box small{color:#7f1d1d}.manual-send-button{width:100%;min-height:42px}.manual-result-card{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.manual-result-card details{flex-basis:100%}.manual-result-card pre,.manual-side-panel pre{max-height:420px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#0f172a;color:#e2e8f0;padding:12px;border-radius:8px;font-size:.75rem}.manual-side-panel ul{margin:0 0 14px;padding-left:20px;color:#475569}.manual-side-panel li{margin:7px 0}.field-required{display:inline-block;margin-left:5px;font-size:.65rem;font-weight:800;color:#b91c1c;text-transform:uppercase}@media(max-width:1000px){.manual-request-layout{grid-template-columns:1fr}.manual-side-panel{position:static}.manual-files-grid{grid-template-columns:1fr}}@media(max-width:700px){.manual-form-grid{grid-template-columns:1fr}.manual-json-input{min-height:300px}}

/* v65 — logs de integração em visão operacional + bruto em modal */
.log-filter-panel{padding:16px 18px}.log-filters-v65{display:grid;grid-template-columns:minmax(230px,1.5fr) repeat(5,minmax(135px,.7fr));gap:12px;align-items:end}.log-filters-v65 label{margin:0}.log-filters-v65 input,.log-filters-v65 select{width:100%}.log-filter-actions{display:flex;gap:8px;align-items:center}.logs-operational-panel{padding:0;overflow:hidden}.logs-table-v65{width:100%;min-width:1180px;border-collapse:collapse}.logs-table-v65 th{padding:11px 12px;background:#f8fafc;border-bottom:1px solid #dfe7ef;color:#64748b;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;text-align:left}.logs-table-v65 td{padding:12px;border-bottom:1px solid #edf1f5;vertical-align:middle;color:#334155;font-size:.83rem}.logs-table-v65 tbody tr:hover{background:#f8fbff}.log-date-main,.log-time-main{display:block;white-space:nowrap;font-variant-numeric:tabular-nums}.log-date-main{font-weight:700;color:#334155}.log-time-main{margin-top:2px;color:#64748b;font-size:.74rem}.log-depositor{display:block;max-width:190px;overflow-wrap:anywhere}.log-manual-tag{display:inline-block;margin:5px 0 0 5px;padding:2px 6px;border-radius:999px;background:#fff7ed;color:#9a3412;font-size:.62rem;font-weight:800;text-transform:uppercase}.log-result-v65{display:inline-flex;align-items:center;gap:6px;font-weight:800}.log-result-v65.success{color:#15803d}.log-result-v65.error{color:#b91c1c}.log-result-dot{width:8px;height:8px;border-radius:50%;background:currentColor}.log-http{display:block;margin-top:4px;color:#94a3b8;font-size:.68rem}.log-summary-cell{max-width:390px}.log-summary-text{display:block;font-weight:600;line-height:1.35;color:#334155;overflow-wrap:anywhere}.log-error-hint{display:block;margin-top:4px;color:#b91c1c;font-size:.72rem;line-height:1.3;overflow-wrap:anywhere}.log-actions{text-align:center;white-space:nowrap}.log-order-link{display:block;margin-top:6px;font-size:.7rem}.log-empty{display:flex;flex-direction:column;gap:4px;padding:30px;text-align:center;color:#64748b}.log-empty strong{color:#334155}.log-modal{display:none;position:fixed;inset:0;z-index:10000}.log-modal.is-open{display:block}.log-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(2px)}.log-modal-dialog{position:relative;width:min(1050px,calc(100vw - 36px));max-height:calc(100vh - 54px);margin:27px auto;background:#fff;border-radius:14px;box-shadow:0 24px 70px rgba(15,23,42,.3);overflow:hidden}.log-modal-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 18px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.log-modal-header>div{display:flex;flex-direction:column;gap:3px}.log-modal-header strong{color:#0f172a}.log-modal-header span{color:#64748b;font-size:.76rem}.log-modal-close{width:34px;height:34px;padding:0;border:0;border-radius:8px;background:#e2e8f0;color:#334155;font-size:24px;line-height:1;cursor:pointer}.log-modal-body{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px;max-height:calc(100vh - 130px);overflow:auto}.log-raw-block{min-width:0}.log-raw-title{margin-bottom:7px;font-size:.75rem;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.04em}.log-raw-block pre{min-height:360px;max-height:65vh;margin:0;padding:14px;border-radius:9px;background:#0f172a;color:#e2e8f0;overflow:auto;white-space:pre-wrap;word-break:break-word;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.log-modal-open{overflow:hidden}@media(max-width:1100px){.log-filters-v65{grid-template-columns:repeat(3,minmax(160px,1fr))}.log-search-wide{grid-column:span 2}}@media(max-width:760px){.log-filters-v65{grid-template-columns:1fr}.log-search-wide{grid-column:auto}.log-modal-body{grid-template-columns:1fr}.log-raw-block pre{min-height:260px}.log-modal-dialog{width:calc(100vw - 18px);margin:9px auto;max-height:calc(100vh - 18px)}}

/* v66 — refinamento visual da tela de requisições manuais */
.manual-request-layout{grid-template-columns:minmax(0,1fr) 330px;gap:22px}
.manual-request-panel{padding:22px!important;overflow:hidden}
.manual-request-panel form{display:block;width:100%;min-width:0}
.manual-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
.manual-form-grid>label,.manual-request-panel>form>label{margin:0;min-width:0}
.manual-help-box{margin:0 0 18px;padding:14px 16px;border-radius:12px;line-height:1.45}
.manual-help-box strong{min-width:max-content}
.manual-request-panel input[type=text],.manual-request-panel select,.manual-request-panel textarea{box-sizing:border-box;width:100%;max-width:100%}
.manual-request-panel input[type=text],.manual-request-panel select{min-height:42px}
.manual-request-panel>form>label>small{display:block;margin-top:6px;line-height:1.4;color:#64748b}
.manual-files-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 4px;align-items:stretch}
.manual-files-grid>label{display:flex!important;flex-direction:column!important;align-items:stretch;gap:8px;min-width:0;min-height:150px;margin:0!important;padding:15px;border:1px solid #dbe4ef;border-radius:12px;background:#f8fafc;font-weight:800;color:#334155;overflow:hidden}
.manual-files-grid>label:first-child{background:#eff6ff;border-color:#bfdbfe}
.manual-files-grid input[type=file]{display:block;box-sizing:border-box;width:100%!important;max-width:100%;min-width:0;min-height:44px;margin:2px 0 0;padding:7px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#475569;font-size:.78rem;font-weight:500;overflow:hidden}
.manual-files-grid input[type=file]::file-selector-button{margin:-1px 9px -1px -1px;padding:8px 10px;border:0;border-right:1px solid #dbe4ef;border-radius:7px 0 0 7px;background:#e2e8f0;color:#334155;font-weight:800;cursor:pointer}
.manual-files-grid small{display:block;margin-top:auto;color:#64748b;font-size:.72rem;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.manual-files-grid .field-required{align-self:flex-start;margin:0;padding:3px 7px;border-radius:999px;background:#fee2e2;color:#b91c1c;line-height:1.2}
.manual-confirm-box{box-sizing:border-box;width:100%;margin:20px 0 14px!important}
.manual-confirm-box input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px;flex:0 0 18px}
.manual-side-panel{padding:20px!important;border-top:3px solid #3b82f6}
.manual-side-panel h2{margin-top:0;margin-bottom:12px;font-size:1rem}
.manual-side-panel ul{padding-left:18px;line-height:1.45}
.manual-send-button{margin-top:2px;border-radius:9px;font-weight:800}
@media(max-width:1180px){.manual-request-layout{grid-template-columns:minmax(0,1fr) 300px}.manual-files-grid{grid-template-columns:1fr}.manual-files-grid>label{min-height:auto}.manual-files-grid small{margin-top:2px}}
@media(max-width:900px){.manual-request-layout{grid-template-columns:1fr}.manual-side-panel{position:static}.manual-files-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.manual-form-grid,.manual-files-grid{grid-template-columns:1fr}.manual-request-panel{padding:16px!important}.manual-help-box{flex-direction:column;gap:5px}.manual-help-box strong{min-width:0}.manual-files-grid>label{min-height:auto}}

/* v67 - dashboards por perfil, central de falhas e timeline */
.admin-kpi-link{color:inherit;text-decoration:none;transition:.16s ease}.admin-kpi-link:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0f172a14}.failure-page-title{align-items:center}.failure-filter-panel{padding:15px 17px;margin-bottom:14px}.failure-filter-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.failure-filter-form label{margin:0;min-width:180px;font-size:.78rem;font-weight:700;color:#475569}.failure-filter-form .failure-search{flex:1;min-width:260px}.failure-filter-form input,.failure-filter-form select{margin-top:5px;min-height:40px}.failure-filter-form .button{margin:0;min-height:40px}.failure-summary{display:flex;align-items:baseline;gap:8px;margin:8px 2px 14px;color:#64748b}.failure-summary strong{font-size:1.35rem;color:#b91c1c}.failure-summary small{margin-left:auto}.failure-list{display:grid;gap:11px}.failure-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:14px;align-items:center;background:#fff;border:1px solid #fecaca;border-left:4px solid #ef4444;border-radius:13px;padding:14px 15px;box-shadow:0 4px 14px #0f172a08}.failure-card-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#fef2f2;color:#dc2626;font-weight:900;font-size:1.1rem}.failure-card-top,.failure-meta,.failure-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.failure-card-top{margin-bottom:3px}.failure-type{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#b91c1c}.failure-date{font-size:.75rem;color:#94a3b8}.failure-card h3{font-size:1rem;margin:2px 0 4px}.failure-card p{margin:0 0 7px;color:#475569}.failure-meta span{font-size:.72rem;padding:3px 7px;border-radius:999px;background:#f8fafc;color:#64748b}.empty-failures{text-align:center;padding:34px}.order-timeline-panel{margin-top:18px}.order-timeline{position:relative;display:grid;gap:0}.timeline-event{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);gap:11px;padding:0 0 18px}.timeline-event:not(:last-child):before{content:"";position:absolute;left:7px;top:14px;bottom:-2px;width:2px;background:#e2e8f0}.timeline-marker{width:16px;height:16px;border-radius:50%;border:4px solid #dcfce7;background:#22c55e;margin-top:2px;z-index:1}.timeline-error .timeline-marker{border-color:#fee2e2;background:#ef4444}.timeline-copy{padding-bottom:1px}.timeline-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.timeline-head strong{color:#1e293b}.timeline-head time{font-size:.75rem;color:#94a3b8;white-space:nowrap}.timeline-copy p{margin:3px 0 0;color:#64748b;font-size:.86rem}
@media(max-width:760px){.failure-card{grid-template-columns:38px 1fr}.failure-actions{grid-column:2}.failure-summary small{display:none}.failure-filter-form label,.failure-filter-form .failure-search{min-width:100%;width:100%}.timeline-head{align-items:flex-start;flex-direction:column;gap:2px}}


/* v68 — timeline simplificada do depositante + monitoramento administrativo em tela cheia */
.monitor-shell{max-width:1800px;margin:0 auto;padding-bottom:18px}.monitor-topbar{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:18px;padding:19px 22px;border-radius:16px;background:linear-gradient(135deg,#0f172a,#172554);color:#fff;box-shadow:0 12px 34px #0f172a22}.monitor-kicker{display:block;margin-bottom:5px;font-size:.67rem;font-weight:900;letter-spacing:.14em;color:#93c5fd}.monitor-topbar h1{margin:0;font-size:1.55rem}.monitor-topbar p{margin:5px 0 0;color:#cbd5e1}.monitor-top-actions{display:flex;gap:9px;align-items:center}.monitor-live{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #ffffff24;border-radius:10px;background:#ffffff0d;font-size:.74rem}.monitor-live i{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px #22c55e22}.monitor-live strong{font-variant-numeric:tabular-nums;margin-left:4px}.monitor-error{margin:-5px 0 14px;padding:10px 13px;border:1px solid #fecaca;border-radius:10px;background:#fef2f2;color:#b91c1c;font-weight:700}.monitor-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:12px}.monitor-kpi{position:relative;overflow:hidden;min-height:112px;padding:16px 17px;border:1px solid #dbe4ef;border-radius:14px;background:#fff;box-shadow:0 4px 14px #0f172a08}.monitor-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#94a3b8}.monitor-kpi.good:before{background:#22c55e}.monitor-kpi.warning:before{background:#f59e0b}.monitor-kpi.danger:before{background:#ef4444}.monitor-kpi span{display:block;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#64748b}.monitor-kpi strong{display:block;margin:6px 0 3px;font-size:1.8rem;color:#0f172a}.monitor-kpi small{color:#64748b}.monitor-loading{grid-column:1/-1;padding:20px;text-align:center;color:#64748b}.monitor-grid-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(330px,.8fr);gap:12px;margin-bottom:12px}.monitor-grid-bottom{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:12px}.monitor-card{min-width:0;padding:17px 18px;border:1px solid #dbe4ef;border-radius:14px;background:#fff;box-shadow:0 4px 16px #0f172a08}.monitor-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.monitor-card-head h2{margin:0;font-size:1rem;color:#0f172a}.monitor-card-head p{margin:4px 0 0;font-size:.76rem;color:#64748b}.monitor-card-head>a,.monitor-card-head>span{font-size:.72rem;color:#64748b}.monitor-deps-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.monitor-dep{border:1px solid #e2e8f0;border-left:4px solid #94a3b8;border-radius:12px;padding:13px;background:#fbfdff}.monitor-dep.up{border-left-color:#22c55e}.monitor-dep.warning{border-left-color:#f59e0b}.monitor-dep.down{border-left-color:#ef4444;background:#fffafa}.monitor-dep.idle{border-left-color:#94a3b8}.monitor-dep-top{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:9px;align-items:center}.monitor-sensor-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8}.monitor-dep.up .monitor-sensor-dot{background:#22c55e;box-shadow:0 0 0 4px #dcfce7}.monitor-dep.warning .monitor-sensor-dot{background:#f59e0b;box-shadow:0 0 0 4px #fef3c7}.monitor-dep.down .monitor-sensor-dot{background:#ef4444;box-shadow:0 0 0 4px #fee2e2}.monitor-dep-top strong{display:block;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.monitor-dep-top small{display:block;margin-top:2px;color:#64748b}.monitor-dep-top>b{font-size:1rem;color:#334155}.monitor-dep-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:11px}.monitor-dep-stats span{padding:7px 5px;border-radius:8px;background:#f1f5f9;text-align:center}.monitor-dep-stats small{display:block;font-size:.6rem;color:#64748b}.monitor-dep-stats strong{display:block;margin-top:2px;color:#0f172a}.monitor-dep-foot{margin-top:9px;padding-top:8px;border-top:1px solid #e2e8f0;font-size:.68rem;color:#94a3b8}.monitor-dep-foot strong{color:#64748b}.monitor-failures{display:grid;gap:8px;max-height:475px;overflow:auto}.monitor-failure{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;padding:10px;border:1px solid #fecaca;border-radius:10px;background:#fffafa}.monitor-failure-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#fee2e2;color:#dc2626;font-weight:900}.monitor-failure strong{display:block;font-size:.78rem;color:#7f1d1d}.monitor-failure p{margin:3px 0;font-size:.75rem;line-height:1.35;color:#475569}.monitor-failure small{color:#94a3b8;font-size:.66rem}.monitor-empty{padding:25px;text-align:center;color:#64748b}.monitor-empty-ok{color:#15803d}.traffic-chart{height:210px;display:flex;align-items:flex-end;gap:7px;padding:8px 2px 0;border-bottom:1px solid #cbd5e1}.traffic-col{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0}.traffic-bars{position:relative;width:70%;height:172px;display:flex;align-items:flex-end;justify-content:center}.traffic-bars i{position:absolute;bottom:0;width:100%;min-height:2px;border-radius:5px 5px 0 0}.traffic-total{background:#60a5fa}.traffic-error{background:#ef4444;width:34%!important;right:0}.traffic-col span{margin-top:6px;font-size:.62rem;color:#94a3b8}.traffic-legend{display:flex;gap:14px;margin-top:10px;font-size:.7rem;color:#64748b}.traffic-legend span{display:flex;align-items:center;gap:5px}.traffic-legend i{width:9px;height:9px;border-radius:3px;background:#60a5fa}.traffic-legend .err i{background:#ef4444}.monitor-statuses{display:grid;gap:11px}.monitor-status-row{display:grid;grid-template-columns:minmax(135px,.9fr) minmax(100px,1.1fr) 36px;gap:10px;align-items:center}.monitor-status-row>div:first-child strong{display:block;font-size:.74rem;color:#334155}.monitor-status-row>div:first-child span{display:block;margin-top:2px;font-size:.65rem;color:#94a3b8}.monitor-status-bar{height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}.monitor-status-bar i{display:block;height:100%;border-radius:inherit;background:#3b82f6}.monitor-status-row b{text-align:right;font-size:.7rem;color:#64748b}@media(max-width:1250px){.monitor-kpis{grid-template-columns:repeat(3,1fr)}.monitor-grid-main,.monitor-grid-bottom{grid-template-columns:1fr}.monitor-deps-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:950px){.monitor-deps-grid{grid-template-columns:repeat(2,1fr)}.monitor-topbar{align-items:flex-start;flex-direction:column}.monitor-top-actions{width:100%;flex-wrap:wrap}.monitor-live{margin-right:auto}}@media(max-width:700px){.monitor-kpis,.monitor-deps-grid{grid-template-columns:1fr}.monitor-dep-stats{grid-template-columns:repeat(2,1fr)}.monitor-live span{display:none}.traffic-col:nth-child(odd) span{display:none}}
body:fullscreen .app-sidebar,body:fullscreen .app-topbar,body:fullscreen .mobile-topbar{display:none!important}html:fullscreen .app-sidebar,html:fullscreen .app-topbar,html:fullscreen .mobile-topbar{display:none!important}html:fullscreen .app-content{margin-left:0!important}html:fullscreen .container{max-width:none!important;padding:12px!important}html:fullscreen .monitor-shell{max-width:none!important}

/* v81 — atualização visual das telas administrativas legadas */
.legacy-page-title{align-items:flex-end;gap:20px;margin-bottom:18px}.legacy-page-title>div{min-width:0}.legacy-page-title h1{margin:2px 0 4px;color:#0f172a;letter-spacing:-.025em}.legacy-page-title p{max-width:760px;margin:0;color:#64748b;line-height:1.45}.legacy-eyebrow{display:block;margin-bottom:4px;color:#2563eb;font-size:.67rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.legacy-form-page{max-width:1080px}.legacy-modern-form{box-sizing:border-box;display:grid;gap:16px;width:100%;max-width:1080px;padding:22px!important;border-top:3px solid #3b82f6}.legacy-modern-form label{min-width:0;margin:0;color:#334155;font-size:.78rem;font-weight:800}.legacy-modern-form label small{display:block;margin-top:6px;color:#64748b;font-weight:500;line-height:1.4}.legacy-modern-form input,.legacy-modern-form select,.legacy-modern-form textarea{box-sizing:border-box;width:100%;max-width:100%;margin-top:6px}.legacy-section-heading{grid-column:1/-1;padding-bottom:10px;border-bottom:1px solid #e2e8f0}.legacy-section-heading span{color:#2563eb;font-size:.65rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.legacy-section-heading h2{margin:3px 0 0;color:#0f172a;font-size:1.05rem}.legacy-form-grid,.legacy-endpoint-grid,.legacy-switch-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.legacy-endpoint-grid{grid-template-columns:1fr}.legacy-full{grid-column:1/-1}.legacy-switch-grid .switch-line,.legacy-choice-card{box-sizing:border-box;display:flex!important;gap:11px;align-items:flex-start;min-height:66px;padding:13px 14px;border:1px solid #dbe4ef;border-radius:11px;background:#f8fafc}.legacy-switch-grid input[type=checkbox],.legacy-choice-card input[type=checkbox],.legacy-choice-card input[type=radio]{flex:0 0 auto;width:18px!important;height:18px;margin:1px 0 0}.legacy-choice-card span{display:flex;flex-direction:column;gap:3px}.legacy-form-actions{grid-column:1/-1;display:flex;gap:9px;align-items:center;margin-top:2px;padding-top:16px;border-top:1px solid #e2e8f0}.legacy-filter-panel{padding:16px 18px!important;border-top:3px solid #60a5fa}.legacy-list-panel{padding:0!important;overflow:hidden}.legacy-list-summary{display:flex;align-items:baseline;gap:7px;padding:14px 17px;border-bottom:1px solid #e2e8f0;background:#fbfdff;color:#64748b}.legacy-list-summary strong{color:#0f172a;font-size:1.18rem}.legacy-list-summary span{font-size:.78rem}.legacy-list-summary small{margin-left:auto;color:#94a3b8}.legacy-modern-table{width:100%;min-width:760px;border-collapse:collapse}.legacy-modern-table th{padding:11px 13px;background:#f8fafc;color:#64748b;font-size:.68rem;letter-spacing:.055em;text-align:left;text-transform:uppercase}.legacy-modern-table td{padding:12px 13px;border-bottom:1px solid #edf1f5;color:#334155;font-size:.82rem;vertical-align:middle}.legacy-modern-table tbody tr:hover{background:#f8fbff}.legacy-modern-table tbody tr:last-child td{border-bottom:0}.legacy-search-bar{box-sizing:border-box;display:flex;gap:9px;align-items:center;padding:15px 17px;border-bottom:1px solid #e2e8f0;background:#fff}.legacy-search-bar input{min-width:200px;margin:0}.legacy-search-bar button,.legacy-search-bar .button{margin:0}.legacy-empty-state{display:flex;flex-direction:column;gap:5px;padding:34px;text-align:center;color:#64748b}.legacy-empty-state strong{color:#334155;font-size:.95rem}.legacy-user-edit-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:18px;align-items:start}.legacy-password-panel{position:sticky;top:82px}.legacy-client-layout{grid-template-columns:minmax(320px,.72fr) minmax(0,1.45fr);gap:18px;align-items:start}.legacy-client-form{position:sticky;top:82px}.legacy-client-form .cep-line{margin-top:6px}.legacy-client-form .cep-line input{margin-top:0}.legacy-quick-form{max-width:680px;margin-left:auto;margin-right:auto}.legacy-success-card{max-width:640px;margin-left:auto;margin-right:auto;padding:28px!important;border-top:3px solid #22c55e;text-align:center}.legacy-audit-filters{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr)) auto;gap:11px;align-items:end}.legacy-audit-filters label{margin:0}.legacy-audit-filters input,.legacy-audit-filters select{width:100%;margin-top:5px}.legacy-audit-filters button{min-height:40px}.password-change-body{min-height:100vh}.password-change-shell{box-sizing:border-box;display:grid;place-items:center;min-height:100vh;width:100%;padding:24px}.password-change-card{box-sizing:border-box;width:min(440px,100%);padding:32px!important;border-top:4px solid #3b82f6;text-align:left}.password-change-card h1{margin:7px 0 5px;color:#0f172a;letter-spacing:-.025em}.password-change-card>p{margin:0 0 20px;color:#64748b;line-height:1.45}.password-change-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:16px;border-radius:13px;background:#dbeafe;color:#1d4ed8;font-size:1.25rem;font-weight:900}.password-change-form{display:grid;gap:15px}.password-change-form label{margin:0;color:#334155;font-size:.8rem;font-weight:800}.password-change-form input{box-sizing:border-box;width:100%;margin-top:6px}.password-change-form small{display:block;margin-top:5px;color:#64748b;font-weight:500}.password-change-form button{width:100%;min-height:43px;margin-top:3px}
@media(max-width:1100px){.legacy-audit-filters{grid-template-columns:repeat(3,minmax(150px,1fr))}.legacy-client-layout{grid-template-columns:1fr}.legacy-client-form{position:static}}
@media(max-width:820px){.legacy-user-edit-layout{grid-template-columns:1fr}.legacy-password-panel{position:static}.legacy-form-grid,.legacy-switch-grid{grid-template-columns:1fr}.legacy-audit-filters{grid-template-columns:repeat(2,minmax(140px,1fr))}}
@media(max-width:620px){.legacy-page-title{align-items:flex-start;flex-direction:column}.legacy-page-title .button{width:100%;text-align:center}.legacy-modern-form{padding:16px!important}.legacy-search-bar{align-items:stretch;flex-direction:column}.legacy-search-bar input,.legacy-search-bar button,.legacy-search-bar .button{width:100%}.legacy-audit-filters{grid-template-columns:1fr}.legacy-list-summary small{display:none}.legacy-form-actions{align-items:stretch;flex-direction:column}.legacy-form-actions button,.legacy-form-actions .button{box-sizing:border-box;width:100%;text-align:center}}

/* v82 — alteração e exclusão do pedido antes do aceite do WMS */
.order-edit-form{gap:16px;padding:22px!important}.order-edit-form>.section-heading{margin:5px 0 0;padding:4px 0 11px;border-bottom:1px solid #e2e8f0}.order-edit-form>.section-heading:first-of-type{margin-top:0}.order-edit-form label{min-width:0}.order-edit-form input,.order-edit-form select,.order-edit-form textarea{box-sizing:border-box;width:100%}.order-edit-items{display:grid;gap:10px}.order-edit-item{display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(120px,.45fr) minmax(130px,.5fr) auto;gap:10px;align-items:end;padding:13px;border:1px solid #dbe4ef;border-radius:11px;background:#f8fafc}.order-edit-item label{margin:0}.order-edit-item input,.order-edit-item select{margin-top:5px;background:#fff}.order-edit-item button{min-height:40px;margin-bottom:0}.order-actions{flex-wrap:wrap}
@media(max-width:850px){.order-edit-item{grid-template-columns:1fr 1fr}.order-edit-item label:first-child{grid-column:1/-1}.order-edit-item button{width:100%}}
@media(max-width:560px){.order-edit-form{padding:16px!important}.order-edit-item{grid-template-columns:1fr}.order-edit-item label:first-child{grid-column:auto}}

/* v83 — ferramentas de cliente exclusivas do pedido manual */
.xml-recipient-notice{box-sizing:border-box;margin:0!important}.xml-recipient-notice[hidden],.cliente-picker[hidden]{display:none!important}

/* v84 — aviso Cliente retira ajustado ao conteúdo */
.order-form-grid>.checkbox-row.full + #clienteRetiraInfo{width:fit-content!important;max-width:100%;justify-self:start;align-self:start}
#clienteRetiraInfo .wms-info{display:inline-flex;width:auto;max-width:100%;flex-wrap:nowrap;padding:10px 13px}
#clienteRetiraInfo .wms-info span{flex:0 1 auto}
@media(max-width:620px){#clienteRetiraInfo .wms-info{display:block;width:fit-content;white-space:normal}}

/* v85 — quantidade de itens controlada exclusivamente pelo XML */
#acaoAdicionarMercadoria[hidden],#itens .item-remove[hidden]{display:none!important}

/* v86 — rastreabilidade humana do pedido */
.order-audit-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:-4px 0 18px}.order-audit-summary>div{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid #dbe4ef;border-radius:10px;background:#f8fafc}.order-audit-summary span{color:#64748b;font-size:.68rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.order-audit-summary strong{color:#0f172a}.order-audit-summary small{color:#64748b;font-size:.72rem}.order-audit-panel{margin-top:18px}.order-audit-list{display:grid;gap:0}.order-audit-event{display:grid;grid-template-columns:14px minmax(0,1fr) auto;gap:10px;align-items:start;padding:11px 2px;border-bottom:1px solid #edf1f5}.order-audit-event:last-child{border-bottom:0}.order-audit-dot{width:9px;height:9px;margin-top:5px;border-radius:50%;background:#3b82f6;box-shadow:0 0 0 4px #dbeafe}.order-audit-event strong{display:block;color:#334155;font-size:.84rem}.order-audit-event p{margin:3px 0 0;color:#64748b;font-size:.74rem}.order-audit-event>small{padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.62rem;font-weight:800;text-transform:uppercase}
@media(max-width:760px){.order-audit-summary{grid-template-columns:1fr}.order-audit-event{grid-template-columns:14px 1fr}.order-audit-event>small{grid-column:2;justify-self:start}}

/* v87 — rastreabilidade em janela modal */
.order-audit-modal{display:none;position:fixed;inset:0;z-index:10020}.order-audit-modal.is-open{display:block}.order-audit-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.6);backdrop-filter:blur(2px)}.order-audit-dialog{position:relative;display:flex;flex-direction:column;width:min(820px,calc(100vw - 36px));max-height:calc(100vh - 54px);margin:27px auto;border-radius:15px;background:#fff;box-shadow:0 25px 75px rgba(15,23,42,.34);overflow:hidden}.order-audit-modal-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid #e2e8f0;background:#f8fafc;color:#0f172a}.order-audit-modal-head h2{margin:2px 0 0;font-size:1.08rem}.order-audit-modal-head .page-eyebrow{margin:0}.order-audit-close{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;padding:0;border-radius:9px;background:#e2e8f0;color:#334155;font-size:1.45rem;line-height:1}.order-audit-modal-body{padding:19px 20px;overflow:auto}.order-audit-modal-body .order-audit-summary{margin:0 0 16px}.order-audit-modal-body .order-audit-list{max-height:430px;overflow:auto;padding-right:5px}.order-audit-modal-open{overflow:hidden}
@media(max-width:620px){.order-audit-dialog{width:calc(100vw - 18px);max-height:calc(100vh - 18px);margin:9px auto}.order-audit-modal-head,.order-audit-modal-body{padding:15px}.order-audit-modal-body .order-audit-list{max-height:none}}

/* v89 — botão Auditoria separado das ações operacionais */
.order-detail-actions{flex-wrap:wrap}.actions .order-audit-trigger{margin-left:auto}
@media(max-width:700px){.actions .order-audit-trigger{width:100%;margin-left:0;margin-top:5px}}

/* v90 — tema escuro do portal */
.topbar-actions{display:flex;align-items:center;gap:10px}.theme-toggle{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:1px solid #dbe3ec;border-radius:9px;background:#fff;color:#334155;font-size:1.05rem}.theme-toggle:hover{background:#f1f5f9}.mobile-topbar .theme-toggle{margin-left:auto;border-color:#334155;background:#1e293b;color:#f8fafc}.mobile-topbar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme=dark]{color-scheme:dark;background:#07101f}html[data-theme=dark] body,html[data-theme=dark] body.app-shell{background:#07101f;color:#dbe5f2}html[data-theme=dark] .app-topbar{background:#0b1525eb;border-bottom-color:#233149}html[data-theme=dark] .breadcrumb a,html[data-theme=dark] .breadcrumb strong{color:#cbd5e1}html[data-theme=dark] .theme-toggle{border-color:#334155;background:#172235;color:#f8fafc}html[data-theme=dark] .theme-toggle:hover{background:#243249}
html[data-theme=dark] .card,html[data-theme=dark] .panel,html[data-theme=dark] .admin-kpi-card,html[data-theme=dark] .depositor-kpi-card,html[data-theme=dark] .monitor-kpi,html[data-theme=dark] .monitor-card,html[data-theme=dark] .failure-card,html[data-theme=dark] .order-audit-dialog,html[data-theme=dark] .log-modal-dialog,html[data-theme=dark] .login-card{background:#101b2d;color:#dbe5f2;border-color:#293851;box-shadow:0 5px 20px #0005}
html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] h4,html[data-theme=dark] strong,html[data-theme=dark] .legacy-page-title h1,html[data-theme=dark] .legacy-section-heading h2,html[data-theme=dark] .admin-kpi-card strong,html[data-theme=dark] .monitor-kpi strong,html[data-theme=dark] .monitor-card-head h2,html[data-theme=dark] .monitor-dep-top strong,html[data-theme=dark] .timeline-head strong{color:#f1f5f9}
html[data-theme=dark] .muted,html[data-theme=dark] small,html[data-theme=dark] .page-title p,html[data-theme=dark] .legacy-page-title p,html[data-theme=dark] .card span,html[data-theme=dark] .monitor-card-head p,html[data-theme=dark] .timeline-copy p{color:#94a3b8}
html[data-theme=dark] label,html[data-theme=dark] .orders-filter-grid label,html[data-theme=dark] .legacy-modern-form label{color:#cbd5e1}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{border-color:#34435b;background:#0b1525;color:#e5edf7}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#64748b}html[data-theme=dark] input:disabled,html[data-theme=dark] select:disabled,html[data-theme=dark] textarea:disabled{background:#172235;color:#7f8da3}
html[data-theme=dark] .table-wrap,html[data-theme=dark] .product-results{background:#101b2d;border-color:#293851}html[data-theme=dark] th,html[data-theme=dark] .legacy-modern-table th,html[data-theme=dark] .logs-table-v65 th{background:#162236;color:#9fb0c5;border-color:#293851}html[data-theme=dark] td,html[data-theme=dark] .legacy-modern-table td,html[data-theme=dark] .logs-table-v65 td{color:#cbd5e1;border-color:#223149}html[data-theme=dark] tbody tr:hover,html[data-theme=dark] .legacy-modern-table tbody tr:hover,html[data-theme=dark] .logs-table-v65 tbody tr:hover{background:#142239}
html[data-theme=dark] .button.secondary,html[data-theme=dark] button.secondary,html[data-theme=dark] .secondary{background:#293851;color:#e2e8f0;border-color:#3d4d67}html[data-theme=dark] .order-open-button{background:#293851!important;color:#e2e8f0!important;border-color:#3d4d67}html[data-theme=dark] .order-number-link,html[data-theme=dark] .text-link{color:#60a5fa}
html[data-theme=dark] .item-row,html[data-theme=dark] .cliente-picker,html[data-theme=dark] .order-edit-item,html[data-theme=dark] .legacy-choice-card,html[data-theme=dark] .legacy-switch-grid .switch-line,html[data-theme=dark] .order-info-card,html[data-theme=dark] .order-audit-summary>div,html[data-theme=dark] .pending-list>div,html[data-theme=dark] .pending-list>a,html[data-theme=dark] .admin-health-list a,html[data-theme=dark] .admin-depositor-list a,html[data-theme=dark] .depositor-shortcuts>a,html[data-theme=dark] .wms-flow-row,html[data-theme=dark] .monitor-dep,html[data-theme=dark] .monitor-dep-stats span{background:#142136;color:#dbe5f2;border-color:#2b3a52}
html[data-theme=dark] .product-result{background:#101b2d;color:#dbe5f2}html[data-theme=dark] .product-result:hover,html[data-theme=dark] .admin-health-list a:hover,html[data-theme=dark] .admin-depositor-list a:hover,html[data-theme=dark] .depositor-shortcuts>a:hover{background:#1a2940}html[data-theme=dark] .product-search.item-control::before,html[data-theme=dark] .item-subtotal,html[data-theme=dark] .log-summary-text{color:#cbd5e1}
html[data-theme=dark] .legacy-list-summary,html[data-theme=dark] .legacy-search-bar,html[data-theme=dark] .pagination,html[data-theme=dark] .dashboard-period-filter,html[data-theme=dark] .depositor-summary-strip>div,html[data-theme=dark] .order-audit-modal-head,html[data-theme=dark] .log-modal-header,html[data-theme=dark] .integration-log summary{background:#142136;border-color:#293851;color:#cbd5e1}html[data-theme=dark] .depositor-summary-strip{background:#293851;border-color:#293851}
html[data-theme=dark] .filters-panel summary{color:#cbd5e1}html[data-theme=dark] .orders-filter-grid,html[data-theme=dark] .legacy-section-heading,html[data-theme=dark] .legacy-form-actions,html[data-theme=dark] .section-heading,html[data-theme=dark] .order-audit-event,html[data-theme=dark] .monitor-dep-foot{border-color:#293851}html[data-theme=dark] .progress-dot{background:#101b2d;border-color:#475569}html[data-theme=dark] .progress-step:before{background:#334155}
html[data-theme=dark] .technical-panel,html[data-theme=dark] .integration-log,html[data-theme=dark] .manual-files-grid>label{background:#142136;border-color:#2b3a52}html[data-theme=dark] .manual-files-grid input[type=file]{background:#0b1525;color:#cbd5e1;border-color:#34435b}html[data-theme=dark] .technical-json{color:#cbd5e1}
html[data-theme=dark] .wms-info{background:#102748;color:#93c5fd;border-color:#1e4d7d}html[data-theme=dark] .wms-success,html[data-theme=dark] .alert.success{background:#0d3327;color:#86efac;border-color:#166534}html[data-theme=dark] .wms-warning,html[data-theme=dark] .alert.error,html[data-theme=dark] .failure-card,html[data-theme=dark] .monitor-failure{background:#351a22;color:#fca5a5;border-color:#7f1d1d}html[data-theme=dark] .wms-cancel-warning,html[data-theme=dark] .integration-summary.error{background:#3a2513;color:#fdba74;border-color:#9a3412}html[data-theme=dark] .wms-cancelled{background:#202b3d;color:#cbd5e1;border-color:#475569}
html[data-theme=dark] .order-audit-close,html[data-theme=dark] .log-modal-close{background:#293851;color:#e2e8f0}html[data-theme=dark] .global-order-search{background:#0b1525;border-color:#34435b}html[data-theme=dark] .global-order-search input{background:transparent}
@media(max-width:800px){.app-topbar .topbar-actions{display:none}.mobile-topbar .theme-toggle{display:grid}}

/* v91 — lista de pedidos no tema escuro */
html[data-theme=dark] .orders-list-panel,html[data-theme=dark] .orders-table-wrap,html[data-theme=dark] .orders-table-v60{background:#101b2d!important;border-color:#293851}
html[data-theme=dark] .orders-table-v60 thead th{background:#162236!important;color:#9fb0c5;border-bottom-color:#34435b;box-shadow:0 1px 0 #34435b}
html[data-theme=dark] .orders-table-v60 tbody td{background:#101b2d!important;color:#d3deeb;border-bottom-color:#223149}
html[data-theme=dark] .orders-table-v60 tbody tr:hover td{background:#17263c!important}
html[data-theme=dark] .orders-table-v60 .order-primary-text,html[data-theme=dark] .orders-table-v60 .order-value-cell strong{color:#e5edf7}
html[data-theme=dark] .orders-table-v60 .order-meta-line,html[data-theme=dark] .orders-table-v60 .order-transport-line,html[data-theme=dark] .orders-table-v60 .order-updated-at{color:#94a3b8}

/* v92 — cabeçalho do dashboard do depositante no tema escuro */
html[data-theme=dark] .depositor-dashboard-hero{background:linear-gradient(135deg,#101b2d 0%,#14233a 100%)!important;border-color:#293d5c;color:#dbe5f2;box-shadow:0 7px 24px #0005}
html[data-theme=dark] .depositor-dashboard-hero h1{color:#f1f5f9}
html[data-theme=dark] .depositor-dashboard-hero p{color:#9fb0c5}
html[data-theme=dark] .depositor-summary-strip{background:#293851!important;border-color:#293851!important}
html[data-theme=dark] .depositor-summary-strip>div{background:#101b2d!important}
html[data-theme=dark] .depositor-summary-strip strong{color:#e2e8f0}
html[data-theme=dark] .depositor-summary-strip span{color:#94a3b8}

/* v93 — revisão completa das telas de pedidos no tema escuro */
html[data-theme=dark] .order-form-grid,html[data-theme=dark] .order-edit-form,html[data-theme=dark] .order-progress-panel,html[data-theme=dark] .nf-panel,html[data-theme=dark] .order-timeline-panel,html[data-theme=dark] .technical-panel{background:#101b2d!important;border-color:#293851}
html[data-theme=dark] .order-form-grid .checkbox-row,html[data-theme=dark] .checkbox-row{background:#142136!important;border-color:#34435b;color:#dbe5f2}
html[data-theme=dark] .orders-refresh-button{background:#17263c!important;color:#dbe5f2!important;border-color:#34435b!important}
html[data-theme=dark] .orders-refresh-button:hover{background:#20314a!important;border-color:#475b78!important}
html[data-theme=dark] .date-time-pill,html[data-theme=dark] .locked-field{background:#17263c;border-color:#34435b;color:#b9c7d8}
html[data-theme=dark] .editable-error-row,html[data-theme=dark] .editable-error-row td{background:#352513!important;color:#fdba74}
html[data-theme=dark] .nf-summary-grid>div,html[data-theme=dark] .nf-file-field,html[data-theme=dark] .nf-file-chip{background:#142136;border-color:#34435b;color:#dbe5f2}
html[data-theme=dark] .nf-summary-grid span,html[data-theme=dark] .nf-file-chip span{color:#94a3b8}
html[data-theme=dark] .nf-file-chip strong{color:#f1f5f9}
html[data-theme=dark] .nf-upload-form input[type=file]{background:#0b1525;border-color:#34435b;color:#cbd5e1}
html[data-theme=dark] .nf-actions{border-top-color:#293851}
html[data-theme=dark] .nf-file-field .file-requirement{background:#25345b;color:#c7d2fe}
html[data-theme=dark] .nf-file-field .file-requirement.optional{background:#293851;color:#cbd5e1}
html[data-theme=dark] .nf-pdf-policy{background:#102748;color:#93c5fd;border:1px solid #1e4d7d}
html[data-theme=dark] .nf-pdf-policy.required{background:#3a2513;color:#fdba74;border-color:#9a5b1a}
html[data-theme=dark] .wms-return-card{background:linear-gradient(135deg,#0d3327,#122b29);border-color:#166534}
html[data-theme=dark] .wms-return-label{color:#86efac}
html[data-theme=dark] .wms-return-content strong{color:#bbf7d0}
html[data-theme=dark] .wms-return-date{background:#142b29;border-color:#166534;color:#cbd5e1}
html[data-theme=dark] .progress-step.current .progress-dot{background:#102748;color:#60a5fa;border-color:#3b82f6;box-shadow:0 0 0 4px #172f52}
html[data-theme=dark] .progress-step.done .progress-dot{color:#fff}
html[data-theme=dark] .timeline-event:not(:last-child):before{background:#34435b}
html[data-theme=dark] .order-audit-event>small{background:#293851;color:#b9c7d8}
html[data-theme=dark] .order-audit-event strong{color:#dbe5f2}
html[data-theme=dark] .order-audit-event p{color:#94a3b8}
html[data-theme=dark] .transport-chip,html[data-theme=dark] .dashboard-total-pill{background:#293851;color:#cbd5e1;border-color:#3d4d67}
html[data-theme=dark] .order-detail-status-caption,html[data-theme=dark] .page-eyebrow{color:#94a3b8}
html[data-theme=dark] .order-edit-form>.section-heading,html[data-theme=dark] .order-form-grid>h2.full{border-color:#293851}
.bulk-import-page{width:100%;max-width:1050px}.bulk-import-title{margin-bottom:16px}.bulk-template-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.bulk-template-button>span{font-size:1.05rem}.bulk-import-alert{max-width:1050px}.bulk-import-card{display:grid;gap:20px;width:100%;margin:0;padding:20px 22px!important;border-top:3px solid #3b82f6}.bulk-section-heading{margin:0}.bulk-import-grid{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(340px,1.15fr);gap:18px;align-items:start}.bulk-import-field{min-width:0;margin:0;color:#334155;font-size:.8rem;font-weight:750}.bulk-import-field>em{float:right;color:#b91c1c;font-size:.59rem;font-style:normal;text-transform:uppercase;letter-spacing:.04em}.bulk-import-field select{width:100%;min-height:44px;margin-top:7px}.bulk-import-field>small{display:block;margin-top:6px;color:#64748b;font-size:.7rem;font-weight:500;line-height:1.4}.bulk-file-control{display:block;width:100%;margin-top:7px;padding:5px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}.bulk-file-control input[type=file]{display:block;width:100%;min-width:0;min-height:32px;margin:0;padding:0;border:0;background:transparent;color:#475569;font-size:.78rem;overflow:hidden}.bulk-file-control input[type=file]::file-selector-button{margin:0 10px 0 0;padding:8px 11px;border:0;border-right:1px solid #dbe4ef;border-radius:7px;background:#e2e8f0;color:#334155;font-weight:800;cursor:pointer}.bulk-import-help{display:flex;gap:11px;align-items:flex-start;padding:13px 14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e40af}.bulk-import-help>span{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:50%;background:#dbeafe;font-size:.75rem;font-weight:900}.bulk-import-help strong{display:block;margin:1px 0 3px;color:#1e3a8a;font-size:.79rem}.bulk-import-help p{margin:0;color:#475569;font-size:.75rem;line-height:1.45}.bulk-import-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding-top:16px;border-top:1px solid #e2e8f0}.bulk-import-actions .button,.bulk-import-actions button{min-width:175px;text-align:center}.bulk-preview-card{gap:18px}.bulk-preview-summary{display:grid;grid-template-columns:minmax(180px,1fr) 140px minmax(220px,1fr);gap:12px;align-items:center}.bulk-preview-summary>div{display:flex;flex-direction:column;gap:3px;padding:11px 13px;border:1px solid #dbe4ef;border-radius:10px;background:#f8fafc}.bulk-preview-summary span{color:#64748b;font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.bulk-preview-summary strong{color:#0f172a;font-size:.9rem}.bulk-preview-summary p{margin:0;color:#64748b;font-size:.76rem;text-align:right}.bulk-preview-table{border:1px solid #e2e8f0;border-radius:10px;overflow:auto}.bulk-preview-actions{margin:0}.bulk-preview-table td strong{color:#1d4ed8}
html[data-theme=dark] .bulk-import-card{background:#101b2d;border-color:#3b82f6;box-shadow:0 5px 20px #0005}html[data-theme=dark] .bulk-section-heading{border-color:#293851}html[data-theme=dark] .bulk-import-field{color:#cbd5e1}html[data-theme=dark] .bulk-import-field>small,html[data-theme=dark] .bulk-preview-summary p{color:#94a3b8}html[data-theme=dark] .bulk-file-control{background:#0b1525;border-color:#34435b}html[data-theme=dark] .bulk-file-control input[type=file]{background:transparent;color:#cbd5e1}html[data-theme=dark] .bulk-file-control input[type=file]::file-selector-button{background:#293851;color:#e2e8f0;border-color:#3d4d67}html[data-theme=dark] .bulk-import-help{background:#102748;border-color:#1e4d7d;color:#93c5fd}html[data-theme=dark] .bulk-import-help>span{background:#193b67;color:#bfdbfe}html[data-theme=dark] .bulk-import-help strong{color:#bfdbfe}html[data-theme=dark] .bulk-import-help p{color:#9fb0c5}html[data-theme=dark] .bulk-import-actions{border-color:#293851}html[data-theme=dark] .bulk-preview-summary>div{background:#142136;border-color:#2b3a52}html[data-theme=dark] .bulk-preview-summary span{color:#94a3b8}html[data-theme=dark] .bulk-preview-summary strong{color:#f1f5f9}html[data-theme=dark] .bulk-preview-table{border-color:#293851;background:#101b2d}html[data-theme=dark] .bulk-preview-table td strong{color:#60a5fa}
@media(max-width:760px){.bulk-import-title{align-items:flex-start;flex-direction:column}.bulk-template-button{width:100%}.bulk-import-card{padding:17px!important}.bulk-import-grid{grid-template-columns:1fr}.bulk-preview-summary{grid-template-columns:1fr 1fr}.bulk-preview-summary p{grid-column:1/-1;text-align:left}.bulk-import-actions{flex-direction:column-reverse}.bulk-import-actions .button,.bulk-import-actions button{width:100%}}
.bulk-locked-depositor{display:flex;align-items:center;width:100%;min-height:44px;margin-top:7px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#334155;font-weight:700}.bulk-manual{margin-top:16px;padding:0!important;overflow:hidden}.bulk-manual>summary{display:flex;align-items:center;gap:11px;padding:17px 20px;cursor:pointer;list-style:none}.bulk-manual>summary::-webkit-details-marker{display:none}.bulk-manual-icon{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:9px;background:#dbeafe;color:#1d4ed8;font-weight:900}.bulk-manual>summary>span:nth-child(2){display:flex;flex-direction:column;gap:2px}.bulk-manual>summary strong{color:#0f172a;font-size:.9rem}.bulk-manual>summary small{color:#64748b;font-size:.72rem;font-weight:500}.bulk-manual-toggle{margin-left:auto;color:#64748b;font-size:1.1rem;transition:transform .2s}.bulk-manual[open] .bulk-manual-toggle{transform:rotate(180deg)}.bulk-manual-content{display:grid;gap:16px;padding:0 20px 20px;border-top:1px solid #e2e8f0}.bulk-manual-intro{display:flex;justify-content:space-between;gap:18px;align-items:center;padding-top:16px}.bulk-manual-intro p{max-width:720px;margin:0;color:#475569;font-size:.78rem;line-height:1.5}.bulk-manual-intro>div{display:flex;gap:6px;white-space:nowrap}.field-status{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:.59rem;font-weight:900;letter-spacing:.035em;text-transform:uppercase}.field-status.required{background:#fee2e2;color:#991b1b}.field-status.optional{background:#e2e8f0;color:#475569}.bulk-manual-table{border:1px solid #e2e8f0;border-radius:10px;overflow:auto}.bulk-manual-table table{min-width:820px}.bulk-manual-table th{padding:9px 11px;background:#f8fafc;color:#64748b;font-size:.65rem;text-transform:uppercase;letter-spacing:.05em}.bulk-manual-table td{padding:9px 11px;color:#475569;font-size:.75rem;line-height:1.35}.bulk-manual-table code{color:#1d4ed8;font-size:.72rem;font-weight:800}.bulk-manual-notes{padding:13px 15px;border-radius:10px;background:#f8fafc;color:#475569}.bulk-manual-notes strong{display:block;margin-bottom:7px;color:#334155;font-size:.78rem}.bulk-manual-notes ul{display:grid;gap:5px;margin:0;padding-left:18px;font-size:.74rem;line-height:1.4}
html[data-theme=dark] .bulk-locked-depositor{background:#172235;border-color:#34435b;color:#e2e8f0}html[data-theme=dark] .bulk-manual{background:#101b2d;border-color:#293851}html[data-theme=dark] .bulk-manual>summary strong{color:#f1f5f9}html[data-theme=dark] .bulk-manual>summary small,html[data-theme=dark] .bulk-manual-toggle{color:#94a3b8}html[data-theme=dark] .bulk-manual-icon{background:#193b67;color:#bfdbfe}html[data-theme=dark] .bulk-manual-content{border-color:#293851}html[data-theme=dark] .bulk-manual-intro p{color:#9fb0c5}html[data-theme=dark] .field-status.required{background:#4a2027;color:#fca5a5}html[data-theme=dark] .field-status.optional{background:#293851;color:#cbd5e1}html[data-theme=dark] .bulk-manual-table{border-color:#293851}html[data-theme=dark] .bulk-manual-table th{background:#162236;color:#9fb0c5}html[data-theme=dark] .bulk-manual-table td{color:#cbd5e1;border-color:#223149}html[data-theme=dark] .bulk-manual-table code{color:#60a5fa}html[data-theme=dark] .bulk-manual-notes{background:#142136;color:#b9c7d8}html[data-theme=dark] .bulk-manual-notes strong{color:#e2e8f0}
@media(max-width:700px){.bulk-manual>summary{padding:15px}.bulk-manual-content{padding:0 15px 15px}.bulk-manual-intro{align-items:flex-start;flex-direction:column}.bulk-manual-intro>div{white-space:normal}}

/* v106 — inclusão de itens do pedido manual por copiar e colar */
.paste-items{margin:4px 0 8px;padding:0!important;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;overflow:hidden}.paste-items>summary{display:flex;align-items:center;gap:11px;padding:14px 16px;cursor:pointer;list-style:none}.paste-items>summary::-webkit-details-marker{display:none}.paste-items>summary>span:nth-child(2){display:flex;flex-direction:column;gap:2px}.paste-items>summary strong{color:#1e293b;font-size:.9rem}.paste-items>summary small{color:#64748b;font-size:.72rem;font-weight:500}.paste-items-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#dbeafe;color:#1d4ed8;font-size:1.1rem;font-weight:900}.paste-items-arrow{margin-left:auto;color:#64748b;font-size:1.15rem;transition:transform .2s}.paste-items[open] .paste-items-arrow{transform:rotate(180deg)}.paste-items-body{display:grid;grid-template-columns:minmax(230px,.65fr) minmax(360px,1.35fr);gap:15px 18px;padding:16px;border-top:1px solid #e2e8f0;background:#fff}.paste-items-guide{padding:13px 14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}.paste-items-guide p{margin:0 0 10px;color:#334155;font-size:.76rem;line-height:1.45}.paste-items-guide code{display:block;padding:10px;border-radius:7px;background:#dbeafe;color:#1e3a8a;font-size:.72rem;line-height:1.6;overflow:auto}.paste-items-field{min-width:0;margin:0;color:#334155;font-size:.8rem}.paste-items-field textarea{width:100%;min-height:126px;resize:vertical;margin-top:2px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.79rem}.paste-items-field small{color:#64748b;font-weight:500;line-height:1.4}.paste-items-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding-top:1px}.paste-items-preview{grid-column:1/-1}.paste-items-preview .table-wrap{border:1px solid #e2e8f0;border-radius:9px}.paste-items-preview table{min-width:760px}.paste-items-preview th{background:#f8fafc;color:#64748b;font-size:.68rem;text-transform:uppercase;letter-spacing:.04em}.paste-items-preview td{font-size:.78rem}.paste-items-preview td:first-child strong{color:#1d4ed8}.paste-items-preview small{color:#64748b}.paste-row-error{background:#fff7ed}.paste-row-error .paste-status{color:#b45309;font-weight:800}.paste-row-ok .paste-status{color:#15803d;font-weight:800}.paste-items-confirm{display:flex;justify-content:flex-end;padding-top:12px}.paste-items-confirm button:disabled{opacity:.5;cursor:not-allowed}
html[data-theme=dark] .paste-items{background:#142136;border-color:#34435b}html[data-theme=dark] .paste-items>summary strong{color:#f1f5f9}html[data-theme=dark] .paste-items>summary small,html[data-theme=dark] .paste-items-arrow{color:#94a3b8}html[data-theme=dark] .paste-items-icon{background:#193b67;color:#bfdbfe}html[data-theme=dark] .paste-items-body{background:#101b2d;border-color:#293851}html[data-theme=dark] .paste-items-guide{background:#102748;border-color:#1e4d7d}html[data-theme=dark] .paste-items-guide p{color:#b9c7d8}html[data-theme=dark] .paste-items-guide code{background:#172f50;color:#bfdbfe}html[data-theme=dark] .paste-items-field{color:#cbd5e1}html[data-theme=dark] .paste-items-field small,html[data-theme=dark] .paste-items-preview small{color:#94a3b8}html[data-theme=dark] .paste-items-preview .table-wrap{border-color:#293851}html[data-theme=dark] .paste-items-preview th{background:#162236;color:#9fb0c5}html[data-theme=dark] .paste-items-preview td:first-child strong{color:#60a5fa}html[data-theme=dark] .paste-row-error,html[data-theme=dark] .paste-row-error td{background:#352513!important}html[data-theme=dark] .paste-row-error .paste-status{color:#fdba74}html[data-theme=dark] .paste-row-ok .paste-status{color:#86efac}
@media(max-width:760px){.paste-items-body{grid-template-columns:1fr;padding:14px}.paste-items-actions{align-items:stretch;flex-direction:column}.paste-items-actions button{width:100%}.paste-items-confirm button{width:100%}}

/* Login EasyLog */
.easylog-login{min-height:100vh;display:block;background:#071426;color:#eaf2ff;overflow:auto}.easylog-login-shell{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(430px,.9fr);min-height:100vh}.easylog-brand-panel{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:54px clamp(42px,6vw,96px);overflow:hidden;background:linear-gradient(90deg,#061326f2 0%,#071a32e8 48%,#071a32bd 100%),linear-gradient(180deg,#06152ac4,#071426e8),url('assets/warehouse-racks-login.png') center/cover no-repeat}.easylog-brand-panel:before{content:"";position:absolute;inset:0;z-index:-2;background-image:linear-gradient(#60a5fa08 1px,transparent 1px),linear-gradient(90deg,#60a5fa08 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,#0008,transparent 85%)}.easylog-brand-panel:after{content:"";position:absolute;right:-100px;bottom:-170px;z-index:-1;width:460px;height:460px;border:1px solid #3b82f62b;border-radius:50%;box-shadow:0 0 0 70px #2563eb08,0 0 0 140px #2563eb06}.easylog-brand-glow{position:absolute;top:20%;left:15%;z-index:-1;width:380px;height:300px;border-radius:50%;background:#1679ff22;filter:blur(70px)}.easylog-login-logo{display:block;width:min(430px,78%);height:auto;margin:0 0 22px;filter:drop-shadow(0 20px 38px #0008)}.easylog-brand-copy{max-width:620px}.easylog-brand-copy>span{display:block;margin-bottom:13px;color:#60a5fa;font-size:.67rem;font-weight:900;letter-spacing:.2em}.easylog-brand-copy h1{margin:0;color:#f8fbff;font-size:clamp(2rem,3.2vw,3.25rem);line-height:1.08;letter-spacing:-.04em}.easylog-brand-copy p{max-width:530px;margin:18px 0 0;color:#a9bbd4;font-size:.95rem;line-height:1.65}.easylog-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(520px,100%);margin-top:28px}.easylog-feature-card{display:flex;align-items:center;gap:9px;min-width:0;padding:11px 12px;border:1px solid #2782df94;border-radius:11px;background:#07172b75;box-shadow:inset 0 1px 0 #ffffff08;color:#d6e5f7;backdrop-filter:blur(5px)}.easylog-feature-card svg{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:#b7cce6;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.easylog-feature-card:nth-child(2) svg{stroke:#e89525}.easylog-feature-card:nth-child(3) svg path:last-child{stroke:#e89525}.easylog-feature-card span{min-width:0;color:#d6e5f7;font-size:.72rem;font-weight:750;white-space:nowrap}.easylog-auth-panel{display:grid;place-items:center;padding:48px clamp(30px,5vw,72px);background:#f6f8fc}.easylog-login-card{width:min(430px,100%);padding:38px!important;border:1px solid #e3e9f2;border-radius:20px;box-shadow:0 24px 70px #0f27431c}.easylog-auth-heading{margin-bottom:26px}.easylog-auth-heading>span{display:block;margin-bottom:8px;color:#2563eb;font-size:.65rem;font-weight:900;letter-spacing:.16em}.easylog-auth-heading h2{margin:0 0 6px;color:#0f172a;font-size:1.85rem;letter-spacing:-.03em}.easylog-auth-heading p{margin:0;color:#64748b;font-size:.84rem}.easylog-login-form{display:grid;gap:16px}.easylog-login-form label{gap:7px;margin:0;color:#334155;font-size:.78rem;font-weight:800}.easylog-input-wrap{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;min-height:46px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;overflow:hidden;transition:border-color .2s,box-shadow .2s}.easylog-input-wrap:focus-within{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.easylog-input-wrap>span{display:grid;place-items:center;height:100%;color:#64748b;font-size:.95rem}.easylog-input-wrap input{width:100%;min-width:0;height:44px;padding:10px 12px 10px 0;border:0!important;border-radius:0;background:transparent;outline:0;box-shadow:none!important;color:#0f172a;font-size:.84rem}.easylog-login-form button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;margin-top:4px;border-radius:10px;background:linear-gradient(135deg,#1668d9,#0b4ca6);box-shadow:0 9px 20px #1d4ed82e;transition:transform .2s,box-shadow .2s}.easylog-login-form button:hover{transform:translateY(-1px);box-shadow:0 12px 24px #1d4ed842}.easylog-login-footer{display:block;margin-top:23px;color:#94a3b8;text-align:center;font-size:.66rem}.easylog-mobile-brand{display:none}
@media(max-width:900px){.easylog-login-shell{grid-template-columns:1fr}.easylog-brand-panel{display:none}.easylog-auth-panel{align-content:center;min-height:100vh;padding:28px 18px;background:radial-gradient(circle at 50% 15%,#123d78,#071426 56%)}.easylog-mobile-brand{display:block;width:min(245px,65vw);margin:0 auto 18px}.easylog-mobile-brand img{display:block;width:100%;height:auto;filter:drop-shadow(0 14px 25px #0007)}.easylog-login-card{padding:28px!important}.easylog-auth-heading h2{font-size:1.6rem}}
@media(max-width:460px){.easylog-login-card{padding:24px 20px!important;border-radius:16px}.easylog-auth-heading{margin-bottom:22px}}

/* Login v99: armazém invertido e formulário translúcido */
.easylog-login-shell{position:relative;isolation:isolate;overflow:hidden;background:#071426}.easylog-login-shell:before{content:"";position:absolute;inset:-2%;z-index:-2;background:url('assets/warehouse-racks-login.png') center/cover no-repeat;transform:scaleX(-1)}.easylog-login-shell:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#061326c9 0%,#071a32b5 47%,#06132670 100%)}.easylog-brand-panel{background:linear-gradient(90deg,#061326a8 0%,#071a325c 72%,transparent 100%)}.easylog-auth-panel{background:linear-gradient(90deg,#07142612,#07142635);backdrop-filter:blur(2px)}.easylog-login-card{background:#f8fafcb3!important;border-color:#ffffffc7;box-shadow:0 24px 70px #020b1885;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}.easylog-input-wrap{background:#ffffffe0}.easylog-login-card .alert{backdrop-filter:blur(8px)}
@media(max-width:900px){.easylog-login-shell:before{inset:-3%;background-position:42% center}.easylog-login-shell:after{background:#061326a8}.easylog-auth-panel{background:transparent;backdrop-filter:none}.easylog-login-card{background:#f8fafcd9!important}}

/* Login v100: composição baseada na referência aprovada */
.easylog-login-shell{grid-template-columns:minmax(0,1.38fr) minmax(390px,.62fr)}.easylog-login-shell:before{inset:0;background-position:center;transform:none}.easylog-login-shell:after{background:linear-gradient(90deg,#061326ed 0%,#071a32d8 42%,#06132680 72%,#0410205c 100%)}.easylog-brand-panel{justify-content:center;padding:42px clamp(48px,6vw,92px);background:linear-gradient(90deg,#06132678,transparent 90%)}.easylog-login-logo{width:min(300px,46%);margin:0 0 28px;filter:drop-shadow(0 15px 28px #0008)}.easylog-brand-copy{max-width:690px}.easylog-brand-copy>span{margin-bottom:14px}.easylog-brand-copy h1{font-size:clamp(2rem,3.05vw,3.1rem)}.easylog-brand-copy p{max-width:660px;margin-top:16px}.easylog-features{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:min(650px,100%);margin-top:28px}.easylog-feature-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:11px;min-height:148px;padding:18px 18px 16px;border-color:#3489df8c;border-radius:10px;background:#07172b42}.easylog-feature-card svg{width:30px;height:30px;flex-basis:30px;stroke:#4ea1ff;stroke-width:1.55}.easylog-feature-card:nth-child(2) svg,.easylog-feature-card:nth-child(3) svg path:last-child{stroke:#4ea1ff}.easylog-feature-card>div{display:flex;flex-direction:column;gap:6px}.easylog-feature-card strong{color:#f1f7ff;font-size:.82rem}.easylog-feature-card p{margin:0;color:#a9bbd4;font-size:.69rem;line-height:1.45}.easylog-auth-panel{padding:44px clamp(34px,4vw,62px);background:transparent;backdrop-filter:none}.easylog-login-card{width:min(390px,100%);padding:34px!important;background:#ffffffed!important;border-color:#ffffff;box-shadow:0 25px 75px #020b1896;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}.easylog-input-wrap{background:#fffffff2}
@media(max-width:1100px) and (min-width:901px){.easylog-login-shell{grid-template-columns:minmax(0,1.18fr) minmax(370px,.82fr)}.easylog-brand-panel{padding:38px}.easylog-login-logo{width:min(270px,55%)}.easylog-feature-card{min-height:138px;padding:15px}.easylog-auth-panel{padding:32px}}
@media(max-width:900px){.easylog-login-shell{grid-template-columns:1fr}.easylog-login-shell:before{inset:-2%;background-position:62% center}.easylog-login-shell:after{background:#061326a8}.easylog-auth-panel{background:transparent}.easylog-login-card{background:#ffffffe8!important}.easylog-features{grid-template-columns:1fr}.easylog-feature-card{min-height:auto}}

/* v101 - expansão da área de trabalho */
.app-sidebar,.app-content{transition:transform .22s ease,margin-left .22s ease}.sidebar-visibility-toggle{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid #dbe3ec;border-radius:9px;background:#fff;color:#475569;font-size:1.1rem;line-height:1;box-shadow:0 2px 7px #0f172a0d}.sidebar-visibility-toggle:hover{background:#f1f5f9;color:#1d4ed8}.sidebar-edge-toggle{position:fixed;top:50%;left:calc(var(--sidebar-w) - 17px);z-index:105;width:34px;height:54px;border-color:#334155;border-radius:0 10px 10px 0;background:#172235;color:#dbe5f2;box-shadow:4px 0 14px #02061738;transform:translateY(-50%);transition:left .22s ease,background .15s ease}.sidebar-edge-toggle:hover{background:#243249;color:#fff}
@media(min-width:801px){html[data-sidebar=hidden] .app-sidebar{transform:translateX(-102%)}html[data-sidebar=hidden] .app-content{margin-left:0}html[data-sidebar=hidden] .app-content>.container{max-width:1700px}html[data-sidebar=hidden] .sidebar-edge-toggle{left:0}}
@media(max-width:800px){.sidebar-visibility-toggle{display:none}}
html[data-theme=dark] .sidebar-visibility-toggle{border-color:#34435b;background:#172235;color:#cbd5e1}html[data-theme=dark] .sidebar-visibility-toggle:hover{background:#243249;color:#fff}
html[data-theme=dark] .admin-health-list strong{background:#293851;color:#e2e8f0;border:1px solid #3d4d67}html[data-theme=dark] .admin-health-list a:hover strong{background:#34435b;color:#f8fafc}

/* Pré-visualização da importação: regras restritas a esta tela. */
.sheet-preview{padding:20px!important}
.sheet-preview>.page-title{margin:0 0 18px;flex-wrap:wrap}
.sheet-preview>.page-title h2{margin:4px 0 0}
.sheet-preview-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}
.sheet-preview-summary>div{min-width:0;display:flex;flex-direction:column;gap:6px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.sheet-preview-summary strong{font-size:.72rem;color:#64748b}
.sheet-preview-summary span{font-size:.84rem;color:#1e293b;line-height:1.5;overflow-wrap:anywhere}
.sheet-preview .table-wrap{overflow-x:auto;border:1px solid #dbe4ef;border-radius:10px}
.sheet-preview table{min-width:940px}
.sheet-preview th,.sheet-preview td{padding:12px;vertical-align:middle;line-height:1.5}
.sheet-preview th:nth-child(3),.sheet-preview td:nth-child(3){min-width:250px;white-space:normal}
.sheet-preview th:nth-child(7),.sheet-preview td:nth-child(7){min-width:180px}
.sheet-preview .align-right{text-align:right;white-space:nowrap}
.sheet-preview .badge{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:6px 10px;line-height:1.4;font-size:.76rem;vertical-align:middle;max-width:100%;white-space:normal}
.sheet-preview .badge-sent{white-space:nowrap}
.sheet-preview-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:20px 0 0;padding:16px 0 0;border-top:1px solid #e2e8f0}
.sheet-preview-actions button{min-height:40px;margin:0;padding:10px 16px}
html[data-theme=dark] .sheet-preview-summary>div{background:#142136;border-color:#34435b}
html[data-theme=dark] .sheet-preview-summary strong{color:#94a3b8}
html[data-theme=dark] .sheet-preview-summary span{color:#e2e8f0}
html[data-theme=dark] .sheet-preview .table-wrap,html[data-theme=dark] .sheet-preview-actions{border-color:#34435b}
@media(max-width:900px){.sheet-preview-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.sheet-preview{padding:16px!important}.sheet-preview-summary{grid-template-columns:1fr}.sheet-preview-actions button{width:100%}}

#previewPedidoXml[hidden],#acoesSalvarPedido[hidden]{display:none!important}

/* Novo pedido: seleção exclusiva do modo de criação. */
.order-mode-fields{border:0;margin:0;padding:0;min-width:0}
.order-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 14px}
.order-mode-fields[hidden]{display:none!important}
.order-form-grid .order-mode-choice{display:block}
.order-mode-choice>p{margin:0}
.order-form-grid .checkbox-row input[type=radio]{width:18px!important;height:18px!important;min-height:18px;padding:0;margin:0;flex:0 0 18px;accent-color:#2563eb}
@media(max-width:850px){.order-mode-grid{grid-template-columns:1fr}.order-mode-grid .field-wide{grid-column:1/-1}}

/* Pedidos: título e descrição das opções de transporte em linhas separadas. */
.order-form-grid .checkbox-row>span,.order-edit-form .checkbox-row>span{display:flex;flex-direction:column;gap:4px;min-width:0;white-space:normal}
.order-form-grid .checkbox-row>span>strong,.order-edit-form .checkbox-row>span>strong{display:block;line-height:1.35}
.order-form-grid .checkbox-row>span>small,.order-edit-form .checkbox-row>span>small{display:block;font-size:.72rem;font-weight:400;line-height:1.5;color:#64748b;white-space:normal;overflow-wrap:anywhere}
html[data-theme=dark] .order-form-grid .checkbox-row>span>small,html[data-theme=dark] .order-edit-form .checkbox-row>span>small{color:#94a3b8}

/* v107 — importação por planilha seguindo o mesmo padrão visual do XML */
.new-order-heading{margin-bottom:14px}.order-form-grid .spreadsheet-import-choice{display:block!important}.spreadsheet-import-choice{border-color:#bfdbfe;background:#eff6ff;color:#1e40af}.spreadsheet-import-choice .checkbox-row{margin-bottom:7px}.spreadsheet-import-choice>p{margin:0}.spreadsheet-import-choice #camposImportacaoPlanilha{padding-top:8px}.spreadsheet-import-choice #camposImportacaoPlanilha p{margin:0 0 10px;line-height:1.45}.spreadsheet-import-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:39px;margin:0!important;background:#2563eb!important;color:#fff!important}.spreadsheet-import-button:hover{background:#1d4ed8!important}
html[data-theme=dark] .spreadsheet-import-choice{border-color:#1e4d7d;background:#102748;color:#93c5fd}
@media(max-width:620px){.spreadsheet-import-button{width:100%}.new-order-heading p{max-width:90%}}
