/* ===== Sidebar ===== */
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; width: 260px; }
.sidebar-brand { padding: 0.5rem 0; }
.sidebar .nav-link { border-radius: 0.5rem; margin-bottom: 0.25rem; transition: all 0.2s; }
.sidebar .nav-link:hover { background-color: rgba(255, 255, 255, 0.1); }
.sidebar .nav-link.active { background-color: #0d6efd; }
#mainContent { background-color: #f8f9fa; min-height: 100vh; }

/* ===== Tabelas desktop ===== */
.table-container {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.table-container table { margin-bottom: 0; width: 100%; }
.card-dashboard { border: none; border-radius: 0.75rem; box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075); transition: transform 0.2s; }
.card-dashboard:hover { transform: translateY(-2px); }

/* ===== Mobile cards (substituem tabelas) ===== */
.mobile-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
}
.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.875rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 0.875rem;
    gap: 0.5rem;
}
.mobile-card-body { padding: 0.625rem 0.875rem; }
.mobile-card-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.8125rem;
    gap: 0.5rem;
}
.mobile-card-row:last-child { border-bottom: none; }
.mobile-card-label { color: #495057; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.mobile-card-value { text-align: right; color: #212529; }
.mobile-card-actions {
    display: flex;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: #fafafa;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

/* ===== Breakpoints ===== */
@media (max-width: 767.98px) {
    #mainContent { padding-top: 65px !important; }
    .sidebar { display: none; }
    .offcanvas.offcanvas-start { width: 280px; }
    .table-container { padding: 0.5rem; border-radius: 0.375rem; overflow: visible; }
    .table-container .btn-sm { padding: 0.2rem 0.35rem; font-size: 0.75rem; }
    #formFiltros .row > div { flex: 1 1 50%; min-width: 0; }
    .modal-dialog { margin: 0.5rem; }
    .modal-content { border-radius: 0.75rem; }
    .modal-body { padding: 1rem; }
    .modal-header { padding: 0.75rem 1rem; }
    .modal-footer { padding: 0.75rem 1rem; }
    .modal-header .modal-title { font-size: 1rem; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    #mainContent { padding-top: 65px !important; }
    .sidebar { display: none; }
    .offcanvas.offcanvas-start { width: 280px; }
}
@media (min-width: 992px) {
    #mainContent { padding-top: 1.5rem !important; }
}
