.drp{position:relative;display:inline-block}
.drp-trigger{display:inline-flex;align-items:center;gap:9px;min-height:39px;padding:8px 13px;border:1px solid #dfe6ee;border-radius:9px;background:#fff;color:#37485c;font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:border-color .16s,box-shadow .16s;white-space:nowrap}
.drp-trigger:hover{border-color:#bccbd8}
.drp-trigger:focus-visible{outline:3px solid #1ba7c826;outline-offset:1px;border-color:var(--primary,#0b8fad)}
.drp-trigger>span{color:#26374a}
.drp-trigger svg:first-child{color:var(--primary,#0b8fad);flex-shrink:0}
.drp-caret{color:#9aa8b6;transition:transform .18s}
.drp-caret-up{transform:rotate(180deg)}
.drp-pop{position:fixed;z-index:1000;background:#fff;border:1px solid #e4ebf1;border-radius:14px;box-shadow:0 18px 48px -12px #1c2f4426,0 4px 12px #1c2f4410;overflow:hidden;animation:drp-in .14s ease-out;max-width:calc(100vw - 20px)}
.drp-pop-left{left:0}
.drp-pop-right{right:0}
@keyframes drp-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.drp-body{display:flex;align-items:stretch}
.drp-presets{display:flex;flex-direction:column;gap:2px;padding:9px;width:148px;border-right:1px solid #eef2f6;background:#fafcfd;background:color-mix(in srgb, var(--brand) 2%, #fff)}
.drp-presets button{display:flex;align-items:center;gap:7px;min-height:32px;padding:6px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#51637a;font:inherit;font-size:11.5px;font-weight:500;text-align:left;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.drp-presets button>span{flex:1}
.drp-presets button svg{color:var(--primary,#0b8fad);flex-shrink:0}
.drp-presets button:hover{background:#eef7fa;background:color-mix(in srgb, var(--brand) 7%, #fff);color:#256b7f;color:color-mix(in srgb, var(--brand) 48%, color-mix(in srgb, #fff 21.2%, #10283f))}
.drp-presets button.active{background:#e6f5f9;background:color-mix(in srgb, var(--brand) 9%, #fff);border-color:#bfe3ea;border-color:color-mix(in srgb, var(--brand) 25%, #fff);color:#0a7286;color:color-mix(in srgb, var(--brand) 80%, #10283f);font-weight:600}
.drp-cal{padding:10px 12px;min-width:0}
.drp-cal-nav{display:flex;justify-content:space-between;pointer-events:none;height:0;position:relative;z-index:5}
.drp-cal-nav button{pointer-events:auto;position:relative;z-index:6;width:28px;height:26px;display:grid;place-items:center;border:1px solid #e4ebf1;border-radius:8px;background:#fff;color:#5c6f82;cursor:pointer;transition:background .15s,border-color .15s}
.drp-cal-nav button:hover{background:#f2f8fb;background:color-mix(in srgb, var(--brand) 5%, #fff);border-color:#c6d6e0;color:var(--primary,#0b8fad)}
.drp-months{display:flex;gap:14px}
.drp-month{width:196px}
.drp-month-head{display:flex;align-items:baseline;justify-content:center;gap:8px;height:26px;margin-bottom:4px}
.drp-month-head span{font-size:13px;font-weight:700;color:#2a3d53;text-transform:capitalize}
.drp-month-head strong{font-size:13px;font-weight:700;color:#8394a4}
.drp-weekdays{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:4px}
.drp-weekdays span{text-align:center;font-size:10px;font-weight:600;color:#9aa8b6;padding:3px 0}
.drp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px 0}
.drp-cell{height:29px;border:0;background:transparent;font:inherit;font-size:12px;color:#3f5266;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:0;position:relative;transition:background .12s,color .12s}
.drp-empty{cursor:default}
.drp-cell:not(.drp-empty):hover{background:#eef7fa;background:color-mix(in srgb, var(--brand) 7%, #fff)}
.drp-cell.drp-in{background:#e6f5f9;background:color-mix(in srgb, var(--brand) 9%, #fff);border-radius:0}
.drp-cell.drp-today{font-weight:700;color:var(--primary,#0b8fad)}
.drp-cell.drp-edge{background:var(--primary,#0b8fad);color:#fff;font-weight:700;border-radius:9px}
.drp-cell.drp-edge:hover{background:var(--primary-dark,#0a7286);background:var(--primary-dark,color-mix(in srgb, var(--brand) 80%, #10283f))}
.drp-cell.drp-edge.drp-today{color:#fff}
.drp-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;border-top:1px solid #eef2f6;background:#fafcfd;background:color-mix(in srgb, var(--brand) 2%, #fff)}
.drp-inputs{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.drp-inputs input{border:1px solid #dfe6ed;border-radius:8px;padding:6px 9px;font:inherit;font-size:12px;color:#26374a;min-height:34px;background:#fff}
.drp-inputs input:focus{outline:0;border-color:var(--primary,#0b8fad);box-shadow:0 0 0 3px #1ba7c81a}
.drp-inputs span{color:#8394a4;font-size:12px}
.drp-inputs em{font-style:normal;font-size:12px;font-weight:600;color:#5c6f82}
.drp-err{color:#c0453f!important}
.drp-actions{display:flex;align-items:center;gap:10px}
.drp-actions button{min-height:34px;padding:7px 16px;border-radius:8px;font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.drp-cancel{border:1px solid #dfe6ee;background:#fff;color:#51637a}
.drp-cancel:hover{background:#f2f6f9;border-color:#c6d6e0}
.drp-apply{border:1px solid var(--primary,#0b8fad);background:var(--primary,#0b8fad);color:#fff;box-shadow:0 3px 8px #0b8fad2e}
.drp-apply:hover{background:var(--primary-dark,#0a7286);background:var(--primary-dark,color-mix(in srgb, var(--brand) 80%, #10283f));border-color:var(--primary-dark,#0a7286);border-color:var(--primary-dark,color-mix(in srgb, var(--brand) 80%, #10283f))}
@media(max-width:820px){
  .drp-pop{position:fixed;left:12px;right:12px;top:auto;bottom:12px;max-height:82vh;overflow:auto}
  .drp-body{flex-direction:column}
  .drp-presets{width:auto;flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid #eef2f6}
  .drp-presets button{min-height:34px;padding:7px 11px}
  .drp-months{flex-direction:column;gap:18px}
  .drp-month{width:100%}
}
.field .drp{display:block;width:100%}
.field .drp .drp-trigger{width:100%;justify-content:space-between}

/* Mobile date sheet: scroll only its content, never its confirmation actions.
   Higher specificity preserves this layout when a page loads its own CSS. */
@media(max-width:820px){
  html body .drp-pop{display:flex;flex-direction:column;left:12px;right:12px;top:auto;bottom:max(12px,env(safe-area-inset-bottom));width:auto;max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-bottom));overflow:hidden;border-radius:18px;box-sizing:border-box}
  html body .drp-pop *{box-sizing:border-box}
  html body .drp-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex-direction:column}
  html body .drp-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:4px;padding:10px;border-right:0;border-bottom:1px solid #eef2f6;flex-shrink:0}
  html body .drp-presets button{min-width:0;min-height:40px;padding:7px 6px;gap:4px;font-size:11px;line-height:1.3;white-space:normal;justify-content:center;text-align:center}
  html body .drp-presets button>span{flex:0 1 auto}
  html body .drp-cal{padding:12px;flex-shrink:0}
  html body .drp-months{display:block}
  html body .drp-month{width:100%}
  html body .drp-month+.drp-month{display:none}
  html body .drp-month-head{height:36px;align-items:center;margin-bottom:8px}
  html body .drp-cal-nav button{width:36px;height:36px}
  html body .drp-cell{height:36px;font-size:13px}
  html body .drp-foot{display:grid;flex:0 0 auto;gap:10px;width:100%;padding:12px;border-top:1px solid #e4ebf1;background:color-mix(in srgb,var(--brand,#087f9c) 3%,#fff)}
  html body .drp-inputs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;width:100%;min-width:0;align-items:center}
  html body .drp-inputs input{width:100%;min-width:0;max-width:100%;min-height:42px;font-size:16px;padding:7px 6px}
  html body .drp-inputs>span{font-size:11px;text-align:center}
  html body .drp-inputs>em{grid-column:1/-1;font-size:11px;line-height:1.4}
  html body .drp-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
  html body .drp-actions button{min-width:0;min-height:44px;border-radius:10px;font-size:13px}
}

.orders-report { display: grid; gap: 16px; min-width: 0; }
.orders-report-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: clamp(20px,3vw,32px);
  border-radius: 18px;
  background: linear-gradient(115deg,#102840,#12495e 76%,#0d6470);
  color: #fff;
}
.orders-report-hero h1 { margin: 9px 0 5px; color: #fff; font-size: clamp(25px,3vw,36px); letter-spacing: -.025em; }
.orders-report-hero p { margin: 0; color: #d4e8f1; }
.orders-report-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #a9e5ed; }
.orders-report-exports { display: flex; flex-wrap: wrap; gap: 8px; }
.orders-report-exports .btn-secondary { background: #fff; color: #17374a; border-color: #d9e8ef; }
.orders-report-exports .orders-report-excel { background: #c7f7e1; color: #124737; border-color: #c7f7e1; font-weight: 700; }
.orders-report-exports .orders-report-excel:hover:not(:disabled) { background: #e1fff1; }
.orders-report-filters { display: grid; gap: 12px; padding: 16px 18px; }
.orders-report-filter-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.orders-report-filter-heading strong { display: flex; align-items: center; gap: 7px; }
.orders-report-filter-heading .btn { min-height: 32px; padding: 4px 8px; }
.orders-report-filter-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) minmax(0,1.35fr); gap: 12px; }
.orders-report-filter { display: grid; gap: 6px; min-width: 0; color: var(--text); font-size: 12px; font-weight: 600; }
.orders-report-filter select,.orders-report-search {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface-soft);
}
.orders-report-filter select { padding: 0 10px; }
.orders-report-filter .drp-trigger { width: 100%; min-height: 42px; justify-content: space-between; }
.orders-report-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--muted); }
.orders-report-search input { width: 100%; min-width: 0; padding: 8px 0; border: 0; background: transparent; color: var(--text); font: inherit; }
.orders-report-search:focus-within,.orders-report-filter select:focus-visible { outline: 2px solid #168fa3; outline-offset: 1px; }
.orders-report-search input:focus { outline: none; }
.orders-report-dashboard { display: grid; gap: 16px; min-width: 0; }
.orders-report-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.orders-report-kpis article { display: grid; align-content: start; gap: 6px; padding: 15px 16px; background: var(--surface,#fff); border: 1px solid var(--line); border-top: 3px solid #1985a0; border-radius: 13px; }
.orders-report-kpis .is-green { border-top-color: #23946e; }
.orders-report-kpis .is-amber { border-top-color: #d59621; }
.orders-report-kpis .is-red { border-top-color: #c85062; }
.orders-report-kpis span { color: var(--muted); font-size: 12px; font-weight: 600; }
.orders-report-kpis strong { font-size: clamp(23px,2.5vw,32px); line-height: 1.1; }
.orders-report-kpis small { font-size: 11px; color: var(--muted); }
.orders-report-charts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.orders-report-chart { display: grid; align-content: start; min-width: 0; gap: 4px; padding: 16px; }
.orders-report-chart h2,.orders-report-results-heading h2 { margin: 0; font-size: 17px; }
.orders-report-chart header p,.orders-report-chart-empty { margin: 4px 0 8px; color: var(--muted); font-size: 12px; }
.orders-report-ranking { display: grid; gap: 4px; max-height: 230px; overflow: auto; }
.orders-report-bar { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(32px,1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 35px; padding: 5px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.orders-report-bar:hover,.orders-report-bar[aria-pressed=true] { border-color: var(--line); background: var(--surface-soft); }
.orders-report-bar > span:first-child { overflow-wrap: anywhere; }
.orders-report-track { display: block; height: 8px; border-radius: 6px; background: var(--surface-soft); }
.orders-report-track i { display: block; height: 100%; border-radius: inherit; background: #188ca4; }
.orders-report-bar:is(.is-billed,.is-confirmed) i { background: #279a73; }
.orders-report-bar:is(.is-pending,.is-reserved) i { background: #d59621; }
.orders-report-bar:is(.is-canceled,.is-rejected) i { background: #c85062; }
.orders-report-results { display: grid; gap: 14px; min-width: 0; }
.orders-report-results-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px; }
.orders-report-count { margin: 0; color: var(--muted); font-size: 13px; }
.orders-report-group { min-width: 0; padding: 0; overflow: hidden; }
.orders-report-group header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.orders-report-group h2 { font-size: 16px; margin: 0; }
.orders-report-group header span { color: var(--muted); font-size: 12px; }
.orders-report-table { overflow: auto; }
.orders-report-table table { width: 100%; border-collapse: collapse; min-width: 720px; }
.orders-report-table th,.orders-report-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.orders-report-table th { font-size: 12px; color: var(--muted); background: var(--surface-soft); }
.orders-report-table td:first-child,.orders-report-table td:nth-child(2),.orders-report-table td:last-child { white-space: nowrap; }
.orders-report-table :is(th,td):last-child { text-align: right; }
.orders-report-table tr:last-child td { border-bottom: 0; }
.orders-report-status { display: inline-block; padding: 4px 8px; border-radius: 7px; background: var(--surface-soft); color: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.orders-report-status.is-billed,.orders-report-status.is-confirmed { background: #e1f4e9; color: #165d41; }
.orders-report-status.is-pending,.orders-report-status.is-reserved { background: #fff1d4; color: #6f460c; }
.orders-report-status.is-canceled,.orders-report-status.is-rejected { background: #fce9e9; color: #962a37; }
.orders-report-empty { padding: 20px; color: var(--muted); }
@media (max-width: 1100px) {
  .orders-report-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 750px) {
  .orders-report-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .orders-report-charts { grid-template-columns: minmax(0,1fr); }
  .orders-report-table table,.orders-report-table tbody { display: block; min-width: 0; }
  .orders-report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .orders-report-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .orders-report-table tr:last-child { border-bottom: 0; }
  .orders-report-table td { display: grid; gap: 3px; padding: 0; border: 0; overflow-wrap: anywhere; }
  .orders-report-table td:nth-child(3) { grid-column: 1/-1; }
  .orders-report-table td:last-child { text-align: left; }
  .orders-report-table td::before { content: attr(data-label); font-size: 11px; color: var(--muted); }
  .orders-report-status { justify-self: start; white-space: normal; }
}
@media (max-width: 420px) {
  .orders-report-filter-grid { grid-template-columns: minmax(0,1fr); }
}
.orders-report-seller-toggle {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  color: var(--text);
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.orders-report-seller-toggle:hover,.orders-report-seller-toggle[aria-expanded=true] { background: var(--surface-soft); }
.orders-report-seller-toggle:focus-visible { outline: 2px solid #168fa3; outline-offset: -3px; }
.orders-report-seller-toggle span:nth-child(2) { display: grid; gap: 3px; overflow-wrap: anywhere; }
.orders-report-seller-toggle small { color: var(--muted); font-size: 11px; }
.orders-report-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-soft);
  font-size: 23px;
  line-height: 1;
}
.orders-report-seller-toggle[aria-expanded=true] .orders-report-chevron { transform: rotate(90deg); }
.orders-report-seller-toggle b { white-space: nowrap; font-size: 13px; }
.orders-report-table tfoot { background: var(--surface-soft); border-top: 1px solid var(--line); font-weight: 700; }
.orders-report-table tfoot td { white-space: nowrap; }
.orders-report-total { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding: 15px 17px; background: #12354a; color: #fff; border-radius: 12px; }
.orders-report-total div { display: grid; gap: 3px; }
.orders-report-total small { color: #c5e2ec; }
.orders-report-export-options { display: grid; gap: 12px; }
.orders-report-export-options label { display: flex; align-items: start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); cursor: pointer; }
.orders-report-export-options label span { display: grid; gap: 4px; }
.orders-report-export-options :is(p,small) { margin: 0; color: var(--muted); }
@media (max-width:750px) {
  .orders-report-table tfoot { display: block; }
  .orders-report-table tfoot th { grid-column: 1/-1; padding: 0; }
  .orders-report-table tfoot td[aria-label] { display: none; }
}
