/* MAS Logistics — Reports Center v2.0.40 */
.reports-center{display:grid;gap:10px;max-width:1500px;margin:0 auto}.reports-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}.reports-title h1{margin:0;color:#111827;font-size:18px;line-height:1.25;font-weight:700}.reports-title small{display:block;margin-top:3px;color:#6b7280;font-size:10.5px;line-height:1.5}.reports-engine{display:flex;align-items:center;gap:7px;min-width:142px;padding:6px 8px;border:1px solid #dce3ea;border-radius:7px;background:#fff}.reports-engine .dot{width:7px;height:7px;border-radius:50%;background:#94a3b8;flex:0 0 auto}.reports-engine.ready .dot{background:#16a34a}.reports-engine.missing .dot{background:#d97706}.reports-engine strong,.reports-engine small{display:block}.reports-engine strong{font-size:10.5px;color:#243044}.reports-engine small{font-size:9.5px;color:#7b8797;margin-top:1px;direction:ltr;text-align:right}
.reports-filter-panel{border:1px solid #dde3ea;background:#fff;border-radius:8px;padding:8px}.reports-filter-panel .report-filter{display:grid;grid-template-columns:minmax(250px,1.8fr) minmax(120px,.55fr) minmax(132px,.6fr) minmax(132px,.6fr) auto auto;gap:6px;align-items:center;margin:0}.report-search{position:relative;display:block}.report-search .ico{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:14px;height:14px;color:#94a3b8;pointer-events:none}.report-search .input{padding-right:30px}.reports-filter-panel .input,.reports-filter-panel .select{min-height:34px;font-size:11px}.reports-filter-panel .btn{min-height:34px;padding:6px 11px;font-size:10.5px}
.reports-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.reports-kpi{min-width:0;background:#fff;border:1px solid #dde3ea;border-radius:7px;padding:7px 9px;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:8px;min-height:52px}.reports-kpi span{font-size:10px;color:#687386}.reports-kpi strong{grid-column:2;grid-row:1/3;color:#111827;font-size:14px;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:left}.reports-kpi small{font-size:9.5px;color:#98a2b3;margin-top:1px}.reports-kpi.warn{border-color:#f1d28a;background:#fffaf1}.reports-kpi.warn strong{color:#a16207}
.reports-nav{display:flex;align-items:center;gap:5px;overflow-x:auto;padding:0 0 2px;scrollbar-width:thin}.reports-nav a{white-space:nowrap;text-decoration:none;color:#39475b;background:#fff;border:1px solid #dce3ea;border-radius:6px;padding:5px 8px;font-size:9.5px;font-weight:600}.reports-nav a:hover{background:#f8fafc;border-color:#cbd5e1}.reports-section{scroll-margin-top:68px}.reports-section+.reports-section{margin-top:4px}.reports-section-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:0 0 6px;padding:0 1px}.reports-section-head h2{margin:0;color:#172033;font-size:12.5px;font-weight:700}.reports-section-head span{display:block;margin-top:1px;color:#7b8797;font-size:9.5px}
.reports-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.report-tool-card{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:66px;padding:8px;background:#fff;border:1px solid #dde3ea;border-radius:8px;transition:border-color .15s ease,box-shadow .15s ease}.report-tool-card:hover{border-color:#c5ced8;box-shadow:0 2px 8px rgba(15,23,42,.045)}.featured-card{border-color:#d5dee8}.report-tool-icon,.report-group-icon{width:31px;height:31px;border-radius:7px;background:#f2f5f8;color:#344054;display:grid;place-items:center;flex:0 0 auto}.report-tool-icon .ico,.report-group-icon .ico{width:15px;height:15px}.report-tool-copy{min-width:0}.report-tool-copy strong{display:block;color:#111827;font-size:11.5px;line-height:1.3}.report-tool-copy small{display:block;color:#6b7280;font-size:9.5px;line-height:1.45;margin-top:2px}.report-tool-meta{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}.report-tool-meta span{padding:2px 4px;border-radius:4px;background:#f6f8fa;color:#7b8797;font-size:9px}.report-tool-actions{display:flex;align-items:center;gap:4px}.report-tool-actions .btn{white-space:nowrap;min-width:42px;justify-content:center}
.report-group-stack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.report-group-card{min-width:0;background:#fff;border:1px solid #dde3ea;border-radius:8px;overflow:hidden}.report-group-card>header{display:flex;align-items:center;gap:8px;padding:8px 9px;border-bottom:1px solid #edf1f4;background:#fbfcfd}.report-group-card>header strong,.report-group-card>header small{display:block}.report-group-card>header strong{font-size:11.5px;color:#172033}.report-group-card>header small{margin-top:1px;font-size:9.5px;line-height:1.35;color:#7b8797}.report-group-list{display:grid}.report-mini-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px 8px;border-bottom:1px solid #edf1f4}.report-mini-row:last-child{border-bottom:0}.report-mini-row>div:first-child{min-width:0}.report-mini-row strong,.report-mini-row small{display:block}.report-mini-row strong{font-size:10.5px;color:#273449;font-weight:600}.report-mini-row small{font-size:9.5px;color:#7b8797;line-height:1.35;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.custom-report-shell{background:#fff;border:1px solid #dde3ea;border-radius:8px;padding:9px}.custom-report-shell .reports-section-head{margin-bottom:7px}.custom-field-groups.compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.custom-field-groups.compact fieldset{min-width:0;border:1px solid #e2e7ed;border-radius:7px;padding:7px 8px;margin:0}.custom-field-groups.compact legend{padding:0 4px;font-size:10px;font-weight:700;color:#344054}.custom-field-groups.compact .custom-field-grid{display:grid;grid-template-columns:1fr;gap:4px}.custom-field-groups.compact label{display:flex;align-items:center;gap:5px;min-width:0;font-size:9.5px;color:#475467;cursor:pointer}.custom-field-groups.compact label span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.custom-field-groups.compact input{width:14px;height:14px;flex:0 0 auto}.custom-report-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:7px}.custom-report-actions .btn{font-size:9.5px;padding:5px 8px}.custom-report-actions .ghost{background:#fff;color:#667085;border-color:transparent}.custom-report-actions .ghost:hover{border-color:#dce3ea;background:#f8fafc}
@media(max-width:1180px){.report-group-stack{grid-template-columns:1fr 1fr}.custom-field-groups.compact{grid-template-columns:1fr 1fr}.reports-filter-panel .report-filter{grid-template-columns:1fr 1fr 1fr}.report-search{grid-column:1/-1}.reports-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.reports-center{gap:8px}.reports-toolbar{align-items:flex-start}.reports-engine{min-width:auto}.reports-engine small{display:none}.reports-filter-panel .report-filter{grid-template-columns:1fr 1fr}.report-search{grid-column:1/-1}.reports-grid,.report-group-stack{grid-template-columns:1fr}.report-tool-card{grid-template-columns:29px minmax(0,1fr)}.report-tool-actions{grid-column:2;justify-content:flex-start;margin-top:1px}.custom-field-groups.compact{grid-template-columns:1fr 1fr}.reports-title h1{font-size:16px}}
@media(max-width:480px){.reports-toolbar{display:grid;grid-template-columns:1fr auto}.reports-title small{max-width:250px}.reports-filter-panel .report-filter{grid-template-columns:1fr}.report-search{grid-column:auto}.reports-kpis{grid-template-columns:1fr 1fr}.reports-kpi{min-height:48px;padding:6px 7px}.reports-kpi strong{font-size:12px}.custom-field-groups.compact{grid-template-columns:1fr}.custom-report-actions{justify-content:flex-start;flex-wrap:wrap}.report-mini-row{grid-template-columns:1fr}.report-mini-row .report-tool-actions{grid-column:auto}.reports-nav{margin-inline:-1px}}

/* v2.0.86 — reports density aligned with the global workspace. */
.reports-center{gap:6px}
.reports-toolbar{min-height:36px;gap:8px}
.reports-title h1{font-size:16px}
.reports-title small{margin-top:1px}
.reports-engine{padding:4px 6px;border-radius:6px}
.reports-filter-panel{padding:6px;border-radius:6px}
.reports-kpis{gap:5px}
.reports-kpi{min-height:44px;padding:5px 7px;border-radius:6px}
.reports-section-head{margin-bottom:4px}
.reports-grid{gap:5px}
.report-tool-card{min-height:56px;padding:6px;gap:6px;border-radius:6px}
.report-group-stack{gap:5px}
.report-group-card{border-radius:6px}
.report-group-card>header{padding:6px 7px}
.report-mini-row{padding:5px 7px}
.custom-report-shell{padding:7px;border-radius:6px}


/* Fix70 / v2.0.115 — Reporting Intelligence + usable Custom Builder */
.reports-center{max-width:1760px}.reports-title small{display:block;margin-top:2px;color:#667085;font-size:10px}.custom-report-workspace{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(420px,.82fr);gap:10px;align-items:start}.custom-report-form{min-width:0;display:grid;gap:8px}.builder-section{border:1px solid #e1e7ed;border-radius:7px;padding:8px;background:#fff}.builder-section .report-builder-step{margin:0 0 7px;padding:0;border:0}.custom-builder-grid.top.four{grid-template-columns:1.1fr 1.2fr 1fr 1.3fr}.date-range-pair{display:grid;grid-template-columns:1fr 1fr;gap:5px}.date-range-pair label{min-width:0}.custom-columns-workspace{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr);gap:8px;min-height:310px}.available-fields-pane,.selected-fields-pane{border:1px solid #e2e7ed;border-radius:7px;background:#fbfcfd;min-width:0;overflow:hidden}.pane-head{min-height:42px;padding:6px 8px;border-bottom:1px solid #e5eaf0;display:flex;align-items:center;justify-content:space-between;gap:7px;background:#fff}.pane-head strong,.pane-head small{display:block}.pane-head strong{font-size:11px}.pane-head small{font-size:9px;color:#667085;margin-top:1px}.pane-head .input.small{min-height:30px;max-width:190px}.custom-field-source-stack{max-height:430px;overflow:auto;padding:6px}.field-category{border:1px solid #e5eaf0;border-radius:6px;background:#fff;margin-bottom:5px;overflow:hidden}.field-category:last-child{margin-bottom:0}.field-category>header{font-size:10px;font-weight:700;color:#344054;padding:5px 7px;background:#f8fafc;border-bottom:1px solid #eef2f5}.field-category>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 7px;padding:5px 7px}.field-category label{display:flex;align-items:center;gap:5px;min-width:0;padding:3px 2px;font-size:9.5px;color:#475467;cursor:pointer}.field-category label:hover{background:#f8fafc}.field-category label span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-column-list{list-style:none;margin:0;padding:6px;display:grid;gap:4px;max-height:430px;overflow:auto;min-height:260px}.selected-column-list li{display:grid;grid-template-columns:22px minmax(0,1fr) 86px auto;align-items:center;gap:5px;padding:5px 6px;border:1px solid #dce3ea;border-radius:6px;background:#fff}.selected-column-list li.dragging{opacity:.45;border-style:dashed}.drag-handle{cursor:grab;color:#98a2b3;text-align:center;font-weight:700}.selected-column-main{min-width:0;display:grid;grid-template-columns:minmax(80px,.75fr) minmax(100px,1.25fr);gap:5px;align-items:center}.selected-column-main strong{font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input.tiny,.select.tiny{min-height:27px;height:27px;padding:3px 6px;font-size:9px}.btn.tiny{min-height:26px;padding:3px 6px;font-size:9px}.column-count-warning{border:1px solid #f3cf86;background:#fff8e8;color:#855b10;border-radius:6px;padding:6px 8px;margin-bottom:6px;font-size:9.5px}.custom-preview-pane{position:sticky;top:64px;border:1px solid #dce3ea;border-radius:8px;background:#fff;overflow:hidden;min-height:520px;display:grid;grid-template-rows:auto minmax(430px,1fr) auto}.preview-pane-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:1px solid #e5eaf0;background:#fbfcfd}.preview-pane-head strong,.preview-pane-head small{display:block}.preview-pane-head strong{font-size:11.5px}.preview-pane-head small{font-size:9.5px;color:#667085;margin-top:1px}.preview-state{font-size:9px;color:#667085;border:1px solid #e2e8f0;border-radius:999px;padding:3px 7px}.preview-empty,.preview-loading{min-height:430px;display:grid;place-items:center;align-content:center;gap:6px;text-align:center;padding:24px;color:#667085}.preview-empty .ico{width:30px;height:30px;opacity:.5}.preview-empty strong,.preview-loading strong{font-size:12px;color:#344054}.preview-empty span,.preview-loading small{font-size:9.5px}.custom-preview-pane iframe{width:100%;height:620px;border:0;background:#fff}.custom-report-actions{border-top:1px solid #e5eaf0;padding:8px 10px;margin:0;justify-content:flex-start;background:#fbfcfd}.report-spinner{width:30px;height:30px;border:3px solid #dce3ea;border-top-color:#0f766e;border-radius:50%;animation:masReportSpin .8s linear infinite}@keyframes masReportSpin{to{transform:rotate(360deg)}}
.export-menu{position:relative}.export-menu>summary{list-style:none;cursor:pointer}.export-menu>summary::-webkit-details-marker{display:none}.export-menu>div{position:absolute;z-index:50;top:calc(100% + 4px);inset-inline-end:0;min-width:140px;border:1px solid #dce3ea;border-radius:7px;background:#fff;padding:4px;box-shadow:0 10px 26px rgba(15,23,42,.12);display:grid;gap:2px}.export-menu>div a,.export-menu>div button{border:0;background:transparent;text-decoration:none;text-align:right;color:#344054;padding:6px 8px;border-radius:5px;font:inherit;font-size:10px;cursor:pointer}.export-menu>div a:hover,.export-menu>div button:hover{background:#f4f6f8}.export-menu.compact>div{min-width:120px}.report-mini-meta{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px}.report-mini-meta span{font-size:8.5px;color:#667085;background:#f6f8fa;border-radius:4px;padding:1px 4px}.report-tool-actions>.btn.primary,.report-mini-row .report-tool-actions>.btn.primary{background:#0f766e;border-color:#0f766e;color:#fff}.reports-grid.featured{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1250px){.custom-report-workspace{grid-template-columns:1fr}.custom-preview-pane{position:relative;top:auto;min-height:460px}.custom-preview-pane iframe{height:560px}.custom-builder-grid.top.four{grid-template-columns:1fr 1fr}.custom-columns-workspace{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.custom-columns-workspace{grid-template-columns:1fr}.custom-builder-grid.top.four{grid-template-columns:1fr 1fr}.custom-preview-pane iframe{height:520px}.field-category>div{grid-template-columns:1fr 1fr}.selected-column-main{grid-template-columns:1fr}.reports-grid.featured{grid-template-columns:1fr}}
@media(max-width:560px){.custom-builder-grid.top.four{grid-template-columns:1fr}.date-range-pair{grid-template-columns:1fr 1fr}.field-category>div{grid-template-columns:1fr}.selected-column-list li{grid-template-columns:20px minmax(0,1fr) 72px}.selected-column-list .order-buttons{grid-column:2/4;justify-content:flex-end}.custom-preview-pane{min-height:400px}.custom-preview-pane iframe{height:460px}}

/* Fix71 / v2.0.116 — MAS Reports Design System: unified report-center controls */
:root{--mas-report-navy:#17263a;--mas-report-navy-2:#223650;--mas-report-teal:#0f766e;--mas-report-green:#15803d;--mas-report-amber:#b7791f;--mas-report-red:#b42318;--mas-report-line:#dbe3ea;--mas-report-soft:#f6f8fa;--mas-report-stripe:#fafbfc;--mas-report-text:#172033;--mas-report-muted:#667085}
.reports-center,.reports-center input,.reports-center select,.reports-center button,.reports-center a{font-family:Arial,sans-serif}
.reports-toolbar{border-bottom:2px solid var(--mas-report-navy)}
.reports-title h1{color:var(--mas-report-navy);font-size:19px;line-height:1.25}.reports-title small{font-size:12px;color:var(--mas-report-muted)}
.reports-filter-panel,.reports-section,.report-tool-card,.report-group-card,.builder-section,.custom-preview-pane{background:#fff;border-color:var(--mas-report-line)}
.reports-filter-panel .input,.reports-filter-panel .select,.reports-filter-panel .btn{min-height:36px;font-size:12px}
.reports-nav .primary,.report-tool-actions>.btn.primary,.report-mini-row .report-tool-actions>.btn.primary,.custom-report-actions .btn.primary{background:var(--mas-report-teal);border-color:var(--mas-report-teal);color:#fff}
.reports-section-head h2{color:var(--mas-report-navy);font-size:16px}.reports-section-head span{font-size:12px;color:var(--mas-report-muted)}
.report-tool-copy strong,.report-group-card>header strong{font-size:13px;color:var(--mas-report-text)}.report-tool-copy small,.report-group-card>header small,.report-mini-row small{font-size:11px;line-height:1.45;color:var(--mas-report-muted)}
.report-mini-row strong{font-size:12px;color:var(--mas-report-text)}
.report-group-stack{align-items:start}.report-group-card{align-self:start;height:auto}.report-group-list{align-content:start}
.report-group-card>header{background:var(--mas-report-soft);border-bottom-color:var(--mas-report-line)}
.report-tool-icon,.report-group-icon{background:#eef3f7;color:var(--mas-report-navy)}
.report-mini-row{min-height:54px}.report-mini-row small{white-space:normal;overflow:visible;text-overflow:clip}
.builder-section .report-builder-step strong,.pane-head strong{font-size:12px;color:var(--mas-report-navy)}.builder-section .report-builder-step small,.pane-head small{font-size:11px}
.custom-builder-grid label>span,.date-range-pair label>span{font-size:11px;font-weight:600;color:#344054}
.custom-builder-grid .input,.custom-builder-grid .select,.custom-filter-row .input,.custom-filter-row .select{font-size:12px;min-height:34px}
.field-category>header{font-size:11px;color:var(--mas-report-navy)}.field-category label{font-size:11px;min-height:28px}
.selected-column-main strong{font-size:11px}.input.tiny,.select.tiny{font-size:10.5px;min-height:30px;height:30px}.btn.tiny{font-size:10.5px;min-height:29px}
.preview-pane-head strong{font-size:13px;color:var(--mas-report-navy)}.preview-pane-head small,.preview-empty span,.preview-loading small{font-size:11px}.preview-empty strong,.preview-loading strong{font-size:13px}
.export-menu>div a,.export-menu>div button{font-size:12px;min-height:32px}
.column-count-warning{font-size:11px}
.report-tool-meta,.report-mini-meta,.report-version-tag{display:none!important}
@media(max-width:760px){.reports-title h1{font-size:18px}.reports-title small{font-size:11px}.report-tool-copy strong,.report-group-card>header strong{font-size:12.5px}.report-tool-copy small,.report-group-card>header small,.report-mini-row small{font-size:10.5px}}

/* =========================================================
   Fix72 — Reports Center + Custom Builder workspace
   ========================================================= */
.reports-center-v72{max-width:1660px;margin-inline:auto}
.reports-center-v72 .reports-toolbar{margin-bottom:8px}
.global-report-filters{padding:9px 10px}
.global-report-filters .report-filter{display:grid;grid-template-columns:minmax(260px,1.8fr) minmax(145px,.75fr) minmax(145px,.75fr) minmax(150px,.8fr) auto;gap:8px;align-items:end}
.global-report-filters label{display:grid;gap:4px;min-width:0}.global-report-filters label>span{font-size:10px;font-weight:700;color:#475467}
.global-report-filters .report-search>div{position:relative}.global-report-filters .report-search svg{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:#667085}.global-report-filters .report-search input{padding-right:31px}
.global-report-filters .filter-actions{display:flex;gap:6px;align-items:center;padding-bottom:1px}
.reports-main-tabs{display:flex;gap:4px;border-bottom:1px solid var(--mas-report-line,#dbe3ea);margin:8px 0 10px;padding:0 3px}
.reports-main-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 16px;border:1px solid transparent;border-bottom:3px solid transparent;color:#475467;text-decoration:none;font-size:12px;font-weight:700;border-radius:7px 7px 0 0}
.reports-main-tabs a:hover{background:#f7f9fb;color:#17263a}.reports-main-tabs a.active{color:#0f766e;background:#fff;border-color:#dbe3ea;border-bottom-color:#0f766e}
.report-library-v72{padding:10px}.report-group-masonry{columns:2 560px;column-gap:10px}.report-group-auto{break-inside:avoid;margin:0 0 10px;height:auto!important;min-height:0!important}.report-group-auto .report-group-list{height:auto!important;min-height:0!important}.compact-report-card{min-height:0!important;padding:7px 8px}.compact-report-card .report-mini-copy{min-width:0}.compact-report-card .report-mini-copy>strong{font-size:11px}.compact-report-card .report-mini-copy>small{display:block;margin-top:2px;font-size:9.5px;line-height:1.45;color:#667085;white-space:normal}.compact-report-card .report-tool-actions{flex:0 0 auto}
.custom-report-v72{padding:10px}.custom-report-v72 .reports-section-head{margin-bottom:7px}.custom-report-workspace{display:grid!important;grid-template-columns:1fr!important;gap:9px;align-items:start;max-width:1600px;margin-inline:auto}.custom-report-form{display:grid;gap:8px;min-width:0}.builder-section{padding:9px 10px}.report-builder-step{display:flex;align-items:flex-start;gap:8px}.report-builder-step>span{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#17263a;color:#fff;font-size:10px;font-weight:800}.report-builder-step strong{font-size:12px}.report-builder-step small{display:block;margin-top:2px;font-size:9.5px;color:#667085;line-height:1.45}.preset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px;margin-top:8px}.preset-option{display:flex;gap:7px;align-items:flex-start;border:1px solid #dfe5eb;border-radius:7px;padding:7px 8px;cursor:pointer;background:#fff}.preset-option:hover{border-color:#9ac9c5;background:#f7fbfa}.preset-option:has(input:checked){border-color:#0f766e;box-shadow:inset 0 0 0 1px #0f766e;background:#f2faf8}.preset-option input{margin-top:2px}.preset-option strong{font-size:10.5px}.preset-option small{display:block;color:#667085;font-size:9px;line-height:1.4;margin-top:2px}.custom-builder-grid.source-row{grid-template-columns:minmax(240px,440px) minmax(280px,1fr);align-items:end}.row-level-note{border:1px solid #dce6e4;background:#f7fbfa;border-radius:6px;padding:8px 10px;color:#475467;font-size:10px;line-height:1.5}.quick-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:7px;margin-top:8px}.quick-filter-grid label{display:grid;gap:4px;min-width:0}.quick-filter-grid label>span{font-size:9.5px;font-weight:700;color:#475467}.quick-filter-grid .date-range-pair{grid-column:span 2}.advanced-filter-box{margin-top:7px;border-top:1px dashed #dce3ea;padding-top:6px}.advanced-filter-box>summary{cursor:pointer;color:#0f766e;font-size:10px;font-weight:700;width:max-content}.advanced-filter-box[open]>summary{margin-bottom:7px}.custom-columns-workspace{grid-template-columns:minmax(330px,.92fr) minmax(390px,1.08fr);min-height:0}.available-fields-pane,.selected-fields-pane{min-height:330px}.custom-field-source-stack{max-height:520px}.field-category{margin-bottom:5px}.field-category>summary{cursor:pointer;list-style:none;font-size:10px;font-weight:700;color:#344054;padding:6px 8px;background:#f8fafc;border-bottom:1px solid #eef2f5}.field-category>summary::-webkit-details-marker{display:none}.field-category>summary:after{content:'▾';float:left;color:#98a2b3}.field-category:not([open])>summary:after{content:'◂'}.field-category>div{grid-template-columns:repeat(2,minmax(0,1fr));padding:6px 8px}.selected-column-list{min-height:230px;max-height:520px}.selected-column-list li{grid-template-columns:22px minmax(0,1fr) 28px;gap:6px;padding:6px 7px;align-items:start}.selected-column-name{min-width:0;padding-top:2px}.selected-column-name strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-column-hint{display:block;font-size:8.5px;color:#a15c00;line-height:1.35;margin-top:2px}.column-remove{border:0;background:transparent;color:#b42318;font-size:17px;line-height:22px;cursor:pointer;border-radius:4px}.column-remove:hover{background:#fff0ee}.column-advanced{grid-column:2/4;border-top:1px dashed #e4e8ed;padding-top:3px}.column-advanced>summary{cursor:pointer;font-size:9px;color:#667085;width:max-content}.column-advanced>div{display:grid;grid-template-columns:minmax(150px,1fr) 115px 115px;gap:5px;margin-top:5px}.column-advanced label{display:grid;gap:2px}.column-advanced label span{font-size:8.5px;color:#667085}.custom-preview-pane{position:relative!important;top:auto!important;min-height:0!important;display:grid!important;grid-template-rows:auto auto auto auto;border:1px solid #dce3ea;border-radius:8px;overflow:hidden;background:#fff}.preview-pane-head{padding:7px 9px}.preview-pane-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.preview-empty,.preview-loading{min-height:96px!important;padding:15px!important}.custom-preview-pane iframe{height:660px;width:100%;border:0;background:#fff}.custom-report-workspace:not(.has-preview) .custom-preview-pane iframe{display:none}.custom-report-workspace.builder-collapsed .custom-report-form{display:none}.custom-report-workspace.preview-expanded .custom-preview-pane iframe{height:82vh;min-height:720px}.custom-report-workspace.preview-expanded{max-width:none}.custom-report-actions{padding:7px 9px}.custom-template-save{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.custom-template-save .input{max-width:340px}.custom-filter-row{grid-template-columns:minmax(160px,1.2fr) minmax(100px,.65fr) minmax(160px,1fr) auto}.custom-totals{margin-top:7px}.custom-totals>div{display:flex;gap:8px 14px;flex-wrap:wrap;margin-top:5px}.custom-totals label{display:flex;align-items:center;gap:4px;font-size:9.5px}.report-template-strip{margin-bottom:8px}
@media(max-width:1200px){.global-report-filters .report-filter{grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(135px,.7fr));}.global-report-filters .filter-actions{grid-column:1/-1;justify-content:flex-end}.quick-filter-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}.custom-columns-workspace{grid-template-columns:1fr 1fr}.report-group-masonry{columns:1}.custom-report-workspace{max-width:100%}}
@media(max-width:900px){.global-report-filters .report-filter{grid-template-columns:1fr 1fr}.global-report-filters .report-search{grid-column:1/-1}.quick-filter-grid{grid-template-columns:1fr 1fr}.custom-builder-grid.source-row{grid-template-columns:1fr}.custom-columns-workspace{grid-template-columns:1fr}.available-fields-pane,.selected-fields-pane{min-height:0}.custom-field-source-stack,.selected-column-list{max-height:390px}.column-advanced>div{grid-template-columns:1fr 1fr}.column-advanced>div label:first-child{grid-column:1/-1}.custom-preview-pane iframe{height:590px}}
@media(max-width:620px){.reports-main-tabs a{flex:1;padding-inline:8px}.global-report-filters .report-filter,.quick-filter-grid{grid-template-columns:1fr}.global-report-filters .report-search,.quick-filter-grid .date-range-pair{grid-column:auto}.date-range-pair{grid-template-columns:1fr 1fr}.preset-grid{grid-template-columns:1fr}.field-category>div{grid-template-columns:1fr}.custom-filter-row{grid-template-columns:1fr}.column-advanced>div{grid-template-columns:1fr}.column-advanced>div label:first-child{grid-column:auto}.custom-preview-pane iframe{height:520px}.report-mini-row{align-items:flex-start}.report-tool-actions{flex-wrap:wrap}.report-group-card>header{padding:8px}.custom-report-v72{padding:6px}}

/* Fix76: export menu must remain visible above the preview/footer boundary. */
.custom-preview-pane{overflow:visible!important}
.custom-report-actions{position:relative;z-index:80;overflow:visible!important}
.custom-report-actions .export-menu{z-index:90}
.custom-report-actions .export-menu>div{top:auto!important;bottom:calc(100% + 5px)!important;z-index:100!important;max-height:min(320px,60vh);overflow:auto}


/* Fix77 — report empty values + export popover clipping remediation. */
.custom-preview-pane,
.custom-report-shell,
.custom-report-workspace,
.custom-report-actions{overflow:visible!important}
.custom-preview-pane iframe{position:relative;z-index:1}
.custom-report-actions{position:relative!important;z-index:1000!important;isolation:isolate}
.export-menu{position:relative;z-index:1100}
.export-menu.export-menu-viewport>div{
  position:fixed!important;
  top:auto!important;
  right:auto!important;
  bottom:var(--mas-export-bottom,auto)!important;
  left:var(--mas-export-left,8px)!important;
  z-index:2147483000!important;
  min-width:150px!important;
  max-height:min(320px,60vh)!important;
  overflow:auto!important;
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
}

/* Fix77 — native top-layer export popover: cannot be clipped by report/iframe overflow. */
.mas-export-popover{
  position:fixed;
  inset:auto;
  margin:0;
  width:160px;
  padding:5px;
  border:1px solid #dce3ea;
  border-radius:8px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.18);
  z-index:2147483647;
  direction:rtl;
}
.mas-export-popover::backdrop{background:transparent}
.mas-export-popover button{
  display:block;width:100%;min-height:34px;border:0;border-radius:5px;background:#fff;
  color:#344054;text-align:right;padding:7px 9px;font:12px Arial,sans-serif;cursor:pointer
}
.mas-export-popover button:hover{background:#f4f6f8}


/* Fix78 — body-level export portal; independent from preview/card overflow and stacking contexts. */
.mas-export-portal{
  position:fixed!important;
  z-index:2147483647!important;
  width:170px;
  padding:5px;
  border:1px solid #dce3ea;
  border-radius:8px;
  background:#fff;
  box-shadow:0 16px 38px rgba(15,23,42,.20);
  direction:rtl;
}
.mas-export-portal[hidden]{display:none!important}
.mas-export-portal button{
  display:block;width:100%;min-height:34px;border:0;border-radius:5px;background:#fff;
  color:#344054;text-align:right;padding:7px 9px;font:12px Arial,sans-serif;cursor:pointer
}
.mas-export-portal button:hover,.mas-export-portal button:focus-visible{background:#f4f6f8;outline:none}

/* Fix79 — ISO date controls: stable YYYY-MM-DD display with native picker. */
.iso-date-control{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:6px;align-items:center;position:relative;direction:ltr}
.iso-date-control .input{text-align:left;direction:ltr;font-variant-numeric:tabular-nums}
.iso-date-button{height:34px;min-width:34px;border:1px solid #cfd8e3;background:#fff;border-radius:6px;color:#17324d;font:700 15px Arial;cursor:pointer;display:grid;place-items:center}
.iso-date-button:hover{border-color:#0f766e;color:#0f766e}.iso-date-button:disabled{opacity:.45;cursor:not-allowed}
.iso-date-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;inset:auto 0 0 auto;border:0;padding:0}


/* Fix81 — functional UX/UI audit: readability, keyboard access, responsive controls. */
.reports-center-v72 .report-mini-row strong{font-size:13px;line-height:1.45}
.reports-center-v72 .compact-report-card .report-mini-copy>strong{font-size:13px}
.reports-center-v72 .compact-report-card .report-mini-copy>small{font-size:11.5px;line-height:1.5}
.reports-center-v72 .report-group-card>header small{font-size:11.5px}
.reports-center-v72 .report-builder-step strong{font-size:13px}
.reports-center-v72 .report-builder-step small{font-size:11.5px;line-height:1.5}
.reports-center-v72 .preset-option strong{font-size:12px}
.reports-center-v72 .preset-option small{font-size:11px;line-height:1.5}
.reports-center-v72 .quick-filter-grid label>span,
.reports-center-v72 .global-report-filters label>span{font-size:12px}
.reports-center-v72 .field-category>summary{font-size:12px;padding:8px 9px}
.reports-center-v72 .field-category label{font-size:12px;min-height:32px}
.reports-center-v72 .selected-column-name strong{font-size:12px}
.reports-center-v72 .selected-column-hint{font-size:10.5px}
.reports-center-v72 .column-advanced>summary{font-size:11.5px;min-height:30px;display:flex;align-items:center}
.reports-center-v72 .column-advanced label span{font-size:11px}
.reports-center-v72 .row-level-note{font-size:11.5px}
.reports-center-v72 .reports-main-tabs a{font-size:13px}
.reports-center-v72 .report-tool-actions .btn.small{min-height:34px!important;height:auto!important;font-size:12px}
.reports-center-v72 .custom-report-actions .btn,
.reports-center-v72 .iso-date-button{min-height:36px!important;height:auto!important}
.reports-center-v72 .report-mini-row{min-width:0}
.reports-center-v72 .report-tool-actions{min-width:0;flex-wrap:wrap}
.reports-center-v72 .selected-column-list li{min-width:0}
.reports-center-v72 .drag-handle{cursor:grab;border-radius:5px;min-width:25px;min-height:30px;display:inline-grid;place-items:center}
.reports-center-v72 .drag-handle:active{cursor:grabbing}
.reports-center-v72 :is(a,button,input,select,textarea,summary,[role="button"]):focus-visible,
.mas-export-portal button:focus-visible{outline:2px solid #0f766e!important;outline-offset:2px!important}
.reports-center-v72 [hidden]{display:none!important}
.reports-center-v72 .preview-error{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:12px 14px;color:#8f261d;background:#fff7f6;border-top:1px solid #f2c2bd}
.reports-center-v72 .preview-error strong{font-size:13px}
.reports-center-v72 .preview-error span{font-size:12px;flex:1 1 220px;line-height:1.5}
.reports-center-v72 .preview-error button{min-height:36px}
.reports-center-v72 .preview-state{font-size:11.5px}
@media(max-width:760px){
 .reports-center-v72 .reports-main-tabs a{min-height:42px}
 .reports-center-v72 .report-tool-actions .btn.small,
 .reports-center-v72 .export-menu>summary,
 .reports-center-v72 .custom-report-actions .btn{min-height:40px!important}
 .reports-center-v72 .compact-report-card{grid-template-columns:minmax(0,1fr);gap:8px}
 .reports-center-v72 .report-mini-row .report-tool-actions{justify-content:flex-start}
 .reports-center-v72 .preview-pane-head{flex-wrap:wrap;gap:8px}
 .reports-center-v72 .preview-pane-tools{flex-wrap:wrap}
 .reports-center-v72 .custom-report-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:360px){
 .reports-center-v72 .custom-report-actions{grid-template-columns:1fr}
 .reports-center-v72 .date-range-pair{grid-template-columns:1fr}
 .reports-center-v72 .reports-toolbar{gap:6px}
}
@media(prefers-reduced-motion:reduce){
 .reports-center-v72 .report-spinner{animation:none!important}
 .reports-center-v72 .report-tool-card{transition:none!important}
}

/* Keep the selected-fields area compact when the user removes every column. */
.reports-center-v72 .selected-column-list:empty{min-height:76px!important;display:grid;place-items:center;padding:10px;text-align:center}
.reports-center-v72 .selected-column-list:empty::before{content:"اختر حقولاً من القائمة لإضافتها إلى التقرير";font-size:12px;color:#667085;line-height:1.6}
.reports-center-v72 .selected-fields-pane:has(.selected-column-list:empty){min-height:0!important}
