:root { font-family: "Segoe UI", Arial, sans-serif; color: #1e293b; }
body { margin: 0; background: #f8fafc; }
.gh-shell { display: flex; min-height: 100vh; }
.gh-sidebar { flex: 0 0 220px; background: #1d4ed8; color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.gh-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.15); }
.gh-sidebar-brand img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
.gh-sidebar-brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.gh-sidebar-brand-sub { font-size: 11px; opacity: .8; }
.gh-sidebar-nav { display: flex; flex-direction: column; padding: 10px 8px; flex: 1; gap: 2px; }
.gh-sidebar-nav a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; opacity: .88; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; white-space: nowrap; }
.gh-sidebar-nav a:hover { opacity: 1; background: rgba(255,255,255,.12); }
.gh-sidebar-nav a.active { opacity: 1; background: rgba(255,255,255,.18); font-weight: 600; }
.gh-nav-ic { flex-shrink: 0; width: 26px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(255,255,255,.16); font-size: 11px; font-weight: 700; letter-spacing: -0.02em; }
.gh-ic-tq { font-size: 15px; font-weight: 400; }
.gh-ic-warn { background: rgba(248,113,113,.35); font-size: 14px; }
.gh-ic-xl { background: rgba(74,222,128,.3); font-size: 13px; }
.gh-sidebar-user { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.15); }
.gh-sidebar-user-name { font-size: 12px; opacity: .9; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-link-btn { background: none; border: none; color: #fff; text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }
.gh-content-wrap { flex: 1; min-width: 0; }
.gh-main { width: 100%; box-sizing: border-box; padding: 24px 28px; }
.gh-alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.gh-alert-info { background: #dcfce7; color: #166534; }
.gh-alert-error { background: #fee2e2; color: #991b1b; }
table.gh-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
table.gh-table th, table.gh-table td { border: 1px solid #e2e8f0; padding: 11px 12px; font-size: 13.5px; text-align: left; vertical-align: top; }
table.gh-table th { background: #f1f5f9; }
.gh-form-inline input, .gh-form-inline select, .gh-form-inline textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; font-size: 13.5px; border: 1px solid #cbd5e1; border-radius: 6px; }
.gh-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 20px; margin-bottom: 20px; }
.gh-btn { background: #1d4ed8; color: #fff; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.gh-btn-danger { background: #dc2626; }
.gh-login-wrap { max-width: 380px; margin: 60px auto; }
.gh-login-wrap input { width: 100%; padding: 8px; margin-bottom: 10px; box-sizing: border-box; }

/* Trang đăng nhập — hero 2 cột giống webLich */
.gh-auth-shell { min-height: calc(100vh - 48px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.gh-auth-card { display: flex; max-width: 860px; width: 100%; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.gh-auth-hero { flex: 0 0 38%; background: linear-gradient(135deg,#1d4ed8,#2563eb); color: #fff; padding: 40px 32px; display: flex; flex-direction: column; justify-content: space-between; }
.gh-auth-hero-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.gh-auth-hero-brand img { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; }
.gh-auth-hero-title { font-weight: 700; font-size: 20px; }
.gh-auth-hero-caption { font-size: 13px; opacity: .9; line-height: 1.5; }
.gh-auth-form { flex: 1; padding: 40px 36px; }
.gh-auth-form h2 { margin: 0 0 6px; font-size: 22px; }
.gh-auth-sub { color: #64748b; font-size: 13px; margin: 0 0 22px; }
.gh-auth-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #334155; }
.gh-auth-form input[type=email], .gh-auth-form input[type=password] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.gh-auth-form input:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.gh-auth-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 400 !important; color: #475569; margin-bottom: 18px; }
.gh-auth-check input { margin-top: 3px; width: auto; }
.gh-auth-btn { width: 100%; padding: 11px; font-size: 14px; border-radius: 8px; }
@media (max-width: 720px) { .gh-auth-card { flex-direction: column; } .gh-auth-hero { flex: none; } }
.gh-ic-school { background: rgba(250,204,21,.3); font-size: 14px; }

/* ===================== Biểu nhập liệu: card-form pattern (A1,A2,B1,B2,C1,C2,D1...) ===================== */
.gh-entry-card { background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:20px 22px; margin-bottom:20px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.gh-entry-card h3 { margin:0 0 4px; font-size:15px; color:#0f172a; }
.gh-entry-hint { font-size:13px; color:#64748b; margin:0 0 16px; }
.gh-field-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:16px 20px; }
.gh-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.gh-field-wide { grid-column:1 / -1; }
.gh-field label { font-size:12px; font-weight:700; color:#475569; text-transform:uppercase; letter-spacing:.03em; }
.gh-field input[type=text], .gh-field input[type=number], .gh-field input:not([type]), .gh-field select, .gh-field textarea {
    width:100%; box-sizing:border-box; padding:10px 12px; font-size:14px; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#0f172a; font-family:inherit;
}
.gh-field textarea { min-height:68px; resize:vertical; line-height:1.45; }
.gh-field input:focus, .gh-field select:focus, .gh-field textarea:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.gh-field-computed { background:#f1f5f9 !important; color:#475569 !important; font-weight:600; }
.gh-field-actions { grid-column:1 / -1; display:flex; gap:10px; align-items:center; margin-top:2px; padding-top:6px; border-top:1px dashed #e2e8f0; }
.gh-legend { font-size:12.5px; color:#64748b; display:flex; gap:16px; flex-wrap:wrap; margin:2px 0 14px; }
.gh-legend span { display:inline-flex; align-items:center; gap:6px; }
.gh-legend i { width:14px; height:14px; border-radius:3px; display:inline-block; border:1px solid #cbd5e1; }
.gh-legend .i-white { background:#fff; }
.gh-legend .i-gray { background:#f1f5f9; }

/* ---- Danh sách đã nhập: bảng để đọc, không nhồi input nhỏ ---- */
.gh-list-table { width:100%; border-collapse:collapse; margin-top:4px; background:#fff; }
.gh-list-table th { text-align:left; font-size:12px; color:#64748b; text-transform:uppercase; letter-spacing:.03em; padding:10px 12px; border-bottom:2px solid #e2e8f0; white-space:nowrap; background:#f8fafc; }
.gh-list-table td { padding:12px; border-bottom:1px solid #eef2f7; font-size:14px; color:#1e293b; vertical-align:top; word-break:break-word; }
.gh-list-table tr:hover td { background:#f8fafc; }
.gh-list-table .gh-col-actions { white-space:nowrap; text-align:right; }
.gh-list-table .gh-col-num { text-align:right; font-variant-numeric:tabular-nums; }
.gh-chip { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12.5px; font-weight:600; background:#eef2f7; color:#475569; }
.gh-chip-dat { background:#dcfce7; color:#166534; }
.gh-chip-thieu { background:#fee2e2; color:#b91c1c; }
.gh-chip-du { background:#ffedd5; color:#9a3412; }
.gh-btn-ghost { background:#fff; border:1px solid #cbd5e1; color:#475569; }
.gh-btn-ghost:hover { background:#f1f5f9; }
.gh-btn-sm { padding:6px 12px; font-size:12.5px; }
.gh-empty-row td { text-align:center; color:#94a3b8; padding:22px; font-style:italic; }

/* ===================== Hộp thoại (modal) Thêm/Sửa ===================== */
body.gh-modal-lock { overflow: hidden; }
.gh-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.gh-toolbar h3 { margin:0; font-size:16px; color:#0f172a; }
.gh-modal-overlay { display:none; position:fixed; inset:0; background:rgba(15,23,42,.55); z-index:1000; align-items:flex-start; justify-content:center; padding:4vh 16px; overflow-y:auto; }
.gh-modal-overlay.open { display:flex; }
.gh-modal { background:#fff; border-radius:12px; width:100%; max-width:760px; box-shadow:0 20px 60px rgba(0,0,0,.25); overflow:hidden; }
.gh-modal-head { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid #e2e8f0; }
.gh-modal-head h3 { margin:0; font-size:16px; color:#0f172a; }
.gh-modal-close { background:none; border:none; font-size:22px; line-height:1; color:#94a3b8; cursor:pointer; padding:2px 6px; border-radius:6px; }
.gh-modal-close:hover { background:#f1f5f9; color:#334155; }
.gh-modal-body { padding:20px 22px; max-height:72vh; overflow-y:auto; }
.gh-modal-hint { font-size:13px; color:#64748b; margin:0 0 16px; }
