/* AthtechHddt — lớp giao diện riêng, nạp SAU material-base.css và theme.css (mọi màu lấy từ biến --rz-*). */

html, body { height: 100%; }
body {
    margin: 0; background: var(--rz-body-background-color); color: var(--rz-text-color);
    font-family: var(--rz-text-font-family); font-size: var(--rz-body-font-size); line-height: var(--rz-body-line-height);
}
a { color: var(--rz-primary); }
h1, h2, h3 { color: var(--rz-text-title-color); }

.hd-boot { min-height: 60vh; display: grid; place-items: center; }

/* ── Thương hiệu ─────────────────────────────────────────────────────────────────── */
.hd-logo { display: block; width: 2.5rem; height: 2.5rem; flex: none; }
.hd-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: .02em; }
.hd-brand__name { display: grid; font-size: 1.35rem; line-height: 1.1; }
.hd-brand__name small { font-size: .75rem; font-weight: 500; letter-spacing: .02em; opacity: .75; }
h1:focus, h1:focus-visible { outline: none; }

/* ── Khung ứng dụng: sidebar navy bên trái, thanh trên + nội dung bên phải ───────────────────────────────── */
.hd-shell { display: grid; grid-template-columns: var(--hd-nav-width) minmax(0, 1fr); min-height: 100vh; }
.hd-shell--toggled { grid-template-columns: 0 minmax(0, 1fr); }
.hd-shell--toggled .hd-side { transform: translateX(-100%); visibility: hidden; }
.hd-side {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1150; width: var(--hd-nav-width); display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--hd-nav-bg-top), var(--hd-nav-bg-bottom)); color: var(--hd-nav-text);
    transition: transform .22s ease, visibility .22s;
}
.hd-side__brand {
    display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.25rem; text-decoration: none; color: #fff;
    border-bottom: 1px solid var(--hd-nav-line);
}
.hd-side__brandtext { display: grid; line-height: 1.15; min-width: 0; }
.hd-side__brandtext b { font-size: 1.5rem; font-weight: 800; letter-spacing: .03em; }
.hd-side__brandtext small { font-size: .625rem; letter-spacing: .1em; color: var(--hd-nav-muted); }
.hd-side__foot {
    display: flex; align-items: center; gap: .6rem; padding: .9rem 1.25rem; border-top: 1px solid var(--hd-nav-line);
    color: var(--hd-nav-muted); font-weight: 700; font-size: .8125rem; letter-spacing: .04em;
}
.hd-side__foot .hd-logo { width: 1.75rem; height: 1.75rem; }

.hd-nav { flex: 1 1 auto; overflow-y: auto; padding: .75rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.hd-nav .rzi { font-size: 1.35rem; flex: none; }
.hd-nav__top, .hd-nav__head, .hd-nav__item {
    display: flex; align-items: center; gap: .75rem; width: 100%; box-sizing: border-box; border: 0; border-radius: 8px; cursor: pointer;
    background: transparent; color: var(--hd-nav-text); text-decoration: none; font: inherit; text-align: left;
}
.hd-nav__top { padding: .7rem .85rem; font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; }
.hd-nav__head { padding: .7rem .85rem; margin-top: .35rem; font-weight: 700; font-size: .9375rem; color: var(--hd-nav-text-strong); }
.hd-nav__head > span { flex: 1 1 auto; }
.hd-nav__chev { transition: transform .18s ease; opacity: .7; }
.hd-nav__chev.is-open { transform: rotate(180deg); }
.hd-nav__items { position: relative; margin: .15rem 0 .35rem 1.5rem; padding-left: .5rem; border-left: 1px solid var(--hd-nav-line); display: grid; gap: .1rem; }
.hd-nav__item { padding: .5rem .75rem; font-size: .875rem; font-weight: 500; color: var(--hd-nav-text); }
.hd-nav__item .rzi { font-size: 1.15rem; opacity: .85; }
.hd-nav__top:hover, .hd-nav__head:hover, .hd-nav__item:hover { background: var(--hd-nav-hover); color: var(--hd-nav-text-strong); }
.hd-nav__top.active, .hd-nav__item.active { background: var(--hd-nav-active); color: #fff; box-shadow: 0 4px 12px -4px rgba(27, 108, 242, .6); }
.hd-nav__item.active .rzi { opacity: 1; }
.hd-nav :focus-visible { outline: 2px solid #8bb8ff; outline-offset: 1px; }

.hd-scrim { display: none; }
.hd-main { grid-column: 2; min-width: 0; display: flex; flex-direction: column; }

.hd-topbar {
    position: sticky; top: 0; z-index: 1000; height: var(--hd-topbar-height); display: flex; align-items: center; gap: .85rem;
    padding: 0 1.5rem; background: #fff; border-bottom: 1px solid var(--rz-base-200);
}
.hd-burger {
    display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 8px; background: transparent;
    color: var(--rz-base-700); cursor: pointer; flex: none;
}
.hd-burger:hover { background: var(--rz-base-100); }
.hd-topbar__title { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.hd-topbar__app { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: var(--hd-nav-bg-top); }
.hd-topbar__tag { font-size: .8125rem; color: var(--rz-text-tertiary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-profile.rz-profile-menu { border: 0; background: transparent; min-width: 0; flex: none; }
.hd-profile .rz-navigation-item-link { padding: .25rem .5rem; border-radius: 10px; }
.hd-user { display: inline-flex; align-items: center; gap: .65rem; text-align: left; }
.hd-avatar {
    display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none;
    background: linear-gradient(135deg, #4da3ff, #1b6cf2); color: #fff; font-weight: 700;
}
.hd-user__meta { display: grid; line-height: 1.25; min-width: 0; }
.hd-user__meta b { font-size: .875rem; color: var(--rz-base-900); max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-user__meta small { font-size: .75rem; color: var(--rz-text-tertiary-color); }

.hd-content { flex: 1 0 auto; padding: 1.5rem 1.5rem 3rem; max-width: 1500px; width: 100%; box-sizing: border-box; margin: 0 auto; }
.hd-page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hd-page-title h1 { margin: 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; }
.hd-page-title p { margin: .2rem 0 0; color: var(--rz-text-tertiary-color); }
.hd-muted { color: var(--rz-text-tertiary-color); font-size: .8125rem; }
.hd-empty { padding: 3rem 1rem; text-align: center; color: var(--rz-text-tertiary-color); display: grid; gap: .5rem; justify-items: center; }
.hd-section { margin-bottom: 1.25rem; }
.hd-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: .75rem; }
.hd-toolbar .rz-form-field { min-width: 12rem; }
.hd-grow { flex: 1 1 14rem; }
.hd-nowrap { white-space: nowrap; }
.hd-mono { font-variant-numeric: tabular-nums; }
.hd-right { text-align: right; }

/* ── Chân trang ─────────────────────────────────────────────────────────────────────────────── */
.hd-footer {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem;
    padding: 1rem 1.5rem; background: #fff; border-top: 1px solid var(--rz-base-200); font-size: .8125rem; color: var(--rz-text-secondary-color);
}
.hd-footer__info { display: grid; gap: .2rem; min-width: 0; }
.hd-footer__info > b { color: var(--hd-nav-bg-top); font-size: .875rem; }
.hd-footer__info > span { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; }
.hd-footer .rzi { font-size: 1rem; color: var(--rz-text-tertiary-color); }
.hd-footer a { display: inline-flex; align-items: center; gap: .2rem; color: var(--rz-primary); text-decoration: none; }
.hd-footer a:hover { text-decoration: underline; }
.hd-footer a .rzi { color: inherit; font-size: .9rem; }
.hd-footer__sep { width: 1px; height: .9rem; background: var(--rz-base-300); margin: 0 .5rem; }
.hd-footer__brand { display: flex; align-items: center; gap: .6rem; }
.hd-footer__brand .hd-logo { width: 2rem; height: 2rem; flex: none; }
.hd-footer__brandtext { display: grid; line-height: 1.15; }
.hd-footer__brandtext b { color: var(--hd-nav-bg-top); font-size: 1rem; letter-spacing: .02em; }
.hd-footer__brandtext small { font-size: .5625rem; letter-spacing: .08em; color: var(--rz-text-tertiary-color); }
.hd-footer__copy { padding-left: .85rem; margin-left: .25rem; border-left: 1px solid var(--rz-base-300); font-size: .75rem; color: var(--rz-text-tertiary-color); }

/* ── Trang Liên hệ ──────────────────────────────────────────────────────────────────────────── */
.hd-contact__card { height: 100%; box-sizing: border-box; }
.hd-contact__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.hd-contact__head h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; color: var(--hd-nav-bg-top); }
.hd-contact__headicon.rzi { font-size: 2rem; color: var(--rz-primary); }
.hd-contact__company { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.hd-contact__logo { display: grid; justify-items: center; gap: .15rem; padding: 1rem .5rem; border-radius: 10px; background: var(--rz-base-50); }
.hd-contact__logo .hd-logo { width: 4.5rem; height: 4.5rem; }
.hd-contact__logo b { font-size: 1.1rem; color: var(--hd-nav-bg-top); letter-spacing: .02em; }
.hd-contact__logo small { font-size: .625rem; letter-spacing: .3em; color: var(--rz-text-tertiary-color); }
.hd-contact__facts { margin: 0; display: grid; }
.hd-contact__facts > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--rz-base-200); }
.hd-contact__facts > div:first-child { border-top: 0; padding-top: 0; }
.hd-contact__facts dt { display: flex; align-items: center; gap: .5rem; color: var(--rz-text-tertiary-color); }
.hd-contact__facts dd { margin: 0; display: grid; gap: .15rem; align-content: start; }
.hd-contact__facts a, .hd-contact__office a { display: inline-flex; align-items: center; gap: .3rem; color: var(--rz-primary); text-decoration: none; }
.hd-contact__facts a:hover { text-decoration: underline; }
.hd-contact__facts a .rzi { font-size: 1rem; }
.hd-contact__person { display: flex; align-items: center; gap: .85rem; margin-bottom: .85rem; }
.hd-contact__person .hd-avatar { width: 3.25rem; height: 3.25rem; font-size: 1.25rem; }
.hd-contact__row { display: flex; align-items: center; gap: .75rem; padding: .6rem .85rem; margin-bottom: .6rem; border-radius: 10px; background: var(--rz-base-50); }
.hd-contact__row > b { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.hd-contact__row .rzi { color: var(--rz-primary); }
.hd-contact__row--plain { margin-bottom: 0; }
.hd-contact__map { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1rem; align-items: stretch; }
.hd-contact__map iframe { width: 100%; height: 18rem; border: 0; border-radius: 10px; background: var(--rz-base-100); }
.hd-contact__office { display: grid; gap: .6rem; align-content: start; padding: 1rem; border-radius: 10px; background: var(--rz-base-50); }
.hd-contact__office span { display: flex; gap: .4rem; align-items: flex-start; color: var(--rz-text-secondary-color); }
.hd-contact__office b { display: flex; align-items: center; gap: .4rem; color: var(--rz-primary); }
.hd-contact__office .rzi { font-size: 1.1rem; }

/* ── Thẻ số liệu ─────────────────────────────────────────────────────────────────── */
.hd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.hd-kpi { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--rz-base-200); border-radius: 12px; padding: 1.1rem 1.15rem; box-shadow: var(--rz-shadow-1); min-width: 0; }
.hd-kpi__icon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 12px; color: #fff; flex: none; }
.hd-kpi__icon .rzi { font-size: 1.7rem; }
.hd-kpi__icon--blue { background: linear-gradient(135deg, #4d9bff, #1b6cf2); }
.hd-kpi__icon--green { background: linear-gradient(135deg, #4cc36b, #1f9d47); }
.hd-kpi__icon--orange { background: linear-gradient(135deg, #ffb340, #f08a00); }
.hd-kpi__icon--purple { background: linear-gradient(135deg, #9a7bff, #6a42f0); }
.hd-kpi__icon--teal { background: linear-gradient(135deg, #35c9d6, #0d97ad); }
.hd-kpi__body { display: grid; gap: .1rem; min-width: 0; flex: 1 1 auto; }
.hd-kpi__label { font-size: .8125rem; color: var(--rz-text-secondary-color); }
.hd-kpi__value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--rz-base-900); font-variant-numeric: tabular-nums; }
.hd-kpi__value--sm { font-size: 1.2rem; padding: .3rem 0; }
.hd-kpi__value small { font-size: .875rem; font-weight: 600; color: var(--rz-text-tertiary-color); letter-spacing: 0; }
.hd-kpi__sub { font-size: .75rem; color: var(--rz-text-tertiary-color); }
.hd-kpi__sub .hd-ok { color: var(--rz-success-dark); font-weight: 600; }
.hd-kpi .rz-progressbar { margin: .25rem 0 .1rem; height: .4rem; }

/* Thẻ số liệu không biểu tượng (Quản trị, Hạn mức, Chi tiết người dùng) — cùng dáng với .hd-kpi */
.hd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.hd-stat { display: grid; align-content: start; gap: .15rem; background: #fff; border: 1px solid var(--rz-base-200); border-radius: 12px; padding: 1.1rem 1.15rem; box-shadow: var(--rz-shadow-1); min-width: 0; }
.hd-stat__label { font-size: .8125rem; color: var(--rz-text-secondary-color); }
.hd-stat__value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--rz-base-900); font-variant-numeric: tabular-nums; }
.hd-stat__value .hd-muted { font-size: .875rem; font-weight: 600; letter-spacing: 0; }
.hd-stat__sub { font-size: .75rem; color: var(--rz-text-tertiary-color); }

/* ── Dashboard ───────────────────────────────────────────────────────────────────── */
.hd-hero {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 1rem;
    padding: 1.75rem 2rem; border-radius: 14px; color: #fff;
    background: radial-gradient(60rem 20rem at 85% -20%, rgba(120, 190, 255, .55), transparent 60%), linear-gradient(105deg, #123fb8, #1b6cf2 60%, #2f86ff);
    box-shadow: 0 10px 28px -12px rgba(27, 108, 242, .55);
}
.hd-hero h1 { margin: 0 0 .35rem; color: #fff; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.hd-hero__lead { margin: 0; font-size: 1.0625rem; font-weight: 500; opacity: .95; }
.hd-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0; }
.hd-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); }
.hd-chip .rzi { font-size: 1.05rem; }
.hd-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hd-hero__actions .rz-button.rz-light { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.hd-hero__actions .rz-button.rz-light:hover { background: rgba(255, 255, 255, .26); }
.hd-hero__actions .rz-button.rz-primary { background: #fff; color: var(--rz-primary-dark); }
.hd-hero__art { width: 100%; max-height: 11rem; justify-self: end; }
.hd-hero__tagline { margin: .75rem 0 0; font-style: italic; font-size: .875rem; opacity: .85; text-align: right; }

.hd-dash { display: grid; grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr); gap: 1rem; align-items: start; }
.hd-dash__col { display: grid; gap: 1rem; min-width: 0; }
.hd-panel { background: #fff; border: 1px solid var(--rz-base-200); border-radius: 12px; padding: 1.1rem 1.25rem; box-shadow: var(--rz-shadow-1); min-width: 0; }
.hd-panel__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.hd-panel__head h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; color: var(--hd-nav-bg-top); }
.hd-panel__head a { font-size: .8125rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hd-panel__head a:hover { text-decoration: underline; }
.hd-panel__sub { margin: -.6rem 0 .9rem; font-size: .8125rem; color: var(--rz-text-tertiary-color); }

.hd-bars { display: grid; gap: .95rem; }
.hd-bar__top { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .35rem; }
.hd-bar__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-bar__name .hd-muted { margin-left: .4rem; }
.hd-bar__nums { font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--rz-text-secondary-color); white-space: nowrap; }
.hd-bar__track { height: .65rem; border-radius: 999px; background: var(--rz-base-100); overflow: hidden; }
.hd-bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4cc36b, #1f9d47); min-width: 2px; }
.hd-bar__fill--none { background: transparent; }

.hd-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.hd-quick__tile {
    display: grid; justify-items: center; align-content: center; gap: .5rem; min-height: 5.6rem; padding: .85rem .5rem; text-align: center; text-decoration: none;
    color: var(--rz-base-800); font-size: .8125rem; font-weight: 600; line-height: 1.3; background: #fff; border: 1px solid var(--rz-base-200); border-radius: 10px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hd-quick__tile .rzi { font-size: 1.75rem; color: var(--rz-primary); }
.hd-quick__tile:hover { border-color: var(--rz-primary-light); box-shadow: var(--rz-shadow-3); transform: translateY(-1px); color: var(--rz-primary-dark); }

.hd-promo {
    padding: 1.25rem 1.35rem; border-radius: 12px; color: #fff;
    background: radial-gradient(18rem 10rem at 100% 100%, rgba(120, 190, 255, .45), transparent 70%), linear-gradient(160deg, #123fb8, #1b6cf2);
}
.hd-promo h3 { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: .01em; }
.hd-promo p { margin: .15rem 0 .8rem; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; opacity: .85; }
.hd-promo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .875rem; }
.hd-promo li { display: flex; align-items: center; gap: .55rem; }
.hd-promo li .rzi { font-size: 1.2rem; color: #6fe08e; }

.hd-contact { display: grid; gap: .65rem; }
.hd-contact .hd-panel__head { margin-bottom: .15rem; }
.hd-contact__who { display: flex; align-items: center; gap: .75rem; }
.hd-contact__who b { font-size: 1rem; color: var(--rz-base-900); overflow-wrap: anywhere; }
.hd-contact__avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: none; background: var(--rz-primary-lighter); color: var(--rz-primary); }
.hd-contact__avatar .rzi { font-size: 1.6rem; }
.hd-contact__row { display: flex; align-items: center; gap: .65rem; color: var(--rz-base-800); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.hd-contact__row .rzi { font-size: 1.3rem; color: var(--rz-primary); flex: none; }
.hd-contact__row:hover span { color: var(--rz-primary-dark); text-decoration: underline; }
.hd-contact__note { margin: 0; }
.hd-contact__cta {
    display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .25rem; padding: .7rem 1rem; border-radius: 8px;
    background: var(--rz-primary); color: #fff; font-weight: 700; text-decoration: none;
}
.hd-contact__cta:hover { background: var(--rz-primary-dark); color: #fff; }

.hd-export { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.hd-export__num { display: grid; gap: .1rem; min-width: 9rem; }
.hd-export__num b { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--rz-base-900); font-variant-numeric: tabular-nums; }
.hd-export__note { flex: 1 1 16rem; display: grid; gap: .25rem; font-size: .875rem; }

.hd-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; line-height: 1.5; }

/* ── Trang đăng nhập / đăng ký ───────────────────────────────────────────────────── */
.hd-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.hd-auth__brand {
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.5rem;
    background: radial-gradient(40rem 24rem at 100% 100%, rgba(80, 150, 255, .35), transparent 65%), linear-gradient(170deg, var(--hd-nav-bg-top), var(--hd-nav-bg-bottom)); color: #d6e2fb;
}
.hd-auth__pitch h2 { color: #fff; font-size: 1.75rem; line-height: 1.25; margin: 0 0 1rem; letter-spacing: -.02em; }
.hd-auth__pitch ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .6rem; line-height: 1.5; }
.hd-auth__foot { font-size: .8125rem; opacity: .7; }
.hd-auth__form-wrap { display: grid; place-items: center; padding: 2rem 1.25rem; }
.hd-auth__form { width: min(26rem, 100%); display: grid; gap: 1rem; }
.hd-auth__form h1 { margin: 0; font-size: 1.625rem; letter-spacing: -.02em; }
.hd-auth__sub { margin: -.5rem 0 .25rem; color: var(--rz-text-tertiary-color); }
.hd-google { display: flex; justify-content: center; min-height: 44px; }
@media (max-width: 860px) {
    .hd-auth { grid-template-columns: 1fr; }
    .hd-auth__brand { padding: 1.25rem 1.5rem; gap: .75rem; }
    .hd-auth__pitch, .hd-auth__foot { display: none; }
    .hd-content { padding: 1rem .85rem 3rem; }
}

@media (max-width: 1100px) {
    .hd-dash { grid-template-columns: minmax(0, 1fr); }
    .hd-hero { grid-template-columns: minmax(0, 1fr); }
    .hd-hero__art, .hd-hero__tagline { display: none; }
}

/* ── Chi tiết hóa đơn ────────────────────────────────────────────────────────────── */
.hd-detail { display: grid; gap: 1rem; }
.hd-detail__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.hd-detail__tags, .hd-detail__actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.hd-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .75rem; }
.hd-party { border: 1px solid var(--rz-base-200); border-radius: 10px; padding: .75rem .9rem; background: var(--rz-base-50); }
.hd-party__label { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rz-text-tertiary-color); font-weight: 700; }
.hd-party__name { font-weight: 600; margin: .15rem 0; }
.hd-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; }
.hd-fig { border: 1px solid var(--rz-base-200); border-radius: 10px; padding: .6rem .8rem; }
.hd-fig--total { background: var(--rz-primary-lighter); border-color: transparent; }
.hd-fig__label { font-size: .75rem; color: var(--rz-text-tertiary-color); }
.hd-fig__value { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hd-lookup { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.hd-code { display: inline-flex; gap: .4rem; align-items: center; }
.hd-code__label { font-size: .75rem; color: var(--rz-text-tertiary-color); }
.hd-code__value { font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hd-xml { margin: 0; max-height: 65vh; overflow: auto; padding: .75rem .9rem; font-size: .8125rem; line-height: 1.45; tab-size: 2;
    border: 1px solid var(--rz-base-200); border-radius: 10px; background: var(--rz-base-50); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ── Tiến độ lượt tải ────────────────────────────────────────────────────────────── */
.hd-progress { min-width: 14rem; }
.hd-progress__msg { font-size: .75rem; color: var(--rz-text-tertiary-color); margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22rem; }
.hd-job-result { max-height: 6rem; overflow-y: auto; white-space: normal; overflow-wrap: anywhere; }
.hd-error-text { color: var(--rz-danger); font-size: .8125rem; }
.hd-warn-text { color: var(--rz-warning-dark); font-size: .8125rem; }

/* Lưới Radzen gọn hơn trên màn hẹp */
.rz-data-grid { border-radius: 10px; }
.hd-quota-bar { min-width: 8rem; }

/* ── Hộp thoại mất kết nối (Blazor Server) — lấy từ mẫu .NET 10, chữ Việt hóa ───────────────────────── */
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}


#components-reconnect-modal {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 0;
    background-color: var(--rz-primary);
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover {
        background-color: var(--rz-primary-dark);
    }

    #components-reconnect-modal button:active {
        background-color: var(--rz-primary);
    }

.components-rejoining-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div {
        position: absolute;
        border: 3px solid var(--rz-primary);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2) {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* Thanh báo lỗi không mong muốn của Blazor (hiện khi có ngoại lệ chưa xử lý) */
#blazor-error-ui {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; padding: .75rem 1.25rem;
    background: var(--rz-danger-lighter); color: var(--rz-on-danger-lighter); border-top: 1px solid var(--rz-danger);
}
#blazor-error-ui .reload { margin-left: .75rem; font-weight: 600; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .9rem; top: .55rem; }

/* Nút chọn file (ô file mặc định của trình duyệt hiện chữ theo ngôn ngữ trình duyệt, không Việt hóa được) */
.hd-file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.hd-filebtn {
    display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; padding: .45rem .9rem; border-radius: 8px;
    background: var(--rz-base-light); color: var(--rz-base-800); font-weight: 600; font-size: .8125rem;
    text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--rz-base-300);
}
.hd-filebtn:hover { background: var(--rz-base-200); }

/* Chọn cột cho mẫu xuất Excel: ô tích bên trái, danh sách cột đã chọn (đổi thứ tự / đặt tên) bên phải */
.hd-colpick { display: grid; grid-template-columns: minmax(13rem, 19rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.hd-colpick__pool, .hd-colpick__chosen { border: 1px solid var(--rz-base-200); border-radius: 10px; padding: .6rem .8rem; max-height: 24rem; overflow-y: auto; }
.hd-colpick__head { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rz-text-tertiary-color); font-weight: 700; margin-bottom: .4rem; }
.hd-colpick__head .hd-muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.hd-colpick__group { font-size: .8125rem; font-weight: 700; margin: .6rem 0 .2rem; }
.hd-colpick__opt { display: flex; align-items: center; gap: .5rem; padding: .15rem 0; cursor: pointer; }
.hd-colpick__row { display: flex; align-items: center; gap: .35rem; padding: .2rem 0; border-bottom: 1px solid var(--rz-base-100); }
.hd-colpick__grip { display: inline-flex; cursor: grab; color: var(--rz-text-tertiary-color); user-select: none; }
.hd-colpick__grip:active { cursor: grabbing; }
.hd-colpick__row--drag { opacity: .45; }
.hd-colpick__row--before { box-shadow: inset 0 2px 0 var(--rz-primary); }
.hd-colpick__row--after { box-shadow: inset 0 -2px 0 var(--rz-primary); }
.hd-colpick__no { width: 1.5rem; text-align: right; color: var(--rz-text-tertiary-color); font-size: .8125rem; }
.hd-colpick__orig { flex: 0 0 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; }
.hd-colpick__title { flex: 1 1 8rem; min-width: 0; }

/* Ghép tiêu đề trong file Excel của người dùng với trường dữ liệu: kéo trường ở bên trái thả vào dòng tiêu đề bên phải */
.hd-colpick__sheets { display: grid; gap: .75rem; min-width: 0; }
.hd-colpick__sheets .hd-colpick__chosen { max-height: none; overflow-y: visible; }
.hd-fieldchip {
    display: flex; align-items: center; gap: .35rem; margin: .15rem 0; padding: .2rem .45rem; cursor: grab; user-select: none;
    border: 1px solid var(--rz-base-300); border-radius: 6px; background: var(--rz-base-light); font-size: .8125rem;
}
.hd-fieldchip:active { cursor: grabbing; }
.hd-slot--over { background: var(--rz-primary-lighter); outline: 2px dashed var(--rz-primary); outline-offset: -2px; }
.hd-slot__header { flex: 0 1 11rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .8125rem; }
.hd-slot__field { flex: 1 1 12rem; min-width: 0; }

/* ── Trang tài liệu (Markdown) ───────────────────────────────────────────────────────────────────── */
.hd-doc__toc { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 1rem; }
.hd-doc { max-width: 60rem; line-height: 1.6; }
.hd-doc h1 { display: none; } /* tiêu đề trang đã có ở trên */
.hd-doc h2 { margin: 2rem 0 .75rem; padding-bottom: .35rem; font-size: 1.3rem; border-bottom: 1px solid var(--rz-base-300); scroll-margin-top: 4.5rem; }
.hd-doc h3 { margin: 1.5rem 0 .5rem; font-size: 1.05rem; }
.hd-doc p, .hd-doc li { overflow-wrap: anywhere; }
.hd-doc pre { margin: .75rem 0; padding: .75rem 1rem; overflow-x: auto; border-radius: 6px; background: var(--rz-base-200); font-size: .8125rem; line-height: 1.5; }
.hd-doc code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em; }
.hd-doc :not(pre) > code { padding: .1em .35em; border-radius: 4px; background: var(--rz-base-200); }
.hd-doc table { display: table; width: 100%; table-layout: auto; margin: .75rem 0; border-collapse: collapse; font-size: .875rem; }
.hd-doc table.rz-grid-table, .hd-doc table.rz-grid-table * { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word; } /* Radzen đặt nowrap + ẩn tràn cho ô bảng: bảng dài bị cắt */
.hd-doc th, .hd-doc td { padding: .4rem .65rem; border: 1px solid var(--rz-base-300); text-align: left; vertical-align: top; }
.hd-doc th { background: var(--rz-base-200); font-weight: 600; }
.hd-doc blockquote { margin: .75rem 0; padding: .25rem 1rem; border-left: 4px solid var(--rz-primary); background: var(--rz-primary-lighter); }
.hd-doc hr { margin: 1.5rem 0; border: 0; border-top: 1px solid var(--rz-base-300); }

/* ── Màn hẹp (điện thoại): menu trượt đè lên nội dung thay vì chiếm chỗ ───────────────────────────── */
@media (max-width: 767px) {
    .hd-colpick { grid-template-columns: minmax(0, 1fr); }
    .hd-colpick__orig { flex-basis: 6rem; }
    .hd-shell, .hd-shell--toggled { grid-template-columns: minmax(0, 1fr); }
    .hd-main { grid-column: 1; }
    .hd-side { transform: translateX(-100%); visibility: hidden; width: min(18rem, 86vw); }
    .hd-shell--toggled .hd-side { transform: none; visibility: visible; box-shadow: var(--rz-shadow-8); }
    .hd-shell--toggled .hd-scrim { display: block; position: fixed; inset: 0; z-index: 1100; background: rgba(8, 24, 63, .5); }
    .hd-topbar { padding: 0 .75rem; }
    .hd-topbar__app { font-size: 1.05rem; }
    .hd-topbar__tag, .hd-user__meta { display: none; }
    .hd-hero { padding: 1.25rem 1.1rem; }
    .hd-hero h1 { font-size: 1.35rem; }
    .hd-page-title h1 { font-size: 1.2rem; }
    .hd-footer { padding: 1rem .85rem; }
    .hd-footer__brand { flex-wrap: wrap; }
    .hd-footer__copy { padding-left: 0; margin-left: 0; border-left: 0; flex-basis: 100%; }
    .hd-contact__company, .hd-contact__map { grid-template-columns: minmax(0, 1fr); }
    .hd-contact__logo { justify-self: start; grid-template-columns: auto 1fr; gap: .1rem .75rem; justify-items: start; }
    .hd-contact__logo .hd-logo { grid-row: span 2; width: 3rem; height: 3rem; }
    .hd-contact__facts > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
    .hd-contact__map iframe { height: 14rem; }
}
@media (max-width: 1100px) {
    .hd-contact__map { grid-template-columns: minmax(0, 1fr); }
}

/* Hộp thoại phải nằm trên thanh menu bên trái (z-index 1150), nếu không menu che mất một phần hộp thoại. */
/* Radzen đọc z-index hộp thoại từ hai biến này. */
:root { --rz-dialog-mask-zindex: 2100; --rz-dialog-zindex: 2101; }
