/* Inter Variable, self-host (không dùng Google Fonts CDN vì app chạy mạng nội bộ, có thể không ra Internet).
   2 subset latin + vietnamese, mỗi subset 1 file phủ toàn dải weight 100-900 (font-weight: 100 900). */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-vietnamese-var.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --base-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --base-font-size: 15px; /* trung bình giữa 14-16px */
    /* Ghi đè font mặc định (Roboto) của theme material-base.css — mọi component Radzen đọc font qua biến này. */
    --rz-text-font-family: var(--base-font-family);
    /* Khách hàng phản hồi tiêu đề RadzenDataGrid (các trang danh sách) quá bé, giống hệt nội dung bên dưới
       — ghi đè biến gốc của theme (mặc định 0.875rem/500) cho đậm hơn hẳn nội dung. KHÔNG đổi font-size:
       tăng cỡ chữ làm đổi chiều cao dòng tiêu đề, trong khi Radzen tính sẵn offset "dính" (sticky top) cho
       dòng lọc (FilterMode=Simple) theo chiều cao gốc — đổi cỡ chữ khiến dòng lọc bị đè lên dòng tiêu đề. */
    --rz-grid-header-font-weight: 700;
}

/* material-base.css cho cả dòng tiêu đề cột LẪN dòng ô lọc (FilterMode=Simple) cùng "dính" ở
   position:sticky;top:0 khi cuộn TRANG (grid không tự cuộn riêng). Với grid có bật AllowFiltering,
   thead có 2 dòng <tr> — cả 2 cùng ghim ở y=0 khi cuộn qua, nên dòng lọc đè thẳng lên dòng tiêu đề
   (lỗi có sẵn của theme, không liên quan tới cỡ chữ). Không ai cần header dính khi cuộn — tắt hẳn. */
.rz-grid-table thead,
.rz-grid-table thead th {
    position: static;
}

/* Theme mặc định ép tiêu đề cột 1 dòng + cắt "..." (white-space:nowrap;text-overflow:ellipsis) — chữ in
   đậm hơn (xem --rz-grid-header-font-weight ở trên) chiếm nhiều chỗ ngang hơn, nên với các cột hẹp có sẵn
   (Width cố định theo px ở từng trang) tiêu đề càng dễ bị cắt cụt ("Ngày x...", "Trạng th"...). Thay vì
   sửa tay độ rộng từng cột ở từng trang, cho tiêu đề được xuống dòng — luôn hiển thị đủ chữ.
   LƯU Ý: giữ overflow:hidden (không đổi thành visible) — .rz-column-title-content nằm trong 1 flex
   container (.rz-column-title). Theo spec Flexbox, phần tử con chỉ tự co hẹp lại đúng theo cột khi
   overflow KHÁC visible; nếu để visible thì trình duyệt giữ nguyên độ rộng chữ gốc (không co) rồi tràn
   đè ra ngoài cột, lấn sang phần tử bên cạnh trên trang — đã tự gặp lỗi này khi thử overflow:visible. */
.rz-grid-table thead th,
.rz-column-title-content {
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: var(--base-font-family);
    font-size: var(--base-font-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dùng chung cho mọi layout (MainLayout, HubLayout) — mỗi layout tự render 1 thẻ #blazor-error-ui
   riêng nên style phải đặt ở CSS global, style scoped của từng layout không dùng chung được. */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

h1:focus {
    outline: none;
}

.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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

/* Dùng chung cho các trang Danh mục (DanhMucGeneric.razor, DanhMucBoPhan.razor...) */
.dm-panel {
    border: 1px solid #d7e3ee;
    border-radius: 6px;
    background: #fff;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.dm-panel-title {
    font-weight: 700;
    color: #2e5e8c;
    margin-bottom: 0.75rem;
}

.dm-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem 1.25rem;
}

.dm-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dm-field label {
    font-size: 0.85rem;
    color: #444;
}

.dm-button-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.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;
}

/* Popup đăng nhập đè lên trang Dashboard (Dashboard.razor, nhánh NotAuthorized) */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 30, 48, 0.55);
    backdrop-filter: blur(2px);
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    width: 320px;
    box-shadow: 0 20px 50px rgba(15, 30, 48, 0.25);
    text-align: left;
}

.login-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #2e6bf0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-card h2 {
    margin: 0 0 0.25rem;
    color: #1b2733;
    font-size: 1.3rem;
}

.login-sub {
    color: #8a94a6;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.login-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: left;
}

.login-field {
    text-align: left;
    margin-bottom: 1rem;
}

.login-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3a4552;
    margin-bottom: 0.35rem;
}

.login-field input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e3e7ee;
    background: #f7f9fc;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.login-field input:focus {
    outline: none;
    border-color: #2e6bf0;
    background: #fff;
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 2.4rem;
}

.login-eye {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
    padding: 0.2rem;
}

.login-eye:hover {
    opacity: 1;
}

.login-btn {
    width: 100%;
    padding: 0.7rem;
    background: #2e6bf0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

.login-btn:hover {
    background: #1f52c4;
}

/* Trang Main.razor (Tổng quan) và DonHangDashboard.razor — style .dash-panel/.dash-panel-title đầy đủ đặt
   chung 1 chỗ phía dưới (gần .kpi-card) để dễ so sánh, tránh định nghĩa trùng 2 nơi. */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1rem;
}

/* Nền khung Dashboard khi CHƯA đăng nhập — chỉ là khung mẫu tĩnh (không có RadzenChart thật) để hiện
   phía sau popup đăng nhập, tránh render biểu đồ tương tác thật khi chưa xác thực. */
.dash-grid-locked {
    filter: blur(1.5px);
    opacity: 0.85;
    user-select: none;
}

.dash-panel-skeleton .skeleton-chart {
    height: 220px;
    border-radius: 4px;
    background: linear-gradient(100deg, #eef2f6 30%, #f8fafc 50%, #eef2f6 70%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dashboard riêng của từng phân hệ (vd DonHangDashboard.razor) — hàng thẻ KPI tổng số phát sinh, bấm
   vào để nhảy thẳng tới chức năng tương ứng. */
.hub-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.kpi-card {
    display: block;
    padding: 1rem 1.1rem;
    border: 1px solid #e7ecf2;
    border-top: 3px solid var(--accent, #2e6bf0);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 30, 48, 0.05);
    transition: box-shadow 0.15s, transform 0.15s;
}

.kpi-card:hover {
    box-shadow: 0 8px 20px rgba(15, 30, 48, 0.12);
    transform: translateY(-2px);
}

.kpi-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent, #2e5e8c);
    line-height: 1.2;
}

/* Chuẩn dùng chung cho MỌI bảng "chi tiết/vật tư" tự dựng bằng HTML (class="vt-table"/"sx-vattu-table")
   trong các trang Tạo mới/Chi tiết (PAKD, Bảng cân đối, Packing List, Lệnh xuất NPL, Đề nghị thanh toán,
   Kế hoạch xuất hàng, Thông tin PO...) — gốc lấy từ layout Bảng cân đối (BangCanDoiChiTiet.razor), được
   người dùng chọn làm chuẩn chung cho cả app. Đặt Ở ĐÂY (app.css, KHÔNG scoped theo component) thay vì lặp
   lại y hệt trong từng file .razor.css riêng như trước — vừa đảm bảo mọi trang tự động đồng bộ 1 giao diện,
   vừa tránh lại lỗi CSS scope "::deep không có gì đứng trước" (xem BangCanDoiChiTiet.razor.css) mà 1 bảng
   ngoài-cùng-nhánh (vd .table-scroll-pane) từng gặp phải — CSS toàn cục không có khái niệm "scope" nên
   không bao giờ dính lỗi dạng đó. Mỗi trang chỉ còn cần khai báo min-width riêng (số cột khác nhau) hoặc
   các quy tắc thật sự đặc thù (vd offset cột ghim trái .freeze-1..4) trong .razor.css của chính nó. */
.vt-table,
.sx-vattu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.vt-table th,
.vt-table td,
.sx-vattu-table th,
.sx-vattu-table td {
    border: 1px solid #d7e3ee;
    padding: 0.3rem 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.vt-table th,
.sx-vattu-table th {
    background: #eaf2f8;
    color: #2e5e8c;
    font-weight: 800;
    font-size: 1.05rem;
}

.vt-table th.group-header,
.sx-vattu-table th.group-header {
    text-align: center;
    background: #d7e3ee;
}

.vt-table td.num,
.vt-table th.num,
.sx-vattu-table td.num,
.sx-vattu-table th.num {
    text-align: right;
}

.vt-table tbody tr:nth-child(even),
.sx-vattu-table tbody tr:nth-child(even) {
    background: #f7fafc;
}

.vt-table tbody tr:hover,
.sx-vattu-table tbody tr:hover {
    background: #eef6ff;
}

.vt-table tr.group-row td,
.sx-vattu-table tr.group-row td {
    background: #2e5e8c;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    white-space: normal;
}

/* Viền dày phân tách các nhóm cột đối chiếu (vd Đặt hàng | Packing List | Nhập-xuất-tồn | Đồng bộ). */
.vt-table th.group-start,
.vt-table td.group-start,
.sx-vattu-table th.group-start,
.sx-vattu-table td.group-start {
    border-left: 2px solid #8fa9c2;
}

.vt-table thead th,
.sx-vattu-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

/* Đóng băng cột đầu khi kéo thanh cuộn ngang — mirror fg.Cols.Frozen của C1FlexGrid bên WinForm. Mỗi
   trang tự khai thêm .freeze-1/.freeze-2... (left offset cộng dồn theo width cột thật) trong .razor.css
   riêng vì số cột ghim/độ rộng khác nhau tuỳ bảng. */
.vt-table th.freeze,
.vt-table td.freeze,
.sx-vattu-table th.freeze,
.sx-vattu-table td.freeze {
    position: sticky;
    z-index: 1;
    background: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vt-table th.freeze,
.sx-vattu-table th.freeze {
    z-index: 2;
    background: #eaf2f8;
}

.vt-table tr.group-row td.freeze,
.sx-vattu-table tr.group-row td.freeze {
    background: #2e5e8c;
}

.vt-table tbody tr:hover td.freeze,
.sx-vattu-table tbody tr:hover td.freeze {
    background: #eef6ff;
}

.freeze-label {
    left: 0;
}

/* Ô "hub-tile" — dùng cho lưới menu chọn phân hệ (trang chủ "/") và menu chức năng bên trong từng
   phân hệ (VD trang chủ Sản xuất "/san-xuat"). Đặt ở đây (global) thay vì .razor.css riêng từng trang
   vì được dùng lại ở nhiều trang. */
.hub-wrap {
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hub-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border: 1px solid #d7e3ee;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: #2e5e8c;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}

.hub-tile:not(.hub-tile-disabled):hover {
    box-shadow: 0 6px 18px rgba(46, 94, 140, 0.15);
    border-color: #2e7d32;
    transform: translateY(-2px);
}

.hub-tile-icon {
    font-size: 2rem;
}

.hub-tile-title {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.hub-tile-disabled {
    color: #9aa7b1;
    background: #f7f9fb;
    cursor: not-allowed;
}

.hub-tile-note {
    font-size: 0.7rem;
    color: #b0b8c0;
}

/* Bọc bảng trong khung cao giới hạn, cuộn cả ngang lẫn dọc NGAY TRONG khung — thanh cuộn ngang luôn nằm
   ngay dưới khung nhìn thấy được, không phải kéo hết trang xuống cuối bảng mới thấy. */
.table-scroll-pane {
    display: block !important;
    overflow: auto !important;
    max-height: min(600px, 60vh) !important;
    width: 1px;
    min-width: 100%;
}

/* Bôi đen khối ô kiểu Excel/C1FlexGrid (matrixPaste.js) khi kéo chuột chọn nhiều ô .matrix-cell, dùng
   Ctrl+C để copy ra ngoài (vd dán vào Excel). */
.matrix-cell-selected {
    background: #cfe3ff !important;
    outline: 1px solid #4a90e2;
    outline-offset: -1px;
}

.kpi-title {
    font-size: 0.8rem;
    color: #667;
    margin-top: 0.25rem;
}

/* Panel biểu đồ xu hướng theo tháng (XuHuongPanel.razor) — viền/nền nhẹ, chấm màu trước tiêu đề khớp
   màu biểu đồ (--accent truyền riêng từng panel) để phân biệt trực quan giữa 8 chức năng. */
.dash-panel {
    border: 1px solid #e7ecf2;
    border-radius: 12px;
    background: #fff;
    padding: 1.1rem 1.25rem 0.75rem;
    box-shadow: 0 1px 4px rgba(15, 30, 48, 0.05);
    transition: box-shadow 0.15s;
}

.dash-panel:hover {
    box-shadow: 0 6px 18px rgba(15, 30, 48, 0.09);
}

.dash-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #2e3a4a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.dash-panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent, #2e6bf0);
    flex-shrink: 0;
}

.dash-panel-empty {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa7b1;
    font-size: 0.85rem;
    background: #fafbfc;
    border-radius: 8px;
}

/* In một tờ chứng từ (vùng .tv-vung-in): ẩn menu, thanh bên và mọi thứ ngoài tờ giấy. */
@media print {
    body:has(.tv-vung-in) *:not(:has(.tv-vung-in)):not(.tv-vung-in):not(.tv-vung-in *) { display: none !important; }
    html:has(.tv-vung-in), body:has(.tv-vung-in), body:has(.tv-vung-in) *:has(.tv-vung-in) {
        display: block !important; height: auto !important; overflow: visible !important; margin: 0 !important; padding: 0 !important;
    }
}

.ph-nen { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.ph-hop { background: #fff; padding: 1rem; width: min(900px, 96vw); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3); }
.ph-bar { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; font-size: 0.8rem; color: #555; }
.ph-nut { border: 1px solid #b8cbe0; background: #fff; padding: 4px 14px; font-size: 0.85rem; cursor: pointer; }
.ph-nut.ph-chinh { background: #1ea5e0; border-color: #1ea5e0; color: #fff; }
.ph-ds { overflow: auto; }
.ph-hop.ph-ngang { width: min(1200px, 96vw); }
.ph-giay { font-family: "Times New Roman", serif; color: #000; font-size: 10.5pt; }
.ph-giay .ph-cty { font-weight: 700; }
.ph-giay .ph-tieude { text-align: center; font-weight: 700; font-size: 15pt; margin: 8px 0; }
.ph-giay .ph-dau { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-bottom: 8px; }
.ph-giay .ph-muc { font-weight: 700; margin: 8px 0 3px; }
.ph-giay table { width: 100%; border-collapse: collapse; }
.ph-giay th, .ph-giay td { border: 1px solid #000; padding: 2px 4px; vertical-align: middle; }
.ph-giay th { text-align: center; }
.ph-giay td.g { text-align: center; }
.ph-giay td.n { text-align: right; }
.ph-giay .ph-trong { width: 8%; }
.ph-giay .ph-ghichu { width: 18%; }
.ph-giay tr.ph-cong td { font-weight: 700; }
.ph-giay tbody.ph-khoi { break-inside: avoid; }
.ph-giay tr { break-inside: avoid; }
.ph-giay .ph-chan { display: flex; justify-content: space-between; margin-top: 14px; break-inside: avoid; }
.ph-giay .ph-ky { text-align: center; min-width: 260px; }
.ph-giay .ph-ten { margin-top: 70px; }
@media print {
    .ph-khong-in { display: none !important; }
    .ph-nen { position: static; background: none; display: block !important; }
    .ph-hop { width: auto !important; max-height: none !important; box-shadow: none; padding: 0 !important; display: block !important; }
    .ph-ds { overflow: visible !important; }
}
