/* _content/CitrineOS.Operator/Components/Layout/MainLayout.razor.rz.scp.css */
/* MainLayout scoped styles — global layout/theme is in wwwroot/app.css */

/* Blazor error UI (unscoped via ::deep or ID) */
#blazor-error-ui .dismiss[b-yqar8vs67h] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* _content/CitrineOS.Operator/Components/Layout/NavMenu.razor.rz.scp.css */
/* NavMenu scoped styles — sidebar tokens/layout are in wwwroot/app.css */
/* Inline nav-group / lang-btn styles live in NavMenu.razor <style> block  */
/* _content/CitrineOS.Operator/Components/Pages/ChargeLogs.razor.rz.scp.css */
.charge-log-context[b-qtrhbxotfj] { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; padding:.75rem 1rem; margin:1rem 0 .65rem; background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius-lg); }
.charge-log-context span[b-qtrhbxotfj], .charge-log-list-title span[b-qtrhbxotfj] { font-size:.8rem; color:var(--color-neutral-600); }
.charge-log-list-title[b-qtrhbxotfj] { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem; background:var(--card-bg); border:1px solid var(--card-border); border-bottom:0; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.charge-log-list-title div[b-qtrhbxotfj] { display:flex; flex-direction:column; gap:.2rem; }
.charge-log-scroll[b-qtrhbxotfj] { max-height:65vh; overflow:auto; }
.charge-log-table[b-qtrhbxotfj] { min-width:1100px; }
.charge-log-table thead th[b-qtrhbxotfj] { position:sticky; top:0; z-index:1; background:var(--card-bg); }
.charge-log-problem td:first-child[b-qtrhbxotfj] { box-shadow:inset 3px 0 0 var(--color-error); }
.charge-log-error[b-qtrhbxotfj] { padding:.8rem; color:var(--color-error); border:1px solid var(--color-error); border-radius:var(--radius-md); }
/* _content/CitrineOS.Operator/Components/Pages/ChargingReport.razor.rz.scp.css */
/* ChargingReport — ใช้ design tokens ของ app.css (teal primary, auto dark-mode).
   หน้านี้ตามหลัง WalletReport/CreditReport ทั้ง primary color และโครง data-table. */

.charge-report[b-k5qiyc3g77] { max-width: 1500px; margin: auto; }

.report-header[b-k5qiyc3g77],
.section-heading[b-k5qiyc3g77] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.report-header h1[b-k5qiyc3g77] { margin-bottom: .3rem; }
.report-header p[b-k5qiyc3g77],
.note[b-k5qiyc3g77] { color: var(--color-neutral-600, #64748b); }

.actions[b-k5qiyc3g77],
.chart-controls[b-k5qiyc3g77] { display: flex; gap: .5rem; flex-wrap: wrap; }
.report-tabs[b-k5qiyc3g77] { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.25rem 0 .5rem; }
.report-tabs .active[b-k5qiyc3g77] { background: var(--color-primary-500, #17B592); border-color: var(--color-primary-500, #17B592); color: #fff; }

.preset-chips[b-k5qiyc3g77] {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}

.filters[b-k5qiyc3g77] {
    display: grid;
    grid-template-columns: repeat(2, minmax(190px, 1fr)) repeat(2, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: .75rem;
    padding: 1rem;
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: var(--radius-lg, 14px);
}
.filters label[b-k5qiyc3g77],
.chart-controls label[b-k5qiyc3g77] {
    display: grid;
    gap: .35rem;
    font-size: .86rem;
    color: var(--color-neutral-600, #475569);
}
.filters input[b-k5qiyc3g77],
.filters select[b-k5qiyc3g77],
.chart-controls select[b-k5qiyc3g77] {
    min-width: 0;
    width: 100%;
    padding: .65rem;
    border: 1px solid var(--card-border, #d4dcd8);
    border-radius: 8px;
    background: var(--card-bg, #fff);
    color: var(--color-neutral-800, #1e293b);
}
.search[b-k5qiyc3g77] {
    border: 0;
    background: var(--color-primary-500, #17B592);
    color: #fff;
    border-radius: 8px;
    padding: .7rem 1.3rem;
    font-weight: 700;
    cursor: pointer;
}
.search:hover:not(:disabled)[b-k5qiyc3g77] { filter: brightness(.95); }

.applied[b-k5qiyc3g77] {
    padding: .8rem 1rem;
    background: var(--color-primary-50, #eff8f3);
    border-radius: 9px;
    color: var(--color-neutral-700, #334155);
    margin: 1rem 0;
}

.charge-report h2[b-k5qiyc3g77] { font-size: 1.2rem; margin: 1.5rem 0 .35rem; }

.branch-grid[b-k5qiyc3g77],
.station-grid[b-k5qiyc3g77],
.stat-grid[b-k5qiyc3g77] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 1rem;
}

.branch-card[b-k5qiyc3g77],
.station-card[b-k5qiyc3g77],
.stat[b-k5qiyc3g77] {
    text-align: left;
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: var(--radius-lg, 14px);
    background: var(--card-bg, #fff);
    padding: 1.15rem;
    cursor: pointer;
    color: var(--color-neutral-800, #1e293b);
}
.branch-card:hover[b-k5qiyc3g77],
.station-card:hover[b-k5qiyc3g77],
.stat:hover[b-k5qiyc3g77] {
    border-color: var(--color-primary-500, #17B592);
    box-shadow: 0 4px 18px rgba(23, 181, 146, .12);
}

.branch-title[b-k5qiyc3g77] {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
}
.branch-title span[b-k5qiyc3g77],
.station-card b[b-k5qiyc3g77] { font-size: .8rem; color: var(--color-primary-500, #17B592); }

.branch-values[b-k5qiyc3g77] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-top: 1.1rem;
}
.branch-values span[b-k5qiyc3g77],
.station-card[b-k5qiyc3g77],
.stat[b-k5qiyc3g77] { display: flex; flex-direction: column; gap: .4rem; }
.branch-values small[b-k5qiyc3g77],
.station-card span[b-k5qiyc3g77],
.stat span[b-k5qiyc3g77],
.stat > small[b-k5qiyc3g77] { color: var(--color-neutral-600, #64748b); font-size: .8rem; }
.branch-values strong[b-k5qiyc3g77] { font-size: .98rem; }

.stat strong[b-k5qiyc3g77] { font-size: 1.8rem; color: var(--color-primary-500, #17B592); }
.stat strong small[b-k5qiyc3g77] { font-size: .85rem; color: var(--color-neutral-600, #64748b); }

.station-card span:last-child[b-k5qiyc3g77] { display: flex; justify-content: space-between; }

.warning[b-k5qiyc3g77],
.error[b-k5qiyc3g77] { color: var(--color-warning-700, #92400e); }
.error[b-k5qiyc3g77] {
    background: var(--color-warning-50, #fffbeb);
    border-radius: 8px;
    padding: .7rem;
}

.graphs[b-k5qiyc3g77] { display: grid; gap: 1rem; }

.details[b-k5qiyc3g77] {
    margin-top: 1.4rem;
    padding: 1.1rem;
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: var(--radius-lg, 14px);
    background: var(--card-bg, #fff);
}

/* Table styling ใช้ global .data-table + .data-table-wrapper ของ app.css
   — รองรับ dark mode + stripe + hover ฟรี. */
.details .data-table th[data-sort][b-k5qiyc3g77] {
    cursor: pointer;
    user-select: none;
}
.details .data-table th[data-sort]:hover[b-k5qiyc3g77] { color: var(--color-primary-500, #17B592); }

/* Loading skeleton (shimmer) — ใช้แค่หน้านี้พอ ไม่คุ้มขึ้น global */
.skel-grid[b-k5qiyc3g77] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.skel[b-k5qiyc3g77] {
    background: linear-gradient(90deg,
        var(--card-bg, #f4f6f8) 0%,
        var(--card-border, #e2e8f0) 50%,
        var(--card-bg, #f4f6f8) 100%);
    background-size: 200% 100%;
    animation: charge-report-shimmer-b-k5qiyc3g77 1.2s linear infinite;
    border-radius: 12px;
    border: 1px solid var(--card-border, #e2e8f0);
}
.skel-stat[b-k5qiyc3g77] { height: 108px; }
.skel-chart[b-k5qiyc3g77] { height: 260px; margin-top: 1rem; }
@keyframes charge-report-shimmer-b-k5qiyc3g77 {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 900px) {
    .filters[b-k5qiyc3g77] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .filters[b-k5qiyc3g77] { grid-template-columns: 1fr; }
    .branch-values[b-k5qiyc3g77] { grid-template-columns: 1fr; }
    .branch-values span[b-k5qiyc3g77] { flex-direction: row; justify-content: space-between; }
}
/* _content/CitrineOS.Operator/Components/Pages/CompanyProfile.razor.rz.scp.css */
.company-header[b-volrt2ts7h] { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
.company-back[b-volrt2ts7h] { display:inline-flex; align-items:center; gap:.35rem; color:var(--neutral-700); text-decoration:none; font-size:.85rem; }
.company-info[b-volrt2ts7h] { display:flex; gap:.6rem; align-items:flex-start; padding:.85rem 1rem; margin:1rem 0; border:1px solid var(--card-border); border-radius:.75rem; color:var(--neutral-700); background:var(--neutral-50); font-size:.85rem; }
.company-info i[b-volrt2ts7h] { font-size:1.1rem; }
.company-card[b-volrt2ts7h] { margin-bottom:1rem; }
.company-section-title[b-volrt2ts7h] { display:flex; justify-content:space-between; gap:1rem; margin-bottom:1.1rem; }
.company-section-title h2[b-volrt2ts7h] { margin:0; font-size:1.05rem; }
.company-section-title p[b-volrt2ts7h], .company-vat p[b-volrt2ts7h] { margin:.3rem 0 0; color:var(--neutral-600); font-size:.8rem; line-height:1.5; }
.company-section-title > i[b-volrt2ts7h] { font-size:1.4rem; color:var(--primary-500,#fd853a); }
.company-card label[b-volrt2ts7h] { display:block; margin-bottom:.4rem; font-size:.82rem; font-weight:600; }
.company-card input:not([type=checkbox])[b-volrt2ts7h], .company-card textarea[b-volrt2ts7h] { width:100%; box-sizing:border-box; }
.company-vat[b-volrt2ts7h] { display:flex; gap:.7rem; align-items:flex-start; padding:.9rem; border:1px solid var(--card-border); border-radius:.65rem; background:var(--neutral-50); }
.company-vat input[b-volrt2ts7h] { margin-top:.25rem; }
.company-vat label[b-volrt2ts7h] { margin:0; }
.company-example[b-volrt2ts7h] { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-bottom:1rem; padding:.7rem .85rem; border-radius:.6rem; background:var(--neutral-50); font-size:.8rem; }
.company-example span[b-volrt2ts7h] { color:var(--neutral-600); }
.company-actions[b-volrt2ts7h] { display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; margin-bottom:1.5rem; }
@media (max-width:700px) { .company-card .rgrid[b-volrt2ts7h] { grid-template-columns:1fr !important; } }
/* _content/CitrineOS.Operator/Components/Pages/CreditReport.razor.rz.scp.css */
.credit-header[b-jdr3tff2ez] { display:flex; justify-content:space-between; gap:1rem; align-items:start; flex-wrap:wrap; }
.credit-filters[b-jdr3tff2ez] { display:flex; gap:.875rem; flex-wrap:wrap; align-items:end; margin:1.5rem 0 .25rem; padding:1rem; background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius-md); }
.credit-filters label[b-jdr3tff2ez] { display:flex; flex-direction:column; gap:.35rem; color:var(--color-neutral-700); font-size:.85rem; font-weight:600; margin:0; }
.credit-filters input[b-jdr3tff2ez] { min-height:2.75rem; border-radius:var(--radius-md); }
.credit-dates[b-jdr3tff2ez] { display:flex; gap:.75rem; align-items:end; flex-wrap:wrap; }
.credit-dates label[b-jdr3tff2ez] { min-width:10rem; }
.credit-date-separator[b-jdr3tff2ez] { color:var(--color-neutral-500); padding-bottom:.7rem; }
.credit-search[b-jdr3tff2ez] { min-height:2.75rem; }
.credit-note[b-jdr3tff2ez] { color:var(--color-neutral-600); margin:.75rem 1rem; font-size:.85rem; }
.credit-error[b-jdr3tff2ez] { color:var(--color-danger-600, #b42318); }
.credit-stats[b-jdr3tff2ez] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:1.25rem 0; }
.credit-stat[b-jdr3tff2ez], .credit-panel[b-jdr3tff2ez] { background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius-md); }
.credit-stat[b-jdr3tff2ez] { display:flex; flex-direction:column; gap:.4rem; padding:1rem; }
.credit-stat span[b-jdr3tff2ez], .credit-stat small[b-jdr3tff2ez] { color:var(--color-neutral-600); }
.credit-stat strong[b-jdr3tff2ez] { font-size:1.5rem; color:var(--color-primary-500); font-variant-numeric:tabular-nums; }
.credit-tabs[b-jdr3tff2ez] { display:flex; gap:0; flex-wrap:wrap; border-bottom:1px solid var(--card-border); padding:0 .75rem; }
.credit-tabs button[b-jdr3tff2ez] {
    display:inline-flex; align-items:center; gap:.5rem;
    border:0; background:transparent; margin-bottom:-1px;
    padding:.85rem 1.1rem; color:var(--color-neutral-600);
    font-size:.925rem; font-weight:500;
    border-bottom:2px solid transparent;
    cursor:pointer; transition:color .15s ease, border-color .15s ease, background-color .15s ease;
}
.credit-tabs button:hover:not(:disabled):not(.active)[b-jdr3tff2ez] { color:var(--color-neutral-900, #111); background:var(--color-neutral-50); }
.credit-tabs button.active[b-jdr3tff2ez] { color:var(--color-primary-500); border-bottom-color:var(--color-primary-500); font-weight:600; }
.credit-tabs button:disabled[b-jdr3tff2ez] { opacity:.55; cursor:not-allowed; }
.credit-tabs .count[b-jdr3tff2ez] {
    display:inline-flex; align-items:center; justify-content:center;
    min-width:1.6em; height:1.4rem; padding:0 .55em;
    font-size:.75rem; font-weight:600; line-height:1; border-radius:999px;
    background:var(--color-neutral-100); color:var(--color-neutral-700);
    font-variant-numeric:tabular-nums;
}
.credit-tabs button.active .count[b-jdr3tff2ez] { background:var(--color-primary-50); color:var(--color-primary-500); }
.credit-scroll[b-jdr3tff2ez] { width:100%; overflow-x:auto; }
.credit-scroll table[b-jdr3tff2ez] { border-collapse:collapse; min-width:760px; width:100%; }
.credit-scroll th[b-jdr3tff2ez], .credit-scroll td[b-jdr3tff2ez] { padding:.8rem; text-align:left; border-bottom:1px solid var(--card-border); }
.credit-scroll th[b-jdr3tff2ez] { color:var(--color-neutral-600); font-size:.85rem; }
.credit-scroll .num[b-jdr3tff2ez] { text-align:right; font-variant-numeric:tabular-nums; }
.credit-pager[b-jdr3tff2ez] { display:flex; justify-content:end; align-items:center; gap:.75rem; padding:1rem; flex-wrap:wrap; }
.credit-row[b-jdr3tff2ez] { cursor:pointer; }
.credit-row:hover[b-jdr3tff2ez] { background:var(--color-neutral-50); }
.credit-row.open[b-jdr3tff2ez] { background:var(--color-primary-50); }
.credit-chev[b-jdr3tff2ez] { background:transparent; border:0; padding:.2rem .35rem; color:var(--color-neutral-600); cursor:pointer; }
.credit-sub-row > td[b-jdr3tff2ez] { padding:0 .75rem 1rem; background:var(--color-neutral-50); }
.credit-sub[b-jdr3tff2ez] { margin:.5rem 0; background:var(--card-bg); border:1px solid var(--card-border); }
.credit-sub th[b-jdr3tff2ez], .credit-sub td[b-jdr3tff2ez] { padding:.55rem .75rem; font-size:.85rem; }
@media(max-width:600px) { .credit-stats[b-jdr3tff2ez] { grid-template-columns:1fr; } .credit-filters > label[b-jdr3tff2ez], .credit-dates[b-jdr3tff2ez] { width:100%; } .credit-dates[b-jdr3tff2ez] { flex-wrap:nowrap; } .credit-dates label[b-jdr3tff2ez] { flex:1; min-width:0; } }
/* _content/CitrineOS.Operator/Components/Pages/Customers.razor.rz.scp.css */
/* Customers page — self-contained, scoped so it neither leaks nor inherits the
   global generic-button / unstyled-badge quirks. All spacing/colour comes from
   the design tokens in app.css. */

.cust[b-yl4d93hs8q] {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* ── Header ───────────────────────────────────────────── */
.cust-head[b-yl4d93hs8q] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.cust-head h1[b-yl4d93hs8q] {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
}
.cust-head h1 i[b-yl4d93hs8q] { color: var(--color-primary-500); }
.cust-head .subtitle[b-yl4d93hs8q] {
    margin: var(--space-1) 0 0;
    color: var(--color-neutral-500);
    font-size: 0.875rem;
}

/* ── Stat cards ───────────────────────────────────────── */
.cust-stats[b-yl4d93hs8q] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}
.stat[b-yl4d93hs8q] {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    overflow: hidden;
}
.stat[b-yl4d93hs8q]::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--stat-accent, var(--color-primary-500));
}
.stat-ico[b-yl4d93hs8q] {
    position: absolute;
    right: var(--space-4);
    top: var(--space-4);
    font-size: 1.25rem;
    color: var(--stat-accent, var(--color-primary-500));
    opacity: 0.35;
}
.stat-label[b-yl4d93hs8q] { font-size: 0.8125rem; color: var(--color-neutral-500); }
.stat-value[b-yl4d93hs8q] {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-note[b-yl4d93hs8q] { font-size: 0.6875rem; color: var(--color-neutral-400); margin-top: var(--space-1); }
.stat.accent-blue[b-yl4d93hs8q]   { --stat-accent: var(--color-info); }
.stat.accent-green[b-yl4d93hs8q]  { --stat-accent: var(--color-success); }
.stat.accent-red[b-yl4d93hs8q]    { --stat-accent: var(--color-error); }
.stat.accent-amber[b-yl4d93hs8q]  { --stat-accent: var(--color-warning); }

/* ── Toolbar ──────────────────────────────────────────────
   No wrapping card — the search + chips sit on the page background so they
   read as one filter bar, not a bordered box inside a bordered box. */
.cust-toolbar[b-yl4d93hs8q] {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.cust-toolbar-row[b-yl4d93hs8q] {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
}

/* Pill search — single tall rounded input, icon inside left, clear-x inside right. */
.cust-searchbox[b-yl4d93hs8q] {
    position: relative;
    flex: 1 1 320px;
    min-width: 260px;
    display: flex;
    align-items: center;
    height: 2.5rem;
}
.cust-searchbox > i[b-yl4d93hs8q] {
    position: absolute;
    left: 0.9rem;
    color: var(--color-neutral-400);
    pointer-events: none;
    font-size: 1rem;
}
.cust-searchbox input[type="text"][b-yl4d93hs8q] {
    width: 100%;
    height: 2.5rem;
    max-height: 2.5rem;
    box-sizing: border-box;
    padding: 0 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    font-size: 0.9rem;
    color: var(--color-neutral-900);
    box-shadow: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.cust-searchbox input[type="text"]:focus[b-yl4d93hs8q] {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary-500) 20%, transparent);
}
.cust-clear[b-yl4d93hs8q] {
    position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
    width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: transparent; border: 0;
    color: var(--color-neutral-400); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.cust-clear:hover[b-yl4d93hs8q] { background: var(--color-neutral-100); color: var(--color-neutral-700); }

/* Segmented chip-group — one filter row, per-status count visible at a glance. */
.cust-chipgroup[b-yl4d93hs8q] { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
.cust-chipgroup .chip-count[b-yl4d93hs8q] {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.25rem; height: 1.1rem; padding: 0 .35rem;
    margin-left: .4rem;
    border-radius: 999px;
    background: var(--color-neutral-100);
    color: var(--color-neutral-500);
    font-size: .7rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.cust-chipgroup .btn-chip.active .chip-count[b-yl4d93hs8q] {
    background: color-mix(in srgb, var(--color-primary-500) 18%, transparent);
    color: var(--color-primary-600);
}

/* Pin inline actions to their natural width — stop global .btn-chip from stretching when it sits
   next to a flex-growing search box. */
.cust-toolbar-row > .btn-chip[b-yl4d93hs8q] { flex: 0 0 auto; height: 2.5rem; }

/* Wallet liability reminder — shown whenever liability > 0 so finance keeps monitoring Stripe balance. */
.cust-liability-banner[b-yl4d93hs8q] {
    display: flex; align-items: center; gap: .75rem;
    background: linear-gradient(135deg, var(--color-primary-50, #EEFBF6), #fff);
    border: 1px solid var(--color-primary-100, #D1F3E4);
    border-left: 4px solid var(--color-primary-500);
    border-radius: var(--radius-md); padding: .75rem 1rem;
    margin: .5rem 0 1rem;
}
.cust-liability-banner i[b-yl4d93hs8q] { font-size: 1.6rem; color: var(--color-primary-500); }
.cust-liability-banner > div[b-yl4d93hs8q] { display: flex; flex-direction: column; gap: .15rem; }
.cust-liability-banner strong[b-yl4d93hs8q] { color: var(--color-neutral-800); font-size: .95rem; font-weight: 700; }
.cust-liability-banner span[b-yl4d93hs8q] { color: var(--color-neutral-600); font-size: .8rem; }

/* ── Table shell ──────────────────────────────────────── */
.cust-panel[b-yl4d93hs8q] {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}
.cust-empty[b-yl4d93hs8q] {
    padding: var(--space-12) var(--space-6);
    text-align: center;
    color: var(--color-neutral-400);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}
.cust-empty i[b-yl4d93hs8q] { font-size: 2.5rem; opacity: 0.5; }
.cust-scroll[b-yl4d93hs8q] { overflow-x: auto; }

table.cust-table[b-yl4d93hs8q] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
table.cust-table thead th[b-yl4d93hs8q] {
    text-align: left;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-neutral-500);
    background: var(--color-neutral-50);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--card-border);
    white-space: nowrap;
}
table.cust-table thead th.num[b-yl4d93hs8q] { text-align: right; }
table.cust-table tbody td[b-yl4d93hs8q] {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-neutral-100);
    vertical-align: middle;
}
table.cust-table tbody td.num[b-yl4d93hs8q] { text-align: right; font-variant-numeric: tabular-nums; }
tr.cust-row[b-yl4d93hs8q] { cursor: pointer; transition: background var(--transition-fast); }
tr.cust-row:hover td[b-yl4d93hs8q] { background: var(--color-primary-50); }
tr.cust-row.open td[b-yl4d93hs8q] { background: var(--color-primary-50); }
/* Blocked rows stand out so admin can scan a long list — red left stripe + muted text. */
tr.cust-row.is-blocked td:first-child[b-yl4d93hs8q] {
    box-shadow: inset 3px 0 0 var(--color-error);
}
tr.cust-row.is-blocked .cust-phone[b-yl4d93hs8q],
tr.cust-row.is-blocked .cust-money[b-yl4d93hs8q] { color: var(--color-neutral-500); }

/* "จ่ายแล้ว" col stacks amount + order-count so two columns worth of data fit in one. */
.cust-paidcol[b-yl4d93hs8q] { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.cust-paidcol small[b-yl4d93hs8q] { color: var(--color-neutral-500); font-size: 0.7rem; }

/* Identity cell */
.cust-identity[b-yl4d93hs8q] { display: flex; align-items: center; gap: var(--space-3); }
.cust-caret[b-yl4d93hs8q] {
    color: var(--color-neutral-400);
    transition: transform var(--transition-fast);
    font-size: 0.875rem;
}
tr.cust-row.open .cust-caret[b-yl4d93hs8q] { transform: rotate(90deg); color: var(--color-primary-500); }
.cust-avatar[b-yl4d93hs8q] {
    width: 2.25rem; height: 2.25rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-100);
    color: var(--color-primary-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-semibold);
    font-size: 0.8125rem;
    flex-shrink: 0;
}
.cust-avatar.blocked[b-yl4d93hs8q] { background: var(--color-error-light); color: var(--color-error); }
.cust-who[b-yl4d93hs8q] { display: flex; flex-direction: column; line-height: 1.3; }
.cust-phone[b-yl4d93hs8q] { font-weight: var(--font-weight-medium); color: var(--color-neutral-900); font-variant-numeric: tabular-nums; }
.cust-name[b-yl4d93hs8q] { font-size: 0.8125rem; color: var(--color-neutral-500); }

/* Status pill */
.pill[b-yl4d93hs8q] {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}
.pill[b-yl4d93hs8q]::before { content: ""; width: 0.4em; height: 0.4em; border-radius: 50%; background: currentColor; }
.pill.registered[b-yl4d93hs8q] { background: var(--color-success-light); color: var(--color-success); }
.pill.guest[b-yl4d93hs8q]      { background: var(--color-neutral-100);   color: var(--color-neutral-600); }
.pill.blocked[b-yl4d93hs8q]    { background: var(--color-error-light);   color: var(--color-error); }

.cust-money[b-yl4d93hs8q] { font-weight: var(--font-weight-semibold); color: var(--color-neutral-900); }
.cust-lastseen[b-yl4d93hs8q] { color: var(--color-neutral-500); font-size: 0.8125rem; white-space: nowrap; }

/* Row action buttons */
.row-btn[b-yl4d93hs8q] {
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.row-btn.block[b-yl4d93hs8q]   { background: var(--color-error-light); color: var(--color-error); }
.row-btn.block:hover[b-yl4d93hs8q]   { background: var(--color-error); color: #fff; }
.row-btn.unblock[b-yl4d93hs8q] { background: var(--color-neutral-100); color: var(--color-neutral-700); border-color: var(--card-border); }
.row-btn.unblock:hover[b-yl4d93hs8q] { background: var(--color-success-light); color: var(--color-success); border-color: transparent; }

/* ── Detail drawer (slide-in right panel) ─────────────────
   Replaces the old inline expanding table row + cramped auto-fit grid. Sections
   now stack full-width in a scrollable panel so the 6-column ledger/consent tables
   get real room instead of being squeezed into a 300px grid track. */
.cd-veil[b-yl4d93hs8q] {
    position: fixed; inset: 0; z-index: 800;
    background: rgba(0, 0, 0, 0.4);
    animation: cd-fade-b-yl4d93hs8q var(--transition-fast) ease;
}
.cd-drawer[b-yl4d93hs8q] {
    position: fixed; z-index: 801;
    top: 0; right: 0; bottom: 0;
    width: min(720px, 96vw);
    background: var(--color-neutral-50);
    border-left: 1px solid var(--card-border);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
    display: flex; flex-direction: column;
    animation: cd-slide-b-yl4d93hs8q 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cd-fade-b-yl4d93hs8q  { from { opacity: 0; } }
@keyframes cd-slide-b-yl4d93hs8q { from { transform: translateX(100%); } }

.cd-head[b-yl4d93hs8q] {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--card-border);
    background: var(--card-bg);
    flex-shrink: 0;
}
.cd-avatar[b-yl4d93hs8q] { width: 2.75rem; height: 2.75rem; font-size: 0.95rem; }
.cd-idwrap[b-yl4d93hs8q] { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cd-name[b-yl4d93hs8q] { font-weight: var(--font-weight-bold); font-size: 1.05rem; color: var(--color-neutral-900); font-variant-numeric: tabular-nums; }
.cd-sub[b-yl4d93hs8q] { display: flex; align-items: center; gap: var(--space-2); font-size: 0.8125rem; color: var(--color-neutral-500); flex-wrap: wrap; }
.cd-head-actions[b-yl4d93hs8q] { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.cd-head-btn[b-yl4d93hs8q] {
    display: inline-flex; align-items: center; gap: var(--space-2);
    height: 2.25rem; padding: 0 0.75rem;
    border: 1px solid var(--card-border); border-radius: var(--radius-md);
    background: var(--card-bg); color: var(--color-neutral-600);
    cursor: pointer; font-size: 0.8125rem; font-weight: var(--font-weight-semibold);
    text-decoration: none; white-space: nowrap;
    transition: all var(--transition-fast);
}
.cd-head-btn:hover[b-yl4d93hs8q] { background: var(--color-primary-50); color: var(--color-primary-600); border-color: var(--color-primary-200); }
.cd-head-btn.block[b-yl4d93hs8q] { color: var(--color-error); border-color: var(--color-error-light); }
.cd-head-btn.block:hover[b-yl4d93hs8q] { background: var(--color-error); color: #fff; border-color: var(--color-error); }
.cd-head-btn.unblock[b-yl4d93hs8q] { color: var(--color-success); border-color: var(--color-success-light); }
.cd-head-btn.unblock:hover[b-yl4d93hs8q] { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.cd-close[b-yl4d93hs8q] {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; flex-shrink: 0;
    border: 1px solid var(--card-border); border-radius: var(--radius-md);
    background: var(--card-bg); color: var(--color-neutral-500);
    cursor: pointer; font-size: 1.1rem; transition: all var(--transition-fast);
}
.cd-close:hover[b-yl4d93hs8q] { background: var(--color-error-light); color: var(--color-error); border-color: transparent; }

/* Narrow drawers: hide the button label and keep the icon — the action still fits next to close. */
@media (max-width: 560px) {
    .cd-head-btn span[b-yl4d93hs8q] { display: none; }
    .cd-head-btn[b-yl4d93hs8q] { padding: 0; width: 2.25rem; justify-content: center; }
}

.cd-loading[b-yl4d93hs8q] {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: var(--space-12); color: var(--color-neutral-500);
}
.cd-body[b-yl4d93hs8q] {
    flex: 1; overflow-y: auto;
    padding: var(--space-4) var(--space-5) var(--space-8);
    display: flex; flex-direction: column; gap: var(--space-4);
}

/* summary strip */
.cd-summary[b-yl4d93hs8q] { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.cd-sum[b-yl4d93hs8q] {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.cd-sum-lbl[b-yl4d93hs8q] { font-size: 0.7rem; color: var(--color-neutral-500); text-transform: uppercase; letter-spacing: 0.03em; }
.cd-sum-val[b-yl4d93hs8q] { font-size: 1.15rem; font-weight: var(--font-weight-bold); color: var(--color-neutral-900); font-variant-numeric: tabular-nums; }
.cd-sum-val small[b-yl4d93hs8q] { font-size: 0.7rem; font-weight: var(--font-weight-regular, 400); color: var(--color-neutral-400); }
.cd-sum-val.money[b-yl4d93hs8q] { color: var(--color-primary-600); }

/* action row */
.cd-actions[b-yl4d93hs8q] { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cd-adjust[b-yl4d93hs8q] {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: 0.5rem 1rem; border-radius: var(--radius-md);
    border: 1px solid var(--color-primary-200); background: var(--color-primary-50);
    color: var(--color-primary-600); font-weight: var(--font-weight-semibold); font-size: 0.8125rem;
    cursor: pointer; transition: all var(--transition-fast);
}
.cd-adjust:hover[b-yl4d93hs8q] { background: var(--color-primary-100); }
.cd-actions .row-btn[b-yl4d93hs8q] { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* cards inside the drawer — soft modern feel, max-height tables scroll inside each card
   independently so the drawer body itself stays short */
.dcard[b-yl4d93hs8q] {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.03);
    min-width: 0;
    transition: box-shadow var(--transition-fast);
}
.dcard:hover[b-yl4d93hs8q] { box-shadow: 0 4px 12px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04); }

/* Profile / Tax / PDPA / Charging-stats sections share a row at wide widths — short cards sit next to
   each other instead of stacking 5 screens tall. Payments + Wallet + Sessions stay full-width (tables). */
.cd-body .dcard.half[b-yl4d93hs8q] { flex: 1 1 300px; }
.cd-body .dcard-row[b-yl4d93hs8q] { display: flex; flex-wrap: wrap; gap: var(--space-4); }

@media (max-width: 560px) {
    .cd-summary[b-yl4d93hs8q] { grid-template-columns: repeat(2, 1fr); }
}
.dcard h4[b-yl4d93hs8q] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-neutral-800);
}
.dcard h4 i[b-yl4d93hs8q] { color: var(--color-primary-500); }
.dcard h4 .muted[b-yl4d93hs8q] { font-weight: var(--font-weight-normal); font-size: 0.8125rem; color: var(--color-neutral-500); margin-left: auto; }
.dcard em[b-yl4d93hs8q] { font-size: 0.8125rem; color: var(--color-neutral-400); }

/* definition list for profile */
.deflist[b-yl4d93hs8q] { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); font-size: 0.8125rem; }
.deflist dt[b-yl4d93hs8q] { color: var(--color-neutral-500); white-space: nowrap; }
.deflist dd[b-yl4d93hs8q] { margin: 0; color: var(--color-neutral-800); text-align: right; font-variant-numeric: tabular-nums; }

/* mini tables inside detail cards — each table scrolls INDEPENDENTLY (max-height + sticky header)
   so a long payment list doesn't force the whole drawer to scroll, and the thead stays visible as
   the user scrolls through long rows (Codex review, 03 Nov: "ไม่ได้แยก detail การเลื่อน แต่ละรายการ"). */
.mini-wrap[b-yl4d93hs8q] {
    overflow: auto;
    max-height: 320px;
    margin: 0 calc(-1 * var(--space-2));
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-neutral-100);
    background: var(--color-neutral-0);
}
.mini-wrap[b-yl4d93hs8q]::-webkit-scrollbar { width: 8px; height: 8px; }
.mini-wrap[b-yl4d93hs8q]::-webkit-scrollbar-track { background: transparent; }
.mini-wrap[b-yl4d93hs8q]::-webkit-scrollbar-thumb { background: var(--color-neutral-200); border-radius: 4px; border: 2px solid var(--color-neutral-0); }
.mini-wrap[b-yl4d93hs8q]::-webkit-scrollbar-thumb:hover { background: var(--color-neutral-300); }
table.mini[b-yl4d93hs8q] { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.78rem; }
table.mini thead th[b-yl4d93hs8q] {
    position: sticky; top: 0; z-index: 1;
    text-align: left;
    font-weight: var(--font-weight-semibold);
    color: var(--color-neutral-600);
    padding: 0.5rem 0.65rem;
    background: var(--color-neutral-50);
    border-bottom: 1px solid var(--color-neutral-200);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}
table.mini th.num[b-yl4d93hs8q] { text-align: right; }
table.mini td[b-yl4d93hs8q] { padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--color-neutral-100); color: var(--color-neutral-800); vertical-align: middle; }
table.mini td.num[b-yl4d93hs8q] { text-align: right; font-variant-numeric: tabular-nums; }
table.mini tbody tr[b-yl4d93hs8q] { transition: background var(--transition-fast); }
table.mini tbody tr:hover td[b-yl4d93hs8q] { background: var(--color-primary-50); }
table.mini tbody tr:nth-child(even):not(.split-row) td[b-yl4d93hs8q] { background: var(--color-neutral-50); }
table.mini tbody tr:nth-child(even):hover td[b-yl4d93hs8q] { background: var(--color-primary-50); }
table.mini tr:last-child td[b-yl4d93hs8q] { border-bottom: none; }
.live-dot[b-yl4d93hs8q] { color: var(--color-error); font-weight: var(--font-weight-semibold); white-space: nowrap; }

/* payment status chip — colour-codes Completed / Expired / Failed at a glance */
.ostatus[b-yl4d93hs8q] {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    background: var(--color-neutral-100);
    color: var(--color-neutral-600);
}
.ostatus.completed[b-yl4d93hs8q] { background: var(--color-success-light); color: var(--color-success); }
.ostatus.expired[b-yl4d93hs8q],
.ostatus.failed[b-yl4d93hs8q],
.ostatus.canceled[b-yl4d93hs8q] { background: var(--color-error-light); color: var(--color-error); }
.ostatus.pending[b-yl4d93hs8q] { background: var(--color-warning-light, var(--color-neutral-100)); color: var(--color-warning); }

.tax-entry[b-yl4d93hs8q] { font-size: 0.8125rem; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-neutral-100); }
.tax-entry:last-child[b-yl4d93hs8q] { border-bottom: none; }
.tax-entry .muted[b-yl4d93hs8q] { color: var(--color-neutral-500); }

/* ── Pager ────────────────────────────────────────────── */
.cust-pager[b-yl4d93hs8q] {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    justify-content: flex-end;
    font-size: 0.8125rem;
    color: var(--color-neutral-500);
}
.cust-pager-count[b-yl4d93hs8q] { padding: 0 var(--space-3); font-variant-numeric: tabular-nums; }
.cust-pager-count b[b-yl4d93hs8q] { color: var(--color-neutral-900); font-weight: 700; }
.cust-pager button[b-yl4d93hs8q] {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8125rem;
    cursor: pointer;
    color: var(--color-neutral-700);
    display: inline-flex; align-items: center; gap: .3rem;
    transition: all var(--transition-fast);
}
.cust-pager button:hover:not(:disabled)[b-yl4d93hs8q] { background: var(--color-primary-50); border-color: var(--color-primary-200); color: var(--color-primary-600); }
.cust-pager button:disabled[b-yl4d93hs8q] { opacity: 0.45; cursor: not-allowed; }

/* ── Dark theme (operator html.dark .citrine-layout) ────────────────
   This page is built light-first on neutral tokens. Dark mode redefines most
   neutrals but NOT --color-neutral-0/50/400 or --color-primary-50 — so the
   table headers, the selected/hover row and muted text render light (white
   header bands + a washed-out peach row with unreadable text). Re-map just
   those tokens for this page in dark, then pin the surfaces that need it.
   Ancestor selector html.dark .citrine-layout is fine from scoped CSS: the scope
   attribute lands on .cust (this component), the layout class is a real DOM
   ancestor. Light mode is completely untouched. */
html.dark .citrine-layout .cust[b-yl4d93hs8q] {
    --color-neutral-0:   #37425A;
    --color-neutral-50:  #3E4A62;
    --color-neutral-400: #8690A4;
    --color-primary-50:  rgba(23, 181, 146, 0.12);
}
html.dark .citrine-layout .cust table.cust-table thead th[b-yl4d93hs8q],
html.dark .citrine-layout .cust table.mini thead th[b-yl4d93hs8q] { background: #3E4A62; }
html.dark .citrine-layout .cust .mini-wrap[b-yl4d93hs8q],
html.dark .citrine-layout .cd-drawer .mini-wrap[b-yl4d93hs8q] { background: #37425A; border-color: #4C5775; }
html.dark .citrine-layout .cust table.mini tbody tr:nth-child(even):not(.split-row) td[b-yl4d93hs8q],
html.dark .citrine-layout .cd-drawer table.mini tbody tr:nth-child(even):not(.split-row) td[b-yl4d93hs8q] { background: #3E4A62; }
html.dark .citrine-layout .cust table.mini tbody tr:hover td[b-yl4d93hs8q],
html.dark .citrine-layout .cd-drawer table.mini tbody tr:hover td[b-yl4d93hs8q] { background: rgba(23, 181, 146, 0.08); }
html.dark .citrine-layout .cust .split-row td[b-yl4d93hs8q],
html.dark .citrine-layout .cd-drawer .split-row td[b-yl4d93hs8q] { background: #232E45; }
html.dark .citrine-layout .cust td.cust-detail-cell[b-yl4d93hs8q] { background: var(--content-bg, #0D1117); }
html.dark .citrine-layout .cust .cust-avatar:not(.blocked)[b-yl4d93hs8q] {
    background: rgba(23, 181, 146, 0.18);
    color: var(--color-primary-300);
}
/* The drawer renders OUTSIDE .cust (page-level sibling), so it needs its own dark
   token re-map — same set the .cust block patches. */
html.dark .citrine-layout .cd-drawer[b-yl4d93hs8q] {
    --color-neutral-0:   #37425A;
    --color-neutral-50:  #3E4A62;
    --color-neutral-400: #8690A4;
    --color-primary-50:  rgba(23, 181, 146, 0.12);
    background: var(--content-bg, #0D1117);
}
html.dark .citrine-layout .cd-drawer table.mini thead th[b-yl4d93hs8q] { background: #3E4A62; }
html.dark .citrine-layout .cd-drawer .cust-avatar:not(.blocked)[b-yl4d93hs8q] {
    background: rgba(23, 181, 146, 0.18);
    color: var(--color-primary-300);
}

/* ── Money card (Wallet + Credit side-by-side with actions) ─────────────── */
.money-card[b-yl4d93hs8q] {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-xs); min-width: 0;
    display: flex; flex-direction: column; gap: var(--space-3);
}
.money-card h4[b-yl4d93hs8q] {
    margin: 0; display: flex; align-items: center; gap: var(--space-2);
    font-size: 0.9375rem; font-weight: var(--font-weight-semibold); color: var(--color-neutral-800);
}
.money-card h4 i[b-yl4d93hs8q] { color: var(--color-primary-500); }
.money-split[b-yl4d93hs8q] { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.money-cell[b-yl4d93hs8q] {
    display: flex; flex-direction: column; gap: 2px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md); background: var(--color-neutral-50);
    border-left: 3px solid var(--color-primary-500);
}
.money-cell.credit[b-yl4d93hs8q] { border-left-color: #d97706; }
.money-lbl[b-yl4d93hs8q] { font-size: 0.75rem; font-weight: 600; color: var(--color-neutral-600); text-transform: uppercase; letter-spacing: 0.03em; }
.money-lbl small[b-yl4d93hs8q] { font-weight: 400; color: var(--color-neutral-400); text-transform: none; letter-spacing: 0; }
.money-val[b-yl4d93hs8q] { font-size: 1.4rem; font-weight: 700; color: var(--color-neutral-900); font-variant-numeric: tabular-nums; }
.money-val.money[b-yl4d93hs8q] { color: var(--color-primary-600); }
.money-cell.credit .money-val[b-yl4d93hs8q] { color: #d97706; }
.money-note[b-yl4d93hs8q] { font-size: 0.7rem; color: var(--color-neutral-500); }
.money-note.reserving[b-yl4d93hs8q] {
    color: #d97706; font-weight: 600;
    padding: 2px 6px; border-radius: 999px; background: #fef3c7;
    align-self: flex-start; margin-top: 2px;
}
.money-card h4 .muted[b-yl4d93hs8q] {
    font-size: 0.7rem; font-weight: 400; color: var(--color-neutral-400);
    text-transform: none; letter-spacing: 0; margin-left: auto;
}
.money-actions[b-yl4d93hs8q] { display: flex; gap: var(--space-3); }
.cd-adjust.gift[b-yl4d93hs8q] { border-color: #f59e0b; background: #fef3c7; color: #92400e; }
.cd-adjust.gift:hover[b-yl4d93hs8q] { background: #fde68a; }
@media (max-width: 560px) {
    .money-split[b-yl4d93hs8q] { grid-template-columns: 1fr; }
}

/* ── payment table split cells — chips wrap inside the cell; state + destination go to their own
   lines so a narrow column never forces the whole table into horizontal scroll ─── */
.pay-split[b-yl4d93hs8q] {
    font-variant-numeric: tabular-nums;
    white-space: normal; line-height: 1.5; min-width: 0;
}
.split-chip[b-yl4d93hs8q] {
    display: inline-block; padding: 1px 8px; border-radius: 999px;
    font-size: 0.7rem; font-weight: 600; white-space: nowrap;
    margin-right: 2px;
}
.pay-w[b-yl4d93hs8q], .split-chip.pay-w[b-yl4d93hs8q] { background: rgba(23, 181, 146,0.12); color: var(--color-primary-600); }
.pay-c[b-yl4d93hs8q], .split-chip.pay-c[b-yl4d93hs8q] { background: #fef3c7; color: #92400e; }
.split-sep[b-yl4d93hs8q] { display: none; }   /* chips stack now; the "+" between them is noise */
.pay-state[b-yl4d93hs8q] {
    display: inline-block; margin-top: 2px; padding: 0 6px; border-radius: 999px;
    font-size: 0.65rem; font-weight: 600; white-space: nowrap;
}
.pay-state.reserving[b-yl4d93hs8q] { background: #fef9c3; color: #854d0e; }
.pay-state.used[b-yl4d93hs8q] { background: #dcfce7; color: #166534; }
.pay-dest[b-yl4d93hs8q] { color: var(--color-neutral-500); font-size: 0.68rem; display: block; margin-top: 2px; }

/* Description cells: wrap instead of truncating with ellipsis — mobile users can't hover for the full
   text, so a 2-line wrap reads better than "..." with hidden content */
table.mini td.desc[b-yl4d93hs8q] {
    max-width: 220px; white-space: normal; word-break: break-word; line-height: 1.4;
    overflow: visible; text-overflow: clip;
}

/* dates stay on one line in every mini table — avoids an awkward 2-line "03/11" / "15:31" break */
table.mini td:last-child[b-yl4d93hs8q], table.mini th:last-child[b-yl4d93hs8q] { white-space: nowrap; }

/* ledger second row showing cash/credit breakdown — chips wrap on narrow drawers */
.split-row td[b-yl4d93hs8q] {
    background: var(--color-neutral-50); padding: 4px 10px 6px;
    border-bottom: 1px solid var(--color-neutral-100);
}
.split-row td .split-chip + .split-chip[b-yl4d93hs8q] { margin-left: 6px; }


/* ── ledger money-kind pill ─────────────────────────────── */
.money-kind[b-yl4d93hs8q] { white-space: nowrap; }
.mk[b-yl4d93hs8q] { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 0.68rem; font-weight: 600; }
.mk-cash[b-yl4d93hs8q] { background: rgba(23, 181, 146,0.12); color: var(--color-primary-600); }
.mk-credit[b-yl4d93hs8q] { background: #fef3c7; color: #92400e; }
.mk-mix[b-yl4d93hs8q] { background: #e9d5ff; color: #6b21a8; }

/* dcard h4 — keep inherited layout from base; .muted auto-pushes right (margin-left: auto) */
.dcard h4[b-yl4d93hs8q] { display: flex; align-items: center; gap: 6px; }

/* ── Wallet adjust modal ─────────────────────────────── */

.adjust-veil[b-yl4d93hs8q] {
    position: fixed; inset: 0; z-index: 900;
    background: rgba(0, 0, 0, 0.45);
}
.adjust-modal[b-yl4d93hs8q] {
    position: fixed; z-index: 901;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(420px, 92vw);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: flex; flex-direction: column; gap: 8px;
}
.adjust-modal h3[b-yl4d93hs8q] { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.adjust-sub[b-yl4d93hs8q] { margin: 0 0 6px; font-size: 0.8125rem; color: var(--color-neutral-500); }
.adjust-dir[b-yl4d93hs8q] { display: flex; gap: 8px; margin-bottom: 4px; }
.adjust-dir button[b-yl4d93hs8q] {
    flex: 1; padding: 8px; border-radius: 8px; cursor: pointer;
    border: 1px solid var(--color-neutral-200);
    background: var(--color-neutral-50); color: var(--color-neutral-600);
    font-weight: 600; font-size: 0.85rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.adjust-dir button.on.add[b-yl4d93hs8q] { border-color: #16a34a; background: rgba(22,163,74,0.12); color: #16a34a; }
.adjust-dir button.on.sub[b-yl4d93hs8q] { border-color: var(--color-error); background: var(--color-error-light); color: var(--color-error); }
.adjust-label[b-yl4d93hs8q] { font-size: 0.78rem; font-weight: 600; color: var(--color-neutral-600); margin-top: 4px; }
.adjust-label .req[b-yl4d93hs8q] { color: var(--color-error); }
.adjust-input[b-yl4d93hs8q] {
    width: 100%; box-sizing: border-box;
    padding: 8px 10px; border-radius: 8px;
    border: 1px solid var(--color-neutral-200);
    background: var(--color-neutral-0); color: var(--color-neutral-900);
    font-size: 0.875rem; font-family: inherit;
}
.adjust-err[b-yl4d93hs8q] { margin: 4px 0 0; color: var(--color-error); font-size: 0.8rem; }
.adjust-actions[b-yl4d93hs8q] { display: flex; gap: 10px; margin-top: 14px; }
.adjust-actions button[b-yl4d93hs8q] { flex: 1; padding: 9px; border-radius: 8px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.adjust-actions .cancel[b-yl4d93hs8q] { background: var(--color-neutral-100); color: var(--color-neutral-700); border-color: var(--color-neutral-200); }
.adjust-actions .confirm.add[b-yl4d93hs8q] { background: #16a34a; color: #fff; }
.adjust-actions .confirm.sub[b-yl4d93hs8q] { background: var(--color-error); color: #fff; }
.adjust-actions button:disabled[b-yl4d93hs8q] { opacity: 0.6; cursor: not-allowed; }

/* Customer overview */
.cust[b-yl4d93hs8q] { gap: 1.25rem; }
.cust-stats[b-yl4d93hs8q] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cust .stat[b-yl4d93hs8q] { min-height: 94px; justify-content: center; }
.cust-liability-banner[b-yl4d93hs8q] { margin: 0; background: var(--card-bg); border: 1px solid var(--card-border); border-left: 3px solid var(--color-primary-500); }
.cust-toolbar[b-yl4d93hs8q] { padding: 1rem; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); }
.cust-toolbar-row[b-yl4d93hs8q] { gap: .65rem; }
.cust-searchbox[b-yl4d93hs8q] { min-width: 0; }
.cust-searchbox input[type="text"][b-yl4d93hs8q] { border-radius: var(--radius-md); }
.cust-list-head[b-yl4d93hs8q] { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--card-border); }
.cust-list-head h2[b-yl4d93hs8q] { margin: 0; font-size: 1rem; color: var(--color-neutral-900); }
.cust-list-head p[b-yl4d93hs8q] { margin: .2rem 0 0; font-size: .8rem; color: var(--color-neutral-500); }
.cust-list-head > span[b-yl4d93hs8q] { font-size: .8rem; color: var(--color-neutral-500); white-space: nowrap; }
.cust-scroll[b-yl4d93hs8q] { max-height: min(65vh, 700px); overflow: auto; }
.cust-table[b-yl4d93hs8q] { min-width: 760px; }
.cust-table thead th[b-yl4d93hs8q] { position: sticky; top: 0; z-index: 1; }
@media (max-width: 680px) {
    .cust-stats[b-yl4d93hs8q] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .cust .stat[b-yl4d93hs8q] { min-height: 82px; padding: .75rem; }
    .cust .stat-value[b-yl4d93hs8q] { font-size: 1.3rem; }
    .cust .stat-ico[b-yl4d93hs8q] { display: none; }
    .cust-searchbox[b-yl4d93hs8q] { flex-basis: 100%; }
    .cust-list-head[b-yl4d93hs8q] { align-items: flex-start; }
}

.cd-tabs[b-yl4d93hs8q], .ledger-filters[b-yl4d93hs8q] { display: flex; gap: .4rem; overflow-x: auto; }
.cd-tabs[b-yl4d93hs8q] { flex-shrink: 0; padding: .75rem 1rem; background: var(--card-bg); border-bottom: 1px solid var(--card-border); }
.cd-tabs button[b-yl4d93hs8q], .ledger-filters button[b-yl4d93hs8q] { border: 1px solid var(--card-border); border-radius: 8px; padding: .45rem .75rem; background: var(--card-bg); color: var(--color-neutral-700); white-space: nowrap; cursor: pointer; }
.cd-tabs button.active[b-yl4d93hs8q], .ledger-filters button.active[b-yl4d93hs8q] { border-color: var(--color-primary-500); background: var(--color-primary-50); color: var(--color-primary-600); font-weight: 600; }
.ledger-filters[b-yl4d93hs8q] { margin-bottom: 1rem; }
.cust-detail-btn[b-yl4d93hs8q] { background: var(--color-primary-50); color: var(--color-primary-600); }
.cust-detail-btn:hover[b-yl4d93hs8q] { background: var(--color-primary-100); }

.ledger-note[b-yl4d93hs8q] { color: var(--color-neutral-600); font-size: .8rem; }

/* LINE card — operator unlink (destructive: error tone, two-step confirm) */
.line-unlink[b-yl4d93hs8q] { margin-top: var(--space-3); color: var(--color-error); border-color: var(--color-error-light); }
.line-unlink:hover:not(:disabled)[b-yl4d93hs8q] { background: var(--color-error); color: #fff; border-color: var(--color-error); }
.line-unlink-confirm[b-yl4d93hs8q] { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.line-unlink-confirm p[b-yl4d93hs8q] { flex: 1 1 100%; margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--color-neutral-500); }
.line-unlink-confirm .line-unlink[b-yl4d93hs8q] { margin-top: 0; }

/* PDPA card — export + anonymise (destructive styles reuse .line-unlink / .line-unlink-confirm) */
.pdpa-actions[b-yl4d93hs8q] { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.pdpa-note[b-yl4d93hs8q] { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--color-neutral-500); }
/* _content/CitrineOS.Operator/Components/Pages/GridPage.razor.rz.scp.css */
.grid-page-header[b-vdqob43pk8] { display:flex; justify-content:space-between; gap:1rem; align-items:flex-end; flex-wrap:wrap; }
.grid-page-controls[b-vdqob43pk8] { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.grid-page-controls label[b-vdqob43pk8], .grid-context[b-vdqob43pk8] { color:var(--neutral-600); font-size:.8rem; }
.grid-page-controls select[b-vdqob43pk8] { width:auto; }
.grid-context[b-vdqob43pk8] { margin:.5rem 0 1rem; }
.grid-section-heading[b-vdqob43pk8] { margin:0; }
.grid-section-toggle[b-vdqob43pk8] { display:flex; align-items:center; gap:.35rem; text-align:left; width:100%; padding:0; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.grid-section-toggle:focus-visible[b-vdqob43pk8] { outline:2px solid var(--primary, #fd853a); outline-offset:4px; }
/* _content/CitrineOS.Operator/Components/Pages/Incidents.razor.rz.scp.css */
 .incident-heading[b-hhpxezr0zi] { display:flex; justify-content:space-between; align-items:end; gap:1rem; flex-wrap:wrap; margin-bottom:1.25rem; }
.incident-heading h1[b-hhpxezr0zi] { margin:0; }
.incident-heading .subtitle[b-hhpxezr0zi] { margin:.35rem 0 0; }
.incident-filters[b-hhpxezr0zi] { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; }
.incident-filters select[b-hhpxezr0zi] { width:auto; min-width:10rem; }
.incident-error[b-hhpxezr0zi] { padding:1rem; border:1px solid var(--color-error); border-radius:var(--radius-md); color:var(--color-error); }
.incident-list-title[b-hhpxezr0zi] { display:flex; justify-content:space-between; align-items:center; padding:1rem 1.2rem; background:var(--card-bg); border:1px solid var(--card-border); border-bottom:0; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.incident-list-title span[b-hhpxezr0zi] { color:var(--color-neutral-600); font-size:.8rem; }
.incident-scroll[b-hhpxezr0zi] { max-height:65vh; overflow:auto; }
.incident-scroll table[b-hhpxezr0zi] { min-width:1050px; }
.incident-scroll thead th[b-hhpxezr0zi] { position:sticky; top:0; z-index:1; background:var(--card-bg); }
.incident-critical td:first-child[b-hhpxezr0zi] { box-shadow:inset 3px 0 0 var(--color-error); }

.incident-scroll td:nth-child(5)[b-hhpxezr0zi] { min-width:220px; max-width:360px; white-space:normal; overflow-wrap:anywhere; }
.incident-scroll td:last-child[b-hhpxezr0zi] { min-width:180px; }

.incident-explanation strong[b-hhpxezr0zi], .incident-explanation span[b-hhpxezr0zi], .incident-explanation small[b-hhpxezr0zi] { display:block; }
.incident-explanation strong[b-hhpxezr0zi] { color:var(--color-neutral-900); margin-bottom:.3rem; }
.incident-explanation span[b-hhpxezr0zi] { color:var(--color-neutral-700); line-height:1.45; }
.incident-explanation small[b-hhpxezr0zi] { color:var(--color-neutral-600); margin-top:.4rem; line-height:1.4; }
.incident-kind[b-hhpxezr0zi] { font-size:.8rem; color:var(--color-neutral-700); }
.incident-technical[b-hhpxezr0zi] { margin-top:.4rem; max-width:300px; white-space:normal; font-size:.75rem; overflow-wrap:anywhere; }
.incident-technical summary[b-hhpxezr0zi] { cursor:pointer; color:var(--color-primary-600); }
.incident-technical pre[b-hhpxezr0zi] { max-height:220px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
/* _content/CitrineOS.Operator/Components/Pages/Maintenance.razor.rz.scp.css */
.maintenance-summary-note[b-o7dh04rtdl] { margin: 1rem 0 .5rem; color: var(--neutral-600); font-size: .8rem; }
.maintenance-filters h2[b-o7dh04rtdl] { margin: 0 0 .75rem; font-size: 1rem; }
.maintenance-filters select[b-o7dh04rtdl], .maintenance-filters input[b-o7dh04rtdl] { width: 100%; box-sizing: border-box; }
.data-table-wrapper[b-o7dh04rtdl] { overflow-x: auto; }
.data-table td button[b-o7dh04rtdl] { margin: .15rem; }
@media (max-width: 700px) {
    .maintenance-filters .rgrid[b-o7dh04rtdl] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .stat-grid[b-o7dh04rtdl] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* _content/CitrineOS.Operator/Components/Pages/StripeReport.razor.rz.scp.css */
/* StripeReport — การ์ดภาษาเดียวกับ Dashboard (Home.razor .hero-card) · ใช้ token ของ app.css ที่สลับตาม dark mode เท่านั้น
   (primary-50 / *-light ไม่สลับธีม → ใช้ color-mix กับ transparent แทน) */

.stripe-report[b-mm5dlkaphr] {
    max-width: 1500px;
    margin: auto;
    --sr-ok: var(--color-success, #2B8A3E);
    --sr-warn: var(--color-warning-dark, #B35C00);
    --sr-bad: var(--color-error, #C92A2A);
    --sr-info: var(--color-info, #1971C2);
    --sr-accent: var(--color-primary-500, #17B592);
    --sr-wait: var(--color-neutral-300, #CBD5E1);
    --sr-muted: var(--color-neutral-600, #64748b);
    --sr-text: var(--color-neutral-900, #212529);
}
html.dark .stripe-report[b-mm5dlkaphr] {
    --sr-ok: #69DB7C;
    --sr-warn: #FFC078;
    --sr-bad: #FF8787;
    --sr-info: #74C0FC;
}

/* ── หัวหน้า ─────────────────────────────────────────── */
.sr-head[b-mm5dlkaphr] { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sr-head h1[b-mm5dlkaphr] { margin: 0 0 .25rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sr-head p[b-mm5dlkaphr] { margin: 0; color: var(--sr-muted); font-size: .9rem; }
.sr-head .applied[b-mm5dlkaphr] { white-space: nowrap; }

.mode-badge[b-mm5dlkaphr] {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .02em;
    padding: .2rem .65rem; border-radius: 999px;
    color: var(--sr-warn);
    background: color-mix(in srgb, var(--sr-warn) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--sr-warn) 40%, transparent);
}
.mode-badge.live[b-mm5dlkaphr] { color: var(--sr-ok); background: color-mix(in srgb, var(--sr-ok) 14%, transparent); border-color: color-mix(in srgb, var(--sr-ok) 40%, transparent); }
.mode-badge i[b-mm5dlkaphr] { font-size: .7rem; }

/* ── แถบเลือกช่วงเวลา ───────────────────────────────────── */
.sr-toolbar[b-mm5dlkaphr] { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.range[b-mm5dlkaphr] {
    display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    padding: .3rem .35rem .3rem .8rem;
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #E2E8F0);
    border-radius: 999px;
    color: var(--sr-muted);
}
.range input[b-mm5dlkaphr] {
    width: auto; flex: 0 0 auto; display: inline-block; margin: 0;
    border: 0; background: transparent; color: var(--sr-text);
    padding: .25rem 0; font: inherit; font-size: .88rem; min-width: 0;
}
.stripe-report .warn-text[b-mm5dlkaphr] { color: var(--sr-warn); }
/* ชื่อมี "btn-" → ไม่โดน style ปุ่มกลางของ app.css (button:not([class*="btn-"])) */
.btn-inline-link[b-mm5dlkaphr] { font: inherit; color: var(--sr-accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.payout-list[b-mm5dlkaphr] { list-style: none; margin: .5rem 0 0; padding: .5rem 0 0; border-top: 1px dashed var(--card-border, #E2E8F0); font-size: .8rem; display: grid; gap: .3rem; }
.payout-list li[b-mm5dlkaphr] { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: var(--sr-muted); }
.payout-list b[b-mm5dlkaphr] { color: var(--sr-text); font-variant-numeric: tabular-nums; }
.payout-list code[b-mm5dlkaphr] { font-size: .72rem; }
.balance-strip[b-mm5dlkaphr] {
    display: inline-flex; align-items: center; gap: .4rem .9rem; flex-wrap: wrap;
    padding: .45rem .9rem; border-radius: 999px; font-size: .85rem;
    background: var(--card-bg, #fff); border: 1px solid var(--card-border, #E2E8F0); color: var(--sr-muted);
}
.balance-strip span[b-mm5dlkaphr] { display: inline-flex; align-items: center; gap: .35rem; }
.balance-strip b[b-mm5dlkaphr] { color: var(--sr-ok); font-variant-numeric: tabular-nums; }
.range input:focus-visible[b-mm5dlkaphr] { outline: 2px solid var(--sr-accent); outline-offset: 2px; border-radius: 4px; }

/* ── แท็บมุมมอง + หัวข้อส่วน ─────────────────────────────── */
.view-tabs[b-mm5dlkaphr] { display: flex; gap: .25rem; border-bottom: 1px solid var(--card-border, #E2E8F0); margin-bottom: 1.1rem; overflow-x: auto; }
.document-filters[b-mm5dlkaphr] { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0; }
.document-filters .btn-chip.active[b-mm5dlkaphr] { color: var(--sr-accent); border-color: var(--sr-accent); }
.btn-view[b-mm5dlkaphr] {
    display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
    padding: .65rem 1rem; margin-bottom: -1px; cursor: pointer;
    font: inherit; font-size: .9rem; font-weight: 600;
    color: var(--sr-muted); background: transparent;
    border: 0; border-bottom: 2px solid transparent; border-radius: 0;
}
.btn-view:hover[b-mm5dlkaphr] { color: var(--sr-text); }
.btn-view.active[b-mm5dlkaphr] { color: var(--sr-accent); border-bottom-color: var(--sr-accent); }
.btn-view .n[b-mm5dlkaphr] { font-size: .72rem; padding: 0 .4rem; border-radius: 999px; }
.btn-view .n.warn[b-mm5dlkaphr] { color: var(--sr-warn); background: color-mix(in srgb, var(--sr-warn) 16%, transparent); }
.sec[b-mm5dlkaphr] { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--sr-muted); margin: 1.4rem 0 .6rem; }
.sec:first-of-type[b-mm5dlkaphr] { margin-top: 0; }
.report-cards[b-mm5dlkaphr] { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.report-card[b-mm5dlkaphr] { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.2rem; border: 1px solid var(--card-border, #e2e8f0); border-radius: 12px; background: var(--card-bg, #fff); }
.report-card span[b-mm5dlkaphr], .report-card small[b-mm5dlkaphr] { color: var(--sr-muted); }
.report-card strong[b-mm5dlkaphr] { font-size: 1.55rem; color: var(--sr-text); }
.doc-cover[b-mm5dlkaphr] { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
.doc-cover b[b-mm5dlkaphr] { font-size: 1.15rem; color: var(--sr-text); font-variant-numeric: tabular-nums; }
.doc-cover.warn-text b[b-mm5dlkaphr] { color: var(--sr-warn); }
.doc-cover > span[b-mm5dlkaphr] { min-width: 4.5rem; color: var(--sr-muted); }
.tbl-toolbar h2[b-mm5dlkaphr] { font-size: 1rem; margin: 0 auto 0 0; }
.more[b-mm5dlkaphr] { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--sr-accent); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }

/* ── สมการเงินลูกค้า ─────────────────────────────────────── */
.eq-card[b-mm5dlkaphr] { margin-bottom: 1rem; }
.eq[b-mm5dlkaphr] { display: flex; align-items: stretch; gap: .6rem; flex-wrap: wrap; }
/* ซ้าย 4 ช่อง : ขวา 3 ช่อง → แบ่งความกว้างตามจำนวนช่อง ให้ทุกช่องกว้างใกล้กันบนจอกว้าง */
.eq-side[b-mm5dlkaphr] { display: flex; align-items: stretch; gap: .5rem; flex-wrap: wrap; flex: 4 1 0; min-width: 280px; }
.eq-side:last-child[b-mm5dlkaphr] { flex-grow: 3; }
.term[b-mm5dlkaphr] {
    display: flex; flex-direction: column; gap: .15rem; flex: 1 1 0; min-width: 96px;
    padding: .65rem .8rem; border-radius: 10px;
    background: var(--color-neutral-100, #F1F3F5);
    font-variant-numeric: tabular-nums;
}
.term span[b-mm5dlkaphr] { font-size: .75rem; color: var(--sr-muted); font-weight: 600; }
.term b[b-mm5dlkaphr] { font-size: 1.15rem; }
.term small[b-mm5dlkaphr] { font-size: .72rem; color: var(--sr-muted); }
.term.revenue[b-mm5dlkaphr] { background: color-mix(in srgb, var(--sr-ok) 12%, transparent); }
.term.revenue b[b-mm5dlkaphr] { color: var(--sr-ok); }
.term.liability[b-mm5dlkaphr] { background: color-mix(in srgb, var(--sr-info) 12%, transparent); }
.term.liability b[b-mm5dlkaphr] { color: var(--sr-info); }
.op[b-mm5dlkaphr] { display: grid; place-items: center; font-weight: 700; color: var(--sr-muted); min-width: .8rem; }
.eq-sign[b-mm5dlkaphr] { font-size: 1.4rem; color: var(--sr-text); padding: 0 .3rem; }
.mini-stats[b-mm5dlkaphr] { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.mini-stats div[b-mm5dlkaphr] { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .7rem; border-radius: 10px; background: var(--color-neutral-100, #F1F3F5); }
.mini-stats span[b-mm5dlkaphr] { font-size: .74rem; color: var(--sr-muted); font-weight: 600; }
.mini-stats b[b-mm5dlkaphr] { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.check-counts .btn-count small[b-mm5dlkaphr] { font-size: .72rem; color: var(--sr-muted); font-variant-numeric: tabular-nums; }

/* ── คำเตือน ───────────────────────────────────────────── */
.sr-alert[b-mm5dlkaphr] {
    display: flex; gap: .6rem; align-items: flex-start;
    margin: 0 0 1rem; padding: .8rem 1rem;
    border-radius: 12px;
    color: var(--sr-text);
    background: color-mix(in srgb, var(--sr-warn) 10%, var(--card-bg, #fff));
    border: 1px solid color-mix(in srgb, var(--sr-warn) 35%, transparent);
    border-left: 4px solid var(--sr-warn);
    font-size: .88rem;
}
.sr-alert > i[b-mm5dlkaphr] { color: var(--sr-warn); font-size: 1.15rem; line-height: 1.3; }
.sr-alert ul[b-mm5dlkaphr] { margin: .3rem 0 0; padding-left: 1.1rem; }

/* ── การ์ด KPI ─────────────────────────────────────────── */
.kpi-grid[b-mm5dlkaphr] { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.kpi-grid.two[b-mm5dlkaphr] { grid-template-columns: 1fr 1fr; }
.kpi-grid > *[b-mm5dlkaphr] { min-width: 0; }

.kpi[b-mm5dlkaphr] {
    display: flex; flex-direction: column; gap: .45rem;
    padding: 1.1rem 1.2rem;
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #E2E8F0);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    color: var(--sr-text);
}
.kpi-hero[b-mm5dlkaphr] { border-left: 4px solid var(--sr-accent); }
.kpi-top[b-mm5dlkaphr] { display: flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 600; color: var(--sr-muted); }
.kpi-icon[b-mm5dlkaphr] {
    display: inline-grid; place-items: center;
    width: 2rem; height: 2rem; border-radius: 10px; font-size: 1.05rem;
    --c: var(--sr-accent);
    color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
}
.kpi-icon.ok[b-mm5dlkaphr] { --c: var(--sr-ok); }
.kpi-icon.bad[b-mm5dlkaphr] { --c: var(--sr-bad); }
.kpi-icon.warn[b-mm5dlkaphr] { --c: var(--sr-warn); }
.kpi-icon.info[b-mm5dlkaphr] { --c: var(--sr-info); }
.kpi-value[b-mm5dlkaphr] {
    font-size: 1.65rem; font-weight: 700; line-height: 1.15;
    font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.kpi-hero .kpi-value[b-mm5dlkaphr] { font-size: 2.1rem; }
.kpi-value.neg[b-mm5dlkaphr] { color: var(--sr-bad); }
.kpi-sub[b-mm5dlkaphr] { font-size: .78rem; color: var(--sr-muted); display: flex; flex-wrap: wrap; gap: .3rem .9rem; }

.flow-bar[b-mm5dlkaphr] { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--color-neutral-200, #E9ECEF); }
.flow-bar span[b-mm5dlkaphr] { display: block; height: 100%; }
.flow-bar .net[b-mm5dlkaphr], .dot.net[b-mm5dlkaphr] { background: var(--sr-accent); }
.flow-bar .refund[b-mm5dlkaphr], .dot.refund[b-mm5dlkaphr] { background: var(--sr-bad); }
.flow-bar .fee[b-mm5dlkaphr], .dot.fee[b-mm5dlkaphr] { background: var(--sr-warn); }
.flow-bar .wait[b-mm5dlkaphr], .dot.wait[b-mm5dlkaphr] { background: var(--sr-wait); }
.flow-legend span[b-mm5dlkaphr] { display: inline-flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; }
.dot[b-mm5dlkaphr] { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; }

.check-counts[b-mm5dlkaphr] { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.check-counts .btn-count[b-mm5dlkaphr] {
    display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
    padding: .55rem .7rem; border-radius: 10px; cursor: pointer;
    font: inherit; font-size: .78rem; text-align: left;
    --c: var(--sr-ok);
    color: var(--sr-muted);
    background: color-mix(in srgb, var(--c) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
}
.check-counts .btn-count b[b-mm5dlkaphr] { font-size: 1.35rem; color: var(--c); font-variant-numeric: tabular-nums; line-height: 1.2; }
.check-counts .btn-count.info[b-mm5dlkaphr] { --c: var(--sr-info); }
.check-counts .btn-count.warn[b-mm5dlkaphr] { --c: var(--sr-warn); }
.check-counts .btn-count:hover[b-mm5dlkaphr] { border-color: var(--c); }
.check-counts .btn-count:focus-visible[b-mm5dlkaphr] { outline: 2px solid var(--c); outline-offset: 2px; }
.reason[b-mm5dlkaphr] { display: inline-flex; align-items: center; gap: .3rem; color: var(--sr-warn); font-weight: 600; }

/* ── เอกสาร ─────────────────────────────────────────────── */
.doc-strip[b-mm5dlkaphr] {
    margin-bottom: 1rem; padding: .9rem 1.1rem;
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #E2E8F0);
    border-radius: 14px;
}
.doc-head[b-mm5dlkaphr] { display: flex; align-items: baseline; gap: .4rem .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.doc-head h2[b-mm5dlkaphr] { margin: 0; font-size: 1rem; display: inline-flex; align-items: center; gap: .4rem; }
.doc-head small[b-mm5dlkaphr] { color: var(--sr-muted); }
.document-summary[b-mm5dlkaphr] { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: .55rem; }
.document-summary > div[b-mm5dlkaphr] { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .85rem; border-radius: 9px; background: var(--color-neutral-100, #f1f3f5); font-variant-numeric: tabular-nums; }
.document-summary span[b-mm5dlkaphr], .document-summary small[b-mm5dlkaphr] { color: var(--sr-muted); font-size: .78rem; }
.document-summary strong[b-mm5dlkaphr] { color: var(--sr-text); font-size: 1.05rem; }
.doc-warnings[b-mm5dlkaphr] { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .75rem; color: var(--sr-warn); font-size: .82rem; }
.doc-warnings small[b-mm5dlkaphr] { flex-basis: 100%; color: var(--sr-muted); }
.doc-note[b-mm5dlkaphr] { margin: .5rem 0 0; font-size: .78rem; color: var(--sr-muted); }
.doc-note.warn[b-mm5dlkaphr] { color: var(--sr-warn); font-size: .85rem; font-weight: 600; margin: 0 0 .75rem; }
.document-list[b-mm5dlkaphr] { margin-top: .7rem; }
.document-list summary[b-mm5dlkaphr] { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--sr-muted); }
.document-actions[b-mm5dlkaphr] { display: flex; justify-content: flex-end; margin: .8rem 0; }

/* ── ตาราง ─────────────────────────────────────────────── */
.sr-table[b-mm5dlkaphr] {
    padding: 1rem 1.1rem;
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #E2E8F0);
    border-radius: 14px;
}
.tbl-toolbar[b-mm5dlkaphr] { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .8rem; }
.tabs[b-mm5dlkaphr] { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1 1 auto; }
.tabs .n[b-mm5dlkaphr] {
    font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
    padding: 0 .4rem; border-radius: 999px;
    background: color-mix(in srgb, var(--sr-muted) 15%, transparent);
}
.tabs .btn-chip.warn .n[b-mm5dlkaphr] { color: var(--sr-warn); background: color-mix(in srgb, var(--sr-warn) 16%, transparent); }
.tabs .btn-chip.active[b-mm5dlkaphr] { color: var(--sr-accent); border-color: color-mix(in srgb, var(--sr-accent) 45%, transparent); background: color-mix(in srgb, var(--sr-accent) 10%, transparent); }

.search[b-mm5dlkaphr] {
    display: inline-flex; align-items: center; gap: .45rem;
    min-width: min(220px, 100%); flex: 0 1 280px;
    padding: .45rem .8rem; border-radius: 999px;
    border: 1px solid var(--card-border, #E2E8F0);
    color: var(--sr-muted);
}
.search input[b-mm5dlkaphr] { border: 0; outline: 0; background: transparent; color: var(--sr-text); font: inherit; font-size: .88rem; width: 100%; min-width: 0; padding: 0; }
.search:focus-within[b-mm5dlkaphr] { border-color: var(--sr-accent); }

.note[b-mm5dlkaphr] { color: var(--sr-muted); font-size: .82rem; margin: 0 0 .7rem; }
.muted[b-mm5dlkaphr] { color: var(--sr-muted); }

.sr-table .data-table td[b-mm5dlkaphr] { vertical-align: middle; }
/* 11 คอลัมน์ต้องพอดีจอ 1440 โดยไม่เลื่อนแนวนอน: padding แคบลง + คอลัมน์ข้อความตัดบรรทัดได้ ตัวเลขห้ามตัด */
.sr-table .data-table th[b-mm5dlkaphr], .sr-table .data-table td[b-mm5dlkaphr] { padding: .55rem .55rem; }
.sr-table .data-table th:first-child[b-mm5dlkaphr], .sr-table .data-table td:first-child[b-mm5dlkaphr] { padding-left: .9rem; }
.sr-table .data-table td.c-text[b-mm5dlkaphr] { white-space: normal; min-width: 6.5rem; max-width: 10rem; }
.sr-table .data-table td .chk[b-mm5dlkaphr] { white-space: normal; max-width: 9.5rem; line-height: 1.3; }
.sr-table .data-table td.c-text small[b-mm5dlkaphr] { display: block; line-height: 1.35; }
.sr-table .data-table td small[b-mm5dlkaphr] { color: var(--sr-muted); font-size: .75rem; }
.sr-table .num[b-mm5dlkaphr] { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sr-table .data-table td.neg[b-mm5dlkaphr] { color: var(--sr-bad); }   /* ต้องชนะ html.dark ... .data-table td */
.sr-table tr.sr-row[b-mm5dlkaphr] { cursor: pointer; }
.sr-table tr.open td[b-mm5dlkaphr] { border-bottom-color: transparent; }
.chev[b-mm5dlkaphr] { width: 1%; text-align: right; }
.doc-no[b-mm5dlkaphr] { font-size: .8rem; font-variant-numeric: tabular-nums; }
.st[b-mm5dlkaphr] { font-size: .78rem; font-weight: 600; white-space: nowrap; }
.st.ok[b-mm5dlkaphr] { color: var(--sr-ok); }
.st.wait[b-mm5dlkaphr] { color: var(--sr-muted); }
/* ข้อมูลที่มีคอลัมน์ในตารางหลักแล้ว โชว์ในแถวขยายเฉพาะจอที่ซ่อนคอลัมน์นั้น */
.narrow-only[b-mm5dlkaphr] { display: none; }
.sr-table tfoot td[b-mm5dlkaphr] { font-weight: 700; border-top: 2px solid var(--card-border, #E2E8F0); }
.document-filters .btn-chip.warn .n[b-mm5dlkaphr] { color: var(--sr-warn); }
@media (max-width: 1100px) {
    .sr-table .c-md[b-mm5dlkaphr] { display: none; }
    .narrow-only[b-mm5dlkaphr] { display: block; }
}

.type-pill[b-mm5dlkaphr] {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .78rem; font-weight: 600;
    padding: .15rem .55rem; border-radius: 999px;
    --c: var(--sr-muted);
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, transparent);
}
.type-pill.t-charge[b-mm5dlkaphr] { --c: var(--sr-ok); }
.type-pill.t-refund[b-mm5dlkaphr] { --c: var(--sr-bad); }
.type-pill.t-fee[b-mm5dlkaphr] { --c: var(--sr-warn); }
.type-pill.t-payout[b-mm5dlkaphr] { --c: var(--sr-info); }

.chk[b-mm5dlkaphr] {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .78rem; font-weight: 600; white-space: nowrap;
    padding: .2rem .6rem; border-radius: 999px;
    --c: var(--sr-muted);
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, transparent);
}
.chk.ok[b-mm5dlkaphr] { --c: var(--sr-ok); }
.chk.info[b-mm5dlkaphr] { --c: var(--sr-info); }
.chk.warn[b-mm5dlkaphr] { --c: var(--sr-warn); border: 1px solid color-mix(in srgb, var(--sr-warn) 40%, transparent); }
.chk.none[b-mm5dlkaphr] { background: transparent; padding-left: 0; }

.detail-row td[b-mm5dlkaphr] { white-space: normal; background: var(--color-neutral-50, #F8F9FA); padding-top: .8rem; padding-bottom: 1rem; }
html.dark .stripe-report .detail-row td[b-mm5dlkaphr] { background: var(--color-neutral-100); }
.chk-note[b-mm5dlkaphr] { display: flex; gap: .45rem; align-items: flex-start; margin: 0 0 .7rem; font-size: .85rem; --c: var(--sr-muted); color: var(--sr-text); }
.chk-note i[b-mm5dlkaphr] { color: var(--c); font-size: 1rem; }
.chk-note.ok[b-mm5dlkaphr] { --c: var(--sr-ok); }
.chk-note.info[b-mm5dlkaphr] { --c: var(--sr-info); }
.chk-note.warn[b-mm5dlkaphr] { --c: var(--sr-warn); font-weight: 600; }
.kv[b-mm5dlkaphr] { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .55rem 1.2rem; margin: 0; }
.kv dt[b-mm5dlkaphr] { font-size: .72rem; color: var(--sr-muted); font-weight: 600; }
.kv dd[b-mm5dlkaphr] { margin: .1rem 0 0; font-size: .85rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kv code[b-mm5dlkaphr] { font-size: .8rem; }

/* ── สถานะกำลังโหลด ────────────────────────────────────── */
.skel[b-mm5dlkaphr] {
    min-height: 120px;
    background: linear-gradient(90deg, var(--card-bg, #f4f6f8) 0%, var(--card-border, #e2e8f0) 50%, var(--card-bg, #f4f6f8) 100%);
    background-size: 200% 100%;
    animation: stripe-report-shimmer-b-mm5dlkaphr 1.2s linear infinite;
    border-radius: 14px;
    border: 1px solid var(--card-border, #e2e8f0);
}
.skel-table[b-mm5dlkaphr] { min-height: 320px; }
@keyframes stripe-report-shimmer-b-mm5dlkaphr {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) { .skel[b-mm5dlkaphr] { animation: none; } }

/* ── dark mode: กฎปุ่มรวมของ app.css (html.dark .citrine-layout button:not(.primary)...) ทับสถานะ active
   ต้องเจาะจงกว่า (0,6,2) ถึงจะชนะ ────────────────────────────────────────── */
html.dark .citrine-layout .stripe-report .seg .btn-chip:not(.primary):not(.secondary)[b-mm5dlkaphr] { background: transparent; border-color: transparent; color: var(--color-neutral-700); }
html.dark .citrine-layout .stripe-report .seg .btn-chip.active:not(.primary):not(.secondary)[b-mm5dlkaphr] { background: var(--card-bg); border-color: var(--card-border); color: var(--color-neutral-900); }
html.dark .citrine-layout .stripe-report .tabs .btn-chip.active:not(.primary):not(.secondary)[b-mm5dlkaphr] {
    color: var(--sr-accent); border-color: color-mix(in srgb, var(--sr-accent) 45%, transparent); background: color-mix(in srgb, var(--sr-accent) 14%, transparent);
}
html.dark .citrine-layout .stripe-report .check-counts .btn-count:not(.primary):not(.secondary)[b-mm5dlkaphr] {
    color: var(--color-neutral-600); background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 30%, transparent);
}
html.dark .citrine-layout .stripe-report .btn-inline-link:not(.primary):not(.secondary)[b-mm5dlkaphr] { background: transparent; border-color: transparent; color: var(--sr-accent); }
html.dark .citrine-layout .stripe-report .btn-view:not(.primary):not(.secondary)[b-mm5dlkaphr] { background: transparent; border-color: transparent; color: var(--color-neutral-600); }
html.dark .citrine-layout .stripe-report .btn-view.active:not(.primary):not(.secondary)[b-mm5dlkaphr] { color: var(--sr-accent); border-bottom-color: var(--sr-accent); }
html.dark .citrine-layout .stripe-report .btn-more:not(.primary):not(.secondary)[b-mm5dlkaphr] { background: none; border: 0; color: var(--sr-accent); }
html.dark .citrine-layout .stripe-report .range input[b-mm5dlkaphr],
html.dark .citrine-layout .stripe-report .search input[b-mm5dlkaphr] { background: transparent; border: 0; }

/* ── ขนาดจอ ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .kpi-grid[b-mm5dlkaphr] { grid-template-columns: 1fr 1fr; }
    .kpi-hero[b-mm5dlkaphr] { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .kpi-grid[b-mm5dlkaphr], .kpi-grid.two[b-mm5dlkaphr] { grid-template-columns: 1fr; }
    .mini-stats[b-mm5dlkaphr] { grid-template-columns: 1fr; }
    .eq-sign[b-mm5dlkaphr] { width: 100%; }
    .kpi-hero .kpi-value[b-mm5dlkaphr] { font-size: 1.75rem; }
    .sr-toolbar[b-mm5dlkaphr], .range[b-mm5dlkaphr] { width: 100%; }
    .range input[b-mm5dlkaphr] { flex: 1 1 7.5rem; }
    .search[b-mm5dlkaphr] { flex: 1 1 100%; }
    /* ข้อมูลของคอลัมน์ที่ซ่อนอยู่ในแถวขยายครบ */
    .sr-table .c-sm[b-mm5dlkaphr] { display: none; }
    .sr-table .data-table td.c-text[b-mm5dlkaphr] { min-width: 0; }
    /* มือถือ: ผลตรวจเหลือไอคอนสี (ข้อความเต็มในแถวขยาย) · แตะทั้งแถวเพื่อขยาย จึงไม่ต้องมีปุ่มลูกศร */
    .sr-table .chk-label[b-mm5dlkaphr], .sr-table .chev[b-mm5dlkaphr] { display: none; }
    .sr-table .data-table td .chk[b-mm5dlkaphr] { padding: .3rem; }
    .sr-table .data-table td[b-mm5dlkaphr] { font-size: .82rem; }
    .sr-table .data-table td.c-text[b-mm5dlkaphr] { max-width: 7.25rem; }
    .sr-table .data-table th[b-mm5dlkaphr] { letter-spacing: 0; }
    /* app.css ตั้ง .data-table { min-width: 600px } บนมือถือให้ทุกตารางเลื่อนแนวนอน — ตารางนี้คอลัมน์มือถือพอดีจอแล้ว */
    .sr-table .data-table[b-mm5dlkaphr] { min-width: 0; }
    .sr-table .data-table th:first-child[b-mm5dlkaphr], .sr-table .data-table td:first-child[b-mm5dlkaphr] { padding-left: .5rem; }
    .sr-table .data-table td[b-mm5dlkaphr], .sr-table .data-table th[b-mm5dlkaphr] { padding-left: .6rem; padding-right: .6rem; }
}
/* _content/CitrineOS.Operator/Components/Pages/Transactions.razor.rz.scp.css */
 .charging-sessions .session-toolbar[b-67m2iou5hi] { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; padding:1rem; margin:1.25rem 0; background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius-lg); }
.session-list-heading[b-67m2iou5hi] { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem 1.2rem; background:var(--card-bg); border:1px solid var(--card-border); border-bottom:0; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.session-list-heading div[b-67m2iou5hi] { display:flex; flex-direction:column; gap:.2rem; }
.session-list-heading strong[b-67m2iou5hi] { color:var(--color-neutral-900); }
.session-list-heading span[b-67m2iou5hi] { color:var(--color-neutral-600); font-size:.8rem; }
.session-scroll[b-67m2iou5hi] { max-height:65vh; overflow:auto; border-radius:0 0 var(--radius-lg) var(--radius-lg); }
.session-table[b-67m2iou5hi] { min-width:1050px; }
.session-table thead th[b-67m2iou5hi] { position:sticky; top:0; z-index:1; background:var(--card-bg); }
.session-table code[b-67m2iou5hi] { overflow-wrap:anywhere; }
/* _content/CitrineOS.Operator/Components/Pages/WalletRefundRequests.razor.rz.scp.css */
.refund-requests[b-69j9jj8hzl] { max-width: 1450px; margin: auto; }
header[b-69j9jj8hzl], .detail-head[b-69j9jj8hzl] { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
header p[b-69j9jj8hzl], .muted[b-69j9jj8hzl] { color:var(--color-neutral-600,#64748b); }
.notice[b-69j9jj8hzl], .error[b-69j9jj8hzl] { padding:.8rem; border-radius:8px; background:var(--color-warning-50,#fffbeb); color:var(--color-warning-700,#92400e); }
.stats[b-69j9jj8hzl] { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1rem; margin:1rem 0; }
.stats div[b-69j9jj8hzl], .detail[b-69j9jj8hzl] { background:var(--card-bg,#fff); border:1px solid var(--card-border,#e2e8f0); border-radius:12px; padding:1rem; }
.stats div[b-69j9jj8hzl] { display:flex; flex-direction:column; gap:.4rem; }
.stats span[b-69j9jj8hzl] { color:var(--color-neutral-600,#64748b); }
.stats strong[b-69j9jj8hzl] { font-size:1.6rem; color:var(--color-primary-500,#17b592); }
.detail[b-69j9jj8hzl] { margin-top:1rem; }
dl[b-69j9jj8hzl] { display:grid; grid-template-columns: max-content 1fr; gap:.5rem 1rem; }
dt[b-69j9jj8hzl] { color:var(--color-neutral-600,#64748b); } dd[b-69j9jj8hzl] { margin:0; overflow-wrap:anywhere; }
.field[b-69j9jj8hzl] { display:grid; gap:.4rem; margin:1rem 0; }
.field input[b-69j9jj8hzl] { padding:.7rem; border:1px solid var(--card-border,#d4dcd8); border-radius:8px; background:var(--card-bg,#fff); color:inherit; }
.actions[b-69j9jj8hzl] { display:flex; flex-wrap:wrap; gap:.5rem; }
/* _content/CitrineOS.Operator/Components/Pages/WalletReport.razor.rz.scp.css */
.wallet-header[b-v3hy89n0xy] { display:flex; justify-content:space-between; gap:1rem; align-items:start; flex-wrap:wrap; }
.wallet-actions[b-v3hy89n0xy] { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; }
.wallet-filters[b-v3hy89n0xy] { display:flex; gap:.875rem; flex-wrap:wrap; align-items:end; margin:1.5rem 0 .25rem; padding:1rem; background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius-md); }
.wallet-filters label[b-v3hy89n0xy] { display:flex; flex-direction:column; gap:.35rem; color:var(--color-neutral-700); font-size:.85rem; font-weight:600; margin:0; }
.wallet-filters input[b-v3hy89n0xy], .wallet-filters select[b-v3hy89n0xy] { min-height:2.75rem; border-radius:var(--radius-md); }
.wallet-dates[b-v3hy89n0xy] { display:flex; gap:.75rem; align-items:end; flex-wrap:wrap; }
.wallet-dates label[b-v3hy89n0xy] { min-width:10rem; }
.wallet-date-separator[b-v3hy89n0xy] { color:var(--color-neutral-500); padding-bottom:.7rem; }
.wallet-search[b-v3hy89n0xy] { min-height:2.75rem; }
.wallet-note[b-v3hy89n0xy] { color:var(--color-neutral-600); margin:.75rem 1rem; font-size:.85rem; }
.wallet-error[b-v3hy89n0xy] { color:var(--color-danger-600, #b42318); }
.wallet-stats[b-v3hy89n0xy] { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:1rem; margin:1.25rem 0; }
@media(max-width:1100px) { .wallet-stats[b-v3hy89n0xy] { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px)  { .wallet-stats[b-v3hy89n0xy] { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.wallet-stat[b-v3hy89n0xy], .wallet-panel[b-v3hy89n0xy] { background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius-md); }
.wallet-stat[b-v3hy89n0xy] { display:flex; flex-direction:column; gap:.4rem; padding:1rem; }
.wallet-stat span[b-v3hy89n0xy], .wallet-stat small[b-v3hy89n0xy] { color:var(--color-neutral-600); }
.wallet-stat strong[b-v3hy89n0xy] { font-size:1.5rem; color:var(--color-primary-500); font-variant-numeric:tabular-nums; }
.wallet-scroll[b-v3hy89n0xy] { width:100%; overflow-x:auto; }
.wallet-scroll table[b-v3hy89n0xy] { border-collapse:collapse; min-width:1100px; width:100%; }
.wallet-scroll th[b-v3hy89n0xy], .wallet-scroll td[b-v3hy89n0xy] { padding:.8rem; text-align:left; border-bottom:1px solid var(--card-border); }
.wallet-scroll th[b-v3hy89n0xy] { color:var(--color-neutral-600); font-size:.85rem; }
.wallet-scroll .num[b-v3hy89n0xy] { text-align:right; font-variant-numeric:tabular-nums; }
.wallet-pager[b-v3hy89n0xy] { display:flex; justify-content:end; align-items:center; gap:.75rem; padding:1rem; flex-wrap:wrap; }
.wallet-row[b-v3hy89n0xy] { cursor:pointer; }
.wallet-row:hover[b-v3hy89n0xy] { background:var(--color-neutral-50); }
.wallet-row.open[b-v3hy89n0xy] { background:var(--color-primary-50); }
.wallet-chev[b-v3hy89n0xy] { background:transparent; border:0; padding:.2rem .35rem; color:var(--color-neutral-600); cursor:pointer; }
.wallet-row.open .wallet-chev[b-v3hy89n0xy] { color:var(--color-primary-500); }
.wallet-sub-row > td[b-v3hy89n0xy] { padding:0 .75rem 1rem; background:var(--color-neutral-50); }
.wallet-sub[b-v3hy89n0xy] { width:100%; border-collapse:collapse; margin:.5rem 0 .25rem; background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius-md); overflow:hidden; }
.wallet-sub th[b-v3hy89n0xy], .wallet-sub td[b-v3hy89n0xy] { padding:.55rem .75rem; border-bottom:1px solid var(--card-border); font-size:.85rem; text-align:left; }
.wallet-sub th[b-v3hy89n0xy] { color:var(--color-neutral-600); background:var(--color-neutral-50); font-weight:600; }
.wallet-sub tr:last-child td[b-v3hy89n0xy] { border-bottom:0; }
.wallet-sub .num[b-v3hy89n0xy] { text-align:right; font-variant-numeric:tabular-nums; }
.wallet-super th[b-v3hy89n0xy] { padding:.4rem .75rem; font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--color-neutral-600); text-align:center; border-bottom:0; }
.wallet-super th.group-balance[b-v3hy89n0xy] { background:var(--color-neutral-100); border-radius:var(--radius-md) var(--radius-md) 0 0; }
.wallet-super th.group-flow[b-v3hy89n0xy]    { background:var(--color-primary-50); color:var(--color-primary-500); border-radius:var(--radius-md) var(--radius-md) 0 0; }
.wallet-scroll thead th.group-balance[b-v3hy89n0xy] { background:rgba(241,243,245,.6); }
.wallet-scroll thead th.group-flow[b-v3hy89n0xy]    { background:rgba(238,251,246,.7); }
.wallet-row.open td:nth-child(n)[b-v3hy89n0xy] { background:var(--color-primary-50); }
.wallet-sub-row > td[b-v3hy89n0xy] { background:var(--color-neutral-50) !important; }
@media(max-width:600px) { .wallet-stats[b-v3hy89n0xy] { grid-template-columns:1fr; } .wallet-filters > label[b-v3hy89n0xy], .wallet-dates[b-v3hy89n0xy] { width:100%; } .wallet-dates[b-v3hy89n0xy] { flex-wrap:nowrap; } .wallet-dates label[b-v3hy89n0xy] { flex:1; min-width:0; } }

/* สมการปิดยอด + แถวทีละการจ่าย (docs/SPEC-wallet-report-reconcile.md) — neutral-* สลับตาม dark mode */
.sub-line[b-v3hy89n0xy] { display:block; font-size:.75rem; color:var(--color-neutral-600); font-weight:400; }
.chk-warn[b-v3hy89n0xy] { color:var(--color-danger-600, #b42318); font-weight:700; white-space:nowrap; }
/* _content/CitrineOS.Operator/Components/Shared/ChargingReportChart.razor.rz.scp.css */
/* ChargingReportChart — SVG colors ไปอยู่ CSS vars เพื่อให้ dark mode สลับได้.
   SVG attribute fill/stroke รับ currentColor ผ่าน class → style ที่นี่. */

.chart-panel[b-79zvdqj25f] {
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: var(--radius-lg, 14px);
    padding: 1.1rem;
    min-width: 0;
}
.chart-heading[b-79zvdqj25f] {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}
.chart-heading h3[b-79zvdqj25f] { margin: 0 0 .3rem; font-size: 1rem; }
.chart-heading small[b-79zvdqj25f],
.chart-panel > small[b-79zvdqj25f],
.chart-empty[b-79zvdqj25f] { color: var(--color-neutral-600, #64748b); }
.chart-unit[b-79zvdqj25f] {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: var(--color-primary-50, #eff8f3);
    color: var(--color-primary-500, #17B592);
    font-size: .74rem;
    font-weight: 600;
    margin-top: .2rem;
}

.chart-scroll[b-79zvdqj25f] { overflow-x: auto; max-width: 100%; }
.chart-scroll svg[b-79zvdqj25f] { display: block; }
.chart-scroll g[b-79zvdqj25f] { cursor: pointer; }
.chart-scroll g:focus[b-79zvdqj25f] { outline: none; filter: drop-shadow(0 0 3px var(--color-primary-500, #17B592)); }

/* SVG styling ผ่าน class — Blazor scoped CSS จะไม่ reach <svg> descendants
   เพราะ SVG อยู่ caller DOM, แต่ component นี้ไม่ scoped (ไม่มี @attribute)
   ใช้ fill/stroke attribute แบบ var() ไม่ได้ทุก browser → ใช้ class แทน. */
.chart-title[b-79zvdqj25f] { fill: var(--color-neutral-700, #334155); }
.chart-axis[b-79zvdqj25f] { stroke: var(--card-border, #cbd5e1); }
.chart-grid[b-79zvdqj25f] { stroke: var(--card-border, #e2e8f0); stroke-dasharray: 2 3; }
.chart-axis-text[b-79zvdqj25f] { fill: var(--color-neutral-600, #64748b); }
.chart-bar[b-79zvdqj25f] { fill: var(--color-primary-500, #17B592); }
.chart-value-top[b-79zvdqj25f] {
    fill: var(--color-neutral-800, #1e293b);
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
}
/* _content/CitrineOS.Operator/Components/Shared/CopyRef.razor.rz.scp.css */
.btn-copy-ref[b-t1wngjvrrz] { border: 0; background: transparent; color: var(--color-primary-600, #168568); cursor: pointer; padding: .15rem .35rem; border-radius: .3rem; font-size: 1rem; line-height: 1; }
.btn-copy-ref:hover[b-t1wngjvrrz], .btn-copy-ref:focus-visible[b-t1wngjvrrz] { background: var(--color-neutral-100, #f1f3f5); outline-offset: 2px; }
