/* Kreativ.ae Protocolos – Public Styles */

.kprot-consulta-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
}

/* Caixa de busca */
.kprot-search-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 36px 40px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.kprot-titulo    { font-size: 26px; margin: 0 0 8px; }
.kprot-subtitulo { color: #666; margin: 0 0 28px; font-size: 15px; }

.kprot-field { text-align: left; margin-bottom: 16px; }
.kprot-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.kprot-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .2s;
}
.kprot-field input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,.15);
}

/* Botões */
.kprot-btn-primary {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: background .2s;
}
.kprot-btn-primary:hover { background: #005d8c; }
.kprot-btn-primary:disabled { background: #aaa; cursor: not-allowed; }

.kprot-btn-link {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 20px;
    text-decoration: underline;
}

/* Mensagens */
.kprot-msg { padding: 12px 16px; border-radius: 5px; margin-top: 16px; font-size: 14px; }
.kprot-msg-error   { background: #fde8e8; border: 1px solid #f5c6c6; color: #c0392b; }
.kprot-msg-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }

/* Header do resultado */
.kprot-protocolo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.kprot-protocolo-numero small {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.kprot-protocolo-numero strong { font-size: 22px; letter-spacing: 1px; }

/* Badge */
.kprot-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #999;
}
.kprot-badge-recebido          { background: #46b450; }
.kprot-badge-em_analise        { background: #f56e28; }
.kprot-badge-aguardando_cliente{ background: #e6b80a; color: #333; }
.kprot-badge-em_andamento      { background: #826eb4; }
.kprot-badge-concluido         { background: #00a0d2; }
.kprot-badge-cancelado         { background: #dc3232; }

/* Grid resultado */
.kprot-resultado-grid { display: block; }
.kprot-resultado-main > div { margin-bottom: 20px; }

/* Box */
.kprot-res-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px 24px;
}
.kprot-res-box h3 {
    margin: 0 0 16px;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

/* DL */
.kprot-dl { margin: 0; }
.kprot-dl dt { font-weight: 600; font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .5px; margin-top: 12px; }
.kprot-dl dd { margin: 3px 0 0 0; font-size: 15px; color: #1a1a1a; word-break: break-word; }
.kprot-dl dt:first-child { margin-top: 0; }

/* Timeline */
.kprot-timeline { position: relative; padding-left: 28px; }
.kprot-timeline::before {
    content: '';
    position: absolute;
    left: 8px; top: 0; bottom: 0;
    width: 2px;
    background: #e0e0e0;
}
.kprot-timeline-item { position: relative; margin-bottom: 20px; }
.kprot-timeline-item:last-child { margin-bottom: 0; }
.kprot-timeline-dot {
    position: absolute;
    left: -23px;
    top: 5px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #0073aa;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #0073aa;
}
.kprot-timeline-item.kprot-comment-item .kprot-timeline-dot { background: #46b450; box-shadow: 0 0 0 2px #46b450; }
.kprot-timeline-date { font-size: 12px; color: #888; margin-bottom: 3px; }
.kprot-timeline-label { font-size: 14px; color: #333; }
.kprot-timeline-comment {
    background: #f0f7ff;
    border-left: 3px solid #0073aa;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #333;
    margin-top: 4px;
}
.kprot-timeline-autor { font-size: 12px; color: #0073aa; font-weight: 600; margin-bottom: 3px; }

/* ── Arquivos públicos (shortcode) ── */
.kprot-files-section { margin-top: 20px; }
.kprot-file-pub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.kprot-file-pub-item:last-child { border-bottom: none; }
.kprot-pub-upload {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 12px;
    transition: border-color .2s;
}
.kprot-pub-upload.dragover { border-color: var(--kprot-cor, #0073aa); background: #f0f7ff; }
.kprot-pub-upload-btn {
    background: var(--kprot-cor, #0073aa);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
}
.kprot-pub-upload-btn:disabled { background: #aaa; cursor: not-allowed; }
