:root {
    --navy: #1B2A4A;
    --societario: #1B3A6B;
    --financeiro: #1A5276;
    --fiscal: #145A32;
    --dp: #6E2F8A;
}

html, body { font-family: 'Montserrat', system-ui, -apple-system, sans-serif; }

.sidebar { box-shadow: 2px 0 20px rgba(0,0,0,.08); }

.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: all .2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all .15s;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #0f1a38; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--navy); border-color: #cbd5e1; }
.btn-secondary:hover { background: #f8fafc; border-color: var(--navy); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.input, .select, .textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27,42,74,.1);
}
.textarea { resize: vertical; min-height: 80px; }

.label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.kpi {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    border: 1px solid #e2e8f0;
}
.kpi-label { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.kpi-valor { font-size: 32px; font-weight: 800; color: var(--navy); margin-top: 6px; line-height: 1; }

.tabela { width: 100%; border-collapse: collapse; }
.tabela th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.tabela td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.tabela tr:hover td { background: #f8fafc; }

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width .3s ease;
}

.tarefa-card {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    margin-bottom: 10px;
    transition: all .2s;
}
.tarefa-card:hover { border-color: #cbd5e1; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    cursor: pointer;
    user-select: none;
}

.modal-bg {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 20px;
}
.modal {
    background: #fff;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
