/* Shared No Touch and fitted-table rules; loaded after the portal styles. */
[hidden]{display:none!important}main,.workspace,.card,.portal-form,.product-table,.portal-list{min-width:0;max-width:100%}.row,.portal-toolbar,.section-intro,.table-toolbar,.modal-head{gap:16px;flex-wrap:wrap}.card>.row,.card>.portal-toolbar,.card>.section-intro{margin-bottom:20px}.card-actions,.page-savebar{margin-top:20px}.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.actions>*{margin:0}.card>.list-row:last-of-type+button,.card>.list-row+button{margin-top:20px}.portal-breadcrumb{margin-bottom:20px;display:flex;flex-wrap:wrap;gap:12px}.portal-choice-grid,.portal-split,.grid{gap:24px;align-items:stretch}.portal-choice-grid>.card,.grid>.card{margin:0}.card>.empty{margin-top:20px}.portal-form>button,.delivery-form section>button{margin-top:16px;margin-bottom:16px}.portal-form>label,.portal-form>.two{margin-top:16px}.product-table{overflow-x:auto;width:100%;margin-top:16px;margin-bottom:24px}.resizable-table{table-layout:fixed;border-collapse:collapse;max-width:none}.resizable-table th,.resizable-table td,.product-table td:first-child{min-width:0!important;overflow-wrap:anywhere;white-space:normal;padding:12px 10px;box-sizing:border-box}.resizable-table th{position:relative;padding-right:18px}.resizable-table th button{white-space:normal;text-align:left;max-width:100%}.resizable-table input:not([type=checkbox]),.resizable-table select,.resizable-table .select-wrap,.resizable-table .select-trigger{min-width:0;width:100%;max-width:100%}.resizable-table td>.portal-link,.resizable-table td>button{display:inline-block;margin:4px 4px 4px 0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.resizable-table input[type=checkbox]{width:20px;height:20px}.column-resize{position:absolute;right:0;top:12px;bottom:12px;width:10px;cursor:col-resize;touch-action:none;border-right:1px solid var(--line,#d9d0c9)}.column-resize:focus-visible{outline:2px solid #60313e}.portal-filters{gap:16px;align-items:end;flex-wrap:wrap}.portal-filters label{min-width:140px;flex:1}/* Explicitly scoped so generic portal navigation cannot flatten these controls. */
.reporting .report-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px;width:100%;padding:12px;margin:24px 0 28px;background:#eeeae5;border:1px solid var(--line,#e4ddd7);border-radius:16px;box-sizing:border-box}
.reporting .report-tabs>.portal-link{display:flex;align-items:center;justify-content:flex-start;min-width:0;min-height:54px;padding:13px 16px;box-sizing:border-box;border:1px solid #e4ddd7;border-radius:10px;background:#fffefa;color:#59444a;font-size:13px;font-weight:550;line-height:1.4;text-decoration:none;overflow-wrap:anywhere;transition:background .15s,border-color .15s,box-shadow .15s}
.reporting .report-tabs>.portal-link:hover{background:#f6efef;border-color:#bda4ab}
.reporting .report-tabs>.portal-link.selected{background:var(--wine,#60313e);border-color:var(--wine,#60313e);color:#fff;box-shadow:0 2px 5px #482b341a}
.reporting .report-tabs>.portal-link:focus-visible{outline:2px solid var(--wine,#60313e);outline-offset:3px}
@media(max-width:480px){.reporting .report-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}.reporting .report-tabs>.portal-link{padding:12px;min-height:58px;font-size:12px}}
.report-table-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}.report-options{display:flex;flex-wrap:wrap;gap:16px;margin-top:18px}.report-chart{margin:24px 0;padding:24px;background:white;border:1px solid var(--line,#ddd);border-radius:16px}.report-chart svg{display:block;width:100%;margin-top:16px}.report-chart rect{fill:#653541}.report-chart text{font-size:13px;fill:#615451}.report-quality{margin-top:28px}.report-quality li{margin:12px 0;line-height:1.6}.reporting .portal-stat strong{font-size:clamp(20px,2vw,32px)}.portal-columns[open]{z-index:20}.reporting>.card{margin:24px 0}.app-context{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:24px}.delivery-menu-editor .portal-toolbar{margin-top:20px}.select-menu{max-width:min(420px,calc(100vw - 32px))}.select-trigger{overflow-wrap:anywhere;white-space:normal}
@media(max-width:1000px){.portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-choice-grid,.portal-split{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){main{padding:20px 14px!important}.card{padding:18px!important}.two,.filter-grid,.portal-choice-grid,.portal-split,.session-metrics{grid-template-columns:1fr!important}.portal-toolbar,.section-intro{align-items:flex-start}.topbar{gap:14px;flex-wrap:wrap}.topbar>*{max-width:100%}.portal-filters{display:grid;grid-template-columns:1fr 1fr}.portal-filters label{min-width:0}.resizable-table th,.resizable-table td{padding:10px 4px;font-size:11px}.resizable-table th{padding-right:12px}.resizable-table input:not([type=checkbox]),.resizable-table button,.resizable-table .select-trigger{padding:8px 3px;font-size:12px}.report-tabs .portal-link{flex:1 1 140px}.report-chart{padding:12px}.actions>button,.actions>.portal-link{min-height:44px}.page-savebar{flex-wrap:wrap;gap:12px}.identity{position:static}}
@media print{.report-tabs,#report-filters,.report-table-tools,.report-options,.draft-toolbar,.column-resize,.portal-toolbar>.actions{display:none!important}.reporting,.product-table{overflow:visible}.reporting table{width:100%!important}.reporting{color:black}.report-chart{break-inside:avoid}.report-quality{display:block}}

.portal-stat,.portal-stat>*{min-width:0;overflow-wrap:anywhere}.ticket>.select-field{margin:16px 0}.resizable-table td>.select-wrap{margin:4px 0}

/* Native labels and enhanced selects must occupy the same filter row geometry. */
.portal-filters{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;padding:20px;}
.portal-filters>label,.portal-filters>label:first-child,.portal-filters>.select-field{display:grid;gap:8px;flex:1 1 160px;min-width:0;max-width:none;margin:0;font-size:12px;line-height:1.4;align-self:flex-end;}
.portal-filters>label>input,.portal-filters>label>select,.portal-filters>.select-field>.select-wrap>.select-trigger{box-sizing:border-box;width:100%;height:44px;min-height:44px;margin:0;padding:10px 12px;font-size:13px;line-height:22px;border:1px solid #d9d1ca;border-radius:9px;background:white;}
.portal-filters>.select-field>.select-wrap{min-width:0;margin:0;}
.portal-filters>.select-field .select-trigger{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.portal-filters>button,.reporting .portal-filters>button{flex:0 0 auto;align-self:flex-end;min-height:44px;margin:0;padding:10px 16px;font-size:13px;line-height:22px;}
@media(max-width:680px){.portal-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:16px;}.portal-filters>label,.portal-filters>label:first-child,.portal-filters>.select-field{min-width:0;max-width:none;}.portal-filters>button{width:100%;}}
@media(max-width:380px){.portal-filters{grid-template-columns:minmax(0,1fr);}}

.delivery-legend{display:flex;flex-wrap:wrap;gap:22px;margin:16px 0}.delivery-legend>span{display:flex;align-items:center;gap:8px}.delivery-legend i{width:12px;height:12px;border-radius:3px}.delivery-breakdown .delivery-segment{cursor:pointer;stroke:transparent;stroke-width:2}.delivery-breakdown .delivery-segment:hover,.delivery-breakdown .delivery-segment:focus{stroke:currentColor;outline:none;opacity:.85}.delivery-chart-detail{min-height:24px;margin:12px 0 0}.delivery-breakdown svg{min-width:620px}.delivery-breakdown{overflow-x:auto}

.delivery-breakdown .delivery-color-cost_fils{fill:#d39537!important;background:#d39537!important}.delivery-breakdown .delivery-color-fees_fils{fill:#568fca!important;background:#568fca!important}.delivery-breakdown .delivery-color-margin_fils{fill:#47a88b!important;background:#47a88b!important}

.delivery-tooltip{position:fixed;z-index:10000;pointer-events:none;max-width:min(320px,calc(100vw - 16px));padding:12px 16px;border:1px solid #555;border-radius:8px;background:#171717;color:#fff;font:500 15px/1.45 system-ui,sans-serif;box-shadow:0 4px 16px #0003;white-space:normal}.sab-dark .delivery-tooltip{background:#fff;color:#111;border-color:#aaa}
.delivery-breakdown .delivery-color-tax_fils{fill:#9270c4!important;background:#9270c4!important}
.session-metrics{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
