/*
██████████████████████████████████████████████████████████████
                    KANBAN FMOREIRA
                    ARQUIVO CSS (LIMPO)
██████████████████████████████████████████████████████████████
*/

html, body {
    height: 100%;
    margin: 0;
}

#kanban {
    padding: 20px;
    height: auto;
    overflow: visible;  
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.kanban-header h2 {
    margin: 0;
}

.kanban-actions {
    display: flex;
    gap: 10px;
}

.kanban-btn {
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

#kanbanBoard {
    background: linear-gradient(180deg, #2d588b 0%, #1b2f44 100%);
    min-height: 100vh;
    padding-bottom: 80px;
}

.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    align-items: flex-start;
    padding: 10px;
    padding-bottom: 10px;
    background: linear-gradient(180deg, #dfe7f1 0%, #d4dee9 100%);
    border-radius: 20px;
}

.kanban-board::-webkit-scrollbar {
    height: 10px;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: #c8a04d;
    border-radius: 20px;
}

.kanban-column {
    min-width: 280px;
    max-width: 280px;
    background: linear-gradient(180deg, #214267 0%, #1a3657 50%, #132c49 100%);
    border: 1px solid rgba(201, 162, 93, 0.18);
    border-radius: 18px;
    padding: 10px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.kanban-section {
    background: rgba(3, 75, 184, 0.08);
    border: 1px solid rgba(221, 209, 44, 0.25);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 25px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.column-header {
    background: linear-gradient(180deg, #07111f 0%, #10213b 100%);
    color: white;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.header-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: center;
}

.badge-total {
    background: rgba(193, 154, 61, 0.45);
    border: 1px solid rgba(193, 154, 61, 0.35);
    color: #e0c06b;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.column-header > span {
    border-radius: 100%;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px;
    position: relative;
    background: linear-gradient(180deg, #f3d57b 0%, #d5a83f 50%, #a97b1f 100%);
    color: #19224b;
    font-size: 15px;
    font-weight: 800;
    border: 1px solid #f5d987;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.section-title {
    background: #d9dfe8;
    padding: 7px;
    border-radius: 6px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 0px;
}

.section-title.inicial {
    background: linear-gradient(180deg, #204bc0 0%, #132cb8 45%, #2e86d8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.20);
    color: #ffffff;
}

.section-title.prazo {
    background: linear-gradient(180deg, #e97878 0%, #c94747 45%, #9d2525 100%);
    border: 1px solid #f0a0a0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 3px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.20);
    color: #ffffff;
}

.section-title.sem-prazo {
    background: linear-gradient(180deg, #d7b45b 0%, #c19a3d 50%, #836627 100%);
    color: #ffffff;
    border: 1px solid #886624;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.section-title.corrigir { color: #b91c1c; }
.section-title.corrigido { color: #1d4ed8; }
.section-title.aprovado { color: #166534; }

.kanban-card {
    background: linear-gradient(180deg, #24466d 0%, #1c395b 50%, #17314d 100%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.10);
}

.kanban-card.inicial { border-left: 4px solid #2f6fd6 !important; border-right: 4px solid #2f6fd6 !important; }
.kanban-card.prazo { border-left: 4px solid #b44444; border-right: 4px solid #b44444; }
.kanban-card.sem-prazo { border-left: 4px solid #c19a3d !important; border-right: 4px solid #c19a3d !important; }

.kanban-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 18px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.12);
}

.kanban-card.prazo:hover { border-top: 3px solid #b44444; border-bottom: 2px solid #b44444; }
.kanban-card.sem-prazo:hover { border-top: 3px solid #c19a3d; border-bottom: 2px solid #c19a3d; }
.kanban-card.inicial:hover { border-top: 3px solid #2f6fd6; border-bottom: 2px solid #2f6fd6; }

.kanban-card strong {
    display: block;
    margin: 6px 0;
}

.kanban-avatar {
    width: 140px;
    height: 140px;
    margin: 12px auto 18px auto;
    border: 2px solid #c19a3d;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #ececec);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kanban-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.kanban-card-cliente {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #faf8d9;
    text-align: center;
    width: 100%;
    line-height: 1.3;
}

.kanban-card-data {
    font-size: 13px;
    font-weight: 700;
    color: #c2a855;
}

.kanban-card-topo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 5px;
    padding-left: 18px;
}

.kanban-card-topo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.kanban-badge-novo {
    background: rgba(193, 154, 61, 0.15);
    border: 1px solid rgba(193, 154, 61, 0.35);
    color: #e0c06b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: none;
}

.kanban-dropzone {
    min-height: 80px;
    border-radius: 12px;
    transition: .2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px;
}

.kanban-dropzone.drag-over {
    background: rgba(0, 255, 42, 0.06);
    border: 2px dashed rgba(255, 255, 255, 0.35);
}

.kanban-dropzone.drag-over::before {
    content: "SOLTE AQUI";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.kanban-card.status-atrasado { border-left-color: #b44444; border-right-color: #b44444; }
.kanban-card.status-prazo { border-left-color: #e0b84c; border-right-color: #e0b84c; }
.kanban-card.status-inicial { border-left-color: #2f6fd6; border-right-color: #2f6fd6; }
.kanban-card.status-sem-prazo { border-left-color: #c19a3d; border-right-color: #c19a3d; }

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
}

.kanban-card-rodape {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.kanban-card-local {
    font-size: 12px;
    font-weight: 700;
    color: #aeb8c7;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.kanban-estado, .kanban-separador { color: #aeb8c7; }
.kanban-sistema { color: #c19a3d; }

.kanban-card.urgente {
    position: relative;
    overflow: hidden;
}

.kanban-card.urgente::before {
    content: "URGENTE";
    position: absolute;
    top: 14px;
    left: -36px;
    width: 120px;
    padding: 2px 0;
    text-align: center;
    transform: rotate(-45deg);
    background: linear-gradient(180deg, #ff5f5f 0%, #d52e2e 55%, #991818 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.badge-corrigir {
    padding: 4px 10px;
    border-radius: 999px;
    background: #5a1f1f;
    border: 1px solid #d65a5a;
    color: #ffd2d2;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* =========================
   ESTILOS DO MODAL KANBAN
========================= */
.modal-header-kanban {
    background: linear-gradient(180deg, #07111f 0%, #10213b 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #c19a3d;
}

.modal-cliente-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #cfd9e8;
}

.modal-cliente-info #modalSistema {
    color: #c19a3d;
    font-weight: 700;
}

.modal-separador { color: #7d8798; }

.modal-tarefa-box {
    background: #fafaf3;
    border-left: 4px solid #c19a3d;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 8px;
}

.modal-tarefa-titulo {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 6px;
}

.modal-tarefa-texto {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
}

.modal-bloco-titulo {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748b;
    text-transform: uppercase;
    margin: 0 24px 4px 24px;
}

.modal-anexos-box {
    background: #fffff4;
    border-left: 4px solid #c19a3d;
    border-radius: 10px;
    padding: 4px 4px;
    margin-bottom: 0px;
}

.modal-acoes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1px;
    padding-top: 0px;
}

.modal-cliente-nome {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
    width: 100%;
}

.modal-acoes button {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.btn-fechar { background: #e5e7eb; color: #374151; }
.btn-excluir { background: #991b1b; color: white; }
.btn-concluir { background: #166534; color: white; }

.modal-acoes button:hover { transform: translateY(-1px); }

.modal-dados {
    background: #fafaf3;
    border-radius: 10px;
    padding: 0;
    margin: 0;
}

.faixa-modal-urgente {
    position: absolute;
    top: 18px;
    left: -32px;
    transform: rotate(-45deg);
    background: linear-gradient(180deg, #ef4444, #991b1b);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 40px;
    z-index: 20;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.modal-processo-box {
    grid-column: 1 / -1;
    background: #f8f5eb;
    border-left: 4px solid #c9a227;
    border-radius: 10px;
    padding: 14px 16px;
}

.modal-processo-titulo {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #7c8b64;
    margin-bottom: 8px;
}

.modal-processo-numero {
    font-size: 18px;
    font-weight: 700;
    color: #07111f;
}

.modal-info-box {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #e8dfc0;
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-info-item.full { grid-column: 1 / -1; }

.modal-info-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-info-valor {
    font-size: 20px;
    font-weight: 600;
    color: #07111f;
}

.modal-icon {
    color: #25D366;
    font-size: 24px;
    margin-right: 6px;
}

.modal-whatsapp-link {
    color: #07111f;
    text-decoration: none;
    font-weight: 700;
    transition: .2s;
}

.modal-whatsapp-link:hover { color: #25D366; }

.modal-header-kanban, .modal-tarefa-box, .modal-processo-box, .modal-info-box, .modal-anexos-box {
    margin: 0 6px 5px 6px;
}

/* =========================
   MODAL CIÊNCIA
========================= */
#modalCiencia {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 12, 22, 0.72);
    backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.modal-ciencia {
    width: 420px;
    max-width: 90vw;
    background: #101827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
    text-align: center;
}

.modal-ciencia h3 {
    margin: 0 0 12px;
    color: #f8fafc;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
}

.modal-ciencia p {
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
}

.modal-ciencia-acoes {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-ciencia-acoes button {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: .2s;
}

.modal-ciencia-acoes button:first-child { background: #374151; color: white; }
.modal-ciencia-acoes button:first-child:hover { transform: translateY(-1px); }

.modal-ciencia-acoes button:last-child {
    background: linear-gradient(135deg, #c19a3d, #e6c36a);
    color: #111827;
}

.modal-ciencia-acoes button:last-child:hover { transform: translateY(-1px); }