* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E0400D;
    --primary-dark: #c0380c;
    --primary-light: #FF6B35;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--primary-color);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav-logo-image {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    color: white;
    font-weight: 500;
}

.nav-item i {
    font-size: 18px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-item.active {
    background: white;
    color: var(--primary-color);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 500;
}

.user-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.admin-badge {
    background: #ffc107;
    color: #333;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ==================== APP CONTAINER ==================== */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-header h1 {
    font-size: 28px;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.page-header p {
    color: var(--gray-600);
    font-size: 14px;
}

.header-date {
    background: white;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.btn-toggle-form {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-toggle-form:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary-action {
    background: white;
    color: var(--primary-color);
    border: 1px solid rgba(224, 64, 13, 0.18);
    box-shadow: var(--shadow-sm);
}

.btn-secondary-action:hover {
    background: #fff7f3;
    color: var(--primary-dark);
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: transform 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.05);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: bold;
    color: var(--gray-800);
    margin-bottom: 5px;
    line-height: 1.2;
}

.stat-info p {
    color: var(--gray-600);
    font-size: 13px;
    margin-bottom: 4px;
}

.stat-detail {
    font-size: 11px;
    color: var(--gray-500);
    display: block;
    margin-top: 4px;
}

/* ==================== CHARTS GRID ==================== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.chart-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.chart-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.chart-header h3 {
    color: var(--gray-800);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.chart-header p {
    color: var(--gray-500);
    font-size: 12px;
}

.chart-icon {
    font-size: 28px;
    color: var(--primary-color);
    opacity: 0.5;
}

/* ==================== FORM CONTAINER ==================== */
.form-container {
    background: white;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.form-container.collapsed {
    max-height: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
}

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

.form-header h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.form-header h4 {
    color: var(--gray-700);
    font-size: 14px;
}

.close-form {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

.close-form:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

/* ==================== FORM STYLES ==================== */
form {
    padding: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(224, 64, 13, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-small {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--gray-700);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    transition: var(--transition);
    position: relative;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(224, 64, 13, 0.1);
}

.search-box i {
    color: var(--gray-500);
    margin-right: 8px;
}

.search-box input {
    border: none;
    outline: none;
    width: 250px;
    font-size: 13px;
    padding: 6px 0;
}

.clear-search {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0 5px;
}

.clear-search:hover {
    color: var(--danger-color);
}

/* ==================== LIST STYLES ==================== */
.clientes-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cliente-item {
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.cliente-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.cliente-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.maquina-item {
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.maquina-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.maquina-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
}

.cliente-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

/* ==================== STATUS BADGES ==================== */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
}

.status-Pago {
    background: #d4edda;
    color: #155724;
}

.status-Pendente {
    background: #fff3cd;
    color: #856404;
}

.status-Atrasado {
    background: #f8d7da;
    color: #721c24;
}

.status-EmDebito {
    background: #fce7f3;
    color: #9d174d;
}

/* ==================== BUTTONS ==================== */
.page-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.secondary-action {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid rgba(224,64,13,0.2);
}

.btn-edit,
.btn-delete,
.btn-receber,
.btn-finalizar {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    font-weight: 500;
}

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

.btn-edit:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

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

.btn-delete:hover {
    background: #c82333;
    transform: scale(1.02);
}

.btn-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-receber {
    background: #198754;
    color: white;
}

.btn-receber:hover {
    background: #157347;
    transform: scale(1.02);
}

.btn-finalizar {
    background: #f59e0b;
    color: white;
}

.btn-finalizar:hover {
    background: #d97706;
    transform: scale(1.02);
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideDown 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 2px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-100), white);
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close, .close-maquina, .close-evento, .close-estoque, .close-usuario, .close-insumos {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
    line-height: 1;
}

.close:hover, .close-maquina:hover, .close-evento:hover, .close-estoque:hover, .close-usuario:hover, .close-insumos:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-cancel {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    flex: 1;
}

.btn-cancel:hover {
    background: var(--gray-300);
}

/* ==================== VENDA ITENS ==================== */
.venda-itens-list {
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.total-venda, .total-insumos {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-color);
}

.total-venda strong, .total-insumos strong {
    color: var(--primary-color);
    font-size: 16px;
}

.evento-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    animation: pulse 1s infinite;
}

.loading-spinner i {
    font-size: 48px;
    color: var(--primary-color);
}

.loading-spinner p {
    margin-top: 15px;
    color: var(--gray-700);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==================== NOTIFICATION ==================== */
.notification {
    position: fixed;
    top: 90px;
    right: 30px;
    padding: 14px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

.notification-success {
    background: linear-gradient(135deg, var(--success-color), #34ce57);
}

.notification-error {
    background: linear-gradient(135deg, var(--danger-color), #ff6b6b);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 16px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state small {
    color: var(--gray-400);
    font-size: 12px;
}

/* ==================== TEXT COLORS ==================== */
.text-danger {
    color: #dc3545 !important;
    font-weight: bold;
}

.text-success {
    color: #28a745 !important;
    font-weight: bold;
}

.full-width {
    grid-column: span 2;
}

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

::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==================== RESPONSIVIDADE OTIMIZADA ==================== */
@media (max-width: 768px) {
    /* Menu */
    .nav-container {
        padding: 0 12px;
        height: 60px;
    }
    
    .nav-logo-image {
        height: 34px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item i {
        font-size: 20px;
    }
    
    .nav-item {
        padding: 8px 12px;
    }
    
    .nav-user span {
        display: none;
    }
    
    .btn-logout {
        margin-left: 5px;
        padding: 6px 8px;
    }
    
    /* Container */
    .app-container {
        padding: 15px;
    }
    
    /* Page Header */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .page-header p {
        font-size: 12px;
    }
    
    .header-date {
        align-self: flex-start;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .btn-toggle-form {
        justify-content: center;
        width: 100%;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 15px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-radius: 12px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .stat-info p {
        font-size: 12px;
    }
    
    /* Charts Grid */
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chart-card {
        padding: 15px;
    }
    
    .chart-header h3 {
        font-size: 16px;
    }
    
    canvas {
        max-height: 200px !important;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    form {
        padding: 15px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .btn-submit {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Filter Bar */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
        font-size: 12px;
    }
    
    /* Lists */
    .clientes-list {
        gap: 12px;
    }
    
    .cliente-item, .maquina-item {
        flex-direction: column;
        padding: 12px;
    }
    
    .cliente-info, .maquina-info {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .info-group {
        gap: 2px;
    }
    
    .info-label {
        font-size: 10px;
    }
    
    .info-value {
        font-size: 13px;
    }
    
    .cliente-actions {
        margin-left: 0;
        width: 100%;
        justify-content: stretch;
        gap: 8px;
    }
    
    .btn-edit, .btn-delete {
        flex: 1;
        justify-content: center;
        padding: 8px;
        font-size: 11px;
    }
    
    /* Modals */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-cancel, .btn-submit {
        width: 100%;
    }
    
    /* Insumos Modal */
    .modal-content[style*="max-width: 900px"] {
        width: 95%;
        margin: 5% auto;
    }
    
    .evento-info .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .total-insumos .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    /* Notifications */
    .notification {
        top: 70px;
        right: 15px;
        left: 15px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    /* Empty State */
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state i {
        font-size: 48px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
    
    /* Full Width */
    .full-width {
        grid-column: span 1;
    }
    
    /* Venda Itens */
    .venda-itens-list .cliente-item {
        padding: 10px;
    }
    
    .venda-itens-list .cliente-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Telas muito pequenas */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 8px;
    }
    
    .nav-item {
        padding: 6px 10px;
    }
    
    .app-container {
        padding: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 20px;
    }
    
    .filter-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .cliente-item, .maquina-item {
        padding: 10px;
    }
    
    .btn-edit, .btn-delete {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .venda-itens-list .cliente-info {
        grid-template-columns: 1fr;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .charts-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    
    .clientes-list .cliente-info {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Telas grandes */
@media (min-width: 1600px) {
    .app-container {
        max-width: 1600px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .charts-grid {
        grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    }
}

/* ==================== DASHBOARD - FOCO NAS PRINCIPAIS ÁREAS ==================== */
#dashboardPage > .stats-grid {
    gap: 16px;
    margin-bottom: 22px;
}

#dashboardPage > .stats-grid .stat-card:first-child {
    grid-column: span 2;
    min-height: 124px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

#dashboardPage > .stats-grid .stat-card:first-child .stat-info h3 {
    font-size: 34px;
}

#dashboardPage > .stats-grid .stat-card:first-child .stat-info p {
    font-size: 15px;
    font-weight: 600;
}

#dashboardPage > .stats-grid .stat-card:not(:first-child) {
    padding: 18px;
}

#dashboardPage > .stats-grid .stat-card:not(:first-child) .stat-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
}

#dashboardPage > .charts-grid {
    margin-top: 10px;
}

#dashboardPage > .charts-grid .chart-card {
    border: 1px solid var(--gray-200);
}

@media (max-width: 900px) {
    #dashboardPage > .stats-grid .stat-card:first-child {
        grid-column: span 1;
    }
}


/* ==================== DASHBOARD VISUAL APRIMORADO ==================== */
#dashboardPage {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#dashboardPage .page-header {
    background: linear-gradient(135deg, rgba(224, 64, 13, 0.10), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(224, 64, 13, 0.12);
    border-radius: 22px;
    padding: 24px 26px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    margin-bottom: 6px;
}

#dashboardPage .page-header h1 {
    font-size: 30px;
    margin-bottom: 6px;
}

#dashboardPage .page-header p {
    color: var(--gray-600);
}

#dashboardPage .header-date {
    border: 1px solid rgba(224, 64, 13, 0.10);
    border-radius: 14px;
    box-shadow: none;
}

.dashboard-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.98));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.dashboard-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-section-header h2 {
    font-size: 22px;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.dashboard-section-header p {
    color: var(--gray-500);
    font-size: 14px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(224, 64, 13, 0.10);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

#dashboardPage .stats-grid-dashboard {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 0;
}

#dashboardPage .stats-grid-dashboard .stat-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    min-height: 118px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
}

#dashboardPage .stats-grid-dashboard .stat-card:first-child {
    background: linear-gradient(135deg, rgba(224, 64, 13, 0.08), rgba(255,255,255,0.98));
    border-color: rgba(224, 64, 13, 0.18);
}

#dashboardPage .stats-grid-dashboard .stat-card .stat-info h3 {
    letter-spacing: -0.03em;
}

#dashboardPage .stats-grid-dashboard .stat-card .stat-info p {
    color: var(--gray-700);
    font-weight: 600;
}

#dashboardPage .stats-grid-dashboard .stat-card .stat-detail {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 12px;
}

#dashboardPage .charts-grid {
    margin-top: 0;
    gap: 18px;
}

#dashboardPage .chart-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

#dashboardPage .chart-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

#dashboardPage .chart-header h3 {
    font-size: 18px;
}

#dashboardPage .chart-header p {
    color: var(--gray-500);
}

@media (max-width: 900px) {
    .dashboard-section {
        padding: 18px;
        border-radius: 20px;
    }

    .dashboard-section-header {
        flex-direction: column;
        margin-bottom: 16px;
    }

    #dashboardPage .page-header {
        padding: 20px;
    }
}


/* ==================== EVENTOS PAGE ==================== */
.eventos-overview {
    margin-bottom: 20px;
}

.evento-stat-card {
    min-height: 108px;
}

.evento-stat-card .stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.destaque-eventos {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.12), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(111, 66, 193, 0.12);
}

.eventos-panel {
    background: white;
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.eventos-filter-bar {
    margin-bottom: 18px;
}

.eventos-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-200);
}

.eventos-list-header h3 {
    font-size: 20px;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.eventos-list-header p {
    color: var(--gray-500);
    font-size: 14px;
}

.eventos-lista-aprimorada {
    gap: 18px;
}

.evento-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    border: 1px solid rgba(111, 66, 193, 0.08);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.evento-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.evento-card.status-realizado {
    border-left: 4px solid #28a745;
}

.evento-card.status-agendado {
    border-left: 4px solid #ffc107;
}

.evento-card.status-cancelado {
    border-left: 4px solid #dc3545;
}

.evento-card-topo {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.evento-card-titulo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.evento-card-titulo h3 {
    font-size: 20px;
    color: var(--gray-800);
    line-height: 1.2;
}

.evento-card-titulo p {
    color: var(--gray-500);
    font-size: 14px;
}

.evento-meta-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.evento-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--gray-100);
    color: var(--gray-700);
}

.evento-chip i {
    font-size: 11px;
}

.evento-card .cliente-info {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.evento-card .info-group {
    background: var(--gray-100);
    border-radius: 14px;
    padding: 12px 14px;
}

.evento-card .info-group.full-width {
    grid-column: 1 / -1;
}

.evento-card .cliente-actions {
    margin-left: 0;
    margin-top: 18px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.evento-card .info-value.text-success {
    color: #1f8a4c;
    font-weight: 700;
}

@media (max-width: 768px) {
    .eventos-panel {
        padding: 16px;
    }

    .evento-card-topo {
        flex-direction: column;
    }

    .evento-card .cliente-actions {
        justify-content: stretch;
    }

    .evento-card .cliente-actions button {
        flex: 1;
    }
}


/* ==================== LISTAS APRIMORADAS ==================== */
.list-section-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.list-summary-grid,
.insumos-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.list-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid rgba(224, 64, 13, 0.08);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.list-stat-card.emphasis {
    border-color: rgba(224, 64, 13, 0.18);
    background: linear-gradient(135deg, rgba(224, 64, 13, 0.12), #ffffff 85%);
}

.list-stat-card.success {
    border-color: rgba(40, 167, 69, 0.18);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), #ffffff 85%);
}

.list-stat-card.danger {
    border-color: rgba(220, 53, 69, 0.18);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), #ffffff 85%);
}

.list-stat-label,
.insumos-section-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    font-weight: 700;
}

.list-stat-card strong {
    font-size: 24px;
    color: var(--gray-800);
    line-height: 1.1;
}

.list-stat-card small {
    color: var(--gray-500);
    font-size: 12px;
}

.list-panel-card,
.insumos-list-panel,
.insumos-toolbar {
    background: white;
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.eventos-list-header.compact {
    margin-bottom: 18px;
    padding-bottom: 12px;
}


.list-panel-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.data-card-item,
.insumo-item-card {
    border-left-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 18px 20px;
}

.data-card-item:hover,
.insumo-item-card:hover {
    transform: translateY(-2px);
}

.item-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.item-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-title-group h4 {
    font-size: 19px;
    color: var(--gray-800);
    line-height: 1.2;
}

.item-title-group p {
    color: var(--gray-500);
    font-size: 13px;
}

.item-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.border-success-soft {
    box-shadow: inset 0 0 0 1px rgba(40, 167, 69, 0.08);
}

.border-warning-soft {
    box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.16);
}

.border-danger-soft {
    box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.1);
}

.text-danger {
    color: #c0392b;
    font-weight: 700;
}


.status-neutral {
    background: rgba(15, 23, 42, 0.08);
    color: var(--gray-700);
}

.organized-shell .list-panel-card {
    padding: 22px;
}

.organized-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.item-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--primary-color);
}

.item-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.item-highlight {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-highlight small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    font-weight: 700;
}

.item-highlight strong {
    color: var(--gray-800);
    font-size: 16px;
    line-height: 1.3;
}

.organized-info-grid {
    gap: 12px;
}

.organized-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.maquinas-organized-card,
.pagamentos-organized-card,
.estoque-organized-card,
.evento-card.organized-card {
    margin-bottom: 6px;
}

.evento-highlight-grid {
    margin: 16px 0;
}

.evento-card.organized-card .cliente-info {
    margin-top: 0;
}

@media (max-width: 768px) {
    .organized-shell .list-panel-card {
        padding: 16px;
    }

    .item-highlight-grid {
        grid-template-columns: 1fr;
    }
}



/* ==================== ESTOQUE MAIS COMPACTO ==================== */
.estoque-organized-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(120px, 144px);
    gap: 14px;
    padding: 16px 18px;
}

.estoque-organized-card .item-topbar {
    padding-bottom: 10px;
}

.estoque-organized-card .item-title-group {
    gap: 2px;
}

.estoque-organized-card .item-title-group h4 {
    font-size: 17px;
}

.estoque-organized-card .item-title-group p {
    font-size: 12px;
    min-height: 0;
}

.estoque-organized-card .item-highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.estoque-organized-card .item-highlight {
    border-radius: 14px;
    padding: 10px 12px;
}

.estoque-organized-card .item-highlight small {
    font-size: 10px;
}

.estoque-organized-card .item-highlight strong {
    font-size: 14px;
}

.estoque-organized-card .organized-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px 10px;
}

.estoque-organized-card .info-label {
    font-size: 10px;
}

.estoque-organized-card .info-value {
    font-size: 13px;
}

.estoque-organized-card .organized-actions {
    margin-top: 12px;
    padding-top: 10px;
}

.estoque-organized-card .cliente-actions {
    margin-left: 0;
    gap: 8px;
}

.estoque-organized-card .btn-edit,
.estoque-organized-card .btn-delete {
    padding: 5px 10px;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .estoque-organized-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .estoque-organized-card {
        padding: 14px;
    }

    .estoque-organized-card .item-highlight-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== INSUMOS DO EVENTO ==================== */
.insumos-modal-content {
    max-width: 980px;
}

.insumos-layout {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.insumos-evento-info {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.08), rgba(224, 64, 13, 0.06));
    border: 1px solid rgba(111, 66, 193, 0.08);
    border-radius: 20px;
    padding: 18px 20px;
}

.insumos-evento-topo {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.insumos-evento-principal h3 {
    font-size: 24px;
    color: var(--gray-800);
    margin: 6px 0 4px;
}

.insumos-evento-principal p {
    color: var(--gray-600);
}

.insumos-evento-highlight {
    min-width: 180px;
    background: rgba(255,255,255,0.72);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.insumos-evento-highlight span {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 700;
}

.insumos-evento-highlight strong {
    font-size: 24px;
    color: var(--gray-800);
}

.insumos-form-row {
    margin-bottom: 0;
    grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(140px, 1fr)) minmax(160px, auto);
    align-items: end;
}

.insumos-produto-group {
    min-width: 0;
}

#novo_insumo_valor {
    background: #f7f8fb;
}

.insumos-submit-group {
    justify-content: flex-end;
}

.insumos-submit-btn {
    margin-top: 22px;
}

.insumos-list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

@media (max-width: 900px) {
    .item-topbar,
    .insumos-evento-topo {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-badges {
        justify-content: flex-start;
    }

    .insumos-evento-highlight {
        width: 100%;
        text-align: left;
    }

    .insumos-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .list-panel-card,
    .insumos-list-panel,
    .insumos-toolbar,
    .insumos-layout {
        padding: 16px;
    }

    .data-card-item,
    .insumo-item-card {
        padding: 16px;
    }

    .insumos-form-row {
        grid-template-columns: 1fr;
    }

    .insumos-submit-btn {
        margin-top: 0;
    }
}


.evento-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.evento-report-btn {
    white-space: nowrap;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
}


/* ==================== MOBILE OPTIMIZATION ==================== */
html {
    -webkit-text-size-adjust: 100%;
}

img, canvas {
    max-width: 100%;
}

@media (max-width: 768px) {
    body {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .navbar {
        position: sticky;
        top: 0;
    }

    .nav-container {
        height: auto;
        min-height: 60px;
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    .nav-logo {
        min-width: 0;
        flex: 1 1 auto;
    }


    .nav-user {
        flex: 0 0 auto;
        gap: 6px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 2px 0 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        flex: 0 0 auto;
        min-width: 46px;
        justify-content: center;
    }

    .app-container {
        padding: 12px;
    }

    .page {
        animation-duration: 0.2s;
    }

    .dashboard-section,
    .eventos-panel,
    .list-panel-card,
    .insumos-list-panel,
    .insumos-toolbar,
    .chart-card {
        border-radius: 18px;
    }

    .dashboard-section,
    .eventos-panel,
    .list-panel-card,
    .insumos-list-panel,
    .insumos-toolbar,
    .insumos-layout,
    form {
        padding: 14px;
    }

    #dashboardPage .page-header {
        padding: 18px;
        border-radius: 18px;
    }

    #dashboardPage .page-header h1,
    .page-header h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .dashboard-section-header h2,
    .eventos-list-header h3 {
        font-size: 18px;
    }

    .stats-grid,
    #dashboardPage .stats-grid-dashboard,
    .list-summary-grid,
    .insumos-summary-grid,
    .eventos-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card,
    #dashboardPage > .stats-grid .stat-card:first-child,
    .evento-stat-card,
    .list-stat-card {
        min-height: auto;
        padding: 14px;
    }

    .stat-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .stat-info h3,
    #dashboardPage > .stats-grid .stat-card:first-child .stat-info h3,
    .list-stat-card strong,
    .insumos-evento-highlight strong {
        font-size: 22px;
    }

    .chart-header {
        gap: 8px;
        align-items: flex-start;
    }

    canvas {
        max-height: 220px !important;
    }

    .filter-bar,
    .eventos-filter-bar,
    .dashboard-section-header,
    .eventos-list-header,
    .item-topbar,
    .evento-card-topo,
    .insumos-evento-topo,
    .modal-actions,
    .cliente-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons,
    .cliente-actions,
    .item-badges,
    .evento-meta-badges {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .search-box,
    .search-box input,
    .header-date {
        width: 100%;
    }

    .cliente-item,
    .maquina-item,
    .evento-card,
    .data-card-item,
    .insumo-item-card {
        padding: 14px;
        border-radius: 16px;
    }

    .cliente-info,
    .maquina-info,
    .evento-card .cliente-info,
    .venda-itens-list .cliente-info {
        grid-template-columns: 1fr;
    }

    .info-group,
    .evento-card .info-group {
        padding: 12px;
    }

    .btn-edit,
    .btn-delete,
    .btn-toggle-form,
    .btn-submit,
    .btn-cancel,
    .evento-card .cliente-actions button,
    .cliente-actions button,
    .filter-btn,
    .evento-report-btn {
        width: 100%;
        justify-content: center;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    button,
    .btn-edit,
    .btn-delete,
    .btn-submit,
    .btn-cancel,
    .filter-btn {
        font-size: 16px;
    }

    .modal {
        padding: 10px;
    }

    .modal-content,
    .modal-content[style*="max-width: 900px"],
    .insumos-modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-body,
    .insumos-layout {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .insumos-evento-highlight {
        width: 100%;
        text-align: left;
        min-width: 0;
    }

    .insumos-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px;
    }

    .nav-logo-image {
        height: 30px;
        max-width: 140px;
    }

    .app-container {
        padding: 10px;
    }

    .page-header,
    #dashboardPage .page-header,
    .dashboard-section,
    .eventos-panel,
    .list-panel-card,
    .insumos-list-panel,
    .insumos-toolbar,
    .insumos-layout,
    form,
    .chart-card {
        padding: 12px;
    }

    .stat-card,
    .evento-card,
    .data-card-item,
    .insumo-item-card,
    .cliente-item,
    .maquina-item {
        padding: 12px;
    }

    .page-header h1,
    #dashboardPage .page-header h1 {
        font-size: 22px;
    }

    .dashboard-section-header h2,
    .eventos-list-header h3,
    .item-title-group h4,
    .evento-card-titulo h3,
    .insumos-evento-principal h3 {
        font-size: 17px;
    }

    .stat-info h3,
    #dashboardPage > .stats-grid .stat-card:first-child .stat-info h3,
    .list-stat-card strong,
    .insumos-evento-highlight strong {
        font-size: 20px;
    }

    .notification {
        left: 10px;
        right: 10px;
        top: 66px;
    }
}

/* ==================== CLIENTES ORGANIZADOS ==================== */
.clientes-form-container {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.clientes-organized-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.clientes-form-section {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 18px;
    background: #fff;
}

.clientes-form-highlight {
    background: linear-gradient(135deg, rgba(224, 64, 13, 0.05), rgba(250, 166, 123, 0.08));
    border-color: rgba(224, 64, 13, 0.12);
}

.clientes-form-section-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.clientes-form-section-title span {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
}

.clientes-form-section-title small {
    color: var(--gray-500);
    font-size: 12px;
}

.clientes-filter-bar {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfe 100%);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 20px;
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}

.organized-clientes-shell {
    gap: 20px;
}

.clientes-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 18px;
    align-items: start;
}

.clientes-category-card {
    background: white;
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.clientes-fixed-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
}

.clientes-events-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
}

.clientes-category-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.clientes-category-header h3 {
    font-size: 22px;
    color: var(--gray-800);
    margin: 4px 0 6px;
}

.clientes-category-header p {
    color: var(--gray-500);
    max-width: 560px;
}

.clientes-category-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.clientes-category-mini-stats span {
    border-radius: 999px;
    background: #f5f6f9;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 8px 12px;
    color: var(--gray-600);
    font-size: 12px;
    white-space: nowrap;
}

.clientes-category-mini-stats strong {
    color: var(--gray-800);
}

.clientes-fixed-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.clientes-mini-kpi {
    background: #f8f9fc;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clientes-mini-kpi span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    font-weight: 700;
}

.clientes-mini-kpi strong {
    font-size: 24px;
    line-height: 1;
    color: var(--gray-800);
}

.cliente-highlight-value {
    background: linear-gradient(135deg, rgba(224, 64, 13, 0.08), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(224, 64, 13, 0.08);
}

.compact-empty {
    padding: 28px 18px;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    background: #fcfcfe;
}

@media (max-width: 1024px) {
    .clientes-split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .clientes-form-section,
    .clientes-category-card,
    .clientes-filter-bar {
        padding: 14px;
    }

    .clientes-category-header {
        flex-direction: column;
    }

    .clientes-category-mini-stats {
        justify-content: flex-start;
    }

    .clientes-fixed-kpis {
        grid-template-columns: 1fr;
    }
}


/* ==================== CLIENTES HORIZONTAL ==================== */
.clientes-horizontal-shell {
    gap: 18px;
}

.clientes-horizontal-card {
    padding: 0;
}

.clientes-horizontal-header {
    padding: 20px 22px 8px;
}

.clientes-inline-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.clientes-inline-summary span {
    background: #f8f9fb;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--gray-700);
}

.clientes-horizontal-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 18px 18px;
}

.cliente-row {
    display: grid;
    grid-template-columns: minmax(250px, 1.25fr) minmax(280px, 1.7fr) minmax(220px, auto);
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    background: #fff;
    transition: var(--transition);
}

.cliente-row:hover {
    background: #fcfcfd;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cliente-row-fixo {
    border-left: 4px solid rgba(40, 167, 69, 0.35);
}

.cliente-row-evento {
    border-left: 4px solid rgba(255, 193, 7, 0.45);
}

.cliente-row-main {
    min-width: 0;
}

.cliente-row-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.cliente-row-heading {
    min-width: 0;
}

.cliente-row-title h4 {
    font-size: 16px;
    color: var(--gray-900);
    margin: 0;
}

.cliente-row-heading p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--gray-600);
}

.cliente-row-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cliente-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cliente-row-meta span,
.cliente-row-muted {
    font-size: 12px;
    color: var(--gray-600);
}

.cliente-row-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8f9fb;
    border-radius: 999px;
}

.cliente-row-muted.destaque {
    padding: 6px 10px;
    background: rgba(224, 64, 13, 0.08);
    border-radius: 999px;
    color: var(--primary-dark);
    font-weight: 600;
}

.cliente-row-meta i {
    width: 14px;
    color: var(--primary-color);
}

.cliente-row-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cliente-row-details-evento {
    grid-template-columns: minmax(0, 1fr);
}

.cliente-row-cell {
    min-width: 0;
    background: #fafbfc;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cliente-row-cell small {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 700;
}

.cliente-row-cell strong {
    font-size: 13px;
    color: var(--gray-800);
    line-height: 1.35;
    word-break: break-word;
}

.cliente-row-cell.compact strong {
    font-size: 12px;
}

.cliente-row-cell.destaque {
    background: rgba(224, 64, 13, 0.06);
    border-color: rgba(224, 64, 13, 0.18);
}

.cliente-row-cell.full {
    grid-column: 1 / -1;
}

.cliente-row-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 210px;
}

.cliente-row-actions .btn-receber {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
}

.cliente-row-actions-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cliente-row-actions-secondary .btn-edit,
.cliente-row-actions-secondary .btn-delete {
    justify-content: center;
}

@media (max-width: 1200px) {
    .cliente-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .cliente-row-actions {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .clientes-horizontal-header {
        padding: 18px 16px 6px;
    }

    .clientes-horizontal-list {
        padding: 0 16px 16px;
        gap: 12px;
    }

    .cliente-row {
        padding: 14px;
        gap: 12px;
    }

    .cliente-row-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .cliente-row-badges {
        justify-content: flex-start;
    }

    .cliente-row-details,
    .cliente-row-details-evento {
        grid-template-columns: 1fr;
    }

    .cliente-row-cell.full {
        grid-column: span 1;
    }

    .cliente-row-actions-secondary {
        grid-template-columns: 1fr;
    }
}

/* ==================== AJUSTE FINO DE ALINHAMENTO DAS ABAS ==================== */
.organized-shell .list-panel-card {
    padding: 24px;
}

.organized-shell .eventos-list-header,
.organized-shell .dashboard-section-header,
.organized-shell .clientes-horizontal-header {
    align-items: center;
}

.organized-shell .eventos-list-header > div:first-child,
.organized-shell .dashboard-section-header > div:first-child {
    min-width: 0;
}

.organized-shell .eventos-list-header h3,
.organized-shell .dashboard-section-header h3 {
    margin-bottom: 4px;
}

.organized-shell .list-panel-items,
.eventos-lista-aprimorada,
.clientes-list {
    gap: 16px;
}

.organized-card,
.evento-card.organized-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.55fr) minmax(132px, 156px);
    gap: 18px;
    align-items: start;
    padding: 20px 22px;
}

.organized-card .item-topbar,
.evento-card.organized-card .evento-card-topo {
    grid-column: 1 / -1;
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.organized-card .item-title-group,
.evento-card.organized-card .evento-card-titulo {
    min-width: 0;
}

.organized-card .item-title-group h4,
.evento-card.organized-card .evento-card-titulo h3 {
    margin: 0;
}

.organized-card .item-title-group p,
.evento-card.organized-card .evento-card-titulo p {
    min-height: 18px;
}

.organized-card .item-badges,
.evento-card.organized-card .evento-meta-badges {
    align-self: flex-start;
}

.organized-card .item-highlight-grid,
.evento-card.organized-card .evento-highlight-grid {
    margin: 0;
    align-self: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.organized-card .item-highlight,
.evento-card.organized-card .item-highlight {
    min-height: 78px;
    justify-content: center;
}

.organized-card .organized-info-grid,
.evento-card.organized-card .cliente-info.organized-info-grid {
    margin: 0;
    align-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.organized-card .organized-info-grid .info-group,
.evento-card.organized-card .cliente-info .info-group {
    min-height: 78px;
    justify-content: center;
}

.organized-card .organized-info-grid .info-group.full-width,
.evento-card.organized-card .cliente-info .info-group.full-width {
    grid-column: 1 / -1;
}

.organized-card .organized-actions,
.evento-card.organized-card .organized-actions {
    margin: 0;
    padding: 0;
    border-top: 0;
    align-self: stretch;
    min-width: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.organized-card .organized-actions .btn-edit,
.organized-card .organized-actions .btn-delete,
.evento-card.organized-card .organized-actions .btn-edit,
.evento-card.organized-card .organized-actions .btn-delete {
    width: 100%;
    justify-content: center;
}

.organized-shell .list-stat-card {
    min-height: 104px;
    justify-content: center;
}

.organized-shell .filter-bar,
.organized-shell .eventos-filter-bar {
    align-items: center;
}

.organized-shell .search-box {
    min-height: 44px;
}

@media (max-width: 1180px) {
    .organized-card,
    .evento-card.organized-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .organized-card .item-highlight-grid,
    .evento-card.organized-card .evento-highlight-grid,
    .organized-card .organized-info-grid,
    .evento-card.organized-card .cliente-info.organized-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .organized-card .organized-actions,
    .evento-card.organized-card .organized-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .organized-card .organized-actions > button,
    .evento-card.organized-card .organized-actions > button {
        flex: 1 1 180px;
    }
}

@media (max-width: 768px) {
    .organized-shell .list-panel-card {
        padding: 16px;
    }

    .organized-card,
    .evento-card.organized-card {
        padding: 16px;
        gap: 14px;
    }

    .organized-card .item-highlight-grid,
    .evento-card.organized-card .evento-highlight-grid,
    .organized-card .organized-info-grid,
    .evento-card.organized-card .cliente-info.organized-info-grid {
        grid-template-columns: 1fr;
    }

    .organized-card .organized-actions,
    .evento-card.organized-card .organized-actions {
        flex-direction: column;
    }

    .organized-card .organized-actions > button,
    .evento-card.organized-card .organized-actions > button {
        flex: 1 1 auto;
    }
}


/* ==================== MÁQUINAS COMPACTAS ==================== */
.maquina-compact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
}

.maquina-compact-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.maquina-compact-title h4 {
    margin: 2px 0 0;
    font-size: 18px;
}

.maquina-compact-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.compact-inline-group {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    padding: 8px 10px;
}

.compact-inline-group .info-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maquina-compact-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.maquina-compact-badges {
    justify-content: flex-end;
}

.maquina-compact-actions {
    margin-left: 0;
    gap: 8px;
}

.maquina-compact-actions .btn-edit,
.maquina-compact-actions .btn-delete {
    padding: 8px 12px;
}

@media (max-width: 980px) {
    .maquina-compact-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .maquina-compact-side {
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 680px) {
    .maquina-compact-meta {
        grid-template-columns: 1fr;
    }

    .maquina-compact-actions {
        width: 100%;
        flex-direction: column;
    }

    .maquina-compact-actions .btn-edit,
    .maquina-compact-actions .btn-delete {
        width: 100%;
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .evento-toolbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .evento-toolbar-actions .evento-report-btn {
        flex: 1 1 100%;
    }
}

/* ==================== ESTOQUE COM CARDS MENORES ==================== */
.estoque-organized-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) minmax(108px, 120px);
    gap: 10px;
    padding: 12px 14px;
}

.estoque-organized-card .item-topbar {
    padding-bottom: 8px;
}

.estoque-organized-card .item-highlight-grid {
    gap: 8px;
}

.estoque-organized-card .item-highlight {
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 12px;
}

.estoque-organized-card .organized-info-grid {
    gap: 8px;
}

.estoque-organized-card .organized-info-grid .info-group {
    min-height: 58px;
    padding: 8px 10px;
}

.estoque-organized-card .organized-actions {
    min-width: 108px;
    gap: 8px;
}

.estoque-organized-card .organized-actions .btn-edit,
.estoque-organized-card .organized-actions .btn-delete {
    padding: 6px 8px;
}

@media (max-width: 1100px) {
    .estoque-organized-card {
        grid-template-columns: 1fr;
    }
}


/* ==================== ESTOQUE EM UMA LINHA ==================== */
.estoque-inline-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
}

.estoque-inline-main {
    min-width: 0;
    flex: 1 1 auto;
}

.estoque-inline-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.estoque-inline-title-wrap h4 {
    margin: 0;
    font-size: 16px;
}

.estoque-inline-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.estoque-inline-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-size: 12px;
    line-height: 1.2;
    color: #475569;
}

.estoque-inline-chip strong {
    color: #0f172a;
    font-weight: 700;
}

.estoque-inline-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.estoque-inline-badges {
    margin-right: 2px;
}

.estoque-inline-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.estoque-inline-actions .btn-edit,
.estoque-inline-actions .btn-delete {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .estoque-inline-card {
        flex-direction: column;
        align-items: stretch;
    }

    .estoque-inline-side {
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .estoque-inline-title-wrap {
        gap: 8px;
    }

    .estoque-inline-chip {
        width: 100%;
        justify-content: space-between;
        border-radius: 12px;
    }

    .estoque-inline-side {
        align-items: stretch;
        flex-direction: column;
    }

    .estoque-inline-actions {
        width: 100%;
    }

    .estoque-inline-actions .btn-edit,
    .estoque-inline-actions .btn-delete {
        flex: 1 1 0;
        justify-content: center;
    }
}


/* ==================== INSUMOS EM UMA LINHA ==================== */
.insumo-inline-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
}

.insumo-inline-main {
    min-width: 0;
    flex: 1 1 auto;
}

.insumo-inline-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.insumo-inline-title-wrap h4 {
    margin: 0;
    font-size: 16px;
}

.insumo-inline-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.insumo-inline-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-size: 12px;
    line-height: 1.2;
    color: #475569;
}

.insumo-inline-chip strong {
    color: #0f172a;
    font-weight: 700;
}

.insumo-inline-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.insumo-inline-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.insumo-inline-actions .btn-delete {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .insumo-inline-card {
        flex-direction: column;
        align-items: stretch;
    }

    .insumo-inline-side {
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .insumo-inline-title-wrap {
        gap: 8px;
    }

    .insumo-inline-chip {
        width: 100%;
        justify-content: space-between;
        border-radius: 12px;
    }

    .insumo-inline-side {
        align-items: stretch;
        flex-direction: column;
    }

    .insumo-inline-actions {
        width: 100%;
    }

    .insumo-inline-actions .btn-delete {
        width: 100%;
        justify-content: center;
    }
}


/* Eventos mais compactos */
#eventosList.eventos-lista-aprimorada {
    gap: 12px;
}

.evento-card.organized-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr) minmax(120px, 144px);
    gap: 14px;
    padding: 16px 18px;
}

.evento-card.organized-card .evento-card-topo {
    padding-bottom: 10px;
}

.evento-card.organized-card .evento-card-titulo h3 {
    font-size: 1.02rem;
}

.evento-card.organized-card .evento-card-titulo p {
    min-height: auto;
    margin-top: 2px;
}

.evento-card.organized-card .evento-meta-badges {
    gap: 8px;
}

.evento-card.organized-card .evento-highlight-grid {
    gap: 8px;
}

.evento-card.organized-card .item-highlight {
    min-height: 62px;
    padding: 10px 12px;
}

.evento-card.organized-card .item-highlight small {
    margin-bottom: 4px;
}

.evento-card.organized-card .item-highlight strong {
    font-size: 1rem;
}

.evento-card.organized-card .cliente-info.organized-info-grid {
    gap: 8px;
}

.evento-card.organized-card .cliente-info .info-group {
    min-height: 62px;
    padding: 10px 12px;
}

.evento-card.organized-card .organized-actions {
    min-width: 120px;
    gap: 8px;
}

.evento-card.organized-card .organized-actions > button {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .evento-card.organized-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .evento-card.organized-card .evento-highlight-grid,
    .evento-card.organized-card .cliente-info.organized-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .evento-card.organized-card .organized-actions {
        min-width: 100%;
    }
}

@media (max-width: 640px) {
    .evento-card.organized-card .evento-highlight-grid,
    .evento-card.organized-card .cliente-info.organized-info-grid {
        grid-template-columns: 1fr;
    }
}


.pagamento-cliente-group {
    position: relative;
}

.pagamento-avulso-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.92rem;
    color: #5f6368;
}

.pagamento-avulso-wrapper {
    margin-top: 10px;
}

.pagamento-row-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
}

.pagamento-row-main {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.pagamento-row-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
}

.pagamento-row-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #4b5563;
    font-size: 0.95rem;
}

.pagamento-row-details span {
    white-space: nowrap;
}

.pagamento-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .pagamento-row-compact,
    .pagamento-row-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagamento-row-title {
        min-width: 0;
    }

    .pagamento-row-details span {
        white-space: normal;
    }

    .pagamento-row-actions {
        width: 100%;
        justify-content: flex-start;
    }
}


.venda-frete-row .form-group {
    max-width: 260px;
}

.total-venda {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.total-venda strong {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.pag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f4f6f8;
    border: 1px solid #e6ebf0;
}

.pag-chip-highlight {
    background: #fff4ef;
    border-color: #ffd7c9;
    color: #b54a21;
}

.pagamento-row-compact {
    padding: 12px 14px;
    border-radius: 16px;
}

.pagamento-row-title strong {
    font-size: 1rem;
}

.pagamento-row-details {
    gap: 8px 10px;
    font-size: 0.92rem;
}

.pagamento-row-actions .btn-edit,
.pagamento-row-actions .btn-delete {
    padding: 8px 12px;
}


/* ==================== DASHBOARD ENXUTO COM FILTRO ==================== */
#dashboardPage {
    gap: 14px;
}

#dashboardPage .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-title-block {
    padding-left: 18px;
}

.dashboard-header-tools {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-filter-card {
    min-width: 320px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(224, 64, 13, 0.14);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-filter-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
}

.dashboard-filter-row,
.dashboard-custom-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-custom-range.hidden {
    display: none;
}

.dashboard-filter-row select,
.dashboard-custom-range input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    color: var(--gray-700);
}

.dashboard-filter-row select:focus,
.dashboard-custom-range input:focus {
    outline: none;
    border-color: rgba(224, 64, 13, 0.36);
    box-shadow: 0 0 0 3px rgba(224, 64, 13, 0.10);
}

.dashboard-apply-btn {
    min-width: 108px;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), #c93308);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(224, 64, 13, 0.18);
}

.dashboard-apply-btn:hover {
    transform: translateY(-1px);
}

.dashboard-period-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(224, 64, 13, 0.10);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-focus-charts {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

#dashboardPage .dashboard-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#dashboardPage .dashboard-kpi-card {
    min-height: 126px;
    border-radius: 20px;
}

#dashboardPage .dashboard-kpi-highlight {
    background: linear-gradient(135deg, rgba(224, 64, 13, 0.10), rgba(255,255,255,0.98));
    border-color: rgba(224, 64, 13, 0.18);
}

#dashboardPage .dashboard-kpi-card .stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#dashboardPage .dashboard-kpi-card .stat-info h3 {
    font-size: 28px;
}

#dashboardPage .dashboard-kpi-card .stat-detail {
    width: fit-content;
    max-width: 100%;
}

@media (max-width: 900px) {
    #dashboardPage .page-header {
        align-items: stretch;
    }

    .dashboard-title-block {
        padding-left: 0;
    }

    .dashboard-header-tools {
        justify-content: stretch;
    }

    .dashboard-filter-card {
        min-width: 100%;
    }
}

@media (max-width: 640px) {
    .dashboard-filter-row,
    .dashboard-custom-range,
    .dashboard-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-period-chip {
        width: 100%;
    }

    .dashboard-apply-btn {
        width: 100%;
    }
}

/* ==================== CLIENTES CLEAN LIST ==================== */
.clientes-clean-shell {
    background: #fff;
    border: 1px solid rgba(224, 64, 13, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.clientes-clean-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px 18px;
    background: linear-gradient(180deg, rgba(224, 64, 13, 0.05), rgba(255,255,255,0.92));
    border-bottom: 1px solid rgba(224, 64, 13, 0.08);
}

.clientes-clean-header h3 {
    font-size: 22px;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.clientes-clean-header p {
    color: var(--gray-600);
    font-size: 13px;
}

.clientes-clean-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 720px;
}

.clientes-clean-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(224, 64, 13, 0.12);
    color: var(--gray-700);
    font-size: 12px;
}

.clientes-clean-summary strong {
    color: var(--primary-dark);
    margin-right: 4px;
}

.clientes-clean-list {
    display: flex;
    flex-direction: column;
}

.cliente-clean-row {
    display: grid;
    grid-template-columns: minmax(290px, 1.4fr) minmax(260px, 1fr) minmax(210px, auto);
    gap: 18px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: var(--transition);
    position: relative;
}

.cliente-clean-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: rgba(224, 64, 13, 0.14);
}

.cliente-clean-row.fixo::before {
    background: linear-gradient(180deg, rgba(224, 64, 13, 0.8), rgba(224, 64, 13, 0.18));
}

.cliente-clean-row.evento::before {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.9), rgba(255, 193, 7, 0.24));
}

.cliente-clean-row:last-child {
    border-bottom: none;
}

.cliente-clean-row:hover {
    background: rgba(248, 249, 250, 0.7);
}

.cliente-clean-main,
.cliente-clean-info-line,
.cliente-clean-actions {
    min-width: 0;
}

.cliente-clean-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cliente-clean-title-wrap h4 {
    margin: 0;
    font-size: 17px;
    color: var(--gray-800);
}

.cliente-clean-title-wrap p {
    margin-top: 4px;
    color: var(--gray-600);
    font-size: 13px;
}

.cliente-clean-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.cliente-clean-subtle {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 600;
}

.cliente-clean-subtle.highlight {
    background: rgba(224, 64, 13, 0.10);
    color: var(--primary-dark);
}

.cliente-clean-contact-line,
.cliente-clean-address {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cliente-clean-contact-line {
    margin-bottom: 8px;
}

.cliente-clean-contact-line span,
.cliente-clean-address {
    color: var(--gray-700);
    font-size: 13px;
}

.cliente-clean-contact-line span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-right: 12px;
    margin-right: 4px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.cliente-clean-contact-line span:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.cliente-clean-address {
    align-items: flex-start;
    gap: 8px;
    color: var(--gray-600);
}

.cliente-clean-address i,
.cliente-clean-contact-line i {
    color: var(--primary-color);
}

.cliente-clean-info-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    align-content: start;
    padding-left: 18px;
    border-left: 1px dashed rgba(224, 64, 13, 0.18);
}

.cliente-clean-info-line.evento-line {
    grid-template-columns: 1fr;
}

.cliente-clean-info-item {
    min-width: 0;
}

.cliente-clean-info-item small {
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-500);
}

.cliente-clean-info-item strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    word-break: break-word;
}

.cliente-clean-info-item.destaque strong {
    color: var(--primary-dark);
}

.cliente-clean-info-item.alerta strong {
    color: #b02a37;
}

.cliente-clean-info-item.full {
    grid-column: 1 / -1;
}

.cliente-clean-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.cliente-clean-actions .btn-receber {
    width: 100%;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(224, 64, 13, 0.14);
}

.cliente-clean-actions-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cliente-clean-actions-secondary .btn-edit,
.cliente-clean-actions-secondary .btn-delete {
    justify-content: center;
}

@media (max-width: 1180px) {
    .clientes-clean-header,
    .cliente-clean-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .clientes-clean-summary {
        justify-content: flex-start;
        max-width: none;
    }

    .cliente-clean-info-line {
        padding-left: 0;
        border-left: none;
        padding-top: 6px;
        border-top: 1px dashed rgba(224, 64, 13, 0.18);
    }
}

@media (max-width: 768px) {
    .clientes-clean-header {
        padding: 18px 16px 16px;
    }

    .cliente-clean-row {
        padding: 16px;
        gap: 14px;
    }

    .cliente-clean-top {
        flex-direction: column;
    }

    .cliente-clean-badges {
        justify-content: flex-start;
    }

    .cliente-clean-contact-line span {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }

    .cliente-clean-info-line,
    .cliente-clean-actions-secondary {
        grid-template-columns: 1fr;
    }
}


/* ==================== AJUSTES DE NAVEGAÇÃO E DASHBOARD ==================== */
.nav-container {
    max-width: 1440px;
    min-height: 76px;
    height: auto;
    display: grid;
    grid-template-columns: minmax(190px, 230px) 1fr auto;
    gap: 22px;
}

.nav-logo {
    min-width: 190px;
    min-height: 76px;
    justify-content: flex-start;
}

.nav-logo-image {
    height: 52px;
    max-width: 210px;
}

.nav-menu {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
    margin: 0;
}

.nav-item {
    min-height: 42px;
}

.nav-user {
    justify-self: end;
    min-height: 42px;
}

#dashboardPage {
    gap: 18px;
}

#dashboardPage .page-header {
    padding: 2px 2px 0;
}

#dashboardPage .dashboard-kpi-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 245, 0.95));
    border: 1px solid rgba(224, 64, 13, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

#dashboardPage .dashboard-kpi-highlight {
    background: linear-gradient(135deg, rgba(224, 64, 13, 0.12), rgba(255,255,255,0.98));
}

.dashboard-section-insights {
    padding-top: 22px;
}

.dashboard-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.dashboard-info-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249, 250, 251, 0.96));
    border: 1px solid rgba(224, 64, 13, 0.10);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.dashboard-info-panel-header h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: var(--gray-800);
}

.dashboard-info-panel-header p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.dashboard-info-count {
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(224, 64, 13, 0.10);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-line-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.dashboard-line-item-main,
.dashboard-line-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dashboard-line-item-main strong,
.dashboard-alert-content strong {
    color: var(--gray-800);
    font-size: 14px;
    line-height: 1.4;
}

.dashboard-line-item-main span,
.dashboard-line-item-meta small,
.dashboard-alert-content span {
    color: var(--gray-600);
    font-size: 12px;
    line-height: 1.4;
}

.dashboard-line-item-meta {
    align-items: flex-end;
    text-align: right;
}

.dashboard-date-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(224, 64, 13, 0.08);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-alert-item {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.dashboard-alert-item.active {
    border-color: rgba(224, 64, 13, 0.16);
    background: linear-gradient(180deg, rgba(224, 64, 13, 0.05), rgba(255,255,255,0.98));
}

.dashboard-alert-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 64, 13, 0.10);
    color: var(--primary-dark);
}

.dashboard-alert-value {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-800);
}

.dashboard-empty-state {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px dashed rgba(148, 163, 184, 0.35);
    color: var(--gray-600);
    font-size: 13px;
}

/* ==================== CLIENTES COM PEQUENO ESPAÇO ==================== */
.clientes-clean-list {
    gap: 8px;
    padding: 10px 12px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248, 249, 250, 0.72));
}

.cliente-clean-row {
    padding: 18px 22px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.02);
}

.cliente-clean-row:last-child {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.cliente-clean-row:hover {
    background: #fff;
    border-color: rgba(224, 64, 13, 0.14);
}

@media (max-width: 1180px) {
    .nav-container {
        display: flex;
        gap: 12px;
        min-height: 66px;
    }

    .nav-logo {
        min-height: 48px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .nav-logo-image {
        height: 42px;
        max-width: 190px;
    }
}

@media (max-width: 768px) {
    .dashboard-line-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-alert-item {
        grid-template-columns: 1fr;
    }

    .dashboard-line-item-meta {
        align-items: flex-start;
        text-align: left;
    }

    .cliente-clean-row {
        padding: 16px 18px;
    }
}


/* ==================== PADRÃO LIMPO NAS TELAS COMO CLIENTES ==================== */
.clean-entity-shell {
    background: #fff;
    border: 1px solid rgba(224, 64, 13, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.clean-entity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px 18px;
    background: linear-gradient(180deg, rgba(224, 64, 13, 0.05), rgba(255,255,255,0.92));
    border-bottom: 1px solid rgba(224, 64, 13, 0.08);
}

.clean-entity-list {
    gap: 8px;
    padding: 10px 12px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248, 249, 250, 0.72));
}

.clean-entity-summary span.emphasis,
.clean-entity-summary span.success,
.clean-entity-summary span.danger {
    border-color: rgba(224, 64, 13, 0.16);
}

.clean-entity-summary span.success strong { color: #198754; }
.clean-entity-summary span.danger strong { color: #b02a37; }

.clean-entity-row {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(240px, 1fr) minmax(220px, auto);
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.02);
    transition: var(--transition);
    position: relative;
}

.clean-entity-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: rgba(224, 64, 13, 0.14);
}

.clean-entity-row:hover {
    background: #fff;
    border-color: rgba(224, 64, 13, 0.14);
}

.maquina-disponivel::before,
.estoque-ok::before,
.usuario-admin::before {
    background: linear-gradient(180deg, rgba(224, 64, 13, 0.84), rgba(224, 64, 13, 0.20));
}

.maquina-locada::before,
.event-row::before,
.pagamento-row::before,
.estoque-alerta::before,
.usuario-comum::before,
.reports-row::before {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.92), rgba(255, 193, 7, 0.26));
}

.clean-entity-main,
.clean-entity-info-line,
.clean-entity-actions { min-width: 0; }

.clean-entity-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.clean-entity-title-wrap h4 {
    margin: 0;
    font-size: 17px;
    color: var(--gray-800);
}

.clean-entity-title-wrap p {
    margin-top: 4px;
    color: var(--gray-600);
    font-size: 13px;
}

.clean-entity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.clean-entity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.clean-entity-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gray-700);
    font-size: 13px;
}

.clean-entity-meta i { color: var(--primary-color); }

.clean-entity-info-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    align-content: start;
    padding-left: 18px;
    border-left: 1px dashed rgba(224, 64, 13, 0.18);
}

.clean-entity-info-line-compact { grid-template-columns: 1fr; }

.clean-entity-info-item small {
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-500);
}

.clean-entity-info-item strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    word-break: break-word;
}

.clean-entity-info-item.destaque strong { color: var(--primary-dark); }
.clean-entity-info-item.full { grid-column: 1 / -1; }

.clean-entity-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.clean-entity-actions-flow {
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
}

.clean-entity-actions .btn-receber,
.clean-entity-actions .btn-finalizar,
.clean-entity-actions .btn-edit,
.clean-entity-actions .btn-delete { justify-content: center; }

.clean-entity-actions-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.clean-entity-actions-secondary.single { grid-template-columns: 1fr; }
.clean-entity-single { grid-template-columns: minmax(320px, 1.4fr) minmax(210px, 0.8fr) minmax(220px, auto); }

.eventos-overview,
.eventos-panel > .eventos-list-header { display: none !important; }

.eventos-panel {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.nav-container {
    grid-template-columns: minmax(220px, 250px) 1fr auto;
    align-items: center;
}

.nav-logo {
    min-width: 220px;
    min-height: 78px;
}

.nav-logo-image {
    height: 58px;
    max-width: 230px;
}

.nav-menu {
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.nav-item {
    min-height: 44px;
    padding: 10px 18px;
}

@media (max-width: 1180px) {
    .clean-entity-row,
    .clean-entity-single {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .clean-entity-actions-flow { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .clean-entity-header { flex-direction: column; }
    .clean-entity-info-line,
    .clean-entity-actions-secondary { grid-template-columns: 1fr; }
    .clean-entity-top { flex-direction: column; }
    .clean-entity-badges,
    .clean-entity-actions-flow { justify-content: flex-start; }
    .clean-entity-row { padding: 16px 18px; }
}


/* ==================== AJUSTES FINOS - MENU HORIZONTAL E RECEBER EM LINHA ==================== */
.nav-container {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 210px;
}

.nav-logo-image {
    height: 52px;
    max-width: 220px;
    width: auto;
}

.nav-menu {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    white-space: nowrap;
}

.nav-user {
    justify-self: end;
    flex: 0 0 auto;
    white-space: nowrap;
}

.pagamento-row-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 14px;
    overflow: hidden;
}

.pagamento-row-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
}

.pagamento-row-title {
    min-width: 180px;
    max-width: 220px;
    overflow: hidden;
}

.pagamento-row-title strong,
.pagamento-row-title .item-kicker {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pagamento-row-details {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
}

.pagamento-row-details::-webkit-scrollbar {
    display: none;
}

.pagamento-row-details span {
    white-space: nowrap;
    flex: 0 0 auto;
}

.pagamento-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
}

.pagamento-row-actions .btn-edit,
.pagamento-row-actions .btn-delete {
    white-space: nowrap;
    padding: 8px 10px;
}

@media (max-width: 1180px) {
    .nav-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-logo {
        min-width: 0;
        flex: 0 0 auto;
    }

    .nav-menu {
        order: 3;
        justify-content: flex-start;
        width: 100%;
        padding-bottom: 4px;
    }
}

@media (max-width: 900px) {
    .pagamento-row-compact,
    .pagamento-row-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagamento-row-title,
    .pagamento-row-details,
    .pagamento-row-actions {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .pagamento-row-details {
        flex-wrap: wrap;
        overflow: visible;
        white-space: normal;
    }

    .pagamento-row-details span,
    .pagamento-row-title strong,
    .pagamento-row-title .item-kicker {
        white-space: normal;
    }

    .pagamento-row-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


.pagamento-row-inline {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding-block: 14px;
}

.pagamento-row-inline::before {
    top: 14px;
    bottom: 14px;
}

.pagamento-inline-client,
.pagamento-inline-details,
.pagamento-inline-actions {
    min-width: 0;
}

.pagamento-inline-client {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagamento-inline-client strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: var(--gray-800);
}

.pagamento-inline-details {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
}

.pagamento-inline-details::-webkit-scrollbar {
    display: none;
}

.pagamento-inline-details .pag-chip {
    flex: 0 0 auto;
}

.pagamento-inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.pagamento-inline-actions .btn-edit,
.pagamento-inline-actions .btn-delete {
    white-space: nowrap;
    padding: 8px 10px;
}

@media (max-width: 900px) {
    .pagamento-row-inline {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .pagamento-inline-client,
    .pagamento-inline-details,
    .pagamento-inline-actions {
        width: 100%;
    }

    .pagamento-inline-client,
    .pagamento-inline-actions {
        flex-wrap: wrap;
    }

    .pagamento-inline-details {
        white-space: normal;
        overflow: visible;
        flex-wrap: wrap;
    }
}


/* ==================== AJUSTE FINAL - MENU MAIS COMPACTO E ALINHADO ==================== */
.navbar {
    overflow: hidden;
}

.nav-container {
    max-width: 100%;
    padding: 0 18px;
    gap: 10px;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
}

.nav-logo {
    min-width: 165px;
}

.nav-logo-image {
    height: 44px;
    max-width: 180px;
}

.nav-menu {
    gap: 6px;
    justify-content: center;
}

.nav-item {
    gap: 6px;
    padding: 7px 12px;
    min-height: 38px;
    font-size: 14px;
    border-radius: 7px;
}

.nav-item i {
    font-size: 15px;
}

.nav-user {
    gap: 6px;
    font-size: 13px;
}

#userName {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.user-badge {
    padding: 4px 7px;
    font-size: 10px;
}

.btn-logout {
    padding: 6px 8px;
    margin-left: 4px;
}

@media (max-width: 1320px) {
    .nav-container {
        padding: 0 14px;
        gap: 8px;
    }

    .nav-logo {
        min-width: 145px;
    }

    .nav-logo-image {
        height: 40px;
        max-width: 160px;
    }

    .nav-menu {
        gap: 4px;
    }

    .nav-item {
        padding: 7px 10px;
        font-size: 13px;
    }

    .nav-item i {
        font-size: 14px;
    }

    #userName {
        display: none;
    }
}

@media (max-width: 1180px) {
    .nav-container {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr) max-content;
        align-items: center;
        flex-wrap: nowrap;
    }

    .nav-menu {
        order: initial;
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 0;
    }
}

@media (max-width: 980px) {
    .nav-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        padding-bottom: 4px;
    }
}


/* ==================== MÁQUINAS MAIS COMPACTAS ==================== */
.maquinas-shell .clean-entity-list {
    gap: 6px;
}

.maquina-row-compact {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 18px;
}

.maquina-row-compact::before {
    top: 14px;
    bottom: 14px;
}

.maquina-row-main-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.maquina-row-top-compact {
    margin-bottom: 0;
}

.maquina-title-wrap-compact h4 {
    font-size: 16px;
}

.maquina-title-wrap-compact p {
    margin-top: 2px;
    font-size: 12px;
}

.maquina-meta-compact {
    gap: 8px 14px;
}

.entity-inline-details {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
}

.entity-inline-details::-webkit-scrollbar {
    display: none;
}

.entity-inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--gray-700);
    font-size: 12px;
    flex: 0 0 auto;
}

.entity-inline-pill strong {
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.entity-inline-pill-highlight {
    background: rgba(224, 64, 13, 0.10);
    color: var(--primary-dark);
}

.maquina-actions-compact {
    justify-content: center;
}

.maquina-actions-compact .clean-entity-actions-secondary {
    grid-template-columns: repeat(2, max-content);
}

@media (max-width: 1180px) {
    .maquina-row-compact {
        grid-template-columns: 1fr;
    }

    .maquina-actions-compact {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .entity-inline-details {
        white-space: normal;
        overflow: visible;
        flex-wrap: wrap;
    }

    .maquina-actions-compact .clean-entity-actions-secondary {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
}

/* ==================== RECEBER MAIS LIMPO E SEM BLOCOS ==================== */
.pagamentos-shell-flat.clean-entity-shell {
    border-radius: 20px;
    overflow: hidden;
}

.pagamentos-shell-flat .clean-entity-header {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 16px;
}

.pagamentos-shell-flat .clean-entity-list {
    background: #fff;
    gap: 0;
    padding: 0 14px 8px;
}

.pagamento-row-flat {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 10px 12px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.pagamento-row-flat:last-child {
    border-bottom: none;
}

.pagamento-row-flat::before {
    width: 2px;
    left: 0;
    top: 12px;
    bottom: 12px;
    border-radius: 999px;
    opacity: 0.9;
}

.pagamento-row-flat:hover {
    background: rgba(248, 250, 252, 0.72);
    border-color: transparent;
}

.pagamento-inline-client-flat {
    gap: 8px;
}

.pagamento-inline-client-flat strong {
    font-size: 13px;
}

.pagamento-inline-details-flat {
    gap: 6px;
}

.pag-chip {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.04);
    color: var(--gray-700);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pag-chip strong {
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pag-chip-highlight {
    background: rgba(224, 64, 13, 0.10);
    border-color: rgba(224, 64, 13, 0.08);
    color: var(--primary-dark);
}

.pagamento-inline-actions-flat {
    gap: 6px;
}

.pagamento-inline-actions-flat .btn-edit,
.pagamento-inline-actions-flat .btn-delete {
    padding: 7px 10px;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .pagamento-row-flat {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pagamento-inline-actions-flat {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


/* ==================== MELHORIA GERAL DO SISTEMA ==================== */
:root {
    --surface-white: #ffffff;
    --surface-soft: #fff9f6;
    --surface-muted: #f7f8fb;
    --line-soft: rgba(15, 23, 42, 0.08);
    --line-orange: rgba(224, 64, 13, 0.14);
}

body {
    background:
        radial-gradient(circle at top left, rgba(224, 64, 13, 0.08), transparent 22%),
        linear-gradient(180deg, #f6f7fb 0%, #f3f5f8 100%);
}

.navbar {
    backdrop-filter: blur(12px);
    background: linear-gradient(90deg, #dd4517 0%, #e85d2e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-container {
    min-height: 72px;
    padding-inline: 18px;
}

.nav-logo {
    min-width: 150px;
}

.nav-logo-image {
    height: 46px;
    max-width: 178px;
}

.nav-menu {
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
}

.nav-item {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.nav-item:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

.nav-item.active {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.nav-user {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.10);
}

.page-header {
    margin-bottom: 22px;
}

.page-header h1 {
    font-size: 29px;
    letter-spacing: -0.02em;
}

.header-date,
.dashboard-filter-card,
.form-container,
.eventos-calendar-card,
.dashboard-info-panel,
.chart-card,
.dashboard-section,
.clientes-clean-shell,
.clean-entity-shell,
.stat-card {
    border-color: var(--line-soft);
}

.form-container,
.dashboard-filter-card,
.dashboard-info-panel,
.chart-card,
.dashboard-section,
.stat-card {
    background: rgba(255,255,255,0.94);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.dashboard-section {
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--line-soft);
}

.dashboard-overview-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-mini-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,249,250,0.92));
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    padding: 16px 18px;
    min-width: 0;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
}

.dashboard-mini-card-highlight {
    background: linear-gradient(180deg, rgba(224, 64, 13, 0.08), rgba(255,255,255,0.98));
    border-color: rgba(224, 64, 13, 0.16);
}

.dashboard-mini-label {
    display: block;
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.dashboard-mini-card strong {
    display: block;
    font-size: 24px;
    color: var(--gray-800);
    line-height: 1.1;
}

.dashboard-mini-card small {
    display: block;
    margin-top: 6px;
    color: var(--gray-600);
    font-size: 12px;
}

.dashboard-mini-progress {
    margin-top: 12px;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(224, 64, 13, 0.12);
}

.dashboard-mini-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.35s ease;
}

.clean-entity-shell,
.clientes-clean-shell {
    border-radius: 24px;
    border: 1px solid var(--line-soft);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.clean-entity-header,
.clientes-clean-header {
    padding: 22px 24px 16px;
    background: linear-gradient(180deg, rgba(224, 64, 13, 0.05), rgba(255,255,255,0.96));
    border-bottom: 1px solid rgba(224, 64, 13, 0.08);
}

.clean-entity-list,
.clientes-clean-list {
    gap: 10px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,248,251,0.92));
}

.clean-entity-row,
.cliente-clean-row {
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.025);
}

.clean-entity-row:hover,
.cliente-clean-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.clean-entity-actions .btn-edit,
.clean-entity-actions .btn-delete,
.clean-entity-actions .btn-receber,
.cliente-clean-actions .btn-edit,
.cliente-clean-actions .btn-delete,
.cliente-clean-actions .btn-receber {
    min-height: 38px;
    border-radius: 10px;
}

.entity-inline-pill,
.pag-chip {
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    padding: 7px 10px;
    font-size: 12px;
}

.pill-warning {
    border-color: rgba(255, 193, 7, 0.35);
    background: rgba(255, 193, 7, 0.12);
}

.metric-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.metric-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.35s ease;
}

.metric-progress-warning .metric-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.metric-progress-stock .metric-progress-bar {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.metric-progress-event .metric-progress-bar {
    background: linear-gradient(90deg, #E0400D, #fb923c);
}

.entity-progress-card {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(224, 64, 13, 0.10);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 249, 246, 0.92), rgba(255,255,255,0.96));
}

.entity-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--gray-600);
}

.entity-progress-header strong {
    color: var(--gray-800);
    font-size: 13px;
}

.reports-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.reports-card {
    grid-template-columns: 1fr;
    align-content: space-between;
    min-height: 100%;
}

.reports-card-primary {
    border-color: rgba(224, 64, 13, 0.16);
    background: linear-gradient(180deg, rgba(255, 246, 242, 0.96), rgba(255,255,255,0.98));
}

.report-action-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.report-action-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.report-action-select {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.98);
    padding: 0 12px;
    font-size: 14px;
    color: var(--gray-800);
}

.report-action-select:focus {
    outline: none;
    border-color: rgba(224, 64, 13, 0.45);
    box-shadow: 0 0 0 4px rgba(224, 64, 13, 0.08);
}

.report-action-help {
    color: var(--gray-500);
    font-size: 12px;
    line-height: 1.45;
}

.pagamento-row-inline {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,251,0.96));
}

.pagamento-inline-client strong {
    font-size: 14px;
}

.form-container {
    border: 1px solid var(--line-soft);
    border-radius: 24px;
}

.form-grid,
.evento-form-grid,
.estoque-form-grid,
.usuario-form-grid {
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255,255,255,0.98);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(224, 64, 13, 0.5);
    box-shadow: 0 0 0 4px rgba(224, 64, 13, 0.08);
}

@media (max-width: 1280px) {
    .dashboard-overview-strip,
    .reports-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .nav-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .nav-menu {
        justify-content: flex-start;
        width: 100%;
        order: 3;
        padding-bottom: 2px;
    }

    .nav-user {
        margin-left: auto;
    }

    .dashboard-overview-strip,
    .reports-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 24px;
    }

    .dashboard-section,
    .chart-card,
    .dashboard-info-panel,
    .form-container,
    .clean-entity-shell,
    .clientes-clean-shell {
        border-radius: 20px;
    }

    .clean-entity-row,
    .cliente-clean-row {
        border-radius: 18px;
    }
}
