/**
 * Chopp On Tap - Estilos Principais
 * Layout Clean e Responsivo
 */

/* ========================================
   Reset e Configurações Globais
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066CC;
    --primary-dark: #0052A3;
    --secondary-color: #FF9900;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
}

/* ========================================
   Página de Login
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 280px;
    height: auto;
}

.login-form {
    width: 100%;
}

/* ========================================
   Formulários
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-800);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ========================================
   Botões
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.btn-secondary {
    background-color: var(--gray-600);
    color: var(--white);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ========================================
   Alertas
   ======================================== */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* ========================================
   Layout Admin
   ======================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--dark-color);
    color: var(--white);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.sidebar-header img {
    max-width: 150px;
    height: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--primary-color);
}

.sidebar-menu .icon {
    margin-right: 10px;
    font-size: 18px;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    transition: var(--transition);
}

.topbar {
    background-color: var(--white);
    padding: 15px 30px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    color: var(--gray-800);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.content-area {
    padding: 30px;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 16px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-100);
}

/* Cards de Estatísticas */
.stats-card {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
}

.stats-card h3 {
    margin: 10px 0 0 0;
    font-size: 28px;
    font-weight: bold;
}

.stats-card p {
    margin: 0 0 5px 0;
    font-size: 14px;
    opacity: 0.9;
}

.stats-card.white {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--gray-200);
}

/* ========================================
   Grid System
   ======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
    padding: 0 10px;
    margin-bottom: 20px;
}

.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.666%; }
.col-md-12 { width: 100%; }

/* ========================================
   Tabelas
   ======================================== */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: var(--gray-100);
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

table th {
    font-weight: 600;
    color: var(--gray-800);
}

table tbody tr:hover {
    background-color: var(--gray-100);
}

/* ========================================
   TAP Cards
   ======================================== */
.tap-card {
    border-radius: 16px;
    padding: 20px;
    color: var(--white);
    height: 100%;
}

.tap-card.success {
    background-color: #17a2b8;
}

.tap-card.warning {
    background-color: #ffc107;
    color: var(--dark-color);
}

.tap-card.danger {
    background-color: var(--danger-color);
}

.tap-card.secondary {
    background-color: var(--gray-600);
}

.tap-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.tap-card .tap-info {
    font-size: 13px;
    line-height: 1.8;
}

.tap-card .volume-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 10px;
    font-weight: bold;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: var(--success-color);
    color: var(--white);
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.badge-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.badge-info {
    background-color: var(--info-color);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--gray-600);
    color: var(--white);
}

/* ========================================
   Utilitários
   ======================================== */
.mt-3 { margin-top: 30px; }
.mb-3 { margin-bottom: 30px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: var(--white); }
.text-primary { color: var(--primary-color); }

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--white);
    padding: 15px 30px;
    border-top: 1px solid var(--gray-200);
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray-600);
}

/* ========================================
 /* TAP Cards */
.tap-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.tap-card.warning {
    border-left-color: var(--warning-color);
}

.tap-card.danger {
    border-left-color: var(--danger-color);
}

.tap-card h3 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 20px;
}

.tap-info {
    font-size: 13px;
    line-height: 1.8;
    color: var(--gray-700);
}

.volume-badge {
    background: var(--gray-100);
    padding: 8px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Image Thumbnail */
.img-thumbnail {
    max-width: 60px;
    max-height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Responsividade */======================================== */
@media (max-width: 992px) {
    .col-md-3, .col-md-4, .col-md-6, .col-md-8 {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: -260px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
        width: 100%;
    }
    
    .topbar {
        padding: 15px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .row {
        margin: 0;
    }
    
    .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
        padding: 0;
    }
    
    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 8px;
    }
}

/* ========================================
   Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-600);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    text-align: right;
}

/* ========================================
   Loading Spinner
   ======================================== */
.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Imagens
   ======================================== */
.img-thumbnail {
    max-width: 100px;
    height: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
}

.img-preview {
    max-width: 200px;
    height: auto;
    border-radius: var(--border-radius);
}

/* ========================================
   Select e Input File
   ======================================== */
select.form-control {
    cursor: pointer;
    background-color: var(--white);
}

input[type="file"] {
    padding: 8px;
}

/* ========================================
   Action Buttons
   ======================================== */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--gray-800);
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* ========================================
   Chart Container
   ======================================== */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ========================================
   Scrollbar Customization
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-800);
}

/* ========================================
   Submenu Financeiro
   ======================================== */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-item-has-children .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.menu-item-has-children.open .arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    list-style: none;
    padding-left: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

.submenu.show {
    display: block;
}

.submenu li {
    margin: 0;
}

.submenu li a {
    padding: 10px 15px 10px 45px;
    font-size: 13px;
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.submenu li a.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.submenu li a .icon {
    margin-right: 10px;
    font-size: 16px;
}

/* Script para toggle do submenu */


/* ========================================
   Melhorias para Ícones Font Awesome
   ======================================== */
.sidebar-menu a i.fas,
.sidebar-menu a i.fab {
    width: 20px;
    font-size: 18px;
    text-align: center;
    margin-right: 12px;
}

.topbar .menu-toggle i {
    font-size: 20px;
}

.user-avatar i {
    font-size: 18px;
}

/* Ajustes para compatibilidade */
.sidebar-menu a .icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 12px;
}

/* Melhorias visuais adicionais */
.sidebar {
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.topbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--gray-600);
}

.logout-link {
}

.logout-link:hover {
}


/* ========================================
   Melhorias para Ícones Font Awesome
   ======================================== */
.sidebar-menu a i.fas,
.sidebar-menu a i.fab {
    width: 20px;
    font-size: 18px;
    text-align: center;
    margin-right: 12px;
}

.topbar .menu-toggle i {
    font-size: 20px;
}

.user-avatar i {
    font-size: 18px;
}

/* Ajustes para compatibilidade */
.sidebar-menu a .icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 12px;
}

/* Melhorias visuais adicionais */
.sidebar {
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.topbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--gray-600);
}

.logout-link {
    color: #ff6b6b;
}

.logout-link:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

/* Melhorias para submenu */
.menu-item-has-children > a .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

/* Garantir que ícones Font Awesome apareçam corretamente */
.fas, .fab {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}


/* ========================================
   COMPONENTES UNIFICADOS - ChoppON v3.x
   ======================================== */

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.content-header h1, .content-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}
.content-header .header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--white); flex-shrink: 0;
}
.stat-icon.bg-primary   { background-color: var(--primary-color); }
.stat-icon.bg-success   { background-color: var(--success-color); }
.stat-icon.bg-warning   { background-color: var(--warning-color); color: var(--dark-color); }
.stat-icon.bg-danger    { background-color: var(--danger-color); }
.stat-icon.bg-info      { background-color: var(--info-color); }
.stat-icon.bg-secondary { background-color: var(--gray-600); }
.stat-icon.bg-purple    { background-color: #6f42c1; }
.stat-icon.bg-orange    { background-color: #fd7e14; }
.stat-info h3 { font-size: 26px; font-weight: 700; color: var(--gray-800); margin: 0 0 2px 0; line-height: 1.2; }
.stat-info p  { font-size: 13px; color: var(--gray-600); margin: 0; }

.btn-outline-primary { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline-primary:hover { background: var(--primary-color); color: var(--white); }
.btn-outline-secondary { background: transparent; border: 2px solid var(--gray-600); color: var(--gray-600); }
.btn-outline-secondary:hover { background: var(--gray-600); color: var(--white); }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-icon i { font-size: 13px; }
.btn-info { background-color: var(--info-color); color: var(--white); }
.btn-info:hover { background-color: #138496; }
.btn-purple { background-color: #6f42c1; color: var(--white); }
.btn-purple:hover { background-color: #5a32a3; }

.btn-action {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 6px; border: none; cursor: pointer;
    font-size: 13px; transition: var(--transition); text-decoration: none;
}
.btn-action.view    { background: #e8f4fd; color: #0066CC; }
.btn-action.edit    { background: #fff3cd; color: #856404; }
.btn-action.delete  { background: #f8d7da; color: #721c24; }
.btn-action.success { background: #d4edda; color: #155724; }
.btn-action.info    { background: #d1ecf1; color: #0c5460; }
.btn-action.purple  { background: #e8d5f5; color: #6f42c1; }
.btn-action:hover   { filter: brightness(0.9); transform: scale(1.05); }

.table-card { background: var(--white); border-radius: 12px; box-shadow: var(--box-shadow); overflow: hidden; margin-bottom: 24px; }
.table-card .table-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.table-card .table-header h3 { font-size: 16px; font-weight: 600; margin: 0; color: var(--gray-800); }
.table-card table { margin: 0; }
.table-card table th { background: var(--gray-100); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-600); font-weight: 600; padding: 12px 16px; border-bottom: 2px solid var(--gray-200); }
.table-card table td { padding: 12px 16px; vertical-align: middle; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.table-card table tbody tr:last-child td { border-bottom: none; }
.table-card table tbody tr:hover { background: #f8fbff; }

.filter-bar { background: var(--white); border-radius: 12px; padding: 16px 20px; box-shadow: var(--box-shadow); margin-bottom: 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 180px; }
.filter-bar .form-group label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--gray-600); margin-bottom: 6px; }
.filter-bar .btn { align-self: flex-end; white-space: nowrap; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 0; }
.form-section { background: var(--gray-100); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.form-section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-600); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-300); }

.card-border-primary { border-left: 4px solid var(--primary-color); }
.card-border-success  { border-left: 4px solid var(--success-color); }
.card-border-warning  { border-left: 4px solid var(--warning-color); }
.card-border-danger   { border-left: 4px solid var(--danger-color); }
.card-border-info     { border-left: 4px solid var(--info-color); }

.badge-pill { border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.badge-light   { background: var(--gray-200); color: var(--gray-800); }
.badge-primary { background: var(--primary-color); color: var(--white); }

.text-muted   { color: var(--gray-600) !important; }
.text-small   { font-size: 12px; }
.fw-bold      { font-weight: 700; }
.fw-semibold  { font-weight: 600; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-4 { margin-top: 32px !important; }
.p-0  { padding: 0 !important; }
.d-none  { display: none !important; }
.d-block { display: block !important; }
.d-grid  { display: grid !important; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.w-100 { width: 100%; }

.pagination { display: flex; gap: 4px; align-items: center; justify-content: center; padding: 16px 0; flex-wrap: wrap; }
.pagination .page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--gray-300); border-radius: 6px; background: var(--white); color: var(--gray-800); font-size: 13px; cursor: pointer; transition: var(--transition); text-decoration: none; }
.pagination .page-btn:hover, .pagination .page-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }
.pagination .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.empty-state-full { text-align: center; padding: 60px 20px; color: var(--gray-600); }
.empty-state-full .empty-icon { font-size: 48px; color: var(--gray-300); margin-bottom: 16px; }
.empty-state-full h4 { font-size: 18px; color: var(--gray-800); margin-bottom: 8px; }
.empty-state-full p { font-size: 14px; margin-bottom: 20px; }

.sidebar-menu a i, .sidebar-menu a .fas, .sidebar-menu a .fab { width: 20px; text-align: center; flex-shrink: 0; font-size: 15px; }
.sidebar-menu .submenu a { padding-left: 48px; font-size: 13px; }
.sidebar-menu .submenu a i { font-size: 13px; }

@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .content-header { flex-direction: column; align-items: flex-start; }
    .filter-bar { flex-direction: column; }
    .filter-bar .form-group { min-width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .table-card table th, .table-card table td { padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
