:root {
    --flow-navy: #0B1F35;
    --flow-teal: #006D7A;
    --flow-mint: #00C2A8;
    --flow-ice: #E6F4F2;
    --flow-white: #FFFFFF;
    --flow-border: #C5DAD8;
    --flow-text-secondary: #49616E;
    --flow-font: "Manrope", system-ui, sans-serif;
    --flow-radius: 10px;
    --flow-ok-text: #135A42;
    --flow-ok-bg: #DDF4E9;
    --flow-pending-text: #775109;
    --flow-pending-bg: #FFF1D4;
    --flow-late-text: #9B323D;
    --flow-late-bg: #FCE8EB;
    --flow-neutral-text: #49616E;
    --flow-neutral-bg: #EEF3F3;
    --bg-soft: var(--flow-ice);
    --card-shadow: 0 .125rem .5rem rgba(11, 31, 53, .06);
    --bs-primary: #00C2A8;
    --bs-primary-rgb: 0, 194, 168;
    --bs-link-color: #006D7A;
    --bs-link-hover-color: #0B1F35;
    --bs-link-color-rgb: 0, 109, 122;
    --bs-body-color: #0B1F35;
    --bs-body-color-rgb: 11, 31, 53;
    --bs-body-bg: #E6F4F2;
    --bs-emphasis-color: #0B1F35;
    --bs-heading-color: #0B1F35;
    --bs-secondary-color: #49616E;
    --bs-tertiary-color: #49616E;
    --bs-border-color: #C5DAD8;
    --bs-border-radius: 10px;
    --bs-font-sans-serif: "Manrope", system-ui, sans-serif;
    --bs-nav-pills-link-active-color: #0B1F35;
    --bs-nav-pills-link-active-bg: #00C2A8;
    --bs-list-group-active-color: #0B1F35;
    --bs-list-group-active-bg: #00C2A8;
    --bs-list-group-active-border-color: #00C2A8;
    --bs-progress-bar-bg: #00C2A8;
    --bs-focus-ring-color: rgba(0, 109, 122, .25);
}

body {
    background: var(--flow-ice);
    color: var(--flow-navy);
    font-family: var(--flow-font);
    font-weight: 400;
}

.navbar-brand i { font-size: 1.4rem; }

/* ----- Navbar ----- */
.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .75rem;
    border-radius: .375rem;
    white-space: nowrap;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #fff;
}
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, .12);
}
.navbar-nav .nav-text { font-size: .9rem; }
.dropdown-menu-nav {
    border: none;
    border-radius: .5rem;
    padding: .35rem;
    min-width: 13rem;
}
.dropdown-menu-nav .dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .85rem;
    border-radius: .35rem;
    font-size: .9rem;
}
.dropdown-menu-nav .dropdown-item.active,
.dropdown-menu-nav .dropdown-item:active {
    background: rgba(0, 109, 122, .12);
    color: #006D7A;
}
.dropdown-menu-nav .dropdown-header {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #49616E;
    padding: .35rem .85rem .15rem;
}
.navbar-nav-user .nav-user-toggle {
    max-width: 14rem;
}
.navbar-nav-user .nav-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 10rem;
}
.nav-clock { opacity: .85; padding: .25rem .5rem; }
@media (max-width: 991.98px) {
    .navbar-nav .nav-link { padding: .55rem .5rem; }
    .dropdown-menu-nav { border: 1px solid rgba(0,0,0,.08); margin-bottom: .5rem; }
}

.card {
    border: none;
    box-shadow: var(--card-shadow);
    border-radius: .75rem;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #C5DAD8;
    border-radius: .75rem .75rem 0 0 !important;
    font-weight: 600;
}

.stat-card {
    border-left: 4px solid var(--bs-primary);
    transition: transform .15s ease;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { color: #49616E; text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; }
.stat-card .stat-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}

.painel-kpi {
    border: 1px solid #C5DAD8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    border-radius: .5rem;
}
.painel-kpi .card-body { padding: 1rem 1.15rem; }
.painel-kpi-label {
    color: #49616E;
    font-size: .875rem;
    margin-bottom: .35rem;
}
.painel-kpi-value {
    color: #006D7A;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}
.painel-info {
    border: 1px solid #C5DAD8;
    box-shadow: none;
    border-radius: .5rem;
}

.fin-kpi {
    border: none;
    border-radius: .5rem;
    color: #fff;
}
.fin-kpi .card-body { padding: 1rem 1.1rem; }
.fin-kpi-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: .92;
    margin-bottom: .5rem;
}
.fin-kpi-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: .35rem;
}
.fin-kpi-foot {
    font-size: .72rem;
    opacity: .88;
    line-height: 1.3;
}
.fin-kpi-clientes { background: #0B1F35; }
.fin-kpi-bruto { background: #006D7A; }
.fin-kpi-custo { background: #9B323D; }
.fin-kpi-imposto { background: #FFF1D4; color: #775109; }
.fin-kpi-imposto .fin-kpi-label,
.fin-kpi-imposto .fin-kpi-foot { color: #775109; opacity: .85; }
.fin-kpi-lucro { background: #135A42; }
.fin-kpi-folhas { background: #00C2A8; color: #0B1F35; }
.fin-kpi-folhas .fin-kpi-label,
.fin-kpi-folhas .fin-kpi-foot { color: #0B1F35; opacity: .85; }

.fin-composicao td { padding: .55rem 0; border: none; }
.fin-lucro-row td { border-top: 1px solid #C5DAD8; padding-top: .75rem !important; }
.fin-table thead th {
    background: #F4FBFA;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #49616E;
    border-bottom-width: 1px;
}

.bg-soft-primary  { background: rgba(0,109,122,.12); color: #006D7A; }
.bg-soft-success  { background: rgba(19,90,66,.12);  color: #135A42; }
.bg-soft-warning  { background: rgba(255,193,7,.18);  color: #775109; }
.bg-soft-danger   { background: rgba(155,50,61,.12);  color: #9B323D; }
.bg-soft-info     { background: rgba(0,109,122,.15); color: #006D7A; }
.bg-soft-secondary{ background: rgba(73,97,110,.15);color: #49616E; }

.checklist-item, .checklist-row { transition: background-color .2s, border-color .2s, box-shadow .2s; }
.checklist-item.checklist-ok,
.checklist-row.checklist-ok {
    background-color: rgba(19,90,66,.22) !important;
    border-left: 4px solid #135A42 !important;
    border-color: #135A42 !important;
    box-shadow: 0 0 0 1px rgba(19,90,66,.35), 0 2px 6px rgba(19,90,66,.18);
}
.checklist-item.checklist-ok .checklist-text {
    color: #135A42 !important;
}
.checklist-item.checklist-ok .checklist-obs,
.checklist-row.checklist-ok .txt-observacao {
    background-color: #DDF4E9;
    border-color: rgba(19,90,66,.5);
}
.checklist-item.checklist-alerta,
.checklist-row.checklist-alerta {
    background-color: rgba(155,50,61,.22) !important;
    border-left: 4px solid #9B323D !important;
    border-color: #9B323D !important;
    box-shadow: 0 0 0 1px rgba(155,50,61,.35), 0 2px 6px rgba(155,50,61,.18);
}
.checklist-item.checklist-alerta .checklist-text,
.checklist-row.checklist-alerta .txt-observacao {
    color: #9B323D;
}
.checklist-item.checklist-alerta .checklist-obs,
.checklist-row.checklist-alerta .txt-observacao {
    background-color: #FCE8EB;
    border-color: rgba(155,50,61,.5);
}

.checklist-log {
    flex: 0 0 140px;
    max-width: 140px;
    background-color: #F4FBFA !important;
    color: #49616E;
    font-size: .78rem;
    text-align: center;
    cursor: default;
}
.checklist-row .checklist-log {
    max-width: 160px;
}

.checklist-item.checklist-bloqueado,
.checklist-row.checklist-bloqueado {
    opacity: 0.72;
    background-color: rgba(73, 97, 110, 0.06);
}

.checklist-item.checklist-bloqueado .checklist-text,
.checklist-row.checklist-bloqueado input[name="checklist_descricao[]"] {
    color: var(--bs-secondary-color);
}

.checklist-item.checklist-sem-equipe .checklist-equipe-badge,
.checklist-row.checklist-sem-equipe .checklist-equipe-badge {
    background: rgba(255, 193, 7, 0.18) !important;
    color: #775109 !important;
}

.checklist-atendente-badge {
    min-width: 88px;
}

.checklist-item .checklist-tipo-select {
    flex: 0 0 auto;
}

.checklist-item.checklist-ok .checklist-atendente-badge {
    font-weight: 600;
}

.status-badge {
    display: inline-block; padding: .3em .65em;
    font-size: .75rem; font-weight: 600;
    border-radius: 50rem;
}
.status-nao_iniciado { background: rgba(73,97,110,.18); color:#49616E; }
.status-em_execucao  { background: rgba(0,109,122,.15); color:#006D7A; }
.status-finalizado   { background: rgba(19,90,66,.15);  color:#135A42; }
.status-planejado    { background: rgba(0,109,122,.18); color:#006D7A; }
.status-em_andamento { background: rgba(0,109,122,.15); color:#006D7A; }
.status-pausado      { background: rgba(255,193,7,.20);  color:#775109; }
.status-concluido    { background: rgba(19,90,66,.15);  color:#135A42; }
.status-cancelado    { background: rgba(155,50,61,.15);  color:#9B323D; }

.progress { height: .55rem; border-radius: 50rem; }
.progress-thick { height: .9rem; }

.table thead th {
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .04em;
    color: #49616E;
    background: #F4FBFA;
    border-bottom: 1px solid #C5DAD8;
}

.gantt-container {
    overflow: auto;
    max-height: min(28rem, 52vh);
    background: #fff;
    border-radius: .5rem;
    padding: .75rem;
    border: 1px solid #C5DAD8;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.gantt-container::-webkit-scrollbar { height: 8px; width: 8px; }
.gantt-container::-webkit-scrollbar-thumb {
    background: #C5DAD8;
    border-radius: 4px;
}
.gantt-container svg {
    display: block;
    max-width: none;
}
.gantt-toolbar-hint {
    font-size: .8rem;
    color: #49616E;
}
.gantt-container .gantt .grid-row { fill: #fff; }
.gantt .bar-finalizado .bar-progress { fill: #135A42; }
.gantt .bar-finalizado .bar { fill: #DDF4E9; }
.gantt .bar-execucao .bar-progress { fill: #006D7A; }
.gantt .bar-execucao .bar { fill: #D7F3F0; }
.gantt .bar-naoiniciado .bar-progress { fill: #49616E; }
.gantt .bar-naoiniciado .bar { fill: #C5DAD8; }
.gantt .bar-pausado .bar-progress { fill: #C49214; }
.gantt .bar-pausado .bar { fill: #FFF1D4; }
.gantt .bar-cancelado .bar-progress { fill: #9B323D; }
.gantt .bar-cancelado .bar { fill: #FCE8EB; }
.gantt .bar-atrasada .bar-progress { fill: #9B323D; }
.gantt .bar-atrasada .bar { fill: #FCE8EB; stroke: #9B323D; stroke-width: 1.5; }
.gantt .bar-atrasada .bar-label { fill: #9B323D; font-weight: 700; }
.gantt .bar-label { fill: #0B1F35; font-weight: 500; }
.gantt .grid-row:nth-child(even) { fill: #F4FBFA; }
.gantt .today-highlight { fill: rgba(0,109,122,.08); }

.range-percent {
    width: 100%;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #49616E;
}
.empty-state i { font-size: 3rem; opacity: .35; }

/* ----- Sinalização de tarefas/projetos atrasados/finalizados ----- */
.row-atrasada {
    background: rgba(155, 50, 61, 0.06) !important;
    box-shadow: inset 4px 0 0 #9B323D;
}
.row-atrasada td:first-child { position: relative; }

.row-finalizada {
    background: rgba(19, 90, 66, 0.07) !important;
    box-shadow: inset 4px 0 0 #135A42;
}
.row-finalizada td:first-child { position: relative; }
.row-finalizada > td strong { color: #135A42; }
.icone-finalizada { color: #135A42; margin-right: .25rem; }
.text-finalizada { color: #135A42; font-weight: 600; }
.badge-atraso {
    display: inline-block;
    background: #9B323D;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .15em .5em;
    border-radius: 50rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-left: .35rem;
    vertical-align: middle;
    animation: pulse-atraso 1.6s ease-in-out infinite;
}
@keyframes pulse-atraso {
    0%, 100% { box-shadow: 0 0 0 0 rgba(155, 50, 61, .55); }
    50%      { box-shadow: 0 0 0 6px rgba(155, 50, 61, 0); }
}
.card-atrasado {
    border-left: 4px solid #9B323D !important;
    background: linear-gradient(0deg, rgba(155,50,61,.03), rgba(155,50,61,.03));
}
.text-atraso { color: #9B323D; font-weight: 600; }

.page-with-bottom-bar {
    padding-bottom: 5.5rem;
}

/* ----- Barra de ações fixa no rodapé (seleção de empresas / formulários) ----- */
.actions-bar-empresas,
.actions-bar-form {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid var(--bs-primary);
    box-shadow: 0 -4px 14px rgba(0,109,122,.12);
    padding: .75rem 1rem;
    z-index: 1040;
}
.actions-bar-empresas .btn[disabled],
.actions-bar-form .btn[disabled] { cursor: not-allowed; opacity: .6; }
.check-empresa, #check-todos { cursor: pointer; }

.fc .fc-button-primary { background: #006D7A; border-color: #006D7A; }
.fc .fc-button-primary:hover { background: #005A66; border-color: #006D7A; }
.fc-event { cursor: pointer; }

.dossie-cat-acesso     { background: rgba(0,109,122,.12); color: #006D7A; }
.dossie-cat-contato    { background: rgba(19,90,66,.12); color: #135A42; }
.dossie-cat-documento  { background: rgba(111,66,193,.12); color: #6f42c1; }
.dossie-cat-financeiro { background: rgba(255,193,7,.18); color: #775109; }
.dossie-cat-outros     { background: rgba(73,97,110,.15); color: #49616E; }
.dossie-table code.senha-mascarada { font-size: .85rem; }

/* ----- Atividades Mensais BPO ----- */
.bpo-page-header {
    background: linear-gradient(135deg, rgba(19,90,66,.08) 0%, rgba(0,109,122,.06) 100%);
    border: 1px solid rgba(19,90,66,.12);
    border-radius: .75rem;
    padding: 1.25rem 1.5rem;
}
.bpo-page-header .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .25rem;
}
.bpo-kpi .stat-value { font-size: 1.65rem; }
.bpo-kpi-progress .progress {
    height: .45rem;
    border-radius: 50rem;
    background: rgba(19,90,66,.12);
}
.bpo-filter-card .card-header {
    background: #F4FBFA;
    font-weight: 600;
    font-size: .875rem;
    padding: .65rem 1rem;
}
.bpo-filter-card .section-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #49616E;
    font-weight: 600;
    margin-bottom: .5rem;
}
.bpo-competencia-box {
    background: #F4FBFA;
    border: 1px solid #C5DAD8;
    border-radius: .5rem;
    padding: 1rem;
}
.bpo-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    padding: .65rem 1rem;
    background: #fff;
    border: 1px solid #C5DAD8;
    border-radius: .5rem .5rem 0 0;
    border-bottom: none;
}
.bpo-legend-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8125rem;
    color: #49616E;
    padding: .2rem .65rem;
    border-radius: 50rem;
    background: #F4FBFA;
    border: 1px solid #C5DAD8;
}
.bpo-legend-pill.ok { background: rgba(19,90,66,.1); border-color: rgba(19,90,66,.25); color: #135A42; }
.bpo-legend-pill.nao { background: rgba(155,50,61,.08); border-color: rgba(155,50,61,.2); color: #9B323D; }
.bpo-legend-meta {
    margin-left: auto;
    font-size: .8125rem;
    color: #49616E;
}
.bpo-legend-meta strong { color: #0B1F35; }
.planilha-bpo-wrap {
    overflow: auto;
    max-height: calc(100vh - 320px);
    border: 1px solid #C5DAD8;
    border-radius: 0 0 .5rem .5rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.planilha-bpo {
    margin-bottom: 0;
    font-size: .8125rem;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1300px;
}
.planilha-bpo th,
.planilha-bpo td {
    border: 1px solid #C5DAD8;
    vertical-align: middle;
    padding: .4rem .5rem;
    white-space: nowrap;
}
.planilha-bpo thead th {
    color: #fff;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 3;
}
.planilha-bpo thead tr:first-child th {
    background: #006D7A;
}
.planilha-bpo thead tr:nth-child(2) th {
    top: 36px;
    background: #0B1F35;
    font-size: .72rem;
    z-index: 3;
}
.planilha-bpo .fase-header.fase-1 { background: #006D7A !important; }
.planilha-bpo .fase-header.fase-2 { background: #005A66 !important; }
.planilha-bpo .fase-header.fase-3 { background: #135A42 !important; }
.planilha-bpo .fase-header.fase-part { background: #0b3d2e !important; }
.planilha-bpo .celula-relatorios {
    min-width: 190px;
    max-width: 260px;
    white-space: normal;
    vertical-align: top;
    background: #f8fbf9;
}
.planilha-bpo .celula-relatorios .celula-relatorio {
    display: block;
    min-width: 0;
    margin-bottom: .35rem;
    padding: .35rem .45rem;
    text-align: left;
    border: 1px solid #C5DAD8;
    border-radius: .35rem;
    background: #fff;
}
.planilha-bpo .celula-relatorios .celula-relatorio:last-child { margin-bottom: 0; }
.planilha-bpo .celula-relatorio .relatorio-nome {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
    margin-bottom: .15rem;
}
.planilha-bpo .col-fixa {
    background: #F4FBFA;
    position: sticky;
    left: 0;
    z-index: 2;
    font-weight: 500;
    box-shadow: 2px 0 4px rgba(0,0,0,.03);
}
.planilha-bpo thead .col-fixa {
    background: #135A42;
    color: #fff;
    z-index: 4;
    box-shadow: 2px 0 4px rgba(0,0,0,.08);
}
.planilha-bpo .col-codigo { left: 0; min-width: 72px; }
.planilha-bpo .col-razao {
    left: 72px;
    min-width: 200px;
    max-width: 260px;
    white-space: normal;
}
.planilha-bpo td.nome-saida,
.planilha-bpo td.nome-saida strong {
    color: #9B323D;
}
.planilha-bpo .col-cnpj { left: 272px; min-width: 130px; font-size: .75rem; }
.planilha-bpo .col-perfil { left: 402px; min-width: 120px; }
.planilha-bpo tbody tr:nth-child(even) td:not(.celula-check):not(.celula-obs) {
    background: #fcfcfd;
}
.planilha-bpo tbody tr:nth-child(even) td.col-fixa {
    background: #f1f3f5;
}
.planilha-bpo tbody tr:hover td {
    background-color: #eef6ff;
}
.planilha-bpo tbody tr:hover td.col-fixa {
    background-color: #e3f0ff;
}
.planilha-bpo .celula-check {
    text-align: center;
    cursor: pointer;
    min-width: 96px;
    user-select: none;
    transition: background .15s, transform .1s;
}
.planilha-bpo .celula-check:hover:not(.processando) {
    filter: brightness(.97);
}
.planilha-bpo .celula-check .celula-meta {
    font-size: .65rem;
    line-height: 1.15;
    white-space: normal;
    margin-top: .2rem;
    opacity: .85;
}
.planilha-bpo .celula-check.marcado {
    background: #DDF4E9 !important;
    color: #135A42;
}
.planilha-bpo .celula-check.nao-tem {
    background: #FCE8EB !important;
    color: #9B323D;
}
.planilha-bpo .celula-check.marcado i,
.planilha-bpo .celula-check.nao-tem i {
    font-size: 1.1rem;
    font-weight: bold;
}
.planilha-bpo .celula-check.processando {
    opacity: .5;
    pointer-events: none;
}
.planilha-bpo-wrap.somente-leitura .celula-check {
    cursor: default;
    pointer-events: none;
}
.planilha-bpo-wrap.somente-leitura .celula-obs textarea {
    pointer-events: none;
    background: #f3f3f3;
    color: #49616E;
}
.planilha-bpo .fase-header {
    font-size: .68rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.planilha-bpo .celula-obs {
    min-width: 140px;
    max-width: 200px;
    padding: .25rem .4rem;
    white-space: normal;
    vertical-align: top;
    background: #F4FBFA;
}
.planilha-bpo .celula-obs textarea {
    width: 100%;
    min-height: 2.4rem;
    max-height: 5rem;
    font-size: .75rem;
    line-height: 1.3;
    border: 1px solid #C5DAD8;
    border-radius: .35rem;
    padding: .35rem .45rem;
    resize: vertical;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.planilha-bpo .celula-obs textarea:focus {
    border-color: #006D7A;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,109,122,.15);
}
.planilha-bpo .celula-obs.salvando textarea { opacity: .65; }
.planilha-bpo .celula-obs.salvo textarea { border-color: #135A42; }
.planilha-bpo .celula-valor {
    min-width: 108px;
    max-width: 128px;
    padding: .25rem .35rem;
    background: #F4FBFA;
    vertical-align: middle;
}
.planilha-bpo thead .th-valor {
    font-size: .68rem;
    min-width: 100px;
}
.planilha-bpo .celula-valor input {
    font-size: .75rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.planilha-bpo .celula-valor.salvando input { opacity: .65; }
.planilha-bpo .celula-valor.salvo input { border-color: #135A42; }
.planilha-bpo-wrap.somente-leitura .celula-valor input {
    pointer-events: none;
    background: #f3f3f3;
    color: #49616E;
}
.planilha-bpo .celula-quantidade {
    min-width: 88px;
    max-width: 104px;
    padding: .25rem .35rem;
    background: #F4FBFA;
    vertical-align: middle;
}
.planilha-bpo thead .th-quantidade {
    font-size: .68rem;
    min-width: 88px;
}
.planilha-bpo .celula-quantidade input {
    font-size: .75rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.planilha-bpo .celula-quantidade.salvando input { opacity: .65; }
.planilha-bpo .celula-quantidade.salvo input { border-color: #135A42; }
.planilha-bpo-wrap.somente-leitura .celula-quantidade input {
    pointer-events: none;
    background: #f3f3f3;
    color: #49616E;
}
.bpo-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #fff;
    border: 1px dashed #C5DAD8;
    border-radius: .75rem;
    color: #49616E;
}
.bpo-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(19,90,66,.08);
    color: #006D7A;
    font-size: 1.75rem;
}
.bpo-status-open { color: #135A42 !important; }
.bpo-status-closed { color: #9B323D !important; }
.bpo-status-warn { color: #775109 !important; }

.checklist-item .checklist-ordem-btns {
    flex-shrink: 0;
}
.checklist-item .checklist-ordem-btns .btn {
    line-height: 1;
    font-size: .65rem;
    padding: 0 .2rem;
}
.input-group > .checklist-ordem-btns {
    border: 1px solid #C5DAD8;
    border-radius: .375rem 0 0 .375rem;
    overflow: hidden;
}
.input-group > .checklist-ordem-btns .btn {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #C5DAD8;
}
.input-group > .checklist-ordem-btns .btn:last-child {
    border-bottom: 0;
}

.planilha-checklist .celula-check.celula-indisponivel,
.planilha-checklist .celula-check.somente-celula {
    cursor: default;
}
.planilha-checklist .celula-check.celula-indisponivel {
    pointer-events: none;
    background: #F4FBFA !important;
}
.planilha-checklist .celula-check.bloqueada:not(.marcado) {
    background: #FFF1D4 !important;
    cursor: not-allowed;
}
.planilha-checklist .celula-check.somente-celula:not(.processando) {
    cursor: not-allowed;
}
.planilha-checklist thead .fase-obs {
    background: #0B1F35 !important;
    min-width: 160px;
}
.planilha-checklist .celula-obs {
    min-width: 160px;
    max-width: 240px;
}
.bpo-legend-pill.indisponivel {
    color: #49616E;
}
.bg-soft-purple {
    background: rgba(111, 66, 193, .12);
    color: #6f42c1;
}

/* ----- Simulação de rescisões ----- */
.rescisao-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(0, 109, 122, .12);
    color: #006D7A;
    font-size: .85rem;
    font-weight: 700;
}
.rescisao-valor-destaque {
    background: linear-gradient(135deg, rgba(0,109,122,.08), rgba(19,90,66,.08));
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    text-align: center;
}
.rescisao-valor-destaque .label {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #49616E;
    margin-bottom: .25rem;
}
.rescisao-valor-destaque .valor {
    font-size: 1.75rem;
    font-weight: 700;
    color: #135A42;
}
.rescisao-card {
    transition: transform .15s ease, box-shadow .15s ease;
}
.rescisao-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
}
.rescisao-kpi {
    border-radius: .75rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid #C5DAD8;
}
.rescisao-kpi .kpi-label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    color: #49616E;
    margin-bottom: .35rem;
}
.rescisao-kpi .kpi-valor {
    font-size: 1.35rem;
    font-weight: 700;
}
.rescisao-kpi.proventos { border-left: 4px solid #135A42; }
.rescisao-kpi.descontos { border-left: 4px solid #9B323D; }
.rescisao-kpi.liquido { border-left: 4px solid #006D7A; background: rgba(0,109,122,.04); }
.rescisao-preview .card-header { font-weight: 600; }

/* ----- Calendário de tarefas operacionais ----- */
.to-cal {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
}
.to-cal-panel {
    background: #fff;
    border-radius: .85rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.to-cal-panel-month {
    position: sticky;
    top: 5.25rem;
}
.to-cal-panel-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid #C5DAD8;
    min-height: 3.4rem;
}
.to-cal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0B1F35;
}
.to-cal-month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    flex: 1;
}
.to-cal-month-label {
    min-width: 5.8rem;
    text-align: center;
    font-weight: 700;
    color: #0B1F35;
}
.to-cal-nav-btn {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #49616E;
    text-decoration: none;
}
.to-cal-nav-btn:hover {
    background: #EEF3F3;
    color: #0B1F35;
}
.to-cal-filter-btn {
    width: 2.1rem;
    height: 2.1rem;
    border: none;
    border-radius: .55rem;
    background: #E6F4F2;
    color: #006D7A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.to-cal-filter-btn.is-on,
.to-cal-filter-btn:hover {
    background: #D7F3F0;
    color: #0B1F35;
}
.to-cal-filter-menu {
    min-width: 16.5rem;
}
.to-cal-grid-wrap {
    padding: .35rem .85rem 1rem;
}
.to-cal-dow-row,
.to-cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.to-cal-dow {
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #49616E;
    padding: .55rem 0 .2rem;
}
.to-cal-day {
    aspect-ratio: 1;
    border: 0;
    background: transparent;
    border-radius: .55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .2rem;
    padding: .4rem 0 .2rem;
    color: inherit;
}
.to-cal-day:not(.is-empty) { cursor: pointer; }
.to-cal-day.is-empty { visibility: hidden; }
.to-cal-day:hover:not(.is-empty) { background: #E6F4F2; }
.to-cal-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 1.5px #00C2A8;
}
.to-cal-day.is-selected {
    background: #D7F3F0;
}
.to-cal-day-num {
    font-size: .92rem;
    color: #0B1F35;
    line-height: 1;
}
.to-cal-badge,
.to-cal-day-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .28rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.to-cal-badge.atrasada,
.to-cal-day-mark.atrasada,
.to-cal-dot.atrasada { background: #9B323D; }
.to-cal-badge.vence_hoje,
.to-cal-day-mark.vence_hoje,
.to-cal-dot.vence_hoje { background: #C49214; }
.to-cal-badge.no_prazo,
.to-cal-badge.sem_prazo,
.to-cal-day-mark.no_prazo,
.to-cal-day-mark.sem_prazo,
.to-cal-dot.no_prazo { background: #49616E; }
.to-cal-badge.concluida_prazo,
.to-cal-day-mark.concluida_prazo,
.to-cal-dot.concluida_prazo { background: #135A42; }
.to-cal-badge.concluida_atraso,
.to-cal-day-mark.concluida_atraso,
.to-cal-dot.concluida_atraso { background: #006D7A; }
.to-cal-badge.paga,
.to-cal-day-mark.paga,
.to-cal-dot.paga { background: #135A42; }
.fin-cob-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .45rem;
    border-radius: .35rem;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}
.fin-cob-chip.is-on {
    background: #DDF4E9;
    color: #135A42;
}
.fin-cob-chip.is-off {
    background: #EEF3F3;
    color: #49616E;
}
.fin-cob-status {
    display: inline-flex;
    align-items: center;
    padding: .15rem .5rem;
    border-radius: .35rem;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}
.fin-cob-status.is-pendente {
    background: #FFF1D4;
    color: #775109;
}
.fin-cob-status.is-paga {
    background: #DDF4E9;
    color: #135A42;
}
.fin-cob-signals {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    flex: 1;
    min-width: 0;
}
.fin-cob-nome {
    font-weight: 700;
}
.fin-cob-nome.is-pendente {
    color: #9B323D;
}
.fin-cob-nome.is-emitida {
    color: #775109;
}
.fin-cob-nome.is-enviada {
    color: #006D7A;
}
.fin-cob-nome.is-paga {
    color: #135A42;
}
.fin-cob-nome-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    padding: 0 1.1rem 1rem;
    font-size: .75rem;
}
.fin-cob-nome-legend .fin-cob-nome::before {
    content: "";
    display: inline-block;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    margin-right: .35rem;
    vertical-align: middle;
    background: currentColor;
}
.to-cal-group-name.fin-cob-nome {
    font-weight: 700;
}
.to-cal-task.is-done .fin-cob-nome.is-paga {
    text-decoration: none;
}
.to-cal-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: .85rem 1.1rem 1.1rem;
    border-top: 1px solid #C5DAD8;
}
.to-cal-legend-title {
    font-size: .78rem;
    font-weight: 700;
    color: #49616E;
    margin-bottom: .4rem;
}
.to-cal-legend-items {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    font-size: .75rem;
    color: #49616E;
}
.to-cal-legend-items span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.to-cal-dot {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    display: inline-block;
}
.to-cal-list-head {
    flex-wrap: wrap;
}
.to-cal-tabs {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}
.to-cal-tab {
    border: 0;
    background: transparent;
    padding: .15rem 0 .4rem;
    color: #49616E;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}
.to-cal-tab.is-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.to-cal-switch {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: #49616E;
    white-space: nowrap;
}
.to-cal-vencimentos {
    max-height: calc(100vh - 13rem);
    overflow-y: auto;
    padding-bottom: 1rem;
}
.to-cal-day-block.is-current {
    background: linear-gradient(180deg, #f5f9ff 0%, #fff 48px);
}
.to-cal-day-block.is-current .to-cal-date {
    background: #f5f9ff;
}
.to-cal-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .95rem 1.2rem .35rem;
    font-weight: 700;
    color: #0B1F35;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.to-cal-date-count {
    font-size: .85rem;
    font-weight: 600;
    color: #49616E;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.to-cal-group {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .42rem 1.2rem;
    text-align: left;
}
.to-cal-group:hover { background: #f8fafc; }
.to-cal-group-name {
    flex: 0 1 auto;
    max-width: 38%;
    font-weight: 600;
    color: #0B1F35;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.to-cal-group-resp {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    max-width: 11rem;
    font-size: .78rem;
    font-weight: 600;
    color: #49616E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.to-cal-group-resp i { color: #49616E; }
.to-cal-group-caret {
    color: #c0c6d0;
    font-size: .8rem;
    transition: transform .15s ease;
}
.to-cal-group-wrap.is-open .to-cal-group-caret {
    transform: rotate(180deg);
}
.to-cal-tasks {
    display: none;
    padding: 0 1.2rem .35rem 3.3rem;
}
.to-cal-group-wrap.is-open .to-cal-tasks { display: block; }
.to-cal-task-row {
    display: flex;
    align-items: center;
    gap: .15rem;
}
.to-cal-task-row .to-cal-task { flex: 1; min-width: 0; }
.to-cal-task-actions {
    display: flex;
    align-items: center;
    gap: .1rem;
    flex: 0 0 auto;
}
.to-cal-task-action {
    border: 0;
    background: transparent;
    color: #49616E;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0;
}
.to-cal-task-action:hover { background: #eef2f7; color: #0B1F35; }
.to-cal-task-action.is-danger:hover { background: #fde8e8; color: #b42318; }
.to-cal-task {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: .4rem .55rem;
    border-radius: .45rem;
    color: inherit;
}
.to-cal-task:hover { background: #f3f6fb; }
.to-cal-task-title {
    font-size: .88rem;
    font-weight: 600;
    color: #0B1F35;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
}
.to-cal-task-title .fin-cob-signals {
    flex: 0 1 auto;
}
.to-cal-task.is-done .to-cal-task-title {
    color: #49616E;
    text-decoration: line-through;
}
.to-cal-task-meta {
    font-size: .75rem;
    color: #8b95a5;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.to-cal-task-resp {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-weight: 600;
    color: #49616E;
}
.to-cal-task-pct { margin-left: auto; }
.to-cal-empty {
    text-align: center;
    color: #49616E;
    padding: 3.5rem 1.5rem;
}
.to-cal-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: .65rem;
}
.to-cal-empty p { margin: 0; }
@media (max-width: 991.98px) {
    .to-cal {
        grid-template-columns: 1fr;
    }
    .to-cal-panel-month {
        position: static;
    }
    .to-cal-vencimentos {
        max-height: none;
    }
    .to-cal-tabs {
        margin-left: 0;
        width: 100%;
        order: 3;
    }
    .to-cal-list-head .to-cal-switch {
        margin-left: auto;
    }
}

/* ----- Home do cliente ----- */
.cliente-home {
    min-height: calc(100vh - 10rem);
    display: flex;
    align-items: center;
}
.cliente-home-panel {
    max-width: 36rem;
    padding: 2rem 1.5rem;
}
.cliente-home-brand {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #49616E;
}
.cliente-home-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    color: #0B1F35;
    letter-spacing: -.02em;
}
.cliente-home-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #49616E;
}

.cliente-combo { position: relative; }
.cliente-combo-lista {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + .25rem);
    max-height: 16rem;
    overflow: auto;
    background: #fff;
    border: 1px solid #C5DAD8;
    border-radius: .5rem;
    box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .12);
    padding: .25rem;
}
.cliente-combo-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: .4rem;
    padding: .45rem .65rem;
}
.cliente-combo-item:hover,
.cliente-combo-item.is-active,
.cliente-combo-item.is-selected {
    background: #E6F4F2;
}
.cliente-combo-nome {
    display: block;
    font-weight: 600;
    color: #0B1F35;
}
.cliente-combo-meta {
    display: block;
    font-size: .78rem;
    color: #49616E;
}
.cliente-combo-vazio {
    padding: .65rem .7rem;
    color: #49616E;
    font-size: .875rem;
}
.subchecklist {
    margin: .35rem 0 .15rem 1.15rem;
    padding-left: .85rem;
    border-left: 2px solid #C5DAD8;
}
.checklist-op-sub { padding: .3rem 0; }

/* ----- Identidade Flow: componentes ----- */
h1, .h1, h2, .h2, h3, .h3, .page-title {
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--flow-navy);
}
.form-label, .btn, .nav-link, .dropdown-item, th {
    font-weight: 600;
}
.card, .btn, .form-control, .form-select, .input-group-text, .alert, .dropdown-menu {
    border-radius: var(--flow-radius);
}
.form-control, .form-select, .input-group-text {
    border-color: var(--flow-border);
    color: var(--flow-navy);
}
.form-control:focus, .form-select:focus {
    border-color: var(--flow-teal);
    box-shadow: 0 0 0 .2rem rgba(0, 109, 122, .18);
}
.form-check-input:checked {
    background-color: var(--flow-mint);
    border-color: var(--flow-teal);
}
.form-check-input:focus {
    border-color: var(--flow-teal);
    box-shadow: 0 0 0 .2rem rgba(0, 109, 122, .18);
}

.btn-primary {
    --bs-btn-color: #0B1F35;
    --bs-btn-bg: #00C2A8;
    --bs-btn-border-color: #00C2A8;
    --bs-btn-hover-color: #0B1F35;
    --bs-btn-hover-bg: #00ad96;
    --bs-btn-hover-border-color: #00ad96;
    --bs-btn-focus-shadow-rgb: 0, 109, 122;
    --bs-btn-active-color: #0B1F35;
    --bs-btn-active-bg: #009e89;
    --bs-btn-active-border-color: #009e89;
    --bs-btn-disabled-color: #0B1F35;
    --bs-btn-disabled-bg: #00C2A8;
    --bs-btn-disabled-border-color: #00C2A8;
}
.btn-outline-primary {
    --bs-btn-color: #006D7A;
    --bs-btn-border-color: #006D7A;
    --bs-btn-hover-color: #0B1F35;
    --bs-btn-hover-bg: #00C2A8;
    --bs-btn-hover-border-color: #00C2A8;
    --bs-btn-active-color: #0B1F35;
    --bs-btn-active-bg: #00C2A8;
    --bs-btn-active-border-color: #00C2A8;
    --bs-btn-disabled-color: #006D7A;
    --bs-btn-disabled-border-color: #C5DAD8;
}
.btn-secondary {
    --bs-btn-color: #006D7A;
    --bs-btn-bg: #E6F4F2;
    --bs-btn-border-color: #C5DAD8;
    --bs-btn-hover-color: #0B1F35;
    --bs-btn-hover-bg: #d5eeea;
    --bs-btn-hover-border-color: #C5DAD8;
    --bs-btn-active-color: #0B1F35;
    --bs-btn-active-bg: #c5e4df;
    --bs-btn-active-border-color: #C5DAD8;
    --bs-btn-disabled-color: #49616E;
    --bs-btn-disabled-bg: #E6F4F2;
    --bs-btn-disabled-border-color: #C5DAD8;
}
.btn-outline-secondary {
    --bs-btn-color: #006D7A;
    --bs-btn-border-color: #C5DAD8;
    --bs-btn-hover-color: #0B1F35;
    --bs-btn-hover-bg: #E6F4F2;
    --bs-btn-hover-border-color: #006D7A;
    --bs-btn-active-color: #0B1F35;
    --bs-btn-active-bg: #E6F4F2;
    --bs-btn-active-border-color: #006D7A;
}
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #135A42;
    --bs-btn-border-color: #135A42;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0f4a36;
    --bs-btn-hover-border-color: #0f4a36;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0f4a36;
    --bs-btn-active-border-color: #0f4a36;
}
.btn-danger, .btn-outline-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #9B323D;
    --bs-btn-border-color: #9B323D;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #842a34;
    --bs-btn-hover-border-color: #842a34;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #842a34;
    --bs-btn-active-border-color: #842a34;
}
.btn-outline-danger {
    --bs-btn-color: #9B323D;
    --bs-btn-bg: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}
.btn-warning {
    --bs-btn-color: #775109;
    --bs-btn-bg: #FFF1D4;
    --bs-btn-border-color: #FFF1D4;
    --bs-btn-hover-color: #775109;
    --bs-btn-hover-bg: #ffe4ad;
    --bs-btn-hover-border-color: #ffe4ad;
    --bs-btn-active-color: #775109;
    --bs-btn-active-bg: #ffe4ad;
    --bs-btn-active-border-color: #ffe4ad;
}
.btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: #006D7A;
    --bs-btn-border-color: #006D7A;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #005A66;
    --bs-btn-hover-border-color: #005A66;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #005A66;
    --bs-btn-active-border-color: #005A66;
}

.text-primary { color: var(--flow-teal) !important; }
.bg-primary,
.badge.bg-primary,
.text-bg-primary,
.card-header.bg-primary,
.bg-primary.text-white {
    background-color: var(--flow-mint) !important;
    color: var(--flow-navy) !important;
}
.bg-success { background-color: var(--flow-ok-text) !important; }
.bg-danger { background-color: var(--flow-late-text) !important; }
.bg-warning { background-color: var(--flow-pending-bg) !important; color: var(--flow-pending-text) !important; }
.bg-info { background-color: var(--flow-teal) !important; }
.progress-bar { background-color: var(--flow-mint); }

.alert-primary { background: var(--flow-ice); color: var(--flow-navy); border-color: var(--flow-border); }
.alert-success { background: var(--flow-ok-bg); color: var(--flow-ok-text); border-color: var(--flow-ok-bg); }
.alert-warning { background: var(--flow-pending-bg); color: var(--flow-pending-text); border-color: var(--flow-pending-bg); }
.alert-danger { background: var(--flow-late-bg); color: var(--flow-late-text); border-color: var(--flow-late-bg); }
.alert-info { background: var(--flow-ice); color: var(--flow-teal); border-color: var(--flow-border); }

.page-link { color: var(--flow-teal); }
.page-item.active .page-link {
    background: var(--flow-mint);
    border-color: var(--flow-mint);
    color: var(--flow-navy);
}
.nav-pills .nav-link.active {
    color: var(--flow-navy);
    background-color: var(--flow-mint);
}
.dropdown-item.active,
.dropdown-item:active {
    background: rgba(0, 109, 122, .12);
    color: var(--flow-teal);
}

.navbar-flow {
    background: var(--flow-navy);
}
.navbar-flow .navbar-brand { padding-top: .35rem; padding-bottom: .35rem; }
.brand-logo {
    height: 36px;
    width: auto;
    display: block;
}
.brand-logo-light { height: 42px; width: auto; }

.status-nao_iniciado { background: var(--flow-neutral-bg); color: var(--flow-neutral-text); }
.status-planejado { background: var(--flow-ice); color: var(--flow-teal); }
.status-em_execucao,
.status-em_andamento { background: #D7F3F0; color: var(--flow-teal); }
.status-pausado { background: var(--flow-pending-bg); color: var(--flow-pending-text); }
.status-finalizado,
.status-concluido { background: var(--flow-ok-bg); color: var(--flow-ok-text); }
.status-cancelado { background: var(--flow-late-bg); color: var(--flow-late-text); }

.bg-soft-primary  { background: rgba(0, 109, 122, .12); color: var(--flow-teal); }
.bg-soft-success  { background: var(--flow-ok-bg); color: var(--flow-ok-text); }
.bg-soft-warning  { background: var(--flow-pending-bg); color: var(--flow-pending-text); }
.bg-soft-danger   { background: var(--flow-late-bg); color: var(--flow-late-text); }
.bg-soft-info     { background: rgba(0, 109, 122, .12); color: var(--flow-teal); }
.bg-soft-secondary{ background: var(--flow-neutral-bg); color: var(--flow-neutral-text); }

.fc .fc-button-primary {
    background: var(--flow-mint);
    border-color: var(--flow-mint);
    color: var(--flow-navy);
}
.fc .fc-button-primary:hover {
    background: #00ad96;
    border-color: #00ad96;
    color: var(--flow-navy);
}

.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--flow-ice);
    color: var(--flow-navy);
}
.login-brand-panel {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(90% 55% at 15% 88%, rgba(0, 194, 168, .38), transparent 60%),
        radial-gradient(70% 40% at 85% 100%, rgba(0, 109, 122, .55), transparent 55%),
        var(--flow-navy);
    color: #fff;
    padding: 3rem 2.5rem 8rem;
}
.login-brand-inner { position: relative; z-index: 1; max-width: 28rem; text-align: center; }
.login-brand-inner img { width: min(320px, 78%); height: auto; }
.login-tagline {
    margin: 1.5rem 0 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.02em;
}
.login-wave {
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: 0;
    height: 42%;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 360' preserveAspectRatio='none'><path d='M0 250 C 180 180 280 300 460 230 C 640 160 760 80 980 150 C 1100 190 1160 240 1200 210 L1200 360 L0 360 Z' fill='none' stroke='%2300C2A8' stroke-width='3' opacity='.85'/><path d='M0 280 C 220 210 340 330 540 250 C 740 170 860 120 1200 190' fill='none' stroke='%23006D7A' stroke-width='1.5' opacity='.7'/></svg>") center bottom / 100% 100% no-repeat;
    pointer-events: none;
}
.login-form-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: var(--flow-ice);
}
.login-form-inner { width: min(420px, 100%); }
.login-form-inner h1 {
    font-size: 2rem;
    margin-bottom: .35rem;
}
.login-form-inner .login-lead {
    color: var(--flow-text-secondary);
    margin-bottom: 1.75rem;
}
.login-form-inner .form-control {
    background: #fff;
    min-height: 3rem;
}
.login-form-inner .btn-primary { min-height: 3rem; font-size: 1.05rem; }
@media (max-width: 860px) {
    .login-page { flex-direction: column; }
    .login-brand-panel { flex: none; min-height: 240px; padding: 2rem 1.5rem 4.5rem; }
    .login-tagline { font-size: 1.05rem; }
    .login-form-panel { align-items: flex-start; }
}
