/* Daily Branch Reports (التقارير اليومية للفروع). Every rule is scoped to the feature: .drp-* elements, body.drp-open,
   the two printable reports (#daily-report-print, #daily-exec-report) and the entries injected into the manager navigation
   and the branch screen. Same tokens and hierarchy as the Broadcast Center and Device Readiness screens. */

/* ---------- entries ---------- */
.ref-actions .drp-top-btn{display:none!important}
@media(max-width:900px){.ref-actions .drp-top-btn{display:inline-grid!important;place-items:center}}
@media(max-width:820px){.ref-sidebar nav [data-side="daily-reports"]{display:none!important}}

/* ---------- tokens and shared pieces ---------- */
.drp-back,.drp-sheet-back,.drp-card,.drp-toast{--drp-navy:#102342;--drp-blue:#1f61d5;--drp-text:#182033;--drp-muted:#627085;--drp-line:#e6ebf2;--drp-soft:#f5f7fa;--drp-bg:#f7f9fc;--drp-card:#fff;
  --drp-gold:#b28a4a;--drp-ok:#16734a;--drp-ok-bg:#e8f6ee;--drp-warn:#9a5b06;--drp-warn-bg:#fff4e0;--drp-bad:#c0372f;--drp-bad-bg:#fdeeec;--drp-mute:#5f6b7c;--drp-mute-bg:#f1f3f6;--drp-info:#1f61d5;--drp-info-bg:#eaf1fd}
.drp-back bdi,.drp-sheet-back bdi,.drp-card bdi,.drp-num{unicode-bidi:isolate}
.drp-num{font-variant-numeric:tabular-nums}
.drp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.drp-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;font-size:11.5px;font-weight:800;white-space:nowrap;line-height:1.35}
.drp-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.85}
.drp-s-submitted{background:var(--drp-ok-bg);color:var(--drp-ok)}
.drp-s-corrected{background:var(--drp-info-bg);color:var(--drp-info)}
.drp-s-draft{background:var(--drp-warn-bg);color:var(--drp-warn)}
.drp-s-not_submitted{background:var(--drp-mute-bg);color:var(--drp-mute)}
.drp-late{background:var(--drp-warn-bg);color:var(--drp-warn)}
.drp-primary,.drp-secondary,.drp-close,.drp-link,.drp-icon-btn,.drp-sort{font:inherit;cursor:pointer;border-radius:12px;min-height:44px}
.drp-primary{border:0;background:var(--drp-blue);color:#fff;font-weight:800;padding:10px 18px}
.drp-secondary{border:1px solid var(--drp-line);background:#fff;color:var(--drp-text);font-weight:700;padding:9px 14px;white-space:nowrap}
.drp-primary:disabled,.drp-secondary:disabled{opacity:.55;cursor:default}
.drp-link{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--drp-blue);font-weight:800;padding:0 8px}
.drp-danger{color:var(--drp-bad)!important}
.drp-close{width:44px;height:44px;padding:0;border:1px solid var(--drp-line);background:#fff;font-size:22px;line-height:1;color:var(--drp-text);flex:none}
.drp-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.drp-dim{color:var(--drp-muted)}
.drp-err{color:var(--drp-bad);font-weight:700;font-size:12.5px}
.drp-err[hidden]{display:none}
.drp-toast{position:fixed;z-index:215;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100vw - 32px);background:#102342;color:#fff;border-radius:14px;padding:11px 16px;font-size:13.5px;font-weight:700;box-shadow:0 16px 40px rgba(16,35,66,.25);direction:rtl}

/* ---------- the full-screen module (over the dashboard / branch screen, under the printable report) ---------- */
body.drp-open{overflow:hidden}
.drp-back{position:fixed;inset:0;z-index:76;background:var(--drp-bg);overflow-y:auto;overflow-x:hidden;direction:rtl;color:var(--drp-text);-webkit-overflow-scrolling:touch}
.drp-shell{box-sizing:border-box;width:min(1200px,100%);margin:0 auto;padding:16px 22px calc(28px + env(safe-area-inset-bottom))}
.drp-head{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0 12px;margin-bottom:4px;background:rgba(247,249,252,.94);backdrop-filter:blur(14px)}
.drp-head small{color:var(--drp-gold);font-weight:800;font-size:11px}
.drp-head h1{margin:2px 0;font-size:26px;color:var(--drp-navy);line-height:1.25}
.drp-head p{margin:0;color:var(--drp-muted);font-size:12.5px}
.drp-head-actions{display:flex;gap:8px;align-items:center;flex:none}
.drp-panel{background:var(--drp-card);border:1px solid var(--drp-line);border-radius:18px;padding:16px;margin-bottom:12px;min-width:0}
.drp-section-title{display:flex;align-items:center;justify-content:space-between;gap:4px 10px;margin:0 0 12px;flex-wrap:wrap}
.drp-section-title h2{margin:0;font-size:15px;color:var(--drp-navy);display:flex;align-items:center;gap:8px}
.drp-section-title h2 i{font-style:normal;width:28px;height:28px;border-radius:9px;display:inline-grid;place-items:center;background:var(--drp-soft);font-size:14px}
.drp-section-title span{font-size:12px;color:var(--drp-muted)}

/* date bar */
.drp-datebar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 0 12px}
.drp-datebar .drp-icon-btn{width:44px;padding:0;border:1px solid var(--drp-line);background:#fff;color:var(--drp-text);font-size:18px}
.drp-datebar .drp-icon-btn:disabled{opacity:.4;cursor:default}
.drp-date-input{min-height:44px;border:1px solid var(--drp-line);border-radius:12px;background:#fff;color:var(--drp-text);font:inherit;font-weight:700;padding:0 12px}
.drp-date-label{font-weight:800;color:var(--drp-navy);font-size:15px}
.drp-yesterday{background:var(--drp-navy);color:#fff;border-radius:999px;padding:4px 12px;font-size:12px;font-weight:800}
.drp-note{margin:0;color:var(--drp-muted);font-size:12px;line-height:1.7}

/* coverage */
.drp-coverage{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;align-items:center}
.drp-cover-main b{display:block;font-size:30px;color:var(--drp-navy);line-height:1.15}
.drp-cover-main b em{font-style:normal;color:var(--drp-muted);font-size:20px}
.drp-cover-main span{display:block;margin-top:2px;font-size:13px;color:var(--drp-muted);font-weight:700}
.drp-bar{height:10px;border-radius:999px;background:var(--drp-mute-bg);overflow:hidden;margin-top:10px}
.drp-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1f61d5,#3f7ce6)}
.drp-cover-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.drp-cover-stats div{background:var(--drp-soft);border-radius:12px;padding:9px 11px;min-width:0}
.drp-cover-stats span{display:block;font-size:11.5px;color:var(--drp-muted);font-weight:700}
.drp-cover-stats strong{display:block;font-size:19px;color:var(--drp-navy)}
.drp-cover-stats .drp-missing strong{color:var(--drp-bad)}

/* executive totals */
.drp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.drp-kpi{background:var(--drp-card);border:1px solid var(--drp-line);border-radius:16px;padding:13px 14px;min-width:0}
.drp-kpi span{display:block;color:var(--drp-muted);font-size:12px;font-weight:700}
.drp-kpi strong{display:block;font-size:22px;margin:4px 0 2px;color:var(--drp-navy);unicode-bidi:isolate;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drp-kpi small{display:block;color:var(--drp-muted);font-size:11px}
.drp-kpi-lead{border-color:rgba(178,138,74,.45);box-shadow:inset 0 3px 0 rgba(178,138,74,.55)}
.drp-mix{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:6px 0 5px}
.drp-mix div{background:var(--drp-soft);border-radius:9px;padding:4px 7px;min-width:0}
.drp-mix em{display:block;font-style:normal;font-size:11px;font-weight:700;color:var(--drp-muted)}
.drp-mix b{display:block;font-size:15px;color:var(--drp-navy);white-space:nowrap}

/* comparisons (highest / lowest) */
.drp-compare{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.drp-cmp{border:1px solid var(--drp-line);border-radius:14px;padding:12px;background:var(--drp-card);display:grid;gap:10px;min-width:0;align-content:start}
.drp-cmp h3{margin:0;font-size:13px;color:var(--drp-navy);display:flex;justify-content:space-between;gap:8px}
.drp-cmp h3 small{color:var(--drp-muted);font-weight:700;font-size:11px}
.drp-cmp-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label value" "names names";gap:4px 8px;align-items:center;font-size:13px}
.drp-cmp-row>span{grid-area:label;justify-self:start;font-size:11px;font-weight:800;border-radius:8px;padding:2px 8px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.drp-hi>span{background:var(--drp-ok-bg);color:var(--drp-ok)}
.drp-lo>span{background:var(--drp-mute-bg);color:var(--drp-mute)}
.drp-cmp-row b{grid-area:names;min-width:0;font-weight:700;color:var(--drp-text);line-height:1.6}
.drp-cmp-row strong{grid-area:value;color:var(--drp-navy);white-space:nowrap;font-size:14px}
.drp-cmp-empty{font-size:12px;color:var(--drp-muted)}

/* missing branches */
.drp-missing-list{display:flex;flex-wrap:wrap;gap:6px}
.drp-missing-list span{background:var(--drp-bad-bg);color:var(--drp-bad);border-radius:999px;padding:5px 11px;font-size:12px;font-weight:800}
.drp-all-in{color:var(--drp-ok);font-weight:800;font-size:13px}

/* all-branch table (desktop) and cards (phone) */
.drp-toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.drp-toolbar select{min-height:44px;border:1px solid var(--drp-line);border-radius:12px;background:#fff;color:var(--drp-text);font:inherit;padding:0 10px}
.drp-table-wrap{overflow-x:auto;border:1px solid var(--drp-line);border-radius:14px}
.drp-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}
.drp-table th{text-align:right;background:var(--drp-soft);color:#5b6678;font-size:11px;font-weight:800;padding:0;border-bottom:1px solid var(--drp-line);white-space:normal;line-height:1.3;vertical-align:bottom}
.drp-table th>span,.drp-sort{display:flex;align-items:center;gap:3px;width:100%;min-height:44px;padding:0 6px;border:0;background:none;color:inherit;font-size:inherit;font-weight:inherit;text-align:right;border-radius:0}
.drp-sort::after{content:"↕";opacity:.35;font-size:10px}
.drp-sort[aria-sort="descending"]::after{content:"↓";opacity:1}
.drp-sort[aria-sort="ascending"]::after{content:"↑";opacity:1}
.drp-table td{padding:8px 6px;border-bottom:1px solid #eef1f5;vertical-align:middle;white-space:nowrap;font-variant-numeric:tabular-nums}
.drp-table th:first-child,.drp-table td:first-child{position:sticky;right:0;z-index:1;background:var(--drp-card);box-shadow:-1px 0 0 var(--drp-line)}
.drp-table th:first-child{background:var(--drp-soft);z-index:2;min-width:128px}
.drp-table td:first-child strong{display:inline-block;max-width:150px;white-space:normal;line-height:1.35}
.drp-table tbody tr{cursor:pointer}
.drp-table tbody tr:hover td{background:#f8fafd}
.drp-table tbody tr.drp-row-missing{cursor:default}
.drp-table tbody tr.drp-row-missing td{color:var(--drp-muted)}
.drp-table td strong{color:var(--drp-navy)}
.drp-cards{display:none}
.drp-bcard{display:grid;gap:10px;border:1px solid var(--drp-line);border-radius:16px;background:var(--drp-card);padding:12px;width:100%;box-sizing:border-box;text-align:right;font:inherit;color:inherit}
button.drp-bcard{cursor:pointer}
.drp-bcard-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.drp-bcard-head b{font-size:15px;color:var(--drp-navy)}
.drp-bcard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.drp-bcard-missing{opacity:.85}
.drp-bcard-grid div{background:var(--drp-soft);border-radius:10px;padding:7px 8px;min-width:0}
.drp-bcard-grid span{display:block;font-size:10.5px;color:var(--drp-muted);font-weight:700}
.drp-bcard-grid strong{display:block;font-size:14px;color:var(--drp-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- the report itself (branch view and management detail): an official daily operational report ---------- */
.drp-report{display:grid;gap:12px}
.drp-report-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;padding-bottom:12px;border-bottom:2px solid transparent;border-image:linear-gradient(90deg,transparent,rgba(178,138,74,.7),transparent) 1}
.drp-report-head h2{margin:0;font-size:20px;color:var(--drp-navy)}
.drp-report-head p{margin:3px 0 0;color:var(--drp-muted);font-size:12.5px}
.drp-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}
.drp-meta div{background:var(--drp-soft);border-radius:12px;padding:8px 10px;min-width:0}
.drp-meta span{display:block;font-size:11px;color:var(--drp-muted);font-weight:700}
.drp-meta strong{display:block;font-size:13px;color:var(--drp-navy);overflow-wrap:anywhere}
.drp-group{border:1px solid var(--drp-line);border-radius:16px;padding:12px;background:var(--drp-card)}
.drp-group h3{margin:0 0 10px;font-size:14px;color:var(--drp-navy);display:flex;align-items:center;gap:8px}
.drp-group h3 i{font-style:normal;width:26px;height:26px;border-radius:8px;display:inline-grid;place-items:center;background:var(--drp-soft);font-size:13px}
.drp-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.drp-tiles.drp-five{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.drp-tile{background:var(--drp-soft);border-radius:12px;padding:10px 12px;min-width:0}
.drp-tile span{display:block;font-size:11.5px;color:var(--drp-muted);font-weight:700}
.drp-tile strong{display:block;font-size:20px;color:var(--drp-navy);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drp-tile small{display:block;font-size:11px;color:var(--drp-muted)}
.drp-occ-line{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:12.5px;color:var(--drp-muted);font-weight:700}
.drp-occ-line .drp-bar{flex:1;margin:0;height:8px}

/* attachments */
.drp-atts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.drp-att{border:1px solid var(--drp-line);border-radius:14px;padding:10px;display:grid;gap:6px;background:var(--drp-card);min-width:0;align-content:start}
.drp-att-empty{border-style:dashed;background:var(--drp-soft)}
.drp-att-head{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11.5px;font-weight:800;color:var(--drp-muted)}
.drp-att-type{display:inline-grid;place-items:center;min-width:38px;height:22px;border-radius:7px;font-size:10.5px;font-weight:900;background:var(--drp-info-bg);color:var(--drp-info)}
.drp-att-type.drp-pdf{background:var(--drp-bad-bg);color:var(--drp-bad)}
.drp-att b{font-size:12.5px;color:var(--drp-text);overflow-wrap:anywhere;line-height:1.5}
.drp-att small{font-size:11px;color:var(--drp-muted)}
.drp-att .drp-row .drp-link{min-height:36px;padding:0 4px;font-size:12.5px}
.drp-att-removed{opacity:.6}
.drp-att-removed b{text-decoration:line-through}
.drp-file{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--drp-line);border-radius:12px;background:#fff;color:var(--drp-blue);font-weight:800;padding:0 12px;cursor:pointer;font-size:13px}
.drp-file input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.drp-file:focus-within{outline:2px solid var(--drp-blue);outline-offset:2px}
.drp-uploading{font-size:12px;color:var(--drp-warn);font-weight:800}

/* history */
.drp-history{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.drp-history li{border:1px solid var(--drp-line);border-radius:12px;padding:9px 11px;background:var(--drp-card);display:grid;gap:4px}
.drp-history li b{font-size:13px;color:var(--drp-navy)}
.drp-history li span{font-size:12px;color:var(--drp-muted)}
.drp-change{font-size:12px;display:flex;gap:6px;flex-wrap:wrap;align-items:baseline}
.drp-change del{color:var(--drp-bad);text-decoration:line-through}
.drp-change ins{color:var(--drp-ok);text-decoration:none;font-weight:800}
.drp-reason{font-size:12.5px;background:var(--drp-soft);border-radius:10px;padding:6px 9px}

/* ---------- the branch form ---------- */
.drp-form{display:grid;gap:12px}
.drp-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}
.drp-field{display:grid;gap:5px;min-width:0}
.drp-field>span{font-size:12.5px;font-weight:800;color:var(--drp-text)}
.drp-field input{min-height:52px;box-sizing:border-box;width:100%;border:1px solid #d6dde8;border-radius:12px;background:#fff;color:var(--drp-navy);font:inherit;font-size:18px;font-weight:800;padding:0 12px;text-align:right;font-variant-numeric:tabular-nums}
.drp-field input:focus{outline:none;border-color:var(--drp-blue);box-shadow:0 0 0 3px rgba(31,97,213,.15)}
.drp-field input[aria-invalid="true"]{border-color:var(--drp-bad);box-shadow:0 0 0 3px rgba(192,55,47,.12)}
.drp-field input:disabled{background:var(--drp-soft);color:var(--drp-muted)}
.drp-field small{font-size:11.5px;color:var(--drp-muted);min-height:16px}
/* total rooms: the branch record's value, shown read-only (never typed, never sent); margin-top matches the inputs' offset so the labels line up */
.drp-ro{min-height:52px;box-sizing:border-box;margin-top:6px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px dashed #c9d2df;border-radius:12px;background:var(--drp-soft);color:var(--drp-navy);font-size:18px;font-weight:800;padding:0 12px;font-variant-numeric:tabular-nums;cursor:default}
.drp-ro em{font-style:normal;font-size:13px;opacity:.7}
.drp-check{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:var(--drp-text);min-height:44px;cursor:pointer}
.drp-check input{width:20px;height:20px;accent-color:var(--drp-blue)}
.drp-live{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.drp-live:empty{display:none}
.drp-live span{font-size:12px;font-weight:800;border-radius:10px;padding:6px 10px;background:var(--drp-soft);color:var(--drp-muted)}
.drp-live .drp-ok{background:var(--drp-ok-bg);color:var(--drp-ok)}
.drp-live .drp-bad{background:var(--drp-bad-bg);color:var(--drp-bad)}
.drp-actions{position:sticky;bottom:0;z-index:2;display:flex;gap:8px;justify-content:flex-start;flex-wrap:wrap;padding:12px 0 calc(4px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--drp-bg) 75%,rgba(247,249,252,0))}
.drp-confirm{border:1px solid #cddcf6;background:#f6f9ff;border-radius:14px;padding:12px;display:grid;gap:10px}
.drp-confirm p{margin:0;font-size:13px;line-height:1.7}
.drp-reason-field textarea{box-sizing:border-box;width:100%;min-height:84px;border:1px solid #d6dde8;border-radius:12px;background:#fff;color:var(--drp-text);font:inherit;font-size:14px;padding:10px 12px;resize:vertical}
.drp-required-date{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--drp-line);border-radius:14px;padding:10px 12px;margin-bottom:12px}
.drp-required-date b{font-size:15px;color:var(--drp-navy)}
.drp-required-date span{font-size:12px;color:var(--drp-muted)}
.drp-hist-list{display:grid;gap:8px}
.drp-hist-item{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--drp-line);border-radius:14px;background:var(--drp-card);padding:10px 12px;font:inherit;color:inherit;text-align:right;cursor:pointer;width:100%;box-sizing:border-box;min-height:52px}
.drp-hist-item b{font-size:14px;color:var(--drp-navy)}
.drp-hist-item small{display:block;font-size:11.5px;color:var(--drp-muted)}

/* the branch screen card */
.drp-card{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;border:1px solid var(--drp-line);border-radius:16px;background:#fff;color:var(--drp-text);direction:rtl}
.drp-card-due{border-color:#f1dcb4;background:#fffaf1}
.drp-card-text{display:grid;gap:2px;min-width:0}
.drp-card-text b{font-size:15px;color:var(--drp-navy)}
.drp-card-text span{font-size:12.5px;color:var(--drp-muted)}
.drp-chip-btn{position:relative}

/* detail sheet inside the module */
.drp-sheet-back{position:fixed;inset:0;z-index:80;background:rgba(10,20,40,.42);display:flex;justify-content:center;align-items:flex-start;overflow-y:auto;padding:24px 14px;direction:rtl;color:var(--drp-text)}
.drp-sheet{box-sizing:border-box;width:min(860px,100%);background:var(--drp-bg);border-radius:20px;padding:16px;box-shadow:0 24px 70px rgba(10,20,40,.3)}
.drp-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}

/* focus */
.drp-back :focus-visible,.drp-sheet-back :focus-visible,.drp-card :focus-visible{outline:2px solid var(--drp-blue);outline-offset:2px}

/* ---------- tablets and phones ---------- */
@media(max-width:900px){
  .drp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .drp-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .drp-fields.drp-fields-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .drp-tiles.drp-five{grid-template-columns:repeat(3,minmax(0,1fr))}
  .drp-atts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .drp-table-wrap{display:none}
  .drp-cards{display:grid;gap:8px}
}
@media(max-width:600px){
  .drp-shell{padding:8px 14px calc(24px + env(safe-area-inset-bottom))}
  .drp-head{padding:10px 0}
  .drp-head h1{font-size:21px}
  .drp-head p{font-size:12px}
  .drp-head-actions .drp-hide-sm{display:none}
  .drp-section-title>span{flex-basis:100%}
  .drp-panel{padding:12px;border-radius:16px}
  .drp-coverage{grid-template-columns:1fr}
  .drp-cover-main b{font-size:26px}
  .drp-kpi{padding:10px 11px;border-radius:14px}
  .drp-kpi strong{font-size:18px}
  .drp-mix{grid-template-columns:1fr;gap:3px}
  .drp-mix div{display:flex;justify-content:space-between;align-items:baseline;gap:6px;padding:3px 7px}
  .drp-mix b{font-size:13px}
  .drp-fields{grid-template-columns:1fr 1fr}
  .drp-fields.drp-fields-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .drp-fields-3 .drp-field input{padding:0 10px}
  .drp-fields-3 .drp-field>span{font-size:12px}
  .drp-field input{font-size:17px}
  .drp-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .drp-tiles.drp-five{grid-template-columns:repeat(2,minmax(0,1fr))}
  .drp-tile{padding:8px 9px}
  .drp-tile strong{font-size:16px}
  .drp-atts{grid-template-columns:1fr 1fr}
  .drp-compare{grid-template-columns:1fr}
  .drp-actions>button{flex:1 1 0}
  .drp-sheet-back{padding:0}
  .drp-sheet{border-radius:0;min-height:100%}
  .drp-datebar .drp-date-input{flex:1}
}
@media(prefers-reduced-motion:reduce){.drp-back,.drp-sheet-back{scroll-behavior:auto}}

/* ---------- dark mode (body.ref-dark, as the dashboard; branch screens never use it) ---------- */
.ref-dark .drp-back,.ref-dark .drp-sheet-back{--drp-text:var(--dk-text,#ebe8e1);--drp-muted:var(--dk-muted,#9097a1);--drp-line:var(--dk-line,#262d37);--drp-soft:var(--dk-s2,#1c222a);--drp-bg:var(--dk-bg,#0f1318);--drp-card:var(--dk-s1,#161b22);--drp-navy:var(--dk-text,#ebe8e1);
  --drp-gold:var(--dk-gold-text,#d4b064);--drp-ok:var(--dk-green,#5fc896);--drp-ok-bg:rgba(95,200,150,.12);--drp-warn:var(--dk-amber,#f2a863);--drp-warn-bg:rgba(242,168,99,.12);--drp-bad:var(--dk-red,#ee8c82);--drp-bad-bg:rgba(238,140,130,.12);
  --drp-mute:var(--dk-text-2,#b9bdc5);--drp-mute-bg:var(--dk-s2,#1c222a);--drp-info:var(--dk-blue-text,#8fb4f5);--drp-info-bg:rgba(88,140,235,.14);--drp-blue:var(--dk-cta,#2f63bd);color-scheme:dark}
.ref-dark .drp-head{background:rgba(15,19,24,.9)}
.ref-dark .drp-back .drp-close,.ref-dark .drp-back .drp-secondary,.ref-dark .drp-back .drp-icon-btn,.ref-dark .drp-back .drp-date-input,.ref-dark .drp-back .drp-toolbar select,.ref-dark .drp-sheet-back .drp-close,.ref-dark .drp-sheet-back .drp-secondary{background:var(--dk-s2,#1c222a);color:var(--dk-text,#ebe8e1);border-color:var(--dk-line-2,#303844)}
.ref-dark .drp-back .drp-kpi,.ref-dark .drp-back .drp-cmp,.ref-dark .drp-back .drp-bcard,.ref-dark .drp-sheet-back .drp-group,.ref-dark .drp-sheet-back .drp-att,.ref-dark .drp-sheet-back .drp-history li{background:var(--dk-s1,#161b22)}
.ref-dark .drp-back .drp-kpi-lead{border-color:var(--dk-gold-line,rgba(201,162,74,.34));box-shadow:inset 0 3px 0 rgba(201,162,74,.5)}
.ref-dark .drp-back .drp-table th{background:var(--dk-s2,#1c222a);color:var(--dk-text-2,#b9bdc5)}
.ref-dark .drp-back .drp-table td{border-color:var(--dk-line,#262d37)}
.ref-dark .drp-back .drp-table td:first-child{background:var(--dk-s1,#161b22)}
.ref-dark .drp-back .drp-table th:first-child{background:var(--dk-s2,#1c222a)}
.ref-dark .drp-back .drp-table tbody tr:hover td{background:var(--dk-int,#242b35)}
.ref-dark .drp-back .drp-yesterday{background:var(--dk-s2,#1c222a);color:var(--dk-gold-text,#d4b064);box-shadow:inset 0 0 0 1px var(--dk-gold-line,rgba(201,162,74,.34))}
.ref-dark .drp-back .drp-bar i{background:linear-gradient(90deg,#2f63bd,#4c7fd6)}
.ref-dark .drp-sheet{background:var(--dk-bg,#0f1318)}
.ref-dark .drp-sheet-back{background:rgba(0,0,0,.55)}
.ref-dark:has(.ref-dashboard) .drp-toast{background:#2a313c;color:var(--dk-text,#ebe8e1)}

/* ---------- printable reports (inside the shared executive-report shell; report-print-v2.css hides the rest) ---------- */
#daily-report-print .drp-p-grid,#daily-exec-report .drp-p-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px}
#daily-report-print .drp-p-grid.drp-p-five,#daily-exec-report .drp-p-grid.drp-p-five{grid-template-columns:repeat(5,minmax(0,1fr))}
#daily-report-print .drp-p-grid>div,#daily-exec-report .drp-p-grid>div{border:1px solid #e6ebf2;border-radius:10px;padding:8px 10px;background:#f8f9fb;min-width:0}
#daily-report-print .drp-p-grid span,#daily-exec-report .drp-p-grid span{display:block;font-size:11px;color:#627085;font-weight:700}
#daily-report-print .drp-p-grid strong,#daily-exec-report .drp-p-grid strong{display:block;font-size:17px;color:#16233d;unicode-bidi:isolate;white-space:nowrap}
#daily-exec-report .drp-p-grid em{display:block;font-style:normal;font-size:9.5px;color:#627085;margin-top:1px}
#daily-exec-report .drp-p-note{margin:-4px 0 10px;font-size:10.5px;color:#4d5a6d}
#daily-report-print .drp-p-h,#daily-exec-report .drp-p-h{display:flex;align-items:center;gap:8px;margin:12px 0 8px;font-size:13px;color:#16233d;font-weight:800}
#daily-report-print .drp-p-h i,#daily-exec-report .drp-p-h i{font-style:normal;width:22px;height:22px;border-radius:7px;display:inline-grid;place-items:center;background:#f1ece2;color:#8a6a33;font-size:10px}
#daily-report-print .drp-p-meta,#daily-exec-report .drp-p-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 10px}
#daily-report-print .drp-p-meta div,#daily-exec-report .drp-p-meta div{border-bottom:1px solid #e6ebf2;padding:4px 2px}
#daily-report-print .drp-p-meta dt,#daily-exec-report .drp-p-meta dt{font-size:10px;color:#627085;font-weight:700}
#daily-report-print .drp-p-meta dd,#daily-exec-report .drp-p-meta dd{margin:2px 0 0;font-size:12px;color:#16233d;font-weight:700}
#daily-report-print .drp-p-list,#daily-exec-report .drp-p-list{margin:0;padding:0;list-style:none;display:grid;gap:4px;font-size:12px}
#daily-exec-report .drp-p-table{width:100%;border-collapse:collapse;font-size:11px}
#daily-exec-report .drp-p-table th{background:#f5f7fa;color:#5b6678;font-weight:800;padding:6px 5px;text-align:right;border-bottom:1px solid #dfe5ee}
#daily-exec-report .drp-p-table td{padding:5px;border-bottom:1px solid #eef1f5;text-align:right}
#daily-exec-report .drp-p-table bdi{unicode-bidi:isolate}
#daily-exec-report .drp-p-missing td{color:#8a93a3}
#daily-exec-report .drp-p-cmp td:nth-child(2) b{color:#16734a}
#daily-exec-report .drp-p-cmp td:nth-child(3) b{color:#5f6b7c}
@media print{
  #daily-report-print,#daily-exec-report{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #daily-report-print .report-brand,#daily-exec-report .report-brand{grid-template-columns:76px minmax(0,1fr) 165px!important}
  #daily-report-print .drp-p-grid>div,#daily-exec-report .drp-p-grid>div{break-inside:avoid;padding:6px 8px!important}
  #daily-report-print .drp-p-grid strong,#daily-exec-report .drp-p-grid strong{font-size:14px!important}
  #daily-report-print .drp-p-grid span,#daily-exec-report .drp-p-grid span{font-size:8.5px!important}
  #daily-report-print .drp-p-h,#daily-exec-report .drp-p-h{font-size:11px!important;margin:8px 0 6px!important;break-after:avoid}
  #daily-report-print .drp-p-meta dt,#daily-exec-report .drp-p-meta dt{font-size:7.5px!important}
  #daily-report-print .drp-p-meta dd,#daily-exec-report .drp-p-meta dd{font-size:9.5px!important}
  #daily-report-print .drp-p-list,#daily-exec-report .drp-p-list{font-size:9px!important}
  #daily-exec-report .drp-p-section{break-inside:auto}
  #daily-exec-report .drp-p-table{table-layout:auto!important;width:100%!important}
  #daily-exec-report .drp-p-table thead{display:table-header-group}
  #daily-exec-report .drp-p-table tr{break-inside:avoid;page-break-inside:avoid}
  #daily-exec-report .drp-p-table th{font-size:7.5px!important;line-height:1.3!important;white-space:normal!important;padding:4px 3px!important}
  #daily-exec-report .drp-p-table td{font-size:8px!important;padding:3px!important;white-space:nowrap}
  #daily-exec-report .drp-p-table td:first-child{white-space:normal!important}
  #daily-exec-report .drp-p-branches{break-before:page}
}
