﻿/* Header đỏ */
.table thead.header-red th {
    background-color: #820000 !important;
    color: #ffffff !important;
    text-align: center;
}

/* Chủ nhật nền đỏ nhạt */
.table tbody tr.sunday-row td {
    background-color: #ffe6e6 !important;
}
/* Button đỏ chính */
.btn-novita {
    background-color: #820000;
    border-color: #820000;
    color: #fff;
    font-weight: 500;
}

    .btn-novita:hover {
        background-color: #a71d2a;
        border-color: #a71d2a;
        color: #fff;
    }

    .btn-novita:focus,
    .btn-novita:active {
        background-color: #820000 !important;
        border-color: #820000 !important;
        box-shadow: 0 0 0 0.2rem rgba(200, 35, 51, 0.3);
    }

/* Button viền đỏ */
.btn-novita-outline {
    background-color: transparent;
    border: 1px solid #820000;
    color: #820000;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

    .btn-novita-outline:hover {
        background-color: #820000;
        color: #fff;
    }

    .btn-novita-outline:focus,
    .btn-novita-outline:active {
        box-shadow: 0 0 0 0.2rem rgba(130, 0, 0, 0.2);
    }

.btn-novita:disabled,
.btn-novita.disabled {
    background-color: #b78b8b;
    border-color: #b78b8b;
    color: #fff;
}

.btn-novita-outline:disabled,
.btn-novita-outline.disabled {
    background-color: #f5eaea;
    border-color: #c8a5a5;
    color: #8b5f5f;
}

/* ===== NAVBAR STYLE - NOVITA HR ===== */

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    color: #333 !important;
}

    /* Hover */
    .navbar-nav .nav-link:hover {
        background-color: #ffe6e6;
        color: #820000 !important;
    }

    /* Active menu */
    .navbar-nav .nav-link.active {
        background-color: #820000;
        color: #fff !important;
        font-weight: 600;
    }

/* Khoảng cách giữa các menu */
.navbar-nav .nav-item {
    margin-right: 4px;
}

.btn-primary {
    background-color: #820000 !important;
    border-color: #820000 !important;
}
/* Header đỏ */
.header-red {
    background-color: #820000 !important;
    color: #fff !important;
}

/* Bao cao: header Novita, noi dung nhe va de quet theo dong */
.report-page {
    --report-brand: #820000;
    --report-brand-dark: #5f0000;
    --report-row-a: #fff;
    --report-row-b: #fff7f7;
    color: #263238;
    font-size: 0.92rem;
}

.report-page h2,
.report-page h3,
.report-page h4 {
    color: var(--report-brand) !important;
    font-weight: 600;
}

.report-page .card,
.report-page .table-responsive {
    border-color: #ead7d7;
}

.report-page .card-header {
    background: var(--report-brand) !important;
    color: #fff !important;
    border-color: var(--report-brand-dark);
    font-weight: 600;
}

.report-page table {
    min-width: 980px;
    margin-bottom: 0;
}

.report-page table thead th,
.report-page .table-dark th {
    background: var(--report-brand) !important;
    color: #fff !important;
    border-color: var(--report-brand-dark) !important;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    vertical-align: middle;
}

.report-page table tbody td {
    color: #344047;
    font-size: 0.82rem;
    font-weight: 400;
    white-space: nowrap;
    vertical-align: middle;
}

.report-page table tbody tr:nth-child(odd) td { background: var(--report-row-a); }
.report-page table tbody tr:nth-child(even) td { background: var(--report-row-b); }
.report-page table tbody tr:hover td { background: #ffeaea; }

.report-page .form-label {
    color: #4d3b3b;
    font-size: 0.82rem;
    font-weight: 600;
}

.report-page .form-control,
.report-page .form-select {
    border-color: #d9bebe;
    font-size: 0.88rem;
}

.report-page .btn-primary,
.report-page .btn-danger,
.report-page .btn-novita {
    background: var(--report-brand) !important;
    border-color: var(--report-brand) !important;
}

.report-page .report-summary {
    border-top: 3px solid var(--report-brand);
}

.report-page .report-summary .card-body {
    padding: 0.8rem 1rem;
}

.nhap-grid3-table {
    min-width: 1320px;
    table-layout: fixed;
}

.nhap-grid3-table .col-mapn { width: 125px; }
.nhap-grid3-table .col-loai-phieu { width: 125px; }
.nhap-grid3-table .col-nguoi { width: 135px; }
.nhap-grid3-table .col-nguoi-tao { width: 165px; }
.nhap-grid3-table .col-kho { width: 135px; }
.nhap-grid3-table .col-ngay { width: 100px; }
.nhap-grid3-table .col-trang-thai { width: 105px; }
.nhap-grid3-table .col-so-luong { width: 110px; }
.nhap-grid3-table .col-so-vien { width: 70px; }
.nhap-grid3-table .col-bien-ban { width: 115px; }
.nhap-grid3-table .col-thao-tac { width: 170px; }

.nhap-grid3-table th,
.nhap-grid3-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.nhap-grid3-table td:nth-last-child(-n + 2) {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .report-page { font-size: 0.88rem; }
    .report-page table { min-width: 820px; }
}