/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #0d6efd;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.logo-text h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #7f8c8d;
    margin: 0;
}

.subtitle h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #7f8c8d;
    margin: 0;
}

/* Main Content */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* Loading Styles */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(13, 110, 253, 0.3);
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Error Styles */
.error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin: 20px 0;
}

.error i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.error p {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Modules Grid */
.modules-grid {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
    color: #495057;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.modules-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

/* Module Card */
.module-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.module-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.module-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.module-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.module-description {
    color: #7f8c8d;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Module Loading State */
.module-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 15px;
    color: #0d6efd;
}

.module-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

.module-loading p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Dashboard Section */
.dashboard-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-content {
    min-height: 300px;
    display: flex;
    flex-direction: column;
   
}

/* Location Selector */
.location-selector {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.dashboard-title {
    text-align: center;
    min-width: 80px;
}

.dashboard-title i {
    font-size: 2.5rem;
    color: #0d6efd;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.dropdown-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.form-select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: white;
    color: #495057;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.form-select option {
    padding: 8px;
}

/* Dashboard Tabs */
.dashboard-tabs {
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* Tab container: 5 block đều 20% */
.tab-container {
    display: flex;
    width: 100%;
    gap: 0;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    box-sizing: border-box;
}
.tab-item {
    flex: 1 1 20%;
    max-width: 20%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 0 15px 0;
    background: white;
    border: none;
    border-right: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    box-sizing: border-box;
}

/* Prevent interaction for disabled tabs and show disabled styling */
.tab-item[disabled],
.tab-item[aria-disabled="true"],
.tab-item[data-disabled="true"] {
  pointer-events: none;   /* Block mouse clicks */
  cursor: not-allowed;    /* Show disabled cursor */
  opacity: 0.5;           /* Dim the tab */
  user-select: none;      /* Prevent text selection */
}

.tab-item:last-child {
    border-right: none;
}
.tab-item.active {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.08);
}
.tab-item.active i,
.tab-item.active span {
    color: #fff;
}
.tab-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #222;
    transition: color 0.3s;
}
.tab-item span {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    color: #222;
    transition: color 0.3s;
}
.tab-item:hover {
    background: #e9f0fe;
    color: #0d6efd;
}
.tab-item:hover i,
.tab-item:hover span {
    color: #0d6efd;
}

@media (max-width: 900px) {
    .tab-container {
        flex-direction: column;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    }
    .tab-item {
        max-width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 18px 0 14px 0;
    }
    .tab-item:last-child {
        border-bottom: none;
    }
}

.dashboard-placeholder {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.dashboard-placeholder i {
    display: block;
}

.dashboard-placeholder p {
    margin: 0;
    font-size: 1rem;
    color: #95a5a6;
}

/* Footer */
.footer {
    background: #0d6efd;
    color: white;
    padding: 10px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .modules-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .tab-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-image {
        height: 60px;
    }
    
    .info-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .info-content span {
        font-size: 0.9rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .modules-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .module-card {
        padding: 15px;
        min-height: 180px;
    }
    
    .module-header {
        gap: 10px;
    }
    
    .module-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .module-title {
        font-size: 0.9rem;
    }
    
    .module-description {
        font-size: 0.75rem;
    }
    
    .module-loading i {
        font-size: 1.5rem;
    }
    
    .module-loading p {
        font-size: 0.8rem;
    }
    
    .dashboard-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .dashboard-content {
        min-height: 200px;
    }
    
    .location-selector {
        flex-direction: column;
       
        align-items: center;
        padding: 10px;
    }
    
    .dashboard-title {
        min-width: auto;
    }
    
    .dashboard-title i {
        font-size: 2rem;
    }
    
    .dropdown-group {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .form-select {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .tab-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .tab-item {
        padding: 12px 8px;
    }
    
    .tab-item i {
        font-size: 1.2rem;
    }
    
    .tab-item span {
        font-size: 0.7rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 50px;
    }
    
    .info-content {
        padding: 0 15px;
    }
    
    .info-content span {
        font-size: 0.85rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .modules-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .module-card {
        padding: 15px;
        min-height: 160px;
    }
    
    .module-header {
        gap: 8px;
    }
    
    .module-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .module-title {
        font-size: 0.85rem;
    }
    
    .module-description {
        font-size: 0.7rem;
        margin-bottom: 12px;
    }
    
    .module-loading i {
        font-size: 1.2rem;
    }
    
    .module-loading p {
        font-size: 0.75rem;
    }
    
    .dashboard-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .dashboard-content {
        min-height: 150px;
        gap: 20px;
    }
    
    .location-selector {
        padding: 15px;
        gap: 15px;
    }
    
    .dashboard-title i {
        font-size: 1.8rem;
    }
    
    .dropdown-group label {
        font-size: 0.8rem;
    }
    
    .form-select {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .tab-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .tab-item {
        padding: 10px 6px;
    }
    
    .tab-item i {
        font-size: 1rem;
    }
    
    .tab-item span {
        font-size: 0.65rem;
    }
} 

/* Info Message Styles */
.info-message {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 0;
    position: relative;
    z-index: 99;
}

.info-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
}

.info-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content span {
    flex: 1;
    line-height: 1.4;
}

.info-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.info-close:hover {
    background: rgba(255, 255, 255, 0.2);
} 

/* Dashboard Filter Group */
.dashboard-filter-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 0;
    flex-wrap: wrap;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 15px;
    border: 1px solid #e9ecef;
}
.date-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
}
.date-picker-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}
.form-date {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: white;
    color: #495057;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-date:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.dashboard-tabs {
    margin: 0;
}

@media (max-width: 1100px) {
    .dashboard-filter-group {
        gap: 18px;
        padding: 15px 5px;
    }
}
@media (max-width: 900px) {
    .dashboard-filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 12px 2px;
    }
    .dashboard-tabs, .tab-container {
        width: 100%;
    }
    .date-picker-group, .dropdown-group {
        width: 100%;
        justify-content: flex-start;
    }
} 

/* Dashboard Filter Row (Hàng trên) */
.dashboard-filter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 5px;
    flex-wrap: wrap;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 15px;
    border: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
}
.apply-filter-btn {
    height: 40px;
    min-height: 40px;
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: none;
    box-sizing: border-box;
}
.date-picker-group, .dropdown-group {
    margin-bottom: 0;
}
.date-picker-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}
.form-date {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: white;
    color: #495057;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-date:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.dashboard-tabs {
    width: 100%;
    margin: 0;
    margin-top: 18px;
}

@media (max-width: 1100px) {
    .dashboard-filter-row {
        gap: 18px;
        padding: 15px 5px;
    }
}
@media (max-width: 900px) {
    .dashboard-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 12px 2px;
    }
    .dashboard-tabs, .tab-container {
        width: 100%;
    }
    .date-picker-group, .dropdown-group {
        width: 100%;
        justify-content: flex-start;
    }
    .dashboard-tabs {
        margin-top: 10px;
    }
} 

/* Date picker label trên input */
.date-picker-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    width: 160px;
}
.date-picker-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.form-date {
    width: 100%;
}

@media (max-width: 1100px) {
    .tab-container {
        gap: 12px;
    }
    .date-picker-group {
        width: 100%;
        min-width: 0;
    }
}
@media (max-width: 900px) {
    .dashboard-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 12px 2px;
    }
    .tab-container {
        flex-direction: column;
        gap: 10px;
    }
    .tab-item {
        max-width: 100%;
        min-width: 0;
    }
    .date-picker-group {
        width: 100%;
    }
} 

.filter-title-group {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 18px;
}
.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d6efd;
    white-space: nowrap;
}
.apply-filter-btn {
    align-self: center;
    height: 44px;
    min-height: 0;
    padding: 0 18px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 18px;
    box-shadow: none;
}
@media (max-width: 1100px) {
    .apply-filter-btn {
        height: 40px;
        padding: 0 12px;
        font-size: 0.95rem;
        margin-left: 10px;
    }
}
@media (max-width: 900px) {
    .apply-filter-btn {
        width: 100%;
        margin: 0;
        height: 40px;
        min-height: 0;
        margin-top: 8px;
        padding: 0 10px;
    }
} 

.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.invisible-label {
    display: block;
    height: 22px;
    visibility: hidden;
    margin-bottom: 6px;
}
@media (max-width: 900px) {
    .button-group {
        width: 100%;
        align-items: stretch;
    }
    .invisible-label {
        height: 20px;
        margin-bottom: 4px;
    }
} 

@media (max-width: 900px) {
    .module-description {
        display: none !important;
    }
} 

@media (max-width: 900px) {
    .modules-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .module-card {
        padding: 10px;
        min-height: 110px;
    }
    .module-header {
        gap: 6px;
    }
    .module-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    .module-title {
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .modules-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .module-card {
        padding: 8px;
        min-height: 80px;
    }
    .module-header {
        gap: 4px;
    }
    .module-icon {
        width: 26px;
        height: 26px;
        font-size: 0.95rem;
    }
    .module-title {
        font-size: 0.8rem;
    }
} 

/* Dashboard Cards Row */
.dashboard-cards-row {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.dashboard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 2px solid #e9ecef;
    padding: 18px 16px 14px 16px;
    min-width: 180px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
    transition: border-color 0.2s, color 0.2s;
}
.dashboard-card.agriculture {
    border-color: #0d6efd;
}
.dashboard-card.forestry {
    border-color: #388e3c;
}
.dashboard-card.fishery {
    border-color: #00bcd4;
}
.dashboard-card.livestock {
    border-color: #ff9800;
}
.dashboard-card.quality {
    border-color: #7e57c2;
}
.dashboard-card.agriculture .card-title,
.dashboard-card.agriculture .card-value,
.dashboard-card.agriculture .card-icon {
    color: #0d6efd;
}
.dashboard-card.forestry .card-title,
.dashboard-card.forestry .card-value,
.dashboard-card.forestry .card-icon {
    color: #388e3c;
}
.dashboard-card.fishery .card-title,
.dashboard-card.fishery .card-value,
.dashboard-card.fishery .card-icon {
    color: #00bcd4;
}
.dashboard-card.livestock .card-title,
.dashboard-card.livestock .card-value,
.dashboard-card.livestock .card-icon {
    color: #ff9800;
}
.dashboard-card.quality .card-title,
.dashboard-card.quality .card-value,
.dashboard-card.quality .card-icon {
    color: #7e57c2;
}
.card-icon {
    font-size: 1.7rem;
    margin-bottom: 8px;
    color: #0d6efd;
}
.card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 4px;
}
.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d6efd;
}
.dashboard-charts-row {
    display: flex;
    gap: 24px;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.dashboard-charts-row > div {
    flex: 1 1 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 18px;
    min-width: 260px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dashboard-table {
    margin-top: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.dashboard-table table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}
.dashboard-table th, .dashboard-table td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.98rem;
}
.dashboard-table th {
    background: #f8f9fa;
    font-weight: 600;
}
.dashboard-table tr:last-child td {
    border-bottom: none;
}
.dashboard-table .status-badge {
    background: #4caf50;
    color: #fff;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}
@media (max-width: 1100px) {
    .dashboard-cards-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .dashboard-charts-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .dashboard-card {
        min-width: 140px;
        padding: 12px 8px 10px 8px;
    }
    .dashboard-charts-row > div {
        min-width: 180px;
        min-height: 180px;
        padding: 10px;
    }
}
@media (max-width: 700px) {
    .dashboard-cards-row {
        flex-direction: column;
        gap: 10px;
    }
    .dashboard-charts-row {
        flex-direction: column;
        gap: 10px;
    }
    .dashboard-card {
        min-width: 0;
        width: 100%;
    }
    .dashboard-charts-row > div {
        min-width: 0;
        width: 100%;
        min-height: 180px;
        padding: 8px;
        box-sizing: border-box;
    }
    #dashboardSubContent canvas, .dashboard-charts-row canvas {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 120px;
        display: block;
        margin: 0 auto;
    }
} 

#dashboardSubContent {
    margin-top: 10px;
}
/* Chart vùng nền sáng, tiêu đề màu tối */
.dashboard-charts-row > div {
    background: #f8f9fa;
    color: #222;
}
.dashboard-charts-row .chartjs-title {
    color: #222 !important;
}
/* Bảng rõ ràng, badge nổi bật */
.dashboard-table {
    background: #fff;
    color: #222;
}
.dashboard-table th, .dashboard-table td {
    color: #222;
}
.dashboard-table .status-badge {
    background: #4caf50;
    color: #fff;
} 