/* ===== CARTAS DE SERVIÇO CSS ===== */

/* Variáveis CSS */
:root {
    --cs-primary: #0d6efd;
    --cs-secondary: #6c757d;
    --cs-success: #198754;
    --cs-info: #0dcaf0;
    --cs-warning: #ffc107;
    --cs-danger: #dc3545;
    --cs-light: #f8f9fa;
    --cs-dark: #212529;
    --cs-border-radius: 8px;
    --cs-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --cs-transition: all 0.3s ease;
}

/* ===== PÁGINA DE LISTAGEM ===== */

/* Hero Section */
.cartas-hero {
    background: linear-gradient(135deg, var(--theme-primary, var(--cs-primary)) 0%, var(--theme-secondary, #0056b3) 100%);
    position: relative;
    overflow: hidden;
}

.cartas-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cartas-hero .container {
    position: relative;
    z-index: 2;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

/* Estatísticas em Cards Horizontais */
.header-card .stats-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.stat-item {
    background: white;
    border-radius: var(--cs-border-radius);
    box-shadow: var(--cs-box-shadow);
    padding: 1.5rem;
    text-align: center;
    color: var(--cs-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--cs-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--cs-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsividade para Estatísticas */
@media (max-width: 768px) {
    .header-card .stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .header-card .stat-item {
        padding: 1rem;
    }
    
    .header-card .stat-number {
        font-size: 2rem;
    }
    
    .header-card .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-card .stats-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .header-card .stat-item {
        padding: 1.25rem;
    }
}

/* Filtros */
.filters-section {
    background: white;
    border-radius: var(--cs-border-radius);
    box-shadow: var(--cs-box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filters-card {
    background: white;
    border-radius: var(--cs-border-radius);
    box-shadow: var(--cs-box-shadow);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

/* Filtros em Linha */
.filters-inline-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr auto;
    gap: 1rem;
    align-items: end;
}

.filter-group-inline {
    display: flex;
    flex-direction: column;
}

.form-label-small {
    font-weight: 600;
    color: var(--cs-dark);
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    display: block;
}

.filter-actions {
    min-width: 140px;
}

.search-box-small {
    position: relative;
}

.search-box-small .fas {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cs-secondary);
    pointer-events: none;
}

.search-box-small input {
    padding-right: 2.5rem;
}

/* Responsividade para Filtros */
@media (max-width: 992px) {
    .filters-inline-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .filter-actions {
        grid-column: 1 / -1;
        justify-self: start;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .filters-inline-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filters-card {
        padding: 1rem;
    }
    
    .filter-actions .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    font-weight: 600;
    color: var(--cs-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.search-input {
    border: 2px solid #e9ecef;
    border-radius: var(--cs-border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--cs-transition);
}

.search-input:focus {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.filter-select {
    border: 2px solid #e9ecef;
    border-radius: var(--cs-border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--cs-transition);
    background-color: white;
}

.filter-select:focus {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Cards de Serviços Modernos */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.servico-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    backdrop-filter: blur(10px);
}

.servico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cs-primary), #28a745, #17a2b8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.servico-card:hover::before {
    opacity: 1;
}

.servico-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
}

.servico-card-header {
    padding: 2rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.categoria-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--cs-primary) 0%, #0056b3 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.categoria-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.categoria-badge:hover::before {
    left: 100%;
}

.categoria-badge i {
    font-size: 0.8rem;
}

/* Badges específicos por categoria */
.categoria-badge[data-categoria="protocolo"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.categoria-badge[data-categoria="transparencia"] {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.categoria-badge[data-categoria="ouvidoria"] {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.categoria-badge[data-categoria="legislacao"] {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.servico-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.servico-description {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: justify;
    hyphens: auto;
}

.servico-card-body {
    padding: 1.5rem 2rem 2rem 2rem;
}

.servico-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

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

.meta-item i {
    color: var(--cs-primary);
    width: 18px;
    height: 18px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    padding: 0.25rem;
}

.meta-value {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.875rem;
}

.servico-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-servico {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-servico::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-servico:hover::before {
    left: 100%;
}

.btn-primary-servico {
    background: linear-gradient(135deg, var(--cs-primary) 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary-servico:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.btn-outline-servico {
    background: rgba(255, 255, 255, 0.9);
    color: var(--cs-primary);
    border: 2px solid var(--cs-primary);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.btn-outline-servico:hover {
    background: var(--cs-primary);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* Badges de Status Modernos */
.service-status, .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-status::before, .status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.service-status:hover::before, .status-badge:hover::before {
    left: 100%;
}

/* Status Ativo */
.status-ativo, .service-status.status-ativo {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.status-ativo::after {
    content: '●';
    animation: pulse 2s infinite;
}

/* Status Rascunho */
.status-rascunho, .service-status.status-rascunho {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Status Inativo */
.status-inativo, .service-status.status-inativo {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Status Arquivado */
.status-arquivado, .service-status.status-arquivado {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Animação de pulse para status ativo */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Estado vazio */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--cs-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--cs-dark);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Responsividade para Cards Modernos */
@media (max-width: 1200px) {
    .servicos-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0.25rem;
    }
    
    .servico-card {
        margin: 0 0.5rem;
    }
    
    .servico-card-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .servico-card-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .servico-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .servico-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-servico {
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .servico-title {
        font-size: 1.25rem;
    }
    
    .servico-description {
        font-size: 0.9rem;
    }
    
    .categoria-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animações de entrada para cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servico-card {
    animation: fadeInUp 0.6s ease-out;
}

.servico-card:nth-child(1) { animation-delay: 0.1s; }
.servico-card:nth-child(2) { animation-delay: 0.2s; }
.servico-card:nth-child(3) { animation-delay: 0.3s; }
.servico-card:nth-child(4) { animation-delay: 0.4s; }
.servico-card:nth-child(5) { animation-delay: 0.5s; }
.servico-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== PÁGINA DE DETALHES ===== */

/* Header do Serviço */
.service-header {
    background: linear-gradient(135deg, var(--cs-primary) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.service-header .container {
    position: relative;
    z-index: 2;
}

.service-stats {
    text-align: center;
    color: var(--cs-dark);
}

.service-stats .stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--cs-border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

/* Seções de Informação */
.info-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cs-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.content-box {
    background: white;
    border-radius: var(--cs-border-radius);
    padding: 1.5rem;
    box-shadow: var(--cs-box-shadow);
    border: 1px solid #e9ecef;
    line-height: 1.6;
}

/* Cards de Informação */
.info-card {
    background: white;
    border-radius: var(--cs-border-radius);
    padding: 1.5rem;
    box-shadow: var(--cs-box-shadow);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    transition: var(--cs-transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
}

.info-icon i {
    font-size: 1.2rem;
}

.info-content h6 {
    font-weight: 700;
    color: var(--cs-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content p {
    color: var(--cs-secondary);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* Canais de Atendimento */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.channel-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--cs-border-radius);
    padding: 1rem;
    text-align: center;
    transition: var(--cs-transition);
    cursor: pointer;
}

.channel-item:hover {
    border-color: var(--cs-primary);
    background: rgba(13, 110, 253, 0.05);
}

.channel-item i {
    font-size: 1.5rem;
    color: var(--cs-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.channel-item span {
    font-weight: 600;
    color: var(--cs-dark);
    font-size: 0.9rem;
}

/* Anexos */
.anexos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.anexo-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--cs-border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--cs-transition);
}

.anexo-item:hover {
    background: #f8f9fa;
    border-color: var(--cs-primary);
}

.anexo-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.1);
    border-radius: var(--cs-border-radius);
}

.anexo-icon i {
    font-size: 1.2rem;
}

.anexo-info {
    flex: 1;
}

.anexo-info h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--cs-dark);
}

.anexo-actions {
    flex-shrink: 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: var(--cs-border-radius);
    box-shadow: var(--cs-box-shadow);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.sidebar-title {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cs-dark);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.sidebar-card .d-grid {
    padding: 1.5rem;
}

.contact-info {
    padding: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 20px;
    text-align: center;
}

.contact-item span {
    color: var(--cs-dark);
    font-size: 0.95rem;
}

.related-services {
    padding: 1.5rem;
}

.related-service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--cs-dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--cs-transition);
}

.related-service-item:last-child {
    border-bottom: none;
}

.related-service-item:hover {
    color: var(--cs-primary);
    text-decoration: none;
    padding-left: 0.5rem;
}

.related-service-item i {
    width: 20px;
    text-align: center;
    color: var(--cs-primary);
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 768px) {
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .servico-meta {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .servico-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .filters-section {
        padding: 1rem;
    }
    
    .filter-group {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .channels-grid {
        grid-template-columns: 1fr;
    }
    
    .anexo-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ===== ANIMAÇÕES ===== */

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

.servico-card {
    animation: fadeInUp 0.6s ease-out;
}

.servico-card:nth-child(1) { animation-delay: 0.1s; }
.servico-card:nth-child(2) { animation-delay: 0.2s; }
.servico-card:nth-child(3) { animation-delay: 0.3s; }
.servico-card:nth-child(4) { animation-delay: 0.4s; }
.servico-card:nth-child(5) { animation-delay: 0.5s; }
.servico-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== UTILITÁRIOS ===== */

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== CORREÇÕES DE COR ===== */

/* Garantir que elementos da página tenham cor adequada */
.header-card,
.header-card *,
.stats-row,
.stats-row *,
.filters-card,
.filters-card * {
    color: var(--cs-dark) !important;
}

.header-card h1,
.header-card h2,
.header-card h3,
.header-card h4,
.header-card h5,
.header-card h6 {
    color: var(--cs-dark) !important;
}

.stat-number {
    color: var(--cs-primary) !important;
}

.stat-label {
    color: var(--cs-secondary) !important;
}

/* ===== IMPRESSÃO ===== */

@media print {
    .sidebar,
    .filters-section,
    .servico-actions,
    .anexo-actions {
        display: none !important;
    }
    
    .service-header {
        background: white !important;
        color: black !important;
    }
    
    .content-box,
    .info-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}