/* Estilos modernizados para o Sistema de Controle de Carro-Pipa - 2023 */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --body-bg: #f9fafb;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --card-hover-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --border-radius: 0.375rem;
    --transition-speed: 0.3s;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--body-bg);
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    color: #495057;
    line-height: 1.6;
}

/* Estilos para o layout com sidebar moderno */
#wrapper {
    display: flex;
    width: 100%;
}

#sidebar {
    min-width: 280px;
    max-width: 280px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    height: 100vh;
    position: fixed;
    z-index: 1000;
    overflow-y: auto;
    left: 0;
    top: 0;
}

/* Sidebar sempre visível - comportamento responsivo */
#sidebar.active {
    margin-left: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

#sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar .sidebar-header h3 {
    margin-bottom: 5px;
    font-weight: 600;
}

#sidebar .sidebar-brand-tagline {
    font-size: 0.85rem;
    opacity: 0.8;
}

#sidebar ul.components {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    margin: 2px 0;
}

#sidebar ul li a:hover,
#sidebar ul li a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid #fff;
    transform: translateX(5px);
}

#sidebar ul li a i {
    margin-right: 10px;
    width: 24px;
    height: 24px;
    font-size: 1.1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sidebar ul li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #fff;
}

#sidebar .dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

#sidebar .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 0;
    margin-top: 0;
    padding: 0;
}

#sidebar .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 15px 10px 48px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

#sidebar .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(3px);
}

#content {
    width: 100%;
    min-height: 100vh;
    transition: all var(--transition-speed);
    padding: 0;
    background-color: var(--body-bg);
}

/* Botão de toggle para o sidebar */
#sidebarCollapse {
    margin-right: 15px;
}

/* Sistema responsivo - SOLUÇÃO PARA SIDEBAR MOBILE */

/* Estilo base simplificado para sidebar - sem animações */
#sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: none; /* Removida a transição */
    overflow-y: auto;
    padding: 15px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.15);
}

/* Overlay para o sidebar em mobile */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9990;
    display: none;
}

/* Desktop (acima de 992px) */
@media (min-width: 993px) {
    /* Conteúdo com sidebar aberto - sem transição */
    #content {
        width: calc(100% - 280px);
        margin-left: 280px;
        transition: none;
    }
    
    /* Conteúdo com sidebar fechado */
    body:not(.sidebar-active) #content,
    #content.full-width {
        width: 100%;
        margin-left: 0;
    }
}

/* Tablets e dispositivos médios */
@media (max-width: 992px) {
    /* Sidebar colapsável em dispositivos médios */
    #sidebar {
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
        background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
        color: #fff !important;
        position: fixed !important;
        height: 100vh !important;
        top: 0 !important;
        left: -250px !important;
        z-index: 9999 !important;
        transition: all 0.3s !important;
        margin: 0 !important;
        padding: 15px !important;
        border: none !important;
        overflow-y: auto !important;
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.3) !important;
        transform: translateX(0) !important; /* Garantir que não há transformação inicial */
    }
    
    /* Quando sidebar está ativo - suporta ambas as classes */
    #sidebar.active,
    #sidebar.open {
        left: 0 !important;
        transform: translateX(0) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Header do sidebar */
    .sidebar-header {
        padding: 10px 0 !important;
        margin-bottom: 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        display: block !important;
    }
    
    .sidebar-header h3 {
        color: white !important;
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
        display: block !important;
    }
    
    /* Itens do menu */
    #sidebar ul.components {
        padding: 0 !important;
        margin: 0 0 15px 0 !important;
        display: block !important;
        width: 100% !important;
    }
    
    #sidebar ul li {
        display: block !important;
        width: 100% !important;
        margin-bottom: 5px !important;
    }
    
    #sidebar ul li a {
        padding: 12px 15px !important;
        font-size: 1rem !important;
        display: block !important;
        color: #fff !important;
        text-decoration: none !important;
        border-radius: var(--border-radius) !important;
        transition: all 0.3s !important;
        opacity: 0.85 !important;
        width: 100% !important;
    }
    
    #sidebar ul li a:hover,
    #sidebar ul li a.active {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        opacity: 1 !important;
    }
    
    #sidebar ul li a i {
        margin-right: 10px !important;
        width: 20px !important;
        text-align: center !important;
        display: inline-block !important;
    }
    
    /* Área de usuário no sidebar */
    .sidebar-user {
        margin-top: auto !important;
        padding: 15px 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        display: block !important;
        width: 100% !important;
    }
    
    /* Layout do conteúdo */
    #content {
        width: 100% !important;
        margin-left: 0 !important;
        transition: all 0.3s !important;
    }
    
    #sidebar ul li a {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    /* Conteúdo principal ocupa toda a largura por padrão */
    #content {
        margin-left: 0;
        width: 100%;
        transition: margin-left 0.3s ease, width 0.3s ease;
    }
    
    /* Conteúdo principal ajustado quando sidebar está visível */
    body.sidebar-active #content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
    
    /* Toggle button sempre visível */
    #sidebarCollapse {
        display: block;
        position: relative;
        z-index: 1060;
    }
    
    /* Ajustes para tabelas responsivas */
    .table-responsive,
    .table-striped,
    .table-hover {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    /* Forçar tabelas a serem responsivas mesmo sem classe */
    table.table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Colunas principais menores em mobile */
    .table th:first-child,
    .table td:first-child {
        white-space: nowrap;
    }
    
    /* Ajuste para colunas de ações */
    .table th:last-child,
    .table td:last-child {
        white-space: nowrap;
        min-width: 100px;
    }
    
    /* Garantir que tabelas não quebrem o layout */
    .card-body .table-responsive,
    .content-wrapper .table-responsive {
        margin-bottom: 0;
        border: 0;
    }
    
    /* Ajustes para cards em tablets */
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    /* Ajustes para formulários */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Overlay quando sidebar está aberto */
    .overlay {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1999;
        opacity: 1;
        transition: all 0.3s ease-in-out;
        left: 0;
        top: 0;
    }
    
    body.sidebar-active .overlay {
        display: block;
    }
}

/* Smartphones e dispositivos pequenos */
@media (max-width: 767px) {
    /* Sidebar mobile - ocupa mais espaço da tela */
    #sidebar {
        width: 280px;
        min-width: 280px;
        margin-left: -280px;
    }
    
    body.sidebar-active #content {
        margin-left: 0; /* Não desloca o conteúdo em telas pequenas */
        width: 100%;
        filter: blur(1px); /* Desfoque sutil quando menu está aberto */
    }
    
    /* Container principal com padding reduzido */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Ajustes para os cards em smartphones */
    .row > div[class^="col"] {
        margin-bottom: 15px;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .dashboard-card .dashboard-icon {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .stat-number {
        font-size: clamp(0.8rem, 2vw, 1.6rem); /* valores ajustados para maior responsividade */
    font-weight: bold;
    line-height: 1.2;
    max-width: 100%; /* evita que ultrapasse os limites do contêiner */
    word-break: break-word; /* impede quebra visual ruim em números muito grandes */
}
    
    /* Ajustes para tabelas em dispositivos móveis */
    .data-table thead th {
        white-space: nowrap;
    }
    
    /* Ajustes para formulários em mobile */
    .form-label {
        margin-bottom: 0.25rem;
    }
    
    .login-card {
        width: 90%;
    }
    
    /* Melhorar usabilidade de elementos clicáveis */
    .btn, 
    .form-control,
    select.form-control,
    .input-group-text,
    .nav-link {
        padding: 0.5rem 0.75rem; /* Área de toque maior */
    }
    
    /* Status badges mais legíveis */
    .status-badge {
        display: inline-block;
        margin-bottom: 5px;
        text-align: center;
        padding: 2.5rem 1.5rem 1.5rem;
        background: rgba(13, 110, 253, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .login-header i {
        font-size: 3.5rem;
        color: var(--primary);
    }
    .stat-number {
    font-size: clamp(0.8rem, 2vw, 1.6rem); /* valores ajustados para maior responsividade */
    font-weight: bold;
    line-height: 1.2;
    max-width: 100%; /* evita que ultrapasse os limites do contêiner */
    word-break: break-word; /* impede quebra visual ruim em números muito grandes */
}
    
    .form-control-lg {
        font-size: 1rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Ajuste para detalhes de solicitação/família */
    .detail-container {
        padding: 15px 10px;
    }
    
    /* Título da página menor */
    h1.page-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Botões em linha ocupam toda largura */
    .d-flex .btn {
        flex: 1;
    }
}

/* Área do usuário no sidebar */
.sidebar-user {
    padding: 15px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user button {
    width: 100%;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
}

.footer {
    margin-top: auto;
}

/* Tela de Login - Moderna */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #0099ff 100%);
    padding: 0;
}

.login-card {
    width: 100%;
    max-width: 450px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--info) 100%);
}

.login-header {
    text-align: center;
    padding: 2.5rem 1.5rem 1.5rem;
    background: rgba(13, 110, 253, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.login-header i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.login-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

.login-body {
    padding: 2rem;
}

.login-body .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-right: none;
    color: var(--primary);
}

.login-body .form-control {
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: none;
    padding-left: 0.5rem;
    background-color: #ffffff;
    color: #000000;
    font-weight: 500;
}

.login-body .input-group {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.login-body .form-control::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.login-body .form-check-label {
    color: #212529;
}

.login-body .form-check-input {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
}

.login-body .text-decoration-none {
    color: #0d6efd;
}

.login-body .text-decoration-none:hover {
    color: #0a58ca;
}

.login-body .form-label {
    color: #212529;
    font-weight: 600;
}

.login-body .text-muted {
    color: rgba(0, 0, 0, 0.6) !important;
}

.login-body .btn-primary {
    background-image: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.login-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.15);
}

/* Dashboard */
.dashboard-card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dashboard-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Botões - modernizados */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0.2px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #156c42);
    border: none;
}

.btn-info {
    color: #fff;
    background: linear-gradient(135deg, var(--info), #09a7c4);
    border: none;
}

.btn-warning {
    color: #212529;
    background: linear-gradient(135deg, var(--warning), #e6a800);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c82333);
    border: none;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Formulários - modernizados */
.form-group {
    margin-bottom: 1.5rem;
}

/* Formulários responsivos */
@media (max-width: 767px) {
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Ajuste para inputs em mobile */
    .form-control,
    .form-select {
        font-size: 16px; /* Evita zoom automático no iOS */
        padding: 0.375rem 0.5rem;
    }
    
    /* Grupos de inputs ficam verticais em mobile */
    .input-group-vertical-sm {
        flex-direction: column;
    }
    
    .input-group-vertical-sm > .form-control,
    .input-group-vertical-sm > .input-group-text,
    .input-group-vertical-sm > .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        border-radius: var(--border-radius) !important;
    }
    
    /* Botões em formulários ocupam largura total em mobile */
    .form-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.form-control {
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.5rem 0.75rem;
    transition: all 0.2s;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-text {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-check-label {
    cursor: pointer;
}

/* Tabelas - modernizadas */
.data-table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Tabelas responsivas para mobile */
@media (max-width: 767px) {
    /* Forçar tabelas a mostrar scroll horizontal quando necessário */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }
    
    /* Ajustar espaçamento nas células */
    .data-table th, 
    .data-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Reduzir tamanho de texto nos cabeçalhos */
    .data-table thead th {
        font-size: 0.8rem;
    }
    
    /* Definir uma estratégia de quebra de texto para células com muito conteúdo */
    .data-table td {
        white-space: nowrap;
    }
    
    /* Células com quebra de linha habilitada para colunas específicas */
    .data-table td.wrap-content {
        white-space: normal;
        min-width: 150px;
    }
}

.data-table thead th {
    background-color: rgba(13, 110, 253, 0.05);
    color: #495057;
    font-weight: 600;
    border-color: rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
    vertical-align: middle;
    text-transform: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.02);
}

.data-table td {
    padding: 0.65rem 1rem;
    border-color: rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

/* DataTables modernization */
.dataTables_wrapper .dataTables_length select, 
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 0.3rem 0.5rem;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding-top: 1rem;
    color: var(--secondary);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.3rem 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    margin: 0 0.1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):hover {
    background: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.1);
    color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
}

.data-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.action-buttons .btn {
    margin: 0 2px;
}

/* Cards - estilo moderno */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Cards responsivos */
@media (max-width: 767px) {
    .card {
        margin-bottom: 15px;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-footer {
        padding: 0.5rem 1rem;
    }
    
    /* Ajuste para cards de dashboard em mobile */
    .dashboard-card {
        padding: 15px;
        display: flex;
        align-items: center;
    }
    
    .dashboard-card .dashboard-icon {
        font-size: 2rem;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    /* Informações do card em linha para economizar espaço vertical */
    .dashboard-card-content {
        flex: 1;
    }
    
    /* Containers de detalhes para mobile */
    .detail-container {
        padding: 1rem;
    }
    
    .detail-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .detail-item {
        margin-bottom: 10px;
    }
}

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

.card-header {
    background-color: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background-color: rgba(0,0,0,0.02);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem 1.25rem;
}

/* Detalhes de família/solicitação */
.detail-container {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Containers responsivos */
@media (max-width: 767px) {
    /* Contêineres com padding reduzido em mobile */
    .container-fluid > .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Ajuste para status de solicitações */
    .status-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    /* Melhorar visualização de listas em mobile */
    .list-group-item {
        padding: 0.75rem;
    }
    
    /* Histórico de solicitações em mobile */
    .timeline-item {
        padding: 10px;
        margin-bottom: 10px;
    }
}

.detail-container:hover {
    box-shadow: var(--card-hover-shadow);
}

.detail-title {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #0d6efd;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
}

/* Status das solicitações */
.status-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Impressão */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        margin: 0;
        padding: 0;
        background: #fff;
    }
    
    .container-fluid, .container {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .print-header {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .print-title {
        font-size: 18pt;
        font-weight: bold;
    }
}

/* Cards de solicitações modernizados */
.card-solicitacao {
    position: relative;
    border: none;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.card-solicitacao:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Indicador de status lateral */
.status-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--status-color);
}

/* Estilos para status pendente */
.card-solicitacao.pendente {
    background-color: #fffbf0;
}

/* Estilos para status em andamento */
.card-solicitacao.andamento {
    background-color: #f0faff;
}

/* Estilos para os itens de informação */
.card-info-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Estilos para urgência */
.card-solicitacao.alta-urgencia {
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.25);
}

.card-solicitacao.media-urgencia {
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.25);
}

/* Estilos para dias em aberto */
.dias-aberto {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

.dias-aberto.text-danger {
    font-weight: 600;
}

/* Efeito overlay ao passar o mouse */
.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 110, 253, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    border-radius: 8px;
}

.card-solicitacao:hover .card-hover-overlay {
    opacity: 0.9;
}
