
/* BILNET PPPoE Billing — inherit the active BILNET theme tokens. */
body.mikhmon-modern .bill-wrap { color:var(--mm-text); padding:18px 18px 28px; }
body.mikhmon-modern .bill-stat, body.mikhmon-modern .bill-panel, body.mikhmon-modern .bill-note { background:var(--mm-surface); border-color:var(--mm-border); color:var(--mm-text); box-shadow:var(--mm-shadow); }
body.mikhmon-modern .bill-stat strong, body.mikhmon-modern .bill-panel-head h3, body.mikhmon-modern .bill-note strong { color:var(--mm-text); }
body.mikhmon-modern .bill-stat span, body.mikhmon-modern .bill-stat small, body.mikhmon-modern .bill-panel-head p, body.mikhmon-modern .bill-form label, body.mikhmon-modern .bill-table td small, body.mikhmon-modern .bill-note p { color:var(--mm-muted); }
body.mikhmon-modern .bill-panel-head { border-color:var(--mm-border); }
body.mikhmon-modern .bill-form input, body.mikhmon-modern .bill-form select, body.mikhmon-modern .bill-panel-head input { background:var(--mm-surface-alt); border-color:var(--mm-border); color:var(--mm-text); }
body.mikhmon-modern .bill-table th { background:var(--mm-surface-alt); color:var(--mm-muted); }
body.mikhmon-modern .bill-table th, body.mikhmon-modern .bill-table td { border-color:var(--mm-border); }
body.mikhmon-modern .bill-edit-row td { background:var(--mm-surface-alt); }
body.mikhmon-modern .bill-button { background:var(--mm-accent); color:#fff; }
body.mikhmon-modern .bill-button:hover { background:var(--mm-accent-strong); }
body.mikhmon-modern .bill-hero { background:linear-gradient(120deg,#0c1c30,#173b5b); }
body.mikhmon-modern .bill-wrap code { color:var(--mm-accent); }
@media(max-width:800px){body.mikhmon-modern .bill-wrap{padding:10px}.bill-grid{gap:12px}.bill-stats{gap:10px}}


/* Stage 25.1 — complete billing layout (the previous file only had theme overrides). */
body.mikhmon-modern .bill-wrap {
  width:100%; max-width:1500px; margin:0 auto; padding:18px 20px 32px;
  box-sizing:border-box; color:var(--mm-text); font-size:14px; line-height:1.5;
}
body.mikhmon-modern .bill-wrap * { box-sizing:border-box; }
body.mikhmon-modern .bill-hero {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:22px 24px; margin:0 0 18px; border-radius:14px;
  background:linear-gradient(120deg,#10243a,#19486a); color:#fff;
}
body.mikhmon-modern .bill-hero > div:first-child { min-width:0; }
body.mikhmon-modern .bill-eyebrow { font-size:11px; letter-spacing:.12em; font-weight:800; opacity:.75; margin-bottom:5px; }
body.mikhmon-modern .bill-hero h2 { color:#fff!important; font-size:23px; line-height:1.2; margin:0 0 7px; font-weight:800; }
body.mikhmon-modern .bill-hero p { color:#d6e6f4!important; margin:0; font-size:13px; }
body.mikhmon-modern .bill-chip { flex:0 0 auto; padding:9px 13px; border:1px solid #ffffff35; border-radius:999px; color:#e8f4ff; font-size:12px; }
body.mikhmon-modern .bill-alert, body.mikhmon-modern .bill-success {
  display:block; padding:12px 15px; margin:0 0 14px; border-radius:10px; line-height:1.5;
}
body.mikhmon-modern .bill-alert { background:#7f1d1d18; border:1px solid #ef444466; color:var(--mm-text); }
body.mikhmon-modern .bill-success { background:#16a34a18; border:1px solid #16a34a66; color:var(--mm-text); }
body.mikhmon-modern .bill-alert p { margin:7px 0 0; }
body.mikhmon-modern .bill-stats {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 18px;
}
body.mikhmon-modern .bill-stat {
  min-width:0; min-height:112px; padding:15px 17px; border:1px solid var(--mm-border);
  border-radius:12px; display:flex; flex-direction:column; justify-content:center; gap:4px;
}
body.mikhmon-modern .bill-stat span { display:block; font-size:12px; }
body.mikhmon-modern .bill-stat strong { display:block; font-size:25px; line-height:1.2; font-weight:800; }
body.mikhmon-modern .bill-stat small { display:block; font-size:11px; }
body.mikhmon-modern .bill-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; align-items:start; }
body.mikhmon-modern .bill-panel {
  min-width:0; width:100%; padding:18px; border:1px solid var(--mm-border);
  border-radius:13px; overflow:hidden;
}
body.mikhmon-modern .bill-panel-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  flex-wrap:wrap; padding:0 0 14px; margin:0 0 15px; border-bottom:1px solid var(--mm-border);
}
body.mikhmon-modern .bill-panel-head > div { min-width:0; }
body.mikhmon-modern .bill-panel-head h3 { margin:0 0 4px; font-size:16px; line-height:1.35; font-weight:800; }
body.mikhmon-modern .bill-panel-head p { margin:0; font-size:12px; }
body.mikhmon-modern .bill-panel-head input { width:min(260px,100%); }
body.mikhmon-modern .bill-form {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; align-items:end;
}
body.mikhmon-modern .bill-form > label,
body.mikhmon-modern .bill-form .bill-two { display:flex; flex-direction:column; min-width:0; gap:6px; margin:0; }
body.mikhmon-modern .bill-form label { font-size:12px; line-height:1.4; font-weight:700; }
body.mikhmon-modern .bill-form input,
body.mikhmon-modern .bill-form select,
body.mikhmon-modern .bill-panel-head input {
  display:block; width:100%; min-width:0; height:40px; margin:0; padding:8px 11px;
  border:1px solid var(--mm-border); border-radius:8px; font:inherit; font-size:13px;
  outline:none; box-shadow:none;
}
body.mikhmon-modern .bill-form input:focus,
body.mikhmon-modern .bill-form select:focus,
body.mikhmon-modern .bill-panel-head input:focus { border-color:var(--mm-accent); }
body.mikhmon-modern .bill-form small { display:block; font-size:11px; font-weight:400; line-height:1.45; }
body.mikhmon-modern .bill-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.mikhmon-modern .bill-two > label { display:flex; flex-direction:column; min-width:0; gap:6px; margin:0; }
body.mikhmon-modern .bill-button {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px;
  width:max-content; max-width:100%; padding:8px 14px; border:0; border-radius:8px;
  font-size:12px; font-weight:700; line-height:1.3; cursor:pointer; text-decoration:none;
}
body.mikhmon-modern .bill-form > .bill-button { align-self:end; }
body.mikhmon-modern .bill-table-wrap { width:100%; overflow-x:auto; border:1px solid var(--mm-border); border-radius:10px; }
body.mikhmon-modern .bill-table { width:100%; min-width:760px; border-collapse:collapse; border-spacing:0; margin:0; }
body.mikhmon-modern .bill-table th { padding:11px 12px; text-align:left; white-space:nowrap; font-size:10px; letter-spacing:.04em; font-weight:800; }
body.mikhmon-modern .bill-table td { padding:12px; vertical-align:middle; border-top:1px solid var(--mm-border); font-size:12px; }
body.mikhmon-modern .bill-table td strong { display:block; font-size:12px; }
body.mikhmon-modern .bill-table td small { display:block; margin-top:3px; font-size:11px; overflow-wrap:anywhere; }
body.mikhmon-modern .bill-empty { text-align:center; padding:24px!important; }
body.mikhmon-modern .bill-status { display:inline-flex; padding:5px 9px; border-radius:999px; font-size:10px; font-weight:800; white-space:nowrap; }
body.mikhmon-modern .bill-status.is-active { background:#16a34a1a; color:#22a45a; }
body.mikhmon-modern .bill-status.is-due { background:#d977061a; color:#d97706; }
body.mikhmon-modern .bill-status.is-isolated { background:#dc26261a; color:#ef4444; }
body.mikhmon-modern .bill-muted { opacity:.75; }
body.mikhmon-modern .bill-edit-row td { padding:16px; }
body.mikhmon-modern .bill-edit-form { max-width:100%; }
body.mikhmon-modern .bill-edit-form > small { grid-column:1/-1; }
body.mikhmon-modern .bill-note {
  display:flex; align-items:flex-start; gap:12px; margin-top:16px; padding:15px 17px;
  border:1px solid var(--mm-border); border-radius:12px;
}
body.mikhmon-modern .bill-note > i { margin-top:3px; color:var(--mm-accent); }
body.mikhmon-modern .bill-note p { margin:5px 0 0; font-size:12px; line-height:1.6; }
@media (min-width:1200px) {
  body.mikhmon-modern .bill-form { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body.mikhmon-modern .bill-form .bill-two { grid-column:span 1; }
}
@media (max-width:900px) {
  body.mikhmon-modern .bill-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.mikhmon-modern .bill-wrap { padding:12px; }
}
@media (max-width:600px) {
  body.mikhmon-modern .bill-hero { display:block; padding:17px; }
  body.mikhmon-modern .bill-chip { display:inline-block; margin-top:12px; }
  body.mikhmon-modern .bill-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  body.mikhmon-modern .bill-stat { min-height:95px; padding:11px; }
  body.mikhmon-modern .bill-stat strong { font-size:21px; }
  body.mikhmon-modern .bill-panel { padding:13px; }
  body.mikhmon-modern .bill-form,
  body.mikhmon-modern .bill-two { grid-template-columns:minmax(0,1fr); }
  body.mikhmon-modern .bill-form > .bill-button { width:100%; }
  body.mikhmon-modern .bill-panel-head input { width:100%; }
}

/* Stage 26 — GoWA settings */
body.mikhmon-modern .bill-form .gowa-check { display:flex; flex-direction:row; align-items:center; gap:9px; grid-column:1/-1; }
body.mikhmon-modern .bill-form .gowa-check input { width:17px; height:17px; margin:0; flex:0 0 auto; }
body.mikhmon-modern .bill-actions { display:flex; flex-wrap:wrap; gap:9px; grid-column:1/-1; }
body.mikhmon-modern .bill-button-secondary { border:1px solid var(--mm-border); background:transparent; color:var(--mm-text); }
@media (max-width:600px) { body.mikhmon-modern .bill-actions .bill-button { width:100%; } }


/* Stage 34 — compact, aligned settings pages */
body.mikhmon-modern .bill-settings-form {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px; align-items:end;
}
body.mikhmon-modern .bill-settings-form > label { min-width:0; display:flex; flex-direction:column; gap:7px; margin:0; }
body.mikhmon-modern .bill-settings-form > .bill-two { min-width:0; }
body.mikhmon-modern .bill-settings-form .gowa-check,
body.mikhmon-modern .bill-settings-form .bill-actions { grid-column:1/-1; }
body.mikhmon-modern .bill-settings-form .bill-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
body.mikhmon-modern .bill-settings-form .bill-two > label { display:flex; flex-direction:column; gap:7px; min-width:0; }
body.mikhmon-modern .bill-settings-form .bill-three { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
body.mikhmon-modern .bill-settings-form .bill-three > label { display:flex; flex-direction:column; gap:7px; min-width:0; }
body.mikhmon-modern .bill-settings-form input,
body.mikhmon-modern .bill-settings-form select { width:100%; min-width:0; }
@media(max-width:760px) {
 body.mikhmon-modern .bill-settings-form,
 body.mikhmon-modern .bill-settings-form .bill-two,
 body.mikhmon-modern .bill-settings-form .bill-three { grid-template-columns:minmax(0,1fr); }
}

/* Stage 35 — billing action controls and compact cron guidance */
body.mikhmon-modern .bill-row-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
body.mikhmon-modern .bill-delete-form { display:inline-flex; margin:0; }
body.mikhmon-modern .bill-button-danger { background:#7f1d1d!important; color:#fff!important; }
body.mikhmon-modern .bill-cron-note p { margin:0 0 10px; font-size:12px; line-height:1.6; }
body.mikhmon-modern .bill-cron-command { display:block; padding:10px 12px; border:1px solid var(--mm-border); border-radius:8px; overflow-wrap:anywhere; font-size:11px; }
body.mikhmon-modern .bill-cron-note small { display:block; margin-top:8px; font-size:11px; }

/* Stage 37 UI refinement — customer form, GoWA templates, spacing and sidebar */
body.mikhmon-modern .bill-customer-form {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px 16px;
  align-items:end;
}
body.mikhmon-modern .bill-customer-form > .bill-button {
  grid-column:1;
  justify-self:start;
  align-self:end;
  width:max-content;
}
body.mikhmon-modern .bill-wrap > .bill-panel { margin-bottom:16px; }
body.mikhmon-modern .bill-wrap > .bill-panel:last-child { margin-bottom:0; }
body.mikhmon-modern .dropdown-container a .fa-database {
  display:inline-block;
  width:16px;
  font-size:13px;
  line-height:1;
  vertical-align:middle;
}
@media (max-width:600px) {
  body.mikhmon-modern .bill-customer-form { grid-template-columns:minmax(0,1fr) !important; }
  body.mikhmon-modern .bill-customer-form > .bill-button { width:100%; }
}


/* Stage38 — modal result, POST/Redirect/GET companion UI. */
body.mikhmon-modern .bill-result-backdrop {
  position:fixed; inset:0; z-index:100000; display:flex; align-items:center; justify-content:center;
  padding:20px; background:rgba(2,8,18,.72); backdrop-filter:blur(4px);
}
body.mikhmon-modern .bill-result-card {
  width:min(440px,100%); padding:26px 24px; border:1px solid var(--mm-border); border-radius:16px;
  background:var(--mm-surface); color:var(--mm-text); text-align:center; box-shadow:0 24px 80px rgba(0,0,0,.42);
}
body.mikhmon-modern .bill-result-card h3 { margin:10px 0 8px; color:var(--mm-text); font-size:19px; font-weight:800; }
body.mikhmon-modern .bill-result-card p { margin:0 0 18px; color:var(--mm-muted); line-height:1.6; font-size:13px; }
body.mikhmon-modern .bill-result-icon { width:54px; height:54px; display:flex; align-items:center; justify-content:center; margin:0 auto; border-radius:50%; font-size:25px; }
body.mikhmon-modern .bill-result-icon.is-success { color:#22c55e; background:rgba(34,197,94,.13); }
body.mikhmon-modern .bill-result-icon.is-error { color:#ef4444; background:rgba(239,68,68,.13); }
body.mikhmon-modern .bill-edit-row:not(.is-open) { display:none!important; }
body.mikhmon-modern .bill-cash-form { display:inline-flex; margin:0; }

/* Stage 42 — report metric cards in one horizontal row */
body.mikhmon-modern .bill-report-metrics {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}
body.mikhmon-modern .bill-report-metrics > .bill-stat {
  min-width:0;
  min-height:112px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
@media(max-width:760px){
  body.mikhmon-modern .bill-report-metrics { grid-template-columns:1fr; }
}

/* Stage 47 — unified BILNET hero and consistent legacy controls */
body.mikhmon-modern .bilnet-page-hero {
  width:100%; display:flex; flex-direction:column; justify-content:center; gap:3px;
  min-height:88px; margin:0 0 16px; padding:18px 22px; box-sizing:border-box;
  border-radius:14px; color:#fff; background:linear-gradient(120deg,#10243a,#19486a);
  border:1px solid rgba(255,255,255,.035);
}
body.mikhmon-modern .bilnet-page-eyebrow {font-size:10px;letter-spacing:.12em;font-weight:800;opacity:.72;line-height:1.4}
body.mikhmon-modern .bilnet-page-hero h2 {margin:0!important;padding:0!important;color:#fff!important;font-size:22px!important;line-height:1.25!important;font-weight:800!important}
/* Existing BILNET hero blocks use the same title-only treatment. */
body.mikhmon-modern .bill-hero p, body.mikhmon-modern .acs-hero p {display:none!important}
body.mikhmon-modern .bill-hero, body.mikhmon-modern .acs-hero {min-height:88px;padding:18px 22px!important;margin-bottom:16px!important}
/* Normalize labels and fields across Hotspot, PPP, Monitoring, Voucher, Log and System pages. */
body.mikhmon-modern .main-container label {line-height:1.4}
body.mikhmon-modern .main-container input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),
body.mikhmon-modern .main-container select,
body.mikhmon-modern .main-container textarea {
  box-sizing:border-box; min-height:40px; padding:8px 11px; border-radius:8px;
  font-family:inherit; font-size:13px; line-height:1.35;
}
body.mikhmon-modern .main-container input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),
body.mikhmon-modern .main-container select {height:40px}
body.mikhmon-modern .main-container button, body.mikhmon-modern .main-container input[type=submit],
body.mikhmon-modern .main-container input[type=button] {min-height:38px;border-radius:8px;font-size:12px;font-weight:700}
body.mikhmon-modern .main-container .card, body.mikhmon-modern .main-container .panel {border-radius:12px}
@media(max-width:650px){body.mikhmon-modern .bilnet-page-hero{min-height:76px;padding:15px 16px}.bilnet-page-hero h2{font-size:19px!important}}
/* Stage 47 — shared modal notification matching PPPoE Billing */
body.mikhmon-modern .bilnet-notice-backdrop{position:fixed;inset:0;z-index:100001;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(2,8,18,.74);backdrop-filter:blur(4px)}
body.mikhmon-modern .bilnet-notice-card{width:min(420px,100%);padding:24px;border:1px solid var(--mm-border);border-radius:15px;background:var(--mm-surface);color:var(--mm-text);text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.42)}
body.mikhmon-modern .bilnet-notice-icon{width:52px;height:52px;margin:0 auto 10px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(34,197,94,.13);color:#22c55e;font-size:24px}
body.mikhmon-modern .bilnet-notice-card h3{margin:0 0 8px;font-size:18px;font-weight:800}
body.mikhmon-modern .bilnet-notice-card p{margin:0 0 17px;color:var(--mm-muted);font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
body.mikhmon-modern .bilnet-notice-card button{min-width:100px;padding:9px 16px;border:0;border-radius:8px;background:var(--mm-accent);color:#fff;font-weight:700;cursor:pointer}
body.mikhmon-modern .bilnet-notice-icon.is-error{background:rgba(239,68,68,.13);color:#ef4444}

/* Stage48 — consistent compact controls and table rhythm across legacy modules. */
body.mikhmon-modern .main-container button,
body.mikhmon-modern .main-container input[type="submit"],
body.mikhmon-modern .main-container input[type="button"],
body.mikhmon-modern .main-container a.btn,
body.mikhmon-modern .main-container .btn {
  box-sizing:border-box; min-height:36px; height:36px; padding:0 12px;
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  border-radius:8px; font-size:12px; line-height:1.2; font-weight:700;
  vertical-align:middle; white-space:nowrap;
}
body.mikhmon-modern .main-container label {font-size:12px; line-height:1.4; font-weight:600;}
body.mikhmon-modern .main-container label input:not([type="checkbox"]):not([type="radio"]),
body.mikhmon-modern .main-container label select,
body.mikhmon-modern .main-container label textarea {
  width:100%; min-width:0; box-sizing:border-box;
}
body.mikhmon-modern .main-container table {border-collapse:separate; border-spacing:0;}
body.mikhmon-modern .main-container table th {
  padding:10px 12px; font-size:10px; line-height:1.35; font-weight:800;
  letter-spacing:.035em; vertical-align:middle;
}
body.mikhmon-modern .main-container table td {
  padding:10px 12px; font-size:12px; line-height:1.4; vertical-align:middle;
}
body.mikhmon-modern .main-container table td small {font-size:11px; line-height:1.35;}
body.mikhmon-modern .main-container input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
body.mikhmon-modern .main-container select {height:38px; min-height:38px; padding:7px 10px; font-size:12px;}
body.mikhmon-modern .main-container textarea {min-height:76px; padding:8px 10px; font-size:12px;}
@media(max-width:650px){
  body.mikhmon-modern .main-container button,
  body.mikhmon-modern .main-container input[type="submit"],
  body.mikhmon-modern .main-container input[type="button"],
  body.mikhmon-modern .main-container a.btn,
  body.mikhmon-modern .main-container .btn {min-height:36px;height:36px;padding:0 10px;font-size:11px;}
}

/* Stage48 — consistent compact controls and table rhythm across legacy modules. */
body.mikhmon-modern .main-container button,
body.mikhmon-modern .main-container input[type="submit"],
body.mikhmon-modern .main-container input[type="button"],
body.mikhmon-modern .main-container a.btn,
body.mikhmon-modern .main-container .btn {
  box-sizing:border-box; min-height:36px; height:36px; padding:0 12px;
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  border-radius:8px; font-size:12px; line-height:1.2; font-weight:700;
  vertical-align:middle; white-space:nowrap;
}
body.mikhmon-modern .main-container label {font-size:12px; line-height:1.4; font-weight:600;}
body.mikhmon-modern .main-container label input:not([type="checkbox"]):not([type="radio"]),
body.mikhmon-modern .main-container label select,
body.mikhmon-modern .main-container label textarea {width:100%; min-width:0; box-sizing:border-box;}
body.mikhmon-modern .main-container table {border-collapse:separate; border-spacing:0;}
body.mikhmon-modern .main-container table th {padding:10px 12px; font-size:10px; line-height:1.35; font-weight:800; letter-spacing:.035em; vertical-align:middle;}
body.mikhmon-modern .main-container table td {padding:10px 12px; font-size:12px; line-height:1.4; vertical-align:middle;}
body.mikhmon-modern .main-container table td small {font-size:11px; line-height:1.35;}
body.mikhmon-modern .main-container input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
body.mikhmon-modern .main-container select {height:38px; min-height:38px; padding:7px 10px; font-size:12px;}
body.mikhmon-modern .main-container textarea {min-height:76px; padding:8px 10px; font-size:12px;}
@media(max-width:650px){
  body.mikhmon-modern .main-container button,
  body.mikhmon-modern .main-container input[type="submit"],
  body.mikhmon-modern .main-container input[type="button"],
  body.mikhmon-modern .main-container a.btn,
  body.mikhmon-modern .main-container .btn {min-height:36px;height:36px;padding:0 10px;font-size:11px;}
}


/* Stage51 — compact billing disclosures and horizontal report metrics */
body.mikhmon-modern .bill-collapsible>summary{list-style:none;display:flex;align-items:center;gap:9px;font-weight:800;cursor:pointer}
body.mikhmon-modern .bill-collapsible>summary::-webkit-details-marker{display:none}
body.mikhmon-modern .bill-collapsible>summary::marker{content:""}
body.mikhmon-modern .bill-collapsible>summary span{display:none!important}
body.mikhmon-modern .bill-report-head{justify-content:flex-start!important}
body.mikhmon-modern .bill-report-head form{justify-content:flex-start!important;margin:0!important}
body.mikhmon-modern .bill-report-head input[type=month]{max-width:180px}
@media(max-width:760px){
 body.mikhmon-modern .bill-report-metrics{grid-template-columns:repeat(3,minmax(145px,1fr))!important;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:5px}
 body.mikhmon-modern .bill-report-metrics>.bill-stat{min-height:96px;padding:12px;}
}

/* Stage52: report cards stay in one fixed row on phones; no horizontal scrolling. */
body.mikhmon-modern .bill-report-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;min-width:0!important;padding:0!important}
body.mikhmon-modern .bill-report-metrics>.bill-stat{min-width:0!important;width:auto!important;min-height:86px!important;padding:10px!important;overflow:hidden!important}
body.mikhmon-modern .bill-report-metrics>.bill-stat strong{font-size:clamp(14px,3.8vw,22px)!important;line-height:1.2;overflow-wrap:anywhere}
body.mikhmon-modern .bill-report-metrics>.bill-stat span{font-size:clamp(9px,2.5vw,12px)!important;line-height:1.25;overflow-wrap:anywhere}
body.mikhmon-modern .bill-report-head form{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;width:100%!important}
body.mikhmon-modern .bill-report-month-select{height:38px!important;min-width:0!important;width:145px!important;max-width:48%!important;background:var(--mm-surface-alt)!important;color:var(--mm-text)!important;border:1px solid var(--mm-border)!important;border-radius:9px!important;padding:0 9px!important}
body.mikhmon-modern .bill-report-head .bill-button{height:38px!important;min-height:38px!important;white-space:nowrap!important;padding:0 10px!important;font-size:11px!important}
@media(max-width:760px){body.mikhmon-modern .bill-report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}body.mikhmon-modern .bill-report-metrics>.bill-stat{min-height:82px!important;padding:8px!important}body.mikhmon-modern .bill-report-head form{justify-content:flex-start!important}}
