@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/noto-sans-v42-latin_vietnamese-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/noto-sans-kr-v39-latin-regular.woff2') format('woff2');
}

/* ════════════ BASE ════════════ */
body {
    font-family: 'Noto Sans', 'Noto Sans KR', sans-serif !important;
    font-size: 13px;
    background-color: #f8fafc;
    color: var(--text-main);
    scrollbar-gutter: stable;
    /* Prevents layout shift when scrollbar appears/disappears */
}

/* ════════════ LAYOUT ════════════ */
.erp-container {
    padding: 32px;
    min-height: calc(100vh - 70px);
    background: white;
}

.erp-page-title {
    font-weight: 900;
    color: #1e3a5f;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

/* ════════════ CARDS ════════════ */
.erp-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
    padding: 32px;
    margin-top: 24px;
}

.erp-sidebar-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    padding: 24px;
    height: 100%;
}

/* ════════════ BUTTONS ════════════ */
.erp-btn-add {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(232, 117, 26, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    text-decoration: none;
}

.erp-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(240, 138, 36, 0.25);
    color: white;
}

/* ════════════ TABLES (WORKSPACE THEME) ════════════ */
/* Standard table header override for premium look */
.erp-table-premium .erp-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.erp-table-premium .erp-table-header th {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 16px 24px !important;
    border: none !important;
}

.erp-table-premium .erp-list-row td {
    padding: 8px 12px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Base ERP Table Wrapper */
.erp-table-wrapper {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-size: 13px;
    width: 100%;
}

.erp-table-container {
    width: 100%;
}

.erp-table {
    width: 100%;
}

/* ════════════ COMPONENTS ════════════ */
/* Badges */
.erp-badge-status {
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Avatars / Icon Circles */
.erp-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #1e3a5f;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid rgba(30, 58, 95, 0.1);
}

/* Meta info text */
.erp-meta-info {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hover link name */
.erp-link-name {
    font-weight: 800;
    color: #1e293b;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.erp-link-name:hover {
    color: var(--accent);
}

/* ════════════ FORMS ════════════ */
.form-label-bold {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.form-control-custom {
    width: 100%;
    padding: 7px 9px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    color: #1e293b;
    transition: all 0.2s;
    background: #fcfcfd;
    accent-color: var(--navy, #1e3a5f);
}

.form-control-custom:focus {
    border-color: #1e3a5f;
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
}

.form-group {
    margin-bottom: 12px;
}

/* ════════════ LEGACY SEARCH BAR ════════════ */
.erp-search-container {
    padding: 18px 22px;
    background: linear-gradient(180deg, #f8fafd 0%, #f2f5fa 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.erp-search-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    background: #fff;
    border-radius: 50rem;
    padding: 9px 18px;
    border: 1px solid rgba(180, 200, 230, .45);
    box-shadow: 0 1px 6px rgba(30, 58, 95, .06), inset 0 1px 2px rgba(255, 255, 255, .9);
    transition: box-shadow .25s, border-color .25s;
}

.erp-search-group:focus-within {
    border-color: rgba(30, 58, 95, .45);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, .09), 0 1px 6px rgba(30, 58, 95, .06);
}

.erp-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
}

/* CustomTable Search Bar Integration */
.erp-table-premium .erp-search-container {
    background: #f8fafc !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
}

.erp-table-premium .erp-search-group {
    background: #fff !important;
    border: 2px solid #eef2f6 !important;
    border-radius: 14px !important;
    padding: 8px 16px !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.erp-table-premium .erp-search-input {
    font-weight: 700 !important;
    color: #1e3a5f !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    width: 100% !important;
}

.erp-table-premium .erp-pg-info {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #475569 !important;
}

/* ════════════ PERMISSIONS / ROLES ════════════ */
.erp-role-item {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    font-weight: 700;
    color: #475569;
}

.erp-role-item:hover {
    background: #f1f5f9;
    color: #1e3a5f;
}

.erp-role-item.active {
    background: #1e3a5f;
    color: #fff;
    box-shadow: 0 8px 15px rgba(30, 58, 95, 0.15);
}

.erp-role-item.active .btn {
    color: #fff !important;
}

.erp-permission-box {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #eef2f6;
}

.erp-module-badge {
    background: #1e3a5f;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: inline-block;
}

.erp-tab-pill {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    border: none;
    background: transparent;
}

.erp-tab-pill.active {
    background: #1e3a5f;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.1);
}

.erp-btn-update {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(232, 117, 26, 0.2);
    transition: all 0.2s;
}

.erp-btn-update:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(232, 117, 26, 0.3);
    color: white;
}

/* ════════════ MODALS (PREMIUM & BS5) ════════════ */
.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px);
}

body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
    /* Prevents Bootstrap's default padding jump */
}

.modal-dialog {
    width: 100% !important;
    margin: 1.75rem auto !important;
}

.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 3.5rem) !important;
}

.modal-content {
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    background: #ffffff !important;
}

.modal-header {
    padding: 1.5rem 2rem !important;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.modal-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #1e3a5f !important;
    letter-spacing: -0.5px;
}

.modal-body {
    padding: 2rem !important;
    font-size: 13px !important;
}

.modal-footer {
    padding: 1.25rem 2rem !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

/* Modal Sizes Override */
@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px !important;
    }

    .modal-lg .modal-dialog {
        max-width: 900px !important;
    }

    .modal-xl .modal-dialog {
        max-width: 1200px !important;
    }
}

/* ════════════ MOBILE CARD VIEW (CustomTable) ════════════ */
.erp-mobile-cards {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;

}

.erp-mobile-card {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(15, 46, 82, 0.05);
    transition: box-shadow 0.2s ease;
}

.erp-mobile-card:active {
    box-shadow: 0 1px 4px rgba(15, 46, 82, 0.08);
}

.erp-mobile-card-title {
    font-weight: 900;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.erp-mobile-card-title .erp-link-name {
    font-size: 15px;
}

.erp-mobile-card-title .erp-meta-info {
    margin-top: 4px;
}

.erp-mobile-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.erp-mobile-card-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.erp-mobile-card-label {
    color: #64748b;
    font-weight: 700;
    min-width: 80px;
    flex-shrink: 0;
    font-size: 12px;
}

.erp-mobile-card-label::after {
    content: ":";
}

.erp-mobile-card-value {
    color: #1e293b;
    font-weight: 800;
    flex: 1;
    min-width: 0;
}

.erp-mobile-card-value .erp-meta-info {
    font-weight: 800;
}

.erp-mobile-card-value .erp-badge-status {
    font-size: 11px;
}

.erp-mobile-card-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.erp-mobile-card-actions .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.erp-mobile-empty {
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 767.98px) {
    .erp-container {
        padding: 12px !important;
    }
    .container-fluid {
        margin:0!important;
        padding:0!important;
    }
    .dashboard-wrapper {
        padding: 12px !important;
        background: white !important;
    }

    .p-4 {
        padding: 12px !important;
    }

    .erp-card {
        margin-top: 16px !important;
        border-radius: 16px !important;
        padding: 0;
    }

    .erp-page-title {
        font-size: 1.25rem !important;
    }

    .erp-table-wrapper {
        border-radius: 16px;
    }

    .erp-search-container {
        padding: 12px 14px;
    }

    .erp-search-group {
        padding: 7px 14px;
    }

    .erp-pg-container {
        padding: 12px 14px;
        flex-direction: column;
        gap: 8px;
    }

    .erp-pg-controls {
        justify-content: center;
    }

    .erp-pg-info {
        text-align: center;
        font-size: 11px;
    }
}

@media (max-width: 640px) {

    .erp-page-title {
        font-size: 1.2rem !important;
    }
}

.esc-detail-container {
    background: white
}

/* ════════════ PAGINATION (PREMIUM THEME) ════════════ */
.erp-pg-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.erp-pg-info {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.erp-pg-info strong {
    color: #1e3a5f;
    font-weight: 800;
}

.erp-pg-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.erp-pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.erp-pg-btn:hover:not(.disabled):not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e3a5f;
    transform: translateY(-1px);
}

.erp-pg-btn:active:not(.disabled):not(.active) {
    transform: translateY(0);
}

.erp-pg-btn.active {
    background: var(--navy, #1e3a5f);
    border-color: var(--navy, #1e3a5f);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(30, 58, 95, 0.15);
}

.erp-pg-btn.disabled,
span.erp-pg-btn.disabled {
    background: #f8fafc;
    border-color: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.erp-pg-arrow {
    font-size: 14px;
    font-weight: 900;
}

/* ==========================================================================
   ESC DETAIL PAGE & MOBILE FAB MENU STYLES
   ========================================================================== */

.esc-detail-container {
    padding: 12px;
    --navy-gradient: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    --orange-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    --navy-color: #1e3a5f;
    --orange-color: #f59e0b;
}

/* Tabs Design styling */
.esc-tabs-navbar {
    display: flex;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 6px;
    gap: 6px;
    overflow-x: auto;
}

.tab-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    outline: none;
}

.tab-nav-btn:hover {
    background: #f1f5f9;
    color: var(--navy-color);
    transform: translateY(-1px);
}

.tab-nav-btn.active {
    background: var(--navy-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.15);
}

.tab-nav-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.tab-nav-btn:hover .tab-nav-icon {
    transform: scale(1.15);
}

.btn-navy-premium {
    background: #1e3a5f;
    border: 1px solid #1e3a5f;
    transition: all 0.2s ease;
}

.btn-navy-premium:hover {
    background: #0f172a;
    border-color: #0f172a;
    transform: translateY(-1px);
}

.btn-success-premium {
    background: #10b981;
    border: 1px solid #10b981;
    transition: all 0.2s ease;
}

.btn-success-premium:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

.text-navy-premium {
    color: #1e3a5f !important;
}

.border-bottom-dashed {
    border-bottom: 1px dashed #e2e8f0 !important;
}

.fw-extrabold {
    font-weight: 900;
}

.esc-detail-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(-4px);
}

.btn-guide {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 58, 95, 0.05);
    border: 2px solid rgba(30, 58, 95, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    color: var(--navy-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-guide:hover {
    background: rgba(30, 58, 95, 0.1);
    border-color: rgba(30, 58, 95, 0.2);
    transform: translateY(-1px);
}

.esc-title {
    font-weight: 800;
    color: var(--navy-color);
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.esc-title-icon {
    color: var(--orange-color);
}

.loading-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .grid-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.esc-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: all 0.3s ease;
}

.card-section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 13px;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-weight: 700;
    color: #64748b;
}

.info-value {
    font-weight: 700;
    color: #1e293b;
    text-align: right;
}

.font-bold {
    font-weight: 800;
}

.text-navy {
    color: var(--navy-color) !important;
}

.text-orange {
    color: #d97706 !important;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .esc-detail-container {
        padding: 8px !important;
    }

    .esc-card {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .tab-nav-btn {
        padding: 8px 10px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }

    .esc-tabs-navbar {
        padding: 4px !important;
        border-radius: 12px !important;
    }

    .btn-back {
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
    }

    .esc-title {
        font-size: 16px !important;
    }

    .esc-group-card {
        padding: 10px !important;
        margin-bottom: 12px !important;
    }
}

/* Print rule to hide elements */
@media print {
    .no-print {
        display: none !important;
    }

    .esc-detail-container {
        padding: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .esc-tabs-navbar {
        display: none !important;
    }
}

/* Mobile Floating FAB Menu STYLES */
.esc-mobile-fab-container {
    position: fixed;
    bottom: 85px;
    right: 24px;
    z-index: 1050;
}

.esc-fab-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(2px);
    z-index: 1040;
}

.esc-main-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy-gradient, linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%));
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 1051;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.35);
}

.esc-main-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(30, 58, 95, 0.45);
}

.esc-main-fab .fab-close-icon {
    display: none;
    font-size: 20px;
}

.esc-main-fab .fab-main-icon {
    font-size: 20px;
}

.esc-main-fab.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
    transform: rotate(90deg);
}

.esc-main-fab.active .fab-main-icon {
    display: none;
}

.esc-main-fab.active .fab-close-icon {
    display: block;
}

/* FAB Menu items dọc */
.esc-fab-menu {
    position: absolute;
    bottom: 70px;
    right: 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    align-items: flex-end;
}

.esc-fab-menu.open {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fab-menu-item {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.fab-menu-item:hover {
    transform: translateY(-2px);
}

.fab-item-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: var(--navy-color, #1e3a5f);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1.5px solid #e2e8f0;
    transition: all 0.25s ease;
}

.fab-item-circle .fab-item-icon {
    font-size: 16px;
}

.fab-item-num {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Trạng thái tab active trên menu Item */
.fab-menu-item.active .fab-item-circle {
    background: var(--navy-gradient, linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(30, 58, 95, 0.25) !important;
}

.fab-menu-item.active .fab-item-num {
    background: var(--orange-gradient, linear-gradient(135deg, #f59e0b 0%, #d97706 100%));
    color: white;
    border-color: transparent;
}

/* Vòng tròn toggle mở rộng chữ */
.toggle-circle {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* Nhãn chữ (label) của menu item */
.fab-item-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-color, #1e3a5f);
    background: var(--glass-bg, rgba(255, 255, 255, 0.85));
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    white-space: nowrap;

    /* Ẩn mượt mà bằng opacity, transform, max-width, padding và visibility */
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px) scale(0.95);
    max-width: 0;
    padding: 8px 0;
    overflow: hidden;
    pointer-events: none;

    /* will-change thông báo cho trình duyệt bật GPU Hardware Acceleration trước */
    will-change: transform, opacity, max-width, padding;

    /* Transition mượt mà 0.3s với hiệu ứng nảy nhẹ elastic cực đẹp */
    transition:
        opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        max-width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        padding 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        visibility 0.3s ease;
}

/* CSS-ONLY TOGGLE: Khi checkbox được checked, tự động đẩy chữ ra SIÊU MƯỢT MÀ bằng GPU */
#fab-title-toggle:checked~.esc-fab-menu .fab-item-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    max-width: 280px;
    padding: 8px 14px;
    pointer-events: auto;
}

/* Mũi tên toggle xoay chiều mượt mà khi checked */
.toggle-arrow {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

#fab-title-toggle:checked~.esc-fab-menu .toggle-arrow {
    transform: rotate(180deg) !important;
}
.bulletin-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 6px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.bulletin-tab-btn {
    position: relative;
    border: none;
    outline: none;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.bulletin-tab-btn::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    border-radius: 99px;
    transition: all 0.25s ease;
}

    .bulletin-tab-btn:hover {
        background: rgba(30, 58, 95, 0.05);
        color: #1e3a5f;
    }

    .bulletin-tab-btn.active {
        background: linear-gradient(135deg, #1e3a5f, #2b5284);
        color: #ffffff;
        box-shadow: 0 6px 14px rgba(30, 58, 95, 0.25);
    }

    .bulletin-tab-btn.active::after {
        background: #1e3a5f;
    }

/* ===== Bulletin List ===== */
.bulletin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== Bulletin Item ===== */
.bulletin-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

    .bulletin-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 12px;
        bottom: 12px;
        width: 4px;
        border-radius: 999px;
        background: #1e3a5f;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .bulletin-item:hover {
        border-color: rgba(30, 58, 95, 0.2);
        background: rgba(30, 58, 95, 0.02);
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

        .bulletin-item:hover::before {
            opacity: 1;
        }

/* ===== Badge ===== */
.bulletin-badge {
    flex-shrink: 0;
    min-width: 68px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e3a5f;
    background: rgba(30, 58, 95, 0.05);
    border: 1px solid rgba(30, 58, 95, 0.2);
    border-radius: 999px;
    padding: 5px 10px;
}

/* ===== Title ===== */
.bulletin-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: #334155;
    transition: color 0.2s ease;
}

.bulletin-item:hover .bulletin-title {
    color: #1e3a5f;
}

/* ===== Date ===== */
.bulletin-date {
    flex-shrink: 0;
    color: #94a3b8 !important;
    font-weight: 500;
    white-space: nowrap;
}

/* ===== Locked Item ===== */
.bulletin-item.locked {
    background: #fffaf0;
    border-color: #fde68a;
}

    .bulletin-item.locked::before {
        background: #f59e0b;
    }

    .bulletin-item.locked .bulletin-badge {
        color: #b45309;
        background: #fffbeb;
        border-color: #fcd34d;
    }

    .bulletin-item.locked .bulletin-title {
        color: #92400e;
    }

    .bulletin-item.locked:hover {
        background: #fffbeb;
        border-color: #fbbf24;
    }

/* ===== Empty State Optional ===== */
.bulletin-empty {
    display: block;
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .dashboard-card {
        border-radius: 14px;
        padding: 18px !important;
    }

    .bulletin-tabs {
        gap: 6px;
    }

    .bulletin-tab-btn {
        flex: 1 1 auto;
        justify-content: center;
        font-size: 0.82rem;
        padding: 8px 10px;
    }

    .bulletin-item {
        padding: 12px 14px;
    }

    .bulletin-date {
        padding-right: 0!important;
    }
}

@media (max-width: 480px) {


    .bulletin-badge {
        min-width: 60px;
        font-size: 0.68rem;
        padding: 4px 8px;
    }

    .bulletin-title {
        font-size: 0.88rem;
    }

    .bulletin-date {
        padding-right: 0;
        font-size: 0.78rem;
    }
}