:root{color:#1f2933;background:#f6f7f9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,select{font:inherit}.app-shell{width:100%;margin:0 auto;padding:16px 12px;background:#f0e7cd}.app-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:42px}.app-header-logo{position:absolute;top:50%;left:50%;width:auto;max-width:180px;max-height:100px;transform:translate(-50%,-50%);object-fit:contain;mix-blend-mode:multiply;pointer-events:none}.date-title{display:flex;align-items:center;gap:8px;min-width:0;color:#1f2933;font-size:18px;font-weight:700}.date-title select{height:34px;min-width:136px;border:1px solid #bcccdc;border-radius:6px;background:#fff;color:#1f2933;padding:0 10px;font-weight:600}.sync-button{min-height:34px;border:1px solid #009a84;border-radius:6px;background:#009a84;color:#fff;padding:0 12px;cursor:pointer}.header-actions{display:flex;align-items:center;gap:8px}.print-button{border-color:#334e68;background:#334e68}.sync-button:disabled{border-color:#9fb3c8;background:#9fb3c8;cursor:not-allowed}.sync-button:disabled.is-loading{cursor:wait}.sync-summary{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;color:#52616b;font-size:14px}.sync-summary span{padding:6px 8px;border:1px solid #d9e2ec;border-radius:6px;background:#fff}.sync-summary ul{flex-basis:100%;margin:4px 0 0;padding-left:20px;color:#b42318}.data-panel{padding-top:12px}.table-scroll{overflow-x:auto;border:1px solid #d9e2ec;border-radius:6px;background:#fff}.delivery-table{width:100%;min-width:800px;border-collapse:collapse;font-size:13px;table-layout:fixed}.delivery-table caption{caption-side:top;padding:8px 10px;color:#52616b;text-align:left}.caption-content{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%;min-width:0;white-space:nowrap}.caption-order-controls{display:inline-flex;flex:0 1 auto;align-items:center;justify-content:flex-end;gap:8px;min-width:0;margin-left:auto;color:#52616b;font-size:12px;font-weight:600;white-space:nowrap}.caption-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.caption-updated-at{flex:0 0 auto;color:#334e68;font-weight:600;white-space:nowrap}.caption-link-button{border:0;background:transparent;color:#007f6d;padding:0;font-size:12px;font-weight:700;text-decoration:underline;cursor:pointer}.caption-link-button:disabled{color:#9fb3c8;cursor:not-allowed}.order-save-status{color:#52616b}.order-save-status-error{color:#b42318}.delivery-table th,.delivery-table td{width:72px;padding:7px 8px;border-bottom:1px solid #edf2f7;text-align:center;vertical-align:top;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.delivery-table th.drag-column,.delivery-table td.drag-column{width:34px;padding-right:3px;padding-left:3px;text-align:center}.delivery-table th.selection-column,.delivery-table td.selection-column{width:38px;padding-right:4px;padding-left:4px;text-align:center}.delivery-table input[type=checkbox]{width:16px;height:16px;margin:0;vertical-align:middle;accent-color:#334e68}.drag-handle{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #bcccdc;border-radius:4px;background:#fff;color:#52616b;font-size:12px;font-weight:800;line-height:1;cursor:grab}.drag-handle:active{cursor:grabbing}.drag-handle:disabled{color:#9fb3c8;cursor:not-allowed}.delivery-table tbody tr.is-dragging td{opacity:.55}.delivery-table tbody tr.is-drop-target td{border-top:3px solid #009a84}.delivery-table th.neighborhood-column,.delivery-table td.neighborhood-column{width:120px;text-align:left}.delivery-table th.customer-column,.delivery-table td.customer-column{width:220px;text-align:left}.customer-name{display:block;max-width:100%;overflow:hidden;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.delivery-table th.invoice-column,.delivery-table td.invoice-column{width:42px;padding-right:2px;padding-left:2px;text-align:center}.invoice-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:14px;height:16px;border:1px solid #7a869a;border-radius:2px;background:#fff;color:#596579;line-height:1;vertical-align:middle}.invoice-icon-fold{position:absolute;top:-1px;right:-1px;width:5px;height:5px;border-bottom:1px solid #7a869a;border-left:1px solid #7a869a;background:#eef2f7}.invoice-icon-mark{width:7px;height:1px;margin-top:5px;border-radius:1px;background:#b42318}.boleto-icon{display:inline-flex;flex-direction:column;justify-content:center;width:16px;height:16px;margin-left:3px;border:1px solid #52616b;border-radius:2px;background:#fff;vertical-align:middle}.boleto-icon-line{width:10px;height:1px;margin:0 auto 3px;border-radius:1px;background:#52616b}.boleto-icon-barcode{width:10px;height:6px;margin:0 auto;background:repeating-linear-gradient(90deg,#1f2933 0,#1f2933 1px,transparent 1px,transparent 3px)}.delivery-table th{position:sticky;top:0;background:#f0f4f8;color:#334e68;font-weight:700;z-index:1}.totals-row td{position:sticky;top:32px;background:#fff;color:#1f2933;font-weight:700;z-index:1}.print-totals-row{display:none}.delivery-table tbody tr:last-child td{border-bottom:0}.delivery-table tbody tr:nth-child(2n) td{background:#fbfcfd}.delivery-table tbody tr.route-block-start td{border-top:3px solid #334e68}.delivery-table tbody tr.is-partial td{color:#7a869a}.delivery-table th.product-group-start,.delivery-table td.product-group-start{border-left:3px solid #334e68}.status{margin:16px 0 0;color:#52616b}.status-error{color:#b42318}@media(max-width:640px){.app-shell{padding:12px 8px}.app-header,.date-title,.header-actions{align-items:stretch;flex-direction:column}.app-header-logo{display:none}}@page{size:A4 landscape;margin:6mm}@media print{:root,body{background:#fff;color:#000}body{min-width:0;min-height:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}.app-shell{width:100%;margin:0;padding:0;background:transparent}.app-header,.sync-summary,.status{display:none}.data-panel{padding:0}.table-scroll{overflow:visible;border:0;border-radius:0;background:transparent}.delivery-table{width:100%;min-width:0;font-size:8pt;table-layout:fixed}.delivery-table caption{caption-side:top;padding:0 0 1.5mm;color:#000;font-size:9pt;font-weight:700;text-align:left}.caption-content{gap:4mm}.caption-order-controls{display:none}.caption-updated-at{color:#000;font-size:8pt;white-space:nowrap}.delivery-table thead{display:table-header-group}.delivery-table tr{break-inside:avoid;page-break-inside:avoid}.delivery-table th,.delivery-table td{width:auto;padding:1.2mm;border-bottom:1px solid #9ca3af;color:#000;white-space:nowrap}.delivery-table th.selection-column,.delivery-table td.selection-column,.delivery-table th.drag-column,.delivery-table td.drag-column{display:none}.delivery-table th.neighborhood-column,.delivery-table td.neighborhood-column{width:21mm}.delivery-table th.customer-column,.delivery-table td.customer-column{width:45mm}.delivery-table th.invoice-column,.delivery-table td.invoice-column{display:none}.delivery-table th{position:static;background:#e5e7eb;color:#000;font-weight:800}.totals-row{display:none}.print-totals-row{display:table-row}.print-totals-row th,.print-totals-row td{border-top:2px solid #000000;border-bottom:2px solid #000000;background:#f3f4f6;color:#000;font-weight:800}.delivery-table tbody tr:nth-child(2n) td{background:#fff}.delivery-table tbody tr.route-block-start td{border-top:2px solid #000000}.delivery-table th.product-group-start,.delivery-table td.product-group-start{border-left:2px solid #000000}}
