.httm21{max-width:1500px}.httm21-head{background:linear-gradient(110deg,#273d7a,#4769ca);padding:22px 28px;border-radius:17px;color:white;margin:18px 0}.httm21-head h1,.httm21-head p{color:white;margin:0}.httm21-head p{opacity:.8;margin-top:8px}.httm21-panel,.httm21-public{background:#fff;border:1px solid #e1e7f2;border-radius:16px;padding:23px;margin:18px 0;box-shadow:0 7px 24px rgba(22,45,91,.05)}.httm21-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.httm21-grid label,.httm21-public label{display:flex;flex-direction:column;gap:7px;font-weight:600}.httm21-grid input,.httm21-grid select,.httm21-filters input,.httm21-filters select,.httm21-public input,.httm21-public select{max-width:100%;width:100%;border:1px solid #cad5e9;border-radius:9px;padding:8px;min-height:40px;box-sizing:border-box}.httm21-filters,.httm21-row{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:10px 0 17px}.httm21-filters input,.httm21-filters select{width:auto;min-width:145px}.httm21-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:13px;margin:16px 0}.httm21-stats>div{background:#f1f5fd;padding:17px;border-radius:11px;display:flex;flex-direction:column;gap:8px}.httm21-stats strong{font-size:20px;color:#233d83}.httm21-overflow{overflow:auto}.httm21 table{min-width:780px}.httm21 td{vertical-align:middle}.httm21 td form{display:inline-flex;gap:5px;flex-wrap:wrap;align-items:center}.httm21 td input,.httm21 td select{min-width:95px;max-width:210px}.httm21-danger{color:#b42318!important}.httm21-shortlink{padding:10px 16px;background:#eef3ff;border-radius:10px;margin:12px 0}.httm21-public{max-width:850px;margin:20px auto}.httm21-public button{background:#3656b8;color:white;border:0;padding:12px 23px;border-radius:9px;cursor:pointer}@media(max-width:750px){.httm21-grid{grid-template-columns:1fr}.httm21-panel{padding:15px}.httm21-filters>*{width:100%!important}}

/* HTTM Admin 2.7 – khu quản trị theo mẫu được duyệt */
.httm21 .httm21-head{border-radius:12px;background:linear-gradient(105deg,#29417e,#4969ca);padding:22px 26px}
.httm21 .httm21-panel{border-radius:16px;border:1px solid #e0e8f8;box-shadow:0 8px 24px rgba(20,48,100,.04)}
.httm21 .httm21-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.httm21 .httm21-overflow table{border-radius:12px;overflow:hidden}
.httm21 .httm21-overflow thead th{background:#f0f4fd;color:#263d79;text-transform:uppercase;font-size:12px}
.httm21 .httm27-shortcuts{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.httm21 .httm27-shortcuts .button{border-color:#cad6f6;color:#284da5;padding:5px 14px}
.httm21 td .button{border-radius:8px}.httm21 .httm21-grid{align-items:end}

/* HTTM 2.8: admin compact, readable single-page workspaces */
.httm21{max-width:1450px;font-size:14px;line-height:1.55;color:#183153}
.httm21 .httm21-head{padding:17px 22px;margin:12px 0 16px;border-radius:13px;background:linear-gradient(110deg,#2c4386,#4565c2)}
.httm21 .httm21-head h1{font-size:22px;font-weight:700;line-height:1.3}
.httm21 .httm21-head p{font-size:13px;opacity:1;color:#e7efff}
.httm21 .httm21-panel{margin:14px 0;padding:20px 22px;box-shadow:0 3px 13px rgba(30,55,100,.045)}
.httm21 .httm21-panel h2{font-size:17px;margin:0 0 16px;color:#203961}
.httm21 .httm21-grid label{color:#263b5e;font-size:13px}
.httm21 input,.httm21 select{font-size:14px;color:#172d50}
.httm21 .description,.httm21 p{color:#354f72}
.httm21 .notice{background:#eef6ff;border-left:4px solid #3157af;border-radius:5px;box-shadow:none;margin:12px 0;padding:7px 10px}
.httm21 .notice p{font-size:14px;color:#173b78;font-weight:600}
.httm21 .httm21-filters{gap:9px}
.httm21 .httm21-stats{gap:10px}
.httm21 .httm21-stats>div{padding:12px 14px}
.httm21 .httm21-stats strong{font-size:19px}
.httm21 .httm21-overflow thead th{background:#f1f5fd;color:#233b6d}
.httm21 .httm21-overflow td{font-size:13px;line-height:1.5}
.httm21 #httm28-student-picker{width:100%;min-width:0}
.httm21 .httm21-grid input[type=hidden]{display:none}
@media(max-width:760px){.httm21 .httm21-head{padding:15px}.httm21 .httm21-panel{padding:15px}}

.httm21 .httm29-stop{color:#995000!important;border-color:#e2bd7c!important;background:#fffaf0!important}.httm21 .httm29-ended{color:#506078;font-weight:600;font-size:12px}

.httm21 .httm-refund{margin-top:10px;padding:9px 12px;background:#fff8ed;border:1px solid #ecd6b5;border-radius:9px;max-width:360px}.httm21 .httm-refund summary{cursor:pointer;font-weight:700;color:#825214}.httm21 .httm-refund form{display:grid;gap:7px;margin-top:10px}.httm21 .httm-refund label{display:grid;gap:4px;color:#15243d;font-size:12px;font-weight:600}.httm21 .httm-refund input,.httm21 .httm-refund select{max-width:100%;width:100%}.httm21 .httm-refund-submit{margin-top:4px;color:#8a3a11!important}.httm21 .httm-refund p{margin:3px 0 7px}

.httm21 .httm-add-student-button{background:#3658c8!important;color:#fff!important;border-color:#3658c8!important;font-weight:600;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border-radius:8px;text-decoration:none}.httm21 .httm-add-student-button:hover{background:#2747ab!important;border-color:#2747ab!important}

/* Bulk enrollment */
.httm-bulk-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 10px}.httm-bulk-toolbar input[type=search]{min-width:220px;max-width:380px}.httm-bulk-checkall{display:flex;align-items:center;gap:6px}.httm-bulk-roster{max-height:290px;overflow:auto;border:1px solid #d6dff0;border-radius:10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));padding:10px;gap:6px}.httm-bulk-student{display:flex;align-items:center;gap:8px;padding:9px;background:#f6f9ff;border-radius:7px;cursor:pointer}.httm-bulk-student small{margin-left:auto;color:#64748b}.httm-bulk-student[hidden]{display:none!important}.httm-bulk-panel>p{color:#344968}

/* 3.3.7: Square selection for draft invoices, not a stretched text input. */
.httm21 .httm21-overflow input.httm-invoice-checkbox[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block!important;box-sizing:border-box!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;margin:0!important;padding:0!important;border-radius:2px!important;vertical-align:middle!important;cursor:pointer;accent-color:#385bc7;}
.httm21 .httm21-overflow td:has(> input.httm-invoice-checkbox){text-align:center;}

/* 3.3.8: narrow columns and payment family defaults */
.httm21 table th.httm-col-select,.httm21 table td.httm-col-select{width:50px!important;min-width:50px!important;max-width:50px!important;text-align:center;box-sizing:border-box}
.httm21 table th.httm-col-school,.httm21 table td.httm-col-school,.httm21 table th.httm-col-shift,.httm21 table td.httm-col-shift{width:50px!important;min-width:50px!important;max-width:50px!important;box-sizing:border-box;overflow-wrap:anywhere}
.httm21 .httm21-overflow td .httm-sync-family{display:inline-flex;align-items:center;gap:5px;white-space:normal;font-size:12px;color:#334b72;font-weight:500;max-width:220px}
.httm21 .httm21-overflow td .httm-sync-family input[type=checkbox]{width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;margin:0}
/* 3.4.0: compact square multi-select controls in Admin rosters. */
.httm21-panel .httm340-st-check,
.httm21-panel .httm340-en-check,
.httm21-panel #httm340-st-all,
.httm21-panel #httm340-en-all {
  width:18px !important;height:18px !important;min-width:18px !important;
  max-width:18px !important;aspect-ratio:1 / 1;margin:0 !important;
  padding:0 !important;display:inline-block;vertical-align:middle;
  accent-color:#3858d6;cursor:pointer;border-radius:3px;
}
.httm21-panel .httm340-st-check:disabled,
.httm21-panel .httm340-en-check:disabled { opacity:.35;cursor:not-allowed; }

/* 3.4.1: width of selection columns across Admin student, enrollment and tuition tables.
   50px for the COLUMN, while the checkbox itself stays square at 18px. */
.httm21 .httm21-overflow table th.httm-col-select,
.httm21 .httm21-overflow table td.httm-col-select {
  width:50px!important;min-width:50px!important;max-width:50px!important;
  box-sizing:border-box!important;text-align:center!important;
  padding-left:6px!important;padding-right:6px!important;white-space:nowrap!important;
}
.httm21 .httm21-overflow table td.httm-col-select input[type=checkbox],
.httm21 .httm21-overflow table th.httm-col-select input[type=checkbox] {
  appearance:auto!important;-webkit-appearance:checkbox!important;
  width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;
  padding:0!important;margin:0!important;display:inline-block!important;
  vertical-align:middle!important;accent-color:#3858d6;
}

/* 3.4.2 – chọn và xóa giao dịch thử trong sổ quỹ Admin */
.httm21 .httm342-ledger-check,.httm21 #httm342-ledger-all{appearance:auto!important;-webkit-appearance:checkbox!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;margin:0!important;padding:0!important;vertical-align:middle!important;accent-color:#3c58d5;cursor:pointer}
.httm21 .httm342-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0 4px}
.httm21 .httm342-bulk input{width:160px;max-width:100%;margin-left:8px}
.httm21 .httm342-bulk button.httm342-delete{background:#dc2626!important;color:white!important;border-color:#dc2626!important;border-radius:8px!important;font-weight:700!important;min-height:38px}
.httm21 .httm342-bulk button.httm342-delete:hover{background:#b91c1c!important;border-color:#b91c1c!important}

/* 3.4.4: Ghi nhận giao dịch mở theo yêu cầu */
.httm344-ledger-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0;}
.httm344-form-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.httm344-form-head h2{margin:0;}

/* 3.4.5: Restore genuine square checkboxes after broad table/input styles.
   Applied throughout HTTM administration, not to unrelated WordPress plugins. */
.httm21 input[type="checkbox"],
.httm-admin input[type="checkbox"],
.httm21-public input[type="checkbox"] {
  -webkit-appearance:checkbox!important;appearance:auto!important;
  display:inline-block!important;
  width:18px!important;min-width:18px!important;max-width:18px!important;
  height:18px!important;min-height:18px!important;max-height:18px!important;
  aspect-ratio:1/1!important;box-sizing:border-box!important;
  margin:0 5px 0 0!important;padding:0!important;
  border-radius:3px!important;flex:none!important;
  vertical-align:middle!important;accent-color:#385bc7!important;
  background-size:auto!important;box-shadow:none!important;
}
.httm21 input[type="checkbox"]:disabled,
.httm-admin input[type="checkbox"]:disabled {cursor:not-allowed;opacity:.5;}
.httm21 .httm21-overflow table th.httm-col-select,
.httm21 .httm21-overflow table td.httm-col-select {
  width:50px!important;min-width:50px!important;max-width:50px!important;
  text-align:center!important;
}

/* 3.4.6: Enrollment form launcher. Forms open only on explicit admin action. */
.httm-enroll-action-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.httm-enroll-action-row .button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;padding:4px 14px;}
@media(max-width:782px){.httm-enroll-action-row .button{width:100%;}}

/* 3.4.9 – Professional central admin dashboard */
.httm-dashboard{max-width:1520px;margin-top:18px;color:#12264b}.httm-dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:16px;background:linear-gradient(115deg,#263f85,#4c70d1);color:#fff;padding:30px 34px;margin:0 0 28px;box-shadow:0 9px 26px rgba(35,66,130,.12)}
.httm-dashboard-hero h2{font-size:29px!important;font-weight:750!important;color:white!important;margin:6px 0 9px!important}.httm-dashboard-hero p{color:#e7eefe;font-size:14px;margin:0}.httm-dashboard-eyebrow{letter-spacing:.14em;color:#cfddff;font-size:11px;font-weight:750}.httm-dashboard-hero-actions{display:flex;align-items:center;gap:9px;background:rgba(255,255,255,.13);padding:12px 15px;border:1px solid rgba(255,255,255,.19);border-radius:10px;white-space:nowrap;font-weight:650}.httm-dashboard-section-title{display:flex;gap:8px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;margin:27px 0 13px}.httm-dashboard-section-title h2{display:flex;align-items:center;gap:9px;font-size:18px!important;color:#132952!important;font-weight:750!important;margin:0!important}.httm-dashboard-section-title h2 .dashicons{color:#385aca}.httm-dashboard-section-title p{font-size:12px;color:#64748b;margin:0}.httm-dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.httm-dashboard-metric{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:10px;padding:20px 21px;background:#fff;border:1px solid #dbe4f5;border-radius:13px;text-decoration:none!important;box-shadow:0 4px 15px rgba(34,65,113,.035);transition:transform .15s,box-shadow .15s}.httm-dashboard-metric:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(34,65,113,.09);border-color:#abc3f6}.httm-dashboard-metric .dashicons{color:#4468d0;background:#edf2ff;padding:8px;box-sizing:content-box;border-radius:10px}.httm-dashboard-metric-label{font-size:13px;font-weight:550;color:#556986}.httm-dashboard-metric strong{font-size:23px;color:#2143aa;line-height:1.2;overflow-wrap:anywhere}.httm-dashboard-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.httm-dashboard-module{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;min-height:196px;padding:22px;background:#fff;border:1px solid #dce4f3;border-radius:14px;text-decoration:none!important;box-shadow:0 4px 18px rgba(34,65,113,.04);transition:transform .15s,box-shadow .15s}.httm-dashboard-module:hover{transform:translateY(-2px);border-color:#a9bdf0;box-shadow:0 8px 20px rgba(34,65,113,.09)}.httm-dashboard-module-icon{background:#edf2ff;color:#3757bf;font-size:25px!important;width:44px!important;height:44px!important;display:flex!important;align-items:center;justify-content:center;border-radius:12px}.httm-dashboard-module strong{color:#142c55;font-size:16px}.httm-dashboard-module-desc{color:#65758b;font-size:13px;line-height:1.6;flex:1}.httm-dashboard-module-link{font-size:13px;font-weight:700;color:#385bc7}.httm-dashboard-note{display:flex;gap:12px;align-items:flex-start;background:#f3f6ff;border:1px solid #e0e8f8;border-radius:12px;padding:15px 17px;margin:23px 0;color:#48607e;font-size:12px;line-height:1.65}.httm-dashboard-note .dashicons{flex-shrink:0;color:#4667c8}
@media(max-width:1100px){.httm-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.httm-dashboard-modules{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.httm-dashboard-hero{padding:23px;display:block}.httm-dashboard-hero h2{font-size:22px!important}.httm-dashboard-hero-actions{display:inline-flex;margin-top:14px}.httm-dashboard-metrics,.httm-dashboard-modules{grid-template-columns:1fr}.httm-dashboard-module{min-height:0}}

/* 3.4.10 – compact responsive dashboard, only affects page httm-students. */
body.toplevel_page_httm-students .notice:has(a[href*="contact-form-7"]),body.toplevel_page_httm-students .updated:has(a[href*="contact-form-7"]){display:none!important}
.httm-dashboard-page{max-width:1440px;margin-top:8px!important;padding-bottom:24px}
.httm-dashboard-page .httm-dashboard{margin-top:10px!important;max-width:none}
.httm-compact-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 16px;background:linear-gradient(110deg,#293e86,#4c6acc);border-radius:13px;color:white;box-shadow:0 5px 15px #18346a15}
.httm-compact-head h1{color:white!important;margin:0 0 3px!important;font-weight:750!important;font-size:21px!important;line-height:1.2!important;padding:0!important}
.httm-compact-head p{margin:0;color:#e5ecff;font-size:12px;line-height:1.3}
.httm-compact-month{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:7px 10px;border:1px solid #ffffff4f;border-radius:8px;background:#ffffff19;font-size:12px;font-weight:650}
.httm-compact-month .dashicons{font-size:17px;width:17px;height:17px}
.httm-compact-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.httm-compact-kpi{box-sizing:border-box;display:flex;align-items:center;gap:10px;min-width:0;min-height:66px;padding:11px 12px;background:white;border:1px solid #dce4f3;border-radius:11px;text-decoration:none!important;box-shadow:0 2px 10px #1a3b6c08}
.httm-compact-kpi:hover,.httm-compact-shortcuts a:hover{border-color:#96afef;background:#f7faff}
.httm-compact-kpi>.dashicons{flex:none;font-size:18px;width:35px;height:35px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#eaf0ff;color:#3559bc}
.httm-compact-kpi-body{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
.httm-compact-kpi-label{font-size:12px;color:#576a87;line-height:1.2}
.httm-compact-kpi strong{font-size:19px;font-weight:750;color:#1f4099;line-height:1.2;letter-spacing:-.02em}
.httm-compact-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:10px 0}
.httm-compact-shortcuts a{box-sizing:border-box;min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 7px;min-height:40px;background:#fff;border:1px solid #dce4f3;border-radius:9px;color:#243f77;font-size:12px;font-weight:650;text-decoration:none!important;text-align:center}
.httm-compact-shortcuts .dashicons{font-size:17px;width:17px;height:17px;color:#4162c5}
.httm-compact-details{background:#fff;border:1px solid #dce4f3;border-radius:11px;overflow:hidden}
.httm-compact-details>summary{cursor:pointer;display:flex;align-items:center;gap:7px;padding:11px 13px;color:#253e79;font-size:13px;font-weight:700;list-style-position:inside}
.httm-compact-details-hint{font-size:11px;color:#71809a;font-weight:400;margin-left:auto}
.httm-compact-details-content{padding:0 13px 13px;border-top:1px solid #edf0f6}
.httm-compact-details-content h2{font-size:13px!important;margin:12px 0 7px!important;color:#334b7a!important}
.httm-compact-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.httm-compact-mini{display:flex;flex-direction:column;gap:5px;background:#f3f6fc;border-radius:9px;padding:9px;text-decoration:none!important;min-width:0}
.httm-compact-mini span{font-size:11px;color:#596b85}.httm-compact-mini strong{font-size:15px;color:#294c9d;overflow-wrap:anywhere}
.httm-compact-finance-note{font-size:11px;color:#728098;line-height:1.5}
@media(max-width:900px){.httm-compact-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.httm-compact-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.httm-compact-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.httm-dashboard-page{margin:4px 7px 0!important}.httm-compact-head{padding:10px 11px;gap:7px}.httm-compact-head h1{font-size:17px!important}.httm-compact-head p{font-size:10px}.httm-compact-month{font-size:10px;padding:5px 6px}.httm-compact-month .dashicons{display:none}.httm-compact-kpis{gap:7px}.httm-compact-kpi{min-height:57px;padding:8px;gap:7px}.httm-compact-kpi>.dashicons{width:29px;height:29px;font-size:16px}.httm-compact-kpi-label{font-size:11px}.httm-compact-kpi strong{font-size:16px}.httm-compact-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}.httm-compact-shortcuts a{font-size:10px;padding:7px 4px;min-height:37px;gap:4px}.httm-compact-shortcuts .dashicons{font-size:14px;width:14px;height:14px}.httm-compact-details>summary{padding:9px;font-size:12px}.httm-compact-details-hint{display:none}}
@media(max-width:370px){.httm-compact-head{flex-wrap:wrap}.httm-compact-month{margin-left:0}.httm-compact-kpi strong{font-size:14px}}


/* HTTM 3.4.11: Three compact management pages only. No change to DB or action handlers. */
.httm-compact-roster{max-width:1500px}
.httm-compact-roster .httm21-head{padding:12px 16px;margin:8px 0 10px;border-radius:12px}
.httm-compact-roster .httm21-head h1{font-size:19px;line-height:1.2}
.httm-compact-roster .httm21-head p{font-size:11px;margin-top:3px}
.httm-compact-roster .httm21-panel{padding:13px 15px;margin:10px 0;border-radius:12px}
.httm-compact-roster .httm21-panel h2{font-size:15px;margin:0 0 9px}
.httm-compact-roster .httm21-filters{margin:5px 0 8px;gap:7px}
.httm-compact-roster .httm21-filters input,.httm-compact-roster .httm21-filters select{min-height:37px;border-radius:8px}
.httm-compact-roster .httm21-panel>p{margin:8px 0}
.httm-compact-roster .httm-roster-actions{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 8px}
.httm-compact-roster .httm-roster-actions .button{margin:0;display:inline-flex;align-items:center;justify-content:center;min-height:35px}
.httm-compact-roster .httm-roster-filter-heading{display:none}
.httm-compact-roster .httm-roster-filter-details{margin-top:6px;border:1px solid #dfe7f8;border-radius:9px;background:#f8faff}
.httm-compact-roster .httm-roster-filter-details>summary{cursor:pointer;padding:8px 11px;font-weight:650;color:#304d9b;font-size:12px}
.httm-compact-roster .httm-roster-filter-details[open]>summary{border-bottom:1px solid #dfe7f8}
.httm-compact-roster .httm-roster-filter-details form{padding:7px 9px}
.httm-compact-roster .httm-roster-search{display:flex;align-items:center;gap:9px;margin:10px 0 7px}
.httm-compact-roster .httm-roster-search input{flex:1;min-width:0;max-width:380px;min-height:35px;border:1px solid #cbd8f2;border-radius:9px;padding:5px 10px}
.httm-compact-roster .httm-roster-search span{font-size:11px;color:#697d9d}
.httm-compact-roster .httm-roster-table{min-width:680px;width:100%;border-collapse:separate;border-spacing:0}
.httm-compact-roster .httm-roster-table thead th{font-size:11px;padding:8px 7px;line-height:1.25}
.httm-compact-roster .httm-roster-table td{padding:8px 7px;font-size:12px;line-height:1.35;vertical-align:middle}
.httm-compact-roster .httm-roster-table td .button{font-size:11px;min-height:30px;padding:1px 8px}
.httm-compact-roster .httm-roster-table .httm-roster-reveal{display:none}
.httm-compact-roster .httm21-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:9px 0}
.httm-compact-roster .httm21-stats>div{min-width:0;padding:9px 11px;gap:4px}
.httm-compact-roster .httm21-stats strong{font-size:17px;overflow-wrap:anywhere}
.httm-compact-roster .httm21-stats span{font-size:11px}
.httm-compact-roster .httm-enroll-action-row{gap:6px}
.httm-compact-roster .httm-enroll-action-row .button{min-height:34px;font-size:12px}
.httm-compact-roster .httm342-bulk,.httm-compact-roster .httm344-ledger-actions{margin:8px 0}
@media(max-width:900px){.httm-compact-roster .httm21-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:782px){
 .httm-compact-roster{margin:5px 7px 0!important}
 .httm-compact-roster .httm21-head{padding:10px 12px;margin:5px 0 8px}
 .httm-compact-roster .httm21-head h1{font-size:17px}
 .httm-compact-roster .httm21-head p{font-size:10px}
 .httm-compact-roster .httm21-panel{padding:10px;margin:8px 0}
 .httm-compact-roster .httm-roster-filter-panel .httm21-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}
 .httm-compact-roster .httm-roster-filter-panel .httm21-filters input:not([type=hidden]),.httm-compact-roster .httm-roster-filter-panel .httm21-filters select,.httm-compact-roster .httm-roster-filter-panel .httm21-filters button{width:100%!important;min-width:0;max-width:none;min-height:36px}
 .httm-compact-roster .httm-roster-filter-panel .httm21-filters input[name=q]{grid-column:span 2}
 .httm-compact-roster .httm-roster-actions .button{flex:1 1 auto;min-width:0;white-space:normal;line-height:1.25;text-align:center;font-size:11px}
 .httm-compact-roster .httm-enroll-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .httm-compact-roster .httm-enroll-action-row .button{width:100%;white-space:normal;text-align:center;line-height:1.25;padding:6px;font-size:11px}
 .httm-compact-roster .httm21-overflow{overflow:visible!important;max-width:none}
 .httm-compact-roster .httm-roster-table,.httm-compact-roster .httm-roster-table tbody{display:block!important;width:100%!important;min-width:0!important;border:0;background:transparent}
 .httm-compact-roster .httm-roster-table thead{display:none!important}
 .httm-compact-roster .httm-roster-table tr.httm-roster-entry{display:grid!important;grid-template-columns:30px minmax(0,1fr) auto;gap:3px 8px;align-items:start;border:1px solid #d8e3f7;border-radius:10px;margin:7px 0;padding:9px!important;background:#fff!important;box-shadow:0 2px 9px #2044830b;max-width:100%;min-width:0}
 .httm-compact-roster .httm-roster-table tr[hidden]{display:none!important}
 .httm-compact-roster .httm-roster-table td{display:block!important;border:0!important;min-width:0;max-width:100%;padding:2px!important;box-sizing:border-box;background:transparent!important;overflow-wrap:anywhere;font-size:11px;line-height:1.35}
 .httm-compact-roster .httm-roster-table td::before{content:attr(data-label) ': ';font-weight:650;color:#687d9b;font-size:10px}
 .httm-compact-roster .httm-roster-table td.httm-col-select{grid-column:1;grid-row:1;display:flex!important;align-items:center;justify-content:center;min-width:30px!important;max-width:30px!important;width:30px!important;height:30px}
 .httm-compact-roster .httm-roster-table td.httm-col-select::before{display:none}
 .httm-compact-roster .httm-roster-table td.httm-roster-cell-1{grid-column:2 / 4;grid-row:1;font-size:14px;font-weight:700;color:#2548a1;padding:3px 0!important}
 .httm-compact-roster .httm-roster-table td.httm-roster-cell-1::before{display:none}
 .httm-compact-roster .httm-roster-table td.httm-roster-secondary{display:none!important}
 .httm-compact-roster .httm-roster-table tr.httm-roster-expanded td.httm-roster-secondary{display:block!important}
 .httm-compact-roster .httm-roster-table td:not(.httm-col-select):not(.httm-roster-cell-1):not(.httm-roster-operations){grid-column:2 / 4}
 .httm-compact-roster .httm-roster-table td.httm-roster-operations{grid-column:1 / 4;grid-row:auto;border-top:1px solid #e7edf9!important;margin-top:4px;padding-top:6px!important;display:flex!important;align-items:center;gap:5px;flex-wrap:wrap}
 .httm-compact-roster .httm-roster-table td.httm-roster-operations::before{display:none}
 .httm-compact-roster .httm-roster-table td .button{min-height:30px;padding:0 8px;font-size:11px}
 .httm-compact-roster .httm-roster-table .httm-roster-reveal{display:inline-flex;margin-left:auto;border:1px solid #bdd0f7;border-radius:7px;background:#f5f8ff;color:#294c9d;padding:5px 10px;line-height:1.3;cursor:pointer;font-size:11px;font-weight:650}
 .httm-compact-roster .httm21-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .httm-compact-roster .httm21-stats>div{padding:8px;gap:3px}
 .httm-compact-roster .httm21-stats strong{font-size:15px}
 .httm-compact-roster .httm344-ledger-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .httm-compact-roster .httm344-ledger-actions .button{font-size:11px;white-space:normal;min-height:35px;line-height:1.2;text-align:center}
 .httm-compact-roster .httm-roster-search{gap:5px}
 .httm-compact-roster .httm-roster-search input{max-width:none}
 .httm-compact-roster.httm-roster-httm-student-list .httm-roster-cell-4{font-size:11px;color:#3c557f}
 .httm-compact-roster.httm-roster-httm-student-enroll .httm-roster-cell-4{font-size:11px;color:#3c557f}
 .httm-compact-roster.httm-roster-httm-student-ledger .httm-roster-cell-9{font-weight:750;color:#244fac;font-size:13px}
}

/* 3.4.13: previous calendar month's unsettled invoices, positioned just under student name. */
.httm21 .httm-previous-fee-alert{display:block!important;width:max-content;max-width:100%;margin:3px 0 2px;padding:3px 7px;border-radius:6px;background:#fff0e6;color:#a74318;font-size:11px!important;font-weight:700;line-height:1.35;white-space:normal}
.httm21 .httm-fee-login{display:block;font-size:11px;color:#718099}
/* Auto-size the two short columns; override legacy fixed 50px widths. */
.httm21 .httm21-overflow table th.httm-col-school,.httm21 .httm21-overflow table td.httm-col-school,
.httm21 .httm21-overflow table th.httm-col-shift,.httm21 .httm21-overflow table td.httm-col-shift{width:1%!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;overflow-wrap:normal!important;padding-inline:7px!important}
@media(max-width:782px){.httm21 .httm-fee-student-name .httm-previous-fee-alert{display:block!important;margin:5px 0 2px}.httm21 .httm21-overflow table td.httm-col-school,.httm21 .httm21-overflow table td.httm-col-shift{width:auto!important;max-width:none!important;white-space:normal!important}}
/* 3.4.14: trực tiếp mở đúng hóa đơn tháng còn nợ */
.httm21 .httm-pay-older{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;margin:5px 0 2px!important;padding:3px 9px!important;border:1px solid #d97706!important;border-radius:7px!important;color:#92400e!important;background:#fff7ed!important;font-weight:700!important;white-space:nowrap!important;text-decoration:none!important}
.httm21 tr[id^="httm-invoice-"]:target{outline:2px solid #2563eb;outline-offset:-2px;background:#eff6ff!important}
