:root {
    --color-navy: #0b3d5c;
    --color-navy-dark: #082f47;
    --color-navy-mid: #14557a;
    --color-blue: #1d6fa5;
    --color-teal: #0e7c78;
    --color-bg: #e8eef5;
    --color-surface: #ffffff;
    --color-text: #1a2430;
    --color-muted: #4d5c6a;
    --color-line: #e3ebf1;
    --color-danger: #b42318;
    --shadow: 0 8px 18px rgba(11, 61, 92, 0.07);
    --radius: 14px;
    --header-h: 78px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

a {
    color: var(--color-navy);
}

h1:focus {
    outline: none;
}

h1 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    letter-spacing: 0.02em;
    color: var(--color-navy);
}

h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-navy);
}

/* Layout: đăng nhập */
.login-shell,
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background:
        linear-gradient(180deg, rgba(11, 61, 92, 0.08), transparent 42%),
        var(--color-bg);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem 1.4rem 1.5rem;
    text-align: center;
}

.login-emblem {
    display: flex;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.login-card h1 {
    font-size: 1.2rem;
    line-height: 1.35;
}

.login-card .login-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    font-size: clamp(0.95rem, 4.35vw, 1.15rem);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.login-card .login-title-dong {
    display: block;
    white-space: nowrap;
}

.login-subtitle {
    margin: 0 0 1.4rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.login-card .field,
.login-card form,
.login-card .huong-dan-thiet-lap,
.login-card .hint {
    text-align: left;
}

.login-card .huong-dan-thiet-lap {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.login-card .ma-lenh {
    font-family: Consolas, ui-monospace, monospace;
    overflow-wrap: anywhere;
}

/* Layout: ứng dụng */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--color-navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.app-header-inner {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
    min-height: var(--header-h);
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.15;
}

.app-brand-mark {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.app-brand-chu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    padding-block: 0.12rem;
}

.app-brand-phu {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.8;
}

.app-brand-chinh {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.menu-nut {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    padding: 0.28rem 0.55rem;
    min-height: 34px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.menu-nut-vach,
.menu-nut-vach::before,
.menu-nut-vach::after {
    display: block;
    width: 15px;
    height: 2px;
    background: #fff;
    content: "";
}

.menu-nut-vach {
    position: relative;
}

.menu-nut-vach::before {
    position: absolute;
    top: -5px;
}

.menu-nut-vach::after {
    position: absolute;
    top: 5px;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

.app-user-name {
    font-weight: 600;
    font-size: 0.88rem;
}

.app-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.app-nav-link:hover {
    text-decoration: underline;
}

.btn-logout {
    appearance: none;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    min-height: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.12);
}

.app-main {
    flex: 1;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 0.9rem 0.85rem 1.6rem;
}

.page-intro {
    margin-bottom: 0.85rem;
}

.page-intro h1 {
    max-width: 100%;
    font-size: 1.25rem;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.page-intro p {
    margin: 0.25rem 0 0;
    color: var(--color-muted);
}

.back-link {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.sample-note {
    margin-top: 0.65rem !important;
    font-size: 0.88rem;
    color: var(--color-navy-mid);
    background: #e8f1f6;
    border-left: 4px solid var(--color-navy);
    padding: 0.5rem 0.7rem;
}

/* Trang chủ */
.trang-chu {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.chao-mung {
    border-radius: 16px;
    overflow: hidden;
    min-height: 0;
    background: linear-gradient(180deg, #e7f2f8 0%, #f8fbfd 100%);
    border: 1px solid var(--color-line);
    display: flex;
    align-items: stretch;
}

.chao-mung-lop {
    width: 100%;
    margin: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
}

.chao-loi {
    min-width: 0;
    flex: 1 1 12rem;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
}

.chao-loi h1,
.chao-loi p {
    min-width: 0;
}

.chao-phu,
.chao-loi p {
    margin: 0;
    color: #4a5c6e;
    font-size: 0.9rem;
    line-height: 1.35;
}

.chao-mung h1 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.chao-loi .canh-bao-dang-nhap-nhom {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.55rem;
    min-width: 0;
    max-width: 100%;
    max-height: 16rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.chao-loi .canh-bao-dang-nhap {
    min-width: 0;
    max-width: 100%;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    background: #fff6f4;
    border: 1px solid #e7b2ab;
    color: #3d221f;
    overflow-wrap: anywhere;
}

.chao-loi .canh-bao-dang-nhap strong {
    display: block;
    color: #9f2d22;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.chao-loi .canh-bao-dang-nhap p,
.chao-loi .canh-bao-loi {
    margin: 0.28rem 0 0;
    color: #3d221f;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chao-loi .canh-bao-loi {
    color: #9f2d22;
}

.chao-loi .canh-bao-hanh-dong {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.chao-loi .canh-bao-hanh-dong .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    min-height: 44px;
}

@media (max-width: 719px) {
    .chao-loi .canh-bao-dang-nhap-nhom {
        max-height: 32rem;
    }

    .chao-loi .canh-bao-hanh-dong .btn-secondary {
        flex: 1 1 100%;
    }

    .chao-loi .canh-bao-dang-nhap strong {
        font-size: 0.95rem;
    }

    .chao-loi .canh-bao-dang-nhap p {
        font-size: 1rem;
    }
}

.chao-the {
    flex: 1 1 11rem;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e4edf3;
    box-shadow: 0 4px 12px rgba(11, 61, 92, 0.06);
    text-decoration: none;
    color: inherit;
}

.chao-the strong {
    color: var(--color-navy);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: capitalize;
}

.chao-the-nhan,
.chao-the-phu {
    color: var(--color-muted);
    font-size: 0.75rem;
    line-height: 1.3;
}

.chao-the-phan-cong {
    color: var(--color-navy);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

.khoi-tieu-de {
    margin: 0.85rem 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    border: 0;
    border-radius: 16px;
    padding: 0.72rem 0.7rem;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 16px rgba(11, 61, 92, 0.07);
}

.feature-card:hover,
.feature-card:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

.feature-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-blue);
}

.feature-ngoc .feature-icon {
    background: #e5f6f4;
    color: var(--color-teal);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    color: var(--color-navy);
}

.feature-desc {
    color: #4a5c6e;
    font-size: 0.8rem;
    line-height: 1.3;
}

.feature-mui {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2.5px solid currentColor;
    border-top: 2.5px solid currentColor;
    transform: rotate(45deg);
}

.tien-ich {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tien-ich a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e6eef3;
    box-shadow: 0 3px 10px rgba(11, 61, 92, 0.05);
    color: var(--color-navy);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.tien-ich a:hover,
.tien-ich a:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

.bang-boc {
    overflow-x: auto;
}

.bang-tai-khoan {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.bang-tai-khoan th,
.bang-tai-khoan td {
    text-align: left;
    padding: 0.55rem 0.45rem;
    border-bottom: 1px solid var(--color-line);
    vertical-align: top;
}

.bang-tai-khoan th {
    background: #eef5fa;
    color: var(--color-navy);
    font-size: 0.84rem;
}

.bang-thao-tac {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hang-nut {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form-them-tieu-chi {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
}

.form-them-tieu-chi .field {
    flex: 1 1 16rem;
    min-width: 0;
    margin: 0;
}

.ds-tieu-chi {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.the-tieu-chi-ql {
    min-width: 0;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 0.7rem 0.75rem;
    background: #fff;
}

.the-tieu-chi-ql .field {
    margin-bottom: 0.45rem;
}

.the-tieu-chi-ql .hang-nut .btn-secondary,
.the-tieu-chi-ql .hang-nut .btn-primary {
    min-height: 44px;
}

@media (max-width: 719px) {
    .the-tieu-chi-ql .hang-nut .btn-secondary,
    .the-tieu-chi-ql .hang-nut .btn-primary,
    .form-them-tieu-chi .btn-primary {
        flex: 1 1 100%;
    }
}

.xac-nhan-xoa {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.5rem 0 0.75rem;
    font-weight: 600;
}

.xac-nhan-xoa input {
    width: auto;
    min-height: 0;
    margin-top: 0.2rem;
}

/* Danh sách bếp */
.kitchen-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.kitchen-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    row-gap: 0.15rem;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
    min-height: 72px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(11, 61, 92, 0.06);
}

.kitchen-card:hover,
.kitchen-card:focus-visible {
    border-color: var(--color-navy);
    outline: 2px solid var(--color-navy);
    outline-offset: 1px;
}

.kitchen-number {
    grid-row: 1 / span 2;
    min-width: 52px;
    height: 48px;
    padding: 0 0.4rem;
    border-radius: 10px;
    background: #e7f1fb;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.kitchen-name {
    font-weight: 700;
    color: var(--color-navy);
}

.kitchen-action {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.meal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.meal-card {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    min-height: 88px;
    padding: 1rem 1.1rem;
    text-align: left;
    cursor: pointer;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: inherit;
    font: inherit;
}

.meal-card:hover,
.meal-card:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 1px;
}

.meal-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--color-navy);
}

.meal-hint {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.phieu-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.phieu-meta-item {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}

.phieu-meta-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.15rem;
}

.phieu-meta-value {
    display: block;
    font-weight: 700;
    color: var(--color-navy);
    font-size: 1.02rem;
}

.phieu-ma-gon {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.65rem;
    margin: 0 0 0.55rem;
    padding: 0.4rem 0.7rem;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 8px;
}

.phieu-ma-gon .phieu-meta-label {
    display: inline;
    margin: 0;
    font-size: 0.78rem;
}

.phieu-ma-gon .phieu-meta-value {
    display: inline;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.btn-xem-thuc-don {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-top: 0.45rem;
    margin-right: 0.45rem;
    text-decoration: none;
    min-width: 0;
}

.thuc-don-xem {
    margin: 0.75rem 0 1rem;
}

.ds-anh-chon {
    list-style: none;
    margin: 0.75rem 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.anh-cho-luu {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.45rem;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #f8fbfd;
}

.anh-cho-luu img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
}

.anh-cho-luu p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: var(--color-muted);
    word-break: break-all;
}

.btn-bo-anh {
    min-height: 44px;
    min-width: 64px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    color: var(--color-navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.dot-thuc-don {
    margin-top: 0.85rem;
}

.dot-thuc-don-tieu-de {
    margin: 0 0 0.4rem;
    font-weight: 700;
    color: var(--color-navy-dark);
}

.anh-bam-lon {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.anh-bam-lon:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.75rem 0.75rem 0.75rem;
    background: rgba(8, 18, 28, 0.88);
}

.lightbox-anh {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 4.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
}

.lightbox-dong {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2001;
    min-height: 44px;
    min-width: 88px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--color-navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.thuc-don-xem img {
    width: 100%;
    max-height: min(80vh, 900px);
    object-fit: contain;
    background: #fff;
}

.tieu-chi-goi-y-khung {
    padding: 0.45rem;
}

.tieu-chi-goi-y-khung .btn-thu-gon {
    align-items: flex-start;
    min-height: 52px;
}

.tieu-chi-goi-y-khung .mui-ten {
    margin-top: 0.45rem;
}

.tieu-chi-goi-y-nhan {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tieu-chi-goi-y-goi {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.35;
}

.tieu-chi-goi-y {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.15rem 0.15rem;
}

.tieu-chi-goi-y li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.28rem 0;
}

.tieu-chi-goi-y .tieu-chi-ten {
    padding-top: 0.35rem;
}

.nhan-xet-chung textarea {
    min-height: 8.5rem;
    field-sizing: content;
    line-height: 1.45;
}

.noi-dung-xem {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 0.2rem 0 0;
}

.tieu-chi-title {
    display: block;
    margin: 0;
    line-height: 1.35;
}

.tieu-chi.mo .tieu-chi-title {
    margin-bottom: 0.7rem;
}

.tieu-chi.panel {
    padding: 0.35rem 0.55rem;
    margin-bottom: 0.45rem;
}

.tieu-chi.panel.mo {
    padding: 0.7rem 0.8rem;
}

.tieu-chi-bam {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0.2rem 0.1rem 0.2rem 0;
    appearance: none;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
}

.tieu-chi-bam:hover,
.tieu-chi-bam:focus-visible {
    background: #e8f1f6;
    outline: 2px solid var(--color-navy);
    outline-offset: 1px;
}

.tieu-chi-ten {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tieu-chi-bam .mui-ten {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0.35rem;
}

.tieu-chi.mo .tieu-chi-bam .mui-ten {
    transform: rotate(45deg);
    margin-top: -0.15rem;
}

.tieu-chi:not(.mo) .tieu-chi-chi-tiet {
    display: none;
}

.tieu-chi-stt {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
}

.tieu-chi-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
    align-items: start;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn-thu-gon {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    margin: 0;
    appearance: none;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid var(--color-navy);
    background: #fff;
    color: var(--color-navy);
}

.btn-thu-gon:hover,
.btn-thu-gon:focus-visible {
    background: #e8f1f6;
    outline: 2px solid var(--color-navy);
    outline-offset: 1px;
}

.field-thu-gon.mo .btn-thu-gon {
    background: var(--color-navy);
    color: #fff;
}

.field-thu-gon.mo .btn-thu-gon:hover,
.field-thu-gon.mo .btn-thu-gon:focus-visible {
    background: var(--color-navy-dark);
}

.mui-ten {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-left: 0.15rem;
}

.field-thu-gon.mo .mui-ten {
    transform: rotate(45deg);
    margin-top: -0.15rem;
}

.co-noi-dung {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.22rem 0.45rem;
    border-radius: 6px;
    background: #e8f1f6;
    color: var(--color-navy-dark);
}

.field-thu-gon.mo .co-noi-dung {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.field-thu-gon:not(.mo) .field-thu-gon-body {
    display: none;
}

.lich-su-phieu {
    margin-top: 1rem;
}

.lich-su-body {
    padding-top: 0.75rem;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lich-su-ds {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.lich-su-muc {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #f8fbfd;
}

.lich-su-muc p {
    margin: 0.2rem 0;
}

.lich-su-muc ul {
    margin: 0.35rem 0 0;
    padding-left: 1.15rem;
}

.lich-su-nhan {
    font-weight: 700;
    color: var(--color-navy-dark);
}

.evidence-field {
    padding-top: 0.35rem;
    border-top: 1px dashed var(--color-line);
}

.anh-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.55rem;
    scroll-margin-bottom: 5.5rem;
}

.btn-anh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-anh-chon {
    border: 1px solid var(--color-navy);
    background: #fff;
    color: var(--color-navy);
}

.btn-anh-chup {
    border: 0;
    background: var(--color-navy);
    color: #fff;
}

.btn-anh-chup:hover,
.btn-anh-chon:hover {
    filter: brightness(1.05);
}

.btn-anh-chon .input-file-an {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    border: 0;
    font-size: 0;
}

body.camera-ktba-khoa {
    overflow: hidden;
}

#camera-ktba-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(8, 47, 71, 0.92);
    padding: 0.75rem;
    align-items: center;
    justify-content: center;
}

#camera-ktba-overlay.mo {
    display: flex;
}

.camera-ktba-khung {
    width: min(100%, 560px);
    background: #fff;
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.camera-ktba-tieu-de {
    margin: 0 0 0.65rem;
    font-weight: 800;
    color: var(--color-navy);
    text-align: center;
}

.camera-ktba-man {
    position: relative;
    background: #0b3d5c;
    border-radius: 8px;
    overflow: hidden;
    min-height: 220px;
}

.camera-ktba-video,
.camera-ktba-preview {
    display: block;
    width: 100%;
    max-height: min(62vh, 420px);
    object-fit: cover;
    background: #082f47;
}

.camera-ktba-preview {
    display: none;
}

.camera-ktba-nut {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.camera-ktba-nut button {
    flex: 1;
    min-width: 120px;
    min-height: 44px;
}

.file-list {
    margin: 0.45rem 0 0;
    padding-left: 1.15rem;
}

.file-list-note {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.phieu-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    background: var(--color-bg);
    padding: 0.85rem 0 0.4rem;
    margin-top: 0.5rem;
    z-index: 10;
}

.phieu-actions .btn-primary,
.phieu-actions .btn-secondary,
.phieu-actions .btn-danger {
    flex: 1;
    min-width: 140px;
}

/* Form / panel */
.panel {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 0.9rem;
    margin-bottom: 0.85rem;
    box-shadow: var(--shadow);
}

.panel-title {
    margin-bottom: 0.7rem;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    margin-bottom: 1rem;
    min-width: 0;
    max-width: 100%;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
}

.field label {
    font-weight: 600;
    color: var(--color-navy-dark);
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="month"],
select,
textarea,
input:not([type]),
.field input,
.field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #b7c4ce;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font: inherit;
    background: #fff;
    color: var(--color-text);
}

/* Ô ngày có chiều rộng nội tại lớn hơn khung trên điện thoại. Ép ô nằm trong cha, cùng cách tính kích thước với ô chọn tệp. */
input[type="date"],
input[type="month"],
input[type="datetime-local"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-inline-size: 0;
    contain: inline-size;
    text-align: left;
    justify-content: flex-start;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="month"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value {
    display: block;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    text-align: left;
}

input[type="date"]::-webkit-datetime-edit,
input[type="month"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="month"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
    min-width: 0;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    margin-inline-start: auto;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

.bao-cao-doan {
    min-height: 140px;
}

.pham-vi-loc {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #f4f7f9;
    color: var(--color-text);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.tong-hop-don-vi {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tong-hop-bep {
    border-radius: 12px;
    padding: 0.75rem 0.9rem 0.85rem;
}

.tong-hop-ten-bep {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.tong-hop-dong {
    margin: 0.12rem 0;
    white-space: pre-wrap;
}

.tong-hop-ngay {
    margin-top: 0.7rem;
    font-weight: 800;
}

.tong-hop-bua {
    margin: 0.4rem 0 0.12rem 0.85rem;
    font-weight: 700;
}

.tong-hop-muc {
    margin-left: 1.7rem;
}

.tong-hop-truong,
.tong-hop-phu {
    margin-left: 2.55rem;
}

.phu-luc-don-vi {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phu-luc-bep {
    border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
    border-radius: 12px;
    padding: 0.75rem 0.9rem 0.85rem;
}

.phu-luc-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: inherit;
}

.bc-nut-thu-gon {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 44px;
    padding: 0.2rem 0;
    margin: 0;
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bc-nut-thu-gon:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 6px;
}

.bc-nut-thu-gon[aria-expanded="true"] .mui-ten {
    transform: rotate(45deg);
    margin-top: -0.15rem;
}

.bc-tieu-de-phan {
    margin-bottom: 0.35rem;
}

@media (max-width: 719px) {
    .phieu-actions.bc-xuat-word {
        position: static;
    }
}

.phu-luc-ngay {
    margin: 0.7rem 0 0.15rem 0.85rem;
    font-size: 1rem;
    font-weight: 800;
    color: inherit;
}

.phu-luc-luot-ten {
    margin: 0.4rem 0 0.15rem 1.7rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.phu-luc-luot-ten a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    white-space: normal;
    overflow-wrap: break-word;
}

.phu-luc-trong {
    margin: 0.1rem 0 0.35rem 2.55rem;
}

.phu-luc-tieu-chi {
    margin: 0 0 0.55rem 2.55rem;
}

.phu-luc-tieu-chi p {
    margin: 0.15rem 0;
}

.phu-luc-tieu-chi-ten {
    font-weight: 700;
    color: inherit;
}

.qt-nhom,
.qt-xac-nhan {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.7rem 0;
}

.qt-xac-nhan {
    flex-direction: row;
    align-items: flex-start;
}

a.qt-tai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.7rem;
    max-width: 100%;
    text-align: center;
    text-decoration: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 1px;
}

.password-row {
    display: flex;
    gap: 0.45rem;
}

.password-row input {
    flex: 1;
}

.btn-eye,
.btn-primary,
.btn-secondary,
.btn-danger {
    appearance: none;
    font: inherit;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    min-height: 44px;
    padding: 0.55rem 1rem;
}

.btn-eye {
    border: 1px solid var(--color-navy);
    background: #fff;
    color: var(--color-navy);
    min-width: 72px;
}

.btn-primary {
    border: 0;
    background: var(--color-navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-navy-dark);
}

.btn-secondary {
    border: 1px solid var(--color-navy);
    background: #fff;
    color: var(--color-navy);
}

.btn-danger {
    border: 0;
    background: var(--color-danger);
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus-visible {
    filter: brightness(0.92);
}

.btn-full {
    width: 100%;
    margin-top: 0.4rem;
}

.form-error {
    color: var(--color-danger);
    font-weight: 600;
    margin: 0.4rem 0;
    background: #fdecea;
    border-left: 4px solid var(--color-danger);
    padding: 0.45rem 0.65rem;
}

.form-success {
    color: var(--color-navy-dark);
    font-weight: 700;
    margin: 0.7rem 0 0;
    background: #e8f1f6;
    border-left: 4px solid var(--color-navy);
    padding: 0.5rem 0.7rem;
}

.anh-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.anh-minh-chung {
    margin: 0;
    background: #f8fbfd;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 0.5rem;
}

.anh-minh-chung img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    background: #fff;
}

.anh-minh-chung .anh-mat {
    margin: 0;
    padding: 1.5rem 0.5rem;
    text-align: center;
    color: #9a3412;
    background: #fff7ed;
    border: 1px dashed #fdba74;
    border-radius: 6px;
}

.anh-minh-chung figcaption {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.hint {
    margin: 0.7rem 0 0;
    color: var(--color-muted);
}

.report-placeholder {
    margin-top: 0.75rem;
    border: 1px dashed var(--color-navy-mid);
    border-radius: 8px;
    padding: 1.25rem;
    color: var(--color-muted);
    background: #f8fbfd;
}

InputFile,
input[type="file"] {
    width: 100%;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjcuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N2MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (min-width: 360px) {
    .chao-mung-lop {
        flex-wrap: nowrap;
        align-items: center;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-grid-phu {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 719px) {
    .menu-nut {
        display: inline-flex;
    }

    .app-user {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 30;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        margin: 0;
        padding: 0.35rem 0.75rem 0.7rem;
        background: var(--color-navy-dark);
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
    }

    .menu-toggle:checked ~ .app-user {
        display: flex;
    }

    .app-user-name,
    .app-nav-link,
    .app-user .btn-logout {
        padding: 0.5rem 0.25rem;
        min-height: 40px;
    }

    .app-user .btn-logout {
        justify-content: center;
        margin-top: 0.2rem;
    }
}

@media (min-width: 720px) {
    h1 {
        font-size: 1.7rem;
    }

    .login-card {
        padding: 2rem 1.85rem 1.7rem;
    }

    .login-card h1 {
        font-size: 1.4rem;
    }

    .login-card .login-title {
        display: block;
        font-size: 1.4rem;
        letter-spacing: normal;
        line-height: 1.35;
        gap: 0;
    }

    .login-card .login-title-dong {
        display: inline;
        white-space: nowrap;
    }

    .login-card .login-title-dong + .login-title-dong::before {
        content: " ";
    }

    .app-main {
        padding: 1.25rem 1.25rem 2rem;
    }

    .page-intro h1 {
        font-size: 1.45rem;
    }

    .chao-mung-lop {
        margin: 0.8rem 0.85rem;
        flex-wrap: nowrap;
        align-items: center;
    }

    .chao-mung h1,
    .chao-the strong {
        font-size: 1.22rem;
    }

    .chao-the {
        flex: 1 1 18rem;
        min-width: 0;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .feature-card {
        min-height: 0;
        padding: 0.8rem 0.75rem;
    }

    .kitchen-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .field-full {
        grid-column: 1 / -1;
    }

    .meal-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .meal-card {
        min-height: 120px;
        padding: 1.25rem;
    }

    .phieu-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .tieu-chi-fields {
        grid-template-columns: repeat(3, 1fr);
    }

    .anh-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .kitchen-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .phieu-meta {
        grid-template-columns: repeat(5, 1fr);
    }
}

.meal-card:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bang-nau {
    width: 100%;
    min-width: 64rem;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.bang-nau col.cot-stt { width: 2.6rem; }
.bang-nau col.cot-qs { width: 5rem; }
.bang-nau col.cot-dvt { width: 4.75rem; }
.bang-nau col.cot-sl { width: 6.5rem; }
.bang-nau col.cot-dl { width: 6.25rem; }
.bang-nau col.cot-pt { width: 6.75rem; }
.bang-nau col.cot-xoa { width: 6rem; }

.bang-nau th,
.bang-nau td {
    text-align: left;
    padding: 0.4rem 0.3rem;
    border-bottom: 1px solid var(--color-line);
    vertical-align: top;
}

.bang-nau th {
    background: #eef5fa;
    color: var(--color-navy);
    font-size: 0.82rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: break-word;
}

.bang-nau .cot-stt {
    text-align: center;
    font-weight: 700;
    color: var(--color-navy);
    padding-top: 0.7rem;
}

.bang-nau input[type="text"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    padding: 0.35rem 0.4rem;
}

.bang-nau .o-tinh {
    display: flex;
    align-items: center;
    min-height: 40px;
    max-width: 100%;
    padding: 0.35rem 0.4rem;
    overflow-x: auto;
    background: #f4f7fa;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
}

.o-loi-nho {
    display: block;
    margin-top: 0.2rem;
    color: var(--color-danger);
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-nho {
    min-height: 36px;
    padding: 0.25rem 0.55rem;
    font-size: 0.85rem;
}

.phieu-luu-nhom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-column: 1 / -1;
    max-width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(11, 61, 92, 0.06);
}

.phieu-luu-bam {
    appearance: none;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    row-gap: 0.15rem;
    align-items: center;
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    min-height: 76px;
    padding: 0.95rem 1rem;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: inherit;
    font: inherit;
}

.phieu-luu-bam:hover,
.phieu-luu-bam:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 1px;
}

.phieu-luu-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
    max-width: 100%;
    margin-left: auto;
    padding: 0.55rem 1rem;
}

.phieu-luu-in .btn-nho {
    flex: 0 0 auto;
    white-space: nowrap;
}

.phieu-luu-in .form-error {
    flex-basis: 100%;
    margin: 0;
    min-width: min(100%, 16rem);
}

.phieu-luu-in select {
    width: auto;
    max-width: 100%;
    min-width: min(100%, 11rem);
    flex: 0 1 auto;
}

.phieu-luu-bua {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    flex: 1 0 100%;
    gap: 0.45rem;
    padding: 0 1rem 0.9rem;
}

.phieu-luu-bua a {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    text-decoration: none;
    border: 1px solid var(--color-line);
    border-left: 6px solid var(--color-navy);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    background: #f8fbfd;
    color: inherit;
}

.phieu-luu-bua a:hover,
.phieu-luu-bua a:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 1px;
}

.phieu-luu-bua-ten {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--color-navy);
}

.phieu-luu-bua-phu {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.lich-thu {
    width: 1%;
    white-space: nowrap;
}

.lich-nguoi {
    min-width: 220px;
}

@media (max-width: 720px) {
    .lich-nguoi {
        min-width: 0;
    }
}

.lich-tom-tat {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.phieu-ds-tieu-de {
    margin: 0 0 0.55rem;
}

.phieu-ds {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.phieu-khoi {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.phieu-khoi-tieu-de {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border: 0;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.phieu-khoi-ten {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.phieu-khoi-ten strong {
    color: var(--color-navy);
}

.phieu-khoi-ten span,
.phieu-khoi-trang {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.phieu-dong {
    display: grid;
    grid-template-columns: 6.4rem 4.8rem minmax(0, 1fr);
    gap: 0.35rem 0.6rem;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-top: 1px solid var(--color-line);
    text-decoration: none;
    color: inherit;
}

.phieu-dong-ngay,
.phieu-dong-bua {
    font-weight: 700;
    color: var(--color-navy);
}

.phieu-dong-nguoi {
    min-width: 0;
    overflow-wrap: anywhere;
}

.phieu-dong:hover,
.phieu-dong:focus-visible {
    background: #f3f7fb;
    outline: none;
}

@media (max-width: 380px) {
    .phieu-dong {
        grid-template-columns: 6.2rem minmax(0, 1fr);
    }

    .phieu-dong-nguoi {
        grid-column: 1 / -1;
    }
}

/* Bố cục theo hình mẫu: logo, menu, thẻ pastel */
.app-header {
    z-index: 40;
}

.app-brand {
    gap: 0.7rem;
    align-items: center;
}

.app-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    flex: 0 0 auto;
    background: transparent;
    padding: 0;
}

.app-brand-phu {
    font-size: clamp(0.74rem, 2.6vw, 0.86rem);
    line-height: 1.4;
    letter-spacing: 0.05em;
    white-space: normal;
    overflow: visible;
}

.app-brand-chinh {
    text-transform: uppercase;
    font-size: clamp(0.98rem, 3.7vw, 1.2rem);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.012em;
    margin-top: 0.08rem;
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
}

.menu-nut {
    display: inline-flex;
    flex: 0 0 auto;
}

.menu-nut-chu {
    line-height: 1;
}

.menu-toggle:checked ~ .app-header .menu-nut-vach {
    background: transparent;
}

.menu-toggle:checked ~ .app-header .menu-nut-vach::before,
.menu-toggle:checked ~ .app-header .menu-nut-vach::after {
    top: 0;
}

.menu-toggle:checked ~ .app-header .menu-nut-vach::before {
    transform: rotate(45deg);
}

.menu-toggle:checked ~ .app-header .menu-nut-vach::after {
    transform: rotate(-45deg);
}

.menu-toggle:checked ~ .app-header .menu-nut-chu {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.app-than {
    min-width: 0;
}

.app-menu {
    display: none;
    position: fixed;
    z-index: 25;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: auto;
    flex-direction: column;
    gap: 0.2rem;
    padding: calc(var(--header-h) + 0.55rem) 0.75rem 1.2rem;
    background: #f3f7fb;
}

.menu-toggle:checked ~ .app-than .app-menu {
    display: flex;
}

.menu-brand {
    display: none;
}

.menu-nguoi {
    margin-bottom: 0.35rem;
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    background: #fff;
    color: var(--color-navy);
    font-weight: 800;
    box-shadow: var(--shadow);
}

.menu-muc {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 0.8rem;
    border-radius: 12px;
    background: #fff;
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 700;
}

.menu-dem {
    margin-left: auto;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #9f2d22;
    color: #fff;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.thong-bao-thiet-bi {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    align-items: center;
    margin: 0.75rem 0.8rem 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid #e7b2ab;
    border-radius: 12px;
    background: #fff6f4;
    color: #3d221f;
}

.thong-bao-thiet-bi a {
    color: #9f2d22;
    font-weight: 800;
}

.thanh-cho-duyet {
  margin: 0 0 1rem;
}

.thanh-cho-duyet a {
  margin-left: 0.5rem;
}

.the-thiet-bi {
    margin-top: 0.75rem;
    padding: 0.8rem;
    border: 1px solid #d5e0e8;
    border-radius: 12px;
    background: #fff;
}

.the-thiet-bi header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    align-items: baseline;
}

.the-thiet-bi .hang-nut {
    margin-top: 0.55rem;
}

.nhan-thiet-bi-chinh,
.canh-bao-thu-hoi {
    margin: 0.45rem 0 0;
    color: #8a4b08;
    font-weight: 600;
}

.dong-y-thu-hoi {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    margin-top: 0.45rem;
}

.menu-thoat {
    color: #b42318;
    background: #fdecea;
}

.chao-mung {
    min-height: 210px;
    border: 0;
    background-color: #d5e2ea;
    background-image:
        linear-gradient(180deg, rgba(8, 47, 71, 0.05), rgba(8, 47, 71, 0.22)),
        url("/images/bep-quan-doi.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 42%;
    align-items: flex-end;
}

.chao-mung-lop {
    margin: 4.4rem 0.55rem 0.55rem;
    background: transparent;
    padding: 0;
    gap: 0.5rem;
}

.chao-loi,
.chao-the {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(11, 61, 92, 0.08);
    backdrop-filter: blur(8px);
    padding: 0.75rem 0.85rem;
}

.feature-card {
    border: 0;
    box-shadow: 0 6px 16px rgba(11, 61, 92, 0.07);
    min-height: 0;
}

.feature-icon {
    background: rgba(255, 255, 255, 0.92);
}

.mau-xanh { background: #d7e7ff; color: #1d6fd0; }
.mau-xanh .feature-icon { color: #1d6fd0; }
.mau-luc { background: #d4f3e3; color: #128a52; }
.mau-luc .feature-icon { color: #128a52; }
.mau-ngoc { background: #d4f4ee; color: #0d8f86; }
.mau-ngoc .feature-icon { color: #0d8f86; }
.mau-cam { background: #ffe4d2; color: #d36a1e; }
.mau-cam .feature-icon { color: #d36a1e; }
.mau-tim { background: #eadfff; color: #6d45c8; }
.mau-tim .feature-icon { color: #6d45c8; }
.mau-hong { background: #fde0ea; color: #d14b78; }
.mau-hong .feature-icon { color: #d14b78; }

.trang-chu .feature-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "icon title arrow"
        ". desc .";
    align-items: center;
    column-gap: 0.55rem;
    row-gap: 0.12rem;
    min-width: 0;
    min-height: 0;
    padding: 0.72rem 0.68rem;
    container-type: inline-size;
}

.trang-chu .feature-copy {
    display: contents;
}

.trang-chu .feature-icon {
    grid-area: icon;
    align-self: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.trang-chu .feature-icon svg {
    width: 22px;
    height: 22px;
}

.trang-chu .feature-title {
    grid-area: title;
    align-self: center;
    min-width: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.trang-chu .feature-desc {
    grid-area: desc;
    justify-self: start;
    align-self: start;
    width: min(100%, max-content);
    max-width: 100%;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.3;
    text-align: left;
    text-align-last: center;
    overflow-wrap: break-word;
}

.trang-chu .feature-desc {
    min-width: 0;
}

.trang-chu .feature-mui {
    grid-area: arrow;
    position: static;
    align-self: center;
    justify-self: end;
    margin: 0;
}

@container (max-width: 250px) {
    .trang-chu .feature-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .trang-chu .feature-icon svg {
        width: 19px;
        height: 19px;
    }

    .trang-chu .feature-title {
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .trang-chu .feature-desc {
        font-size: 0.78rem;
        line-height: 1.35;
    }
}

.tien-ich a.ti-khoa { background: #e7f1fb; color: #1d6fa5; border-color: transparent; }
.tien-ich a.ti-nguoi { background: #e5f7ee; color: #0e7c66; border-color: transparent; }
.tien-ich a.ti-thoat { background: #fdecea; color: #b42318; border-color: transparent; }

.bang-boc {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 12px;
}

.login-emblem img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: transparent;
}

@media (max-width: 340px) {
    .app-header-inner {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }
}

@media (max-width: 719px) {
    .app-header-inner {
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }

    .menu-nut {
        min-height: 40px;
        padding: 0.38rem 0.7rem;
        gap: 0.48rem;
    }

    .menu-nut-vach,
    .menu-nut-vach::before,
    .menu-nut-vach::after {
        width: 17px;
    }

    .chao-mung {
        min-height: 0;
    }

    .chao-mung-lop {
        flex-wrap: wrap;
        margin: 1.35rem 0.5rem 0.35rem;
        gap: 0.55rem;
    }

    .trang-chu {
        gap: 0.75rem;
        padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    }

    .chao-loi,
    .chao-the {
        background: rgba(255, 255, 255, 0.82);
        padding: 0.72rem 0.85rem;
    }

    .chao-phu,
    .chao-loi p {
        font-size: 1.06rem;
        line-height: 1.35;
    }

    .chao-the {
        flex: 1 1 100%;
        min-width: 0;
        gap: 0.12rem;
    }

    .chao-mung h1,
    .chao-the strong {
        margin: 0.04rem 0;
        font-size: 1.28rem;
        font-weight: 800;
        line-height: 1.25;
    }

    .chao-loi h1 {
        margin: 0;
    }

    .chao-the-nhan {
        font-size: 0.98rem;
    }

    .chao-the-phan-cong {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .app-main {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
        padding-bottom: 1rem;
    }

    .trang-chu .khoi-tieu-de {
        margin: 0.1rem 0 0;
        font-size: 1.22rem;
    }

    .trang-chu .feature-grid {
        gap: 0.68rem;
    }

    .trang-chu .feature-card {
        column-gap: 0.26rem;
        row-gap: 0.24rem;
        padding: 0.88rem 0.4rem;
    }
}

@media (min-width: 720px) {
    .chao-mung {
        min-height: 250px;
    }

    .chao-mung-lop {
        margin: 5.6rem 0.85rem 0.85rem;
    }
}

@media (min-width: 960px) {
    .menu-nut {
        display: none;
    }

    .app-header-inner {
        padding: 0.45rem 1.25rem;
    }

    .app-than {
        display: flex;
        align-items: stretch;
        min-height: calc(100vh - var(--header-h));
    }

    .app-menu {
        display: flex;
        position: sticky;
        top: var(--header-h);
        width: 248px;
        flex: 0 0 248px;
        height: calc(100vh - var(--header-h));
        padding: 0.85rem 0.7rem 1rem;
        background: #082f47;
        color: #fff;
    }

    .menu-nguoi {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        box-shadow: none;
    }

    .menu-muc {
        background: transparent;
        color: #fff;
    }

    .menu-muc:hover,
    .menu-muc:focus-visible {
        background: rgba(255, 255, 255, 0.1);
        outline: none;
    }

    .menu-thoat {
        margin-top: auto;
        background: rgba(180, 35, 24, 0.16);
        color: #ffd0cb;
    }

    .app-main {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        margin: 0;
    }
}

@media (min-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.app-shell .app-header-inner {
    min-height: var(--hd-cao, var(--header-h));
    gap: var(--hd-khoang, 0.7rem);
    padding-bottom: var(--hd-duoi, 8px);
}

.app-shell .app-logo {
    width: var(--hd-logo, 60px);
    height: var(--hd-logo, 60px);
}

.app-shell .app-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    gap: var(--hd-khoang, 0.7rem);
    align-items: center;
}

.app-shell .app-brand-chu {
    gap: var(--hd-dong, 2px);
}

.app-shell .app-brand-phu {
    font-size: var(--hd-phu, 0.82rem);
    font-weight: var(--hd-phu-dam, 600);
    line-height: 1.4;
    color: var(--hd-phu-mau, #fff);
    text-transform: none;
    white-space: normal;
    overflow: visible;
}

.app-shell .app-brand-chinh {
    font-size: var(--hd-chinh, 1.08rem);
    font-weight: var(--hd-chinh-dam, 800);
    line-height: 1.45;
    margin-top: 0;
    color: var(--hd-chinh-mau, #fff);
    text-transform: none;
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
}

.app-shell .menu-nut {
    font-size: var(--hd-menu, 0.95rem);
    color: var(--hd-menu-mau, #fff);
    border-color: var(--hd-menu-mau, #fff);
}

.app-main:has(.trang-chu.co-cau-hinh) {
    padding-left: var(--tc-le, 0.55rem);
    padding-right: var(--tc-le, 0.55rem);
}

.trang-chu.co-cau-hinh {
    gap: var(--tc-phan, 0.75rem);
}

.trang-chu.co-cau-hinh .chao-mung-lop {
    gap: var(--chao-khoang, 0.55rem);
}

.trang-chu.co-cau-hinh .chao-loi,
.trang-chu.co-cau-hinh .chao-the {
    border-radius: var(--chao-bo, 18px);
    padding: var(--chao-dem, 0.75rem);
    background: rgb(255 255 255 / calc(var(--chao-mo, 82) * 1%));
}

.trang-chu.co-cau-hinh .chao-phu,
.trang-chu.co-cau-hinh .chao-loi p,
.trang-chu.co-cau-hinh .chao-the-phan-cong {
    font-size: var(--chao-chuc, 1.06rem);
    color: var(--chao-mau-phu, #4a5c6e);
}

.trang-chu.co-cau-hinh .chao-phu {
    font-size: var(--chao-gioi, 1.06rem);
}

.trang-chu.co-cau-hinh h1 {
    font-size: var(--chao-chao, 1.28rem);
    font-weight: var(--chao-dam, 800);
    color: var(--chao-mau, #0b3d5c);
}

.trang-chu.co-cau-hinh .chao-the strong {
    font-size: var(--chao-ngay, 1.28rem);
    font-weight: var(--chao-dam, 800);
    color: var(--chao-mau, #0b3d5c);
}

.trang-chu.co-cau-hinh .chao-the-phan-cong {
    font-size: var(--chao-lich, 1.05rem);
}

.trang-chu.co-cau-hinh .khoi-tieu-de {
    margin: var(--td-tren, 0.1rem) 0 var(--td-duoi, 0);
    font-size: var(--td-chu, 1.22rem);
    font-weight: var(--td-dam, 800);
    color: var(--td-mau, #0b3d5c);
}

.trang-chu.co-cau-hinh .feature-grid {
    grid-template-columns: repeat(var(--tc-cot, 2), minmax(0, 1fr));
    column-gap: var(--tc-ngang, 0.68rem);
    row-gap: var(--tc-doc, 0.68rem);
}

.trang-chu.co-cau-hinh .feature-card {
    background: var(--the-nen, #d7e7ff);
    color: var(--the-chu, #1d6fd0);
    min-height: var(--the-cao, 0);
    padding: var(--the-dem-doc, 0.88rem) var(--the-dem-ngang, 0.4rem);
    border-radius: var(--the-bo, 16px);
    column-gap: var(--the-khoang, 0.26rem);
    box-shadow: 0 6px var(--the-bong, 16px) rgba(11, 61, 92, 0.07);
}

.trang-chu.co-cau-hinh .feature-icon {
    width: var(--the-icon, 36px);
    height: var(--the-icon, 36px);
    color: var(--the-icon-mau, currentColor);
}

.trang-chu.co-cau-hinh .feature-icon svg {
    width: calc(var(--the-icon, 36px) * 0.52);
    height: calc(var(--the-icon, 36px) * 0.52);
}

.trang-chu.co-cau-hinh .feature-title {
    font-size: var(--the-ten, 0.92rem);
    font-weight: var(--the-ten-dam, 800);
    text-align: var(--the-canh, left);
}

.trang-chu.co-cau-hinh .feature-desc {
    width: var(--the-rong, min(100%, max-content));
    font-size: var(--the-thich, 0.78rem);
    font-weight: var(--the-thich-dam, 400);
    text-align: var(--the-canh, left);
    text-align-last: var(--the-canh-cuoi, center);
}

.trang-chu.co-cau-hinh .feature-mui {
    color: var(--the-mui, currentColor);
}

.trang-chu.co-cau-hinh.xem-dien-thoai,
.trang-chu.co-cau-hinh.xem-bang,
.trang-chu.co-cau-hinh.xem-may-tinh {
    max-width: 100%;
}

.hoat-dong-hom-nay {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-line);
    border-left: 4px solid var(--color-navy);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(11, 61, 92, 0.07);
    padding: 0.65rem 0.75rem 0.7rem;
}

.trang-chu.co-cau-hinh .hoat-dong-hom-nay {
    margin-top: var(--tb-tren, 0px);
    margin-bottom: var(--tb-duoi, 0px);
    padding: var(--tb-trong, 10px) 0.75rem;
}

.hoat-dong-dau {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    margin-bottom: 0.28rem;
}

.hoat-dong-bieu-tuong {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e7f2f8;
    color: var(--color-navy);
}

.hoat-dong-bieu-tuong svg {
    width: 16px;
    height: 16px;
}

.hoat-dong-tieu-de {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--color-navy);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hoat-dong-stt {
    flex: 0 0 auto;
    color: var(--color-navy);
    background: #e7f2f8;
    border-radius: 999px;
    padding: 0.08rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.hoat-dong-than {
    min-width: 0;
    min-height: 1.4em;
    overflow: hidden;
}

.hoat-dong-dong {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.35;
}

.hoat-dong-gio {
    flex: 0 0 auto;
    color: var(--color-navy);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.hoat-dong-gach {
    flex: 0 0 auto;
    color: #6b7c8c;
}

.hoat-dong-noi-dung {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.hoat-dong-trong {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hoat-dong-dong.co-chuyen {
    animation: hoat-dong-vao 0.45s ease;
}

@keyframes hoat-dong-vao {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 719px) {
    .hoat-dong-tieu-de {
        font-size: 0.86rem;
    }

    .hoat-dong-dong,
    .hoat-dong-trong {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hoat-dong-dong.co-chuyen {
        animation: none;
    }
}

