/**
 * Template para exibição de documentos no frontend
 * DTIC Addons
 */

/* Estilos para exibição de documentos no frontend */
.dtic-documento-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.dtic-documento-header {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #2271b1;
}

.dtic-documento-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 15px;
    line-height: 1.3;
}

.dtic-documento-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.dtic-documento-meta-item {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dcdcde;
}

.dtic-documento-meta-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #646970;
    margin-bottom: 5px;
}

.dtic-documento-meta-value {
    font-size: 16px;
    color: #1d2327;
    font-weight: 500;
}

.dtic-documento-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #e5e7eb; /* linha do separador */
    margin-top: 10px;            /* 10px acima da linha */
    padding-top: 10px;           /* 10px abaixo da linha */
}
.dtic-documento-section:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 30px; /* mantém o padding padrão no primeiro bloco */
}

.dtic-documento-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
}

.dtic-documento-objeto {
    font-size: 16px;
    line-height: 1.6;
    color: #50575e;
}
.dtic-documento-objeto p { margin: 0 0 12px 0; }

.dtic-documento-files {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dtic-documento-file {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dtic-documento-file:hover {
    background: #fff;
    border-color: #2271b1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dtic-documento-file-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #2271b1;
}

.dtic-documento-file-name {
    flex-grow: 1;
    color: #1d2327;
    font-weight: 500;
}

.dtic-documento-file-tag {
    display: inline-block;
    margin-right: 10px;
    padding: 3px 8px;
    font-size: 12px;
    color: #57606a;
    background: #f0f0f1;
    border-radius: 10px;
}

.dtic-documento-file-download {
    color: #2271b1;
    font-size: 20px;
}

.dtic-documento-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #2271b1;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    margin-right: 5px;
    margin-bottom: 5px;
}

.dtic-documento-categorias {
    margin-top: 20px;
}

.dtic-documento-categoria {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f1;
    color: #2c3338;
    font-size: 13px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
    text-decoration: none;
}

.dtic-documento-categoria:hover {
    background: #dcdcde;
}

/* Responsividade */
@media (max-width: 768px) {
    .dtic-documento-meta {
        grid-template-columns: 1fr;
    }
    
    .dtic-documento-section {
        padding: 20px;
    }
}
