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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    position: relative;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
}

.header-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.35);
}

.icon {
    font-size: 1.3rem;
    font-weight: 700;
}

/* ==================== TABS ==================== */
.tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

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

/* ==================== CARDS ==================== */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #4a5568;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h2 {
    margin: 0;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input {
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.summary-card h3 {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 8px;
}

.summary-card .value {
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-card.receita .value {
    color: #48bb78;
}

.summary-card.custo .value {
    color: #f56565;
}

.summary-card.lucro .value {
    color: #667eea;
}

.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pedidos-section {
    margin-top: 20px;
}

.pedidos-section .table-wrapper {
    max-height: 250px;
}

.chart-card canvas {
    max-height: 250px;
}

.divisao-socios h2 {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 15px;
}

.socios-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.socio-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: white;
}

.socio-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.socio-card .value {
    font-size: 1.3rem;
    font-weight: 700;
}

.tables-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.table-card {
    overflow: hidden;
}

.table-wrapper {
    max-height: 350px;
    overflow-y: scroll;
    overflow-x: auto;
    position: relative;
    display: block;
}

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

thead {
    background: #f7fafc;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.05);
}

th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

th.th-center {
    text-align: center;
}

td {
    padding: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

td:first-child {
    text-align: center;
}

td:nth-child(3) {
    text-align: center;
}

td:nth-child(4) {
    text-align: center;
}

tbody tr:hover {
    background: #f7fafc;
}

.action-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-edit {
    color: #4299e1;
}

.btn-edit:hover {
    background: #ebf8ff;
    color: #2b6cb0;
}

.btn-delete-icon {
    color: #f56565;
}

.btn-delete-icon:hover {
    background: #fff5f5;
    color: #c53030;
}

/* 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 ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #2d3748;
}

.close {
    font-size: 2rem;
    font-weight: 300;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close:hover {
    color: #4a5568;
}

.modal-content form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-full {
    width: 100%;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: all;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    border-left: 4px solid;
}

.toast-success {
    border-left-color: #48bb78;
}

.toast-error {
    border-left-color: #f56565;
}

.toast-warning {
    border-left-color: #ed8936;
}

.toast-info {
    border-left-color: #4299e1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: #48bb78;
    color: white;
}

.toast-error .toast-icon {
    background: #f56565;
    color: white;
}

.toast-warning .toast-icon {
    background: #ed8936;
    color: white;
}

.toast-info .toast-icon {
    background: #4299e1;
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2d3748;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: #718096;
}

.toast-close {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    font-size: 20px;
    line-height: 1;
}

.toast-close:hover {
    color: #4a5568;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* Filtros */
.filters-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filter-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.filter-input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
}

.filter-quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 6px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f7fafc;
}

.btn-filter.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* Confirm Modal */
.confirm-modal-content {
    text-align: center;
    max-width: 400px;
    padding: 30px;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.confirm-title {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.confirm-message {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-buttons .btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 0.95rem;
}

.btn-cancel {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-cancel:hover {
    background: #cbd5e0;
}

.btn-confirm {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ==================== CAIXA ==================== */

.caixa-status-bar {
    background: white;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.aberto {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #c05621;
}

.status-badge.fechado {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.status-info {
    color: #718096;
    font-size: 0.9rem;
}

.caixa-summary {
    margin-bottom: 20px;
}

.caixa-saldo-card {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
}

.divisao-caixa {
    margin-bottom: 20px;
}

.divisao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.divisao-header h2 {
    margin: 0;
}

.frozen-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.caixa-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.btn-fechar-caixa {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-fechar-caixa:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    transform: translateY(-3px);
}

.btn-novo-periodo {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    transition: all 0.3s ease;
}

.btn-novo-periodo:hover {
    box-shadow: 0 6px 25px rgba(79, 172, 254, 0.6);
    transform: translateY(-3px);
}

.caixa-info-box {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-left: 4px solid #4299e1;
    margin-top: 20px;
}

.caixa-info-box .info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.caixa-info-box p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

#retiradaSection {
    margin-bottom: 20px;
}

/* ==================== NOVO CAIXA CRUD ==================== */

.caixa-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-criar-caixa {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-criar-caixa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.caixa-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Card de Caixa */
.caixa-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.caixa-card.aberto {
    border-color: #667eea;
}

.caixa-card.fechado {
    border-color: #e2e8f0;
}

.caixa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    gap: 16px;
}

.caixa-card.aberto .caixa-card-header {
    background: linear-gradient(135deg, #667eea15, #764ba215);
}

.caixa-card.fechado .caixa-card-header {
    background: #f7fafc;
}

.caixa-card-header.clickable {
    cursor: pointer;
    transition: background 0.2s;
}

.caixa-card-header.clickable:hover {
    background: #edf2f7;
}

.caixa-card-top-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.caixa-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    width: fit-content;
}

.badge-aberto {
    background: #ebf8ff;
    color: #2b6cb0;
}

.badge-fechado {
    background: #f0fff4;
    color: #276749;
}

.caixa-nome {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.caixa-periodo-info {
    font-size: 0.82rem;
    color: #718096;
    margin: 0;
}

.caixa-card-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.caixa-lucro-label {
    font-size: 0.78rem;
    color: #718096;
    font-weight: 500;
}

.caixa-lucro-valor {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2d3748;
}

.caixa-toggle-arrow {
    color: #a0aec0;
    font-size: 0.85rem;
    min-width: 20px;
    text-align: center;
}

/* Corpo do card */
.caixa-card-body {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
}

.caixa-mini-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.caixa-mini-card {
    background: #f7fafc;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.caixa-mini-card span {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
}

.caixa-mini-card strong {
    font-size: 1rem;
    font-weight: 700;
}

/* Divisão sócios */
.caixa-divisao {
    background: #f7fafc;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.frozen-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #6b46c1;
    background: #e9d8fd;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 10px;
}

.caixa-socios-row {
    display: flex;
    gap: 16px;
}

.caixa-socio {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.caixa-socio span {
    font-size: 0.78rem;
    color: #718096;
}

.caixa-socio strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.caixa-socio.iago strong { color: #6b46c1; }
.caixa-socio.bruno strong { color: #2b6cb0; }

/* Retiradas */
.retiradas-section {
    margin-bottom: 16px;
}

.retiradas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.retiradas-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
}

.retiradas-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.retiradas-mini-table th {
    text-align: left;
    padding: 6px 8px;
    font-size: 0.75rem;
    color: #718096;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.retiradas-mini-table td {
    padding: 8px;
    border-bottom: 1px solid #f7fafc;
    color: #4a5568;
}

/* Botões de ação do card */
.caixa-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-fechar-caixa {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-fechar-caixa:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-deletar-caixa {
    background: white;
    color: #f56565;
    border: 2px solid #feb2b2;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-deletar-caixa:hover {
    background: #fff5f5;
    border-color: #f56565;
}

/* ==================== RESPONSIVE ==================== */


.historico-card {
    margin-top: 20px;
}

.historico-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.historico-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    background: #f7fafc;
    transition: background 0.2s;
}

.historico-header:hover {
    background: #edf2f7;
}

.historico-titulo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.historico-periodo {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.historico-lucro {
    color: #48bb78;
    font-weight: 700;
    font-size: 1rem;
}

.historico-arrow {
    color: #a0aec0;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.historico-body {
    padding: 16px 18px;
    border-top: 1px solid #e2e8f0;
    animation: fadeInTab 0.2s ease;
}

.historico-socios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.historico-socio {
    background: #f7fafc;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.historico-socio span {
    font-size: 0.78rem;
    color: #718096;
}

.historico-socio strong {
    font-size: 1rem;
    color: #2d3748;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .header-actions {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 12px;
    }

    .summary-card .value {
        font-size: 1.5rem;
    }

    .tables-section {
        grid-template-columns: 1fr;
    }

    .bottom-section {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-small {
        width: 100%;
        justify-content: center;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .tab-nav {
        gap: 6px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .caixa-status-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .status-left {
        flex-direction: column;
        gap: 8px;
    }

    .caixa-actions {
        flex-direction: column;
    }

    .btn-fechar-caixa,
    .btn-novo-periodo {
        width: 100%;
        justify-content: center;
    }
}
