/* ============================================================
   Layout novo (ligado em Configurações > Aparência).
   Tudo aqui é escopado em body.layout-novo: se a opção for
   desligada este arquivo nem é carregado e o visual antigo volta.
   Só aparência — nenhuma regra mexe em funcionamento.
   ============================================================ */
body.layout-novo {
    --ln-fundo: #EEF1F6;
    --ln-texto-suave: #7A8AA0;
    background: var(--ln-fundo);
}
body.layout-novo .content { max-width: 1600px; }

/* ---- Menu lateral ---- */
body.layout-novo .sidebar,
body.layout-novo .offcanvas {
    background: linear-gradient(180deg, var(--cor-primaria-escura), #0B1F35 135%);
}
body.layout-novo .sidebar-brand { padding: 24px 22px 20px; font-size: 1.15rem; }
body.layout-novo .sidebar-brand i {
    width: 34px; height: 34px; border-radius: 10px; opacity: 1;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #3BA0FF, #2FD4A7); font-size: 1rem;
}
body.layout-novo .sidebar-nav a { padding: 10px 14px; border-radius: 12px; }
body.layout-novo .sidebar-nav a.active {
    background: rgba(255,255,255,.13);
    box-shadow: inset 3px 0 0 #3BA0FF;
}
body.layout-novo .sidebar-footer {
    margin: 10px 14px 16px; padding: 12px; border: 0;
    background: rgba(255,255,255,.08); border-radius: 14px;
}

/* ---- Cards e botões em geral (todas as telas) ---- */
body.layout-novo .card { border-radius: 16px; border-color: transparent; box-shadow: 0 2px 10px rgba(27,42,61,.07); }
body.layout-novo .btn { border-radius: 10px; }
body.layout-novo .btn-primary { box-shadow: 0 6px 16px rgba(27,42,61,.15); }
body.layout-novo .form-control, body.layout-novo .form-select { border-radius: 10px; border-color: transparent; box-shadow: 0 1px 4px rgba(27,42,61,.08); }

/* ---- Painel: cabeçalho ---- */
body.layout-novo .painel-titulo { font-size: 1.65rem; font-weight: 800; margin: 0; }
body.layout-novo .painel-sub { color: var(--ln-texto-suave); font-size: .85rem; margin-top: 2px; }

/* ---- Painel: faixa de números ---- */
.painel-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 18px; }
.painel-kpi {
    background: #fff; border-radius: 18px; padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(27,42,61,.07); position: relative; overflow: hidden;
}
.painel-kpi::after {
    content: ""; position: absolute; right: -22px; top: -22px; width: 92px; height: 92px;
    border-radius: 50%; background: var(--c); opacity: .13;
}
.painel-kpi small { color: var(--ln-texto-suave, #7A8AA0); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.painel-kpi b { display: block; font-size: 1.75rem; line-height: 1.15; margin-top: 4px; font-weight: 800; }
.painel-kpi em { font-style: normal; font-size: .76rem; font-weight: 600; color: var(--c); }

/* ---- Painel: prazos em cartões ---- */
.painel-prazos {
    background: linear-gradient(135deg, #FFF8E6, #FFF1CF); border: 1px solid #F6DFA1;
    border-radius: 18px; padding: 14px 18px; margin-bottom: 18px;
}
.painel-prazos h4 { font-size: .92rem; margin: 0 0 10px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.painel-prazos h4 span { color: #A77B00; font-weight: 500; }
.painel-chips { display: flex; flex-direction: column; gap: 8px; max-height: 292px; overflow-y: auto; padding: 2px 6px 4px 0; }
.painel-chip {
    flex: 0 0 auto; background: #fff; border-radius: 14px; padding: 9px 14px; font-size: .78rem;
    box-shadow: 0 2px 8px rgba(201,149,27,.14); border-left: 4px solid var(--c);
    color: inherit; text-decoration: none; display: block; min-width: 0;
}
.painel-chip:hover { color: inherit; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(201,149,27,.2); }
.painel-chip .topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.painel-chip:hover { transform: none; }
.painel-chip b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.painel-chip .etq { background: var(--c); color: #fff; border-radius: 8px; padding: 1px 8px; font-weight: 700; font-size: .68rem; white-space: nowrap; flex-shrink: 0; }
.painel-chip span.det { display: block; color: var(--ln-texto-suave, #7A8AA0); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Painel: colunas e cards ---- */
body.layout-novo .kanban-wrapper { gap: 18px; padding: 0 0 16px; }
body.layout-novo .kanban-col { background: #E4E9F1; border-radius: 20px; padding: 14px; }
body.layout-novo .kanban-col h6 {
    display: flex; justify-content: space-between; align-items: center;
    margin: 2px 4px 12px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: #3D4F68;
}
body.layout-novo .kanban-col h6 .col-nome::before {
    content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px;
    background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent);
}
body.layout-novo .kanban-col h6 .col-conta { background: #fff; border-radius: 10px; padding: 2px 10px; font-size: .75rem; }
body.layout-novo .kanban-col.col-orcamento    { --c: #8A99B0; }
body.layout-novo .kanban-col.col-em_andamento { --c: #2F7BF5; }
body.layout-novo .kanban-col.col-concluido    { --c: #12B886; }

body.layout-novo .kanban-card {
    border: 0; border-radius: 16px; padding: 14px 16px 12px 19px; margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(27,42,61,.08); position: relative; overflow: hidden;
}
body.layout-novo .kanban-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, #8A99B0);
}
body.layout-novo .kanban-card.status-orcamento    { --c: #8A99B0; }
body.layout-novo .kanban-card.status-em_andamento { --c: #2F7BF5; }
body.layout-novo .kanban-card.status-concluido    { --c: #12B886; }
body.layout-novo .kanban-card:hover { box-shadow: 0 8px 22px rgba(27,42,61,.14); }
body.layout-novo .kc-titulo { font-weight: 700; font-size: .88rem; line-height: 1.25; padding-right: 18px; }
body.layout-novo .kc-cliente { color: #6B7C93; font-size: .78rem; margin-top: 3px; }
body.layout-novo .kc-estrela { position: absolute; right: 12px; top: 10px; color: #F0A800; font-size: .8rem; }
body.layout-novo .kc-linha { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; gap: 8px; }
body.layout-novo .kanban-card .valor {
    background: #E6F7EF; color: #12875A; font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 9px;
}
body.layout-novo .kc-resp { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: #51627A; min-width: 0; }
body.layout-novo .kc-resp .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-av {
    width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: .62rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.layout-novo .kc-barra { height: 5px; border-radius: 5px; background: #E8EDF4; margin-top: 11px; overflow: hidden; }
body.layout-novo .kc-barra i { display: block; height: 100%; border-radius: 5px; background: var(--c, #8A99B0); }
body.layout-novo .kc-prazo { font-size: .74rem; color: #6B7C93; }
body.layout-novo .kc-prazo.atraso { color: #D93A55; font-weight: 700; }
body.layout-novo .kanban-card small { color: #6B7C93; }

/* ---- Abas (pílulas) — vale pra todas as telas com abas ---- */
body.layout-novo .nav-tabs { border-bottom: 0; gap: 6px; flex-wrap: wrap; }
body.layout-novo .nav-tabs .nav-link {
    border: 0; border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: .85rem;
    color: #51627A; background: rgba(255,255,255,.65);
}
body.layout-novo .nav-tabs .nav-link:hover { background: #fff; color: var(--cor-primaria); }
body.layout-novo .nav-tabs .nav-link.active {
    background: var(--cor-primaria); color: #fff; box-shadow: 0 4px 12px rgba(27,42,61,.18);
}

/* ---- Mensagens ---- */
.msg-card {
    display: flex; align-items: flex-start; gap: 12px; background: #fff; border-radius: 16px;
    padding: 14px 16px; margin-bottom: 10px; position: relative; overflow: hidden;
    box-shadow: 0 2px 10px rgba(27,42,61,.07); transition: box-shadow .15s ease, transform .15s ease;
}
.msg-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.msg-card:hover { box-shadow: 0 8px 20px rgba(27,42,61,.13); transform: translateY(-1px); }
.msg-card.nova { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 8%, #fff), #fff 55%); }
.msg-card .chk-mensagem { margin-top: 12px; flex-shrink: 0; }
.msg-corpo { display: flex; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.msg-corpo:hover { color: inherit; }
.msg-av {
    width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .85rem;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.msg-av-icone { font-size: 1.15rem; border-radius: 14px; }
.msg-texto { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 3px; }
.msg-topo { display: flex; align-items: center; gap: 8px; }
.msg-pill {
    background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
    font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 2px 9px; border-radius: 999px;
}
.msg-ponto { width: 9px; height: 9px; border-radius: 50%; background: #2F7BF5; box-shadow: 0 0 0 4px rgba(47,123,245,.18); }
.msg-quando { margin-left: auto; font-size: .72rem; color: #7A8AA0; white-space: nowrap; }
.msg-titulo { font-size: .9rem; line-height: 1.3; }
.msg-suave { color: #7A8AA0; }
.msg-previa {
    color: #51627A; font-size: .82rem; background: #F3F6FA; border-radius: 10px; padding: 7px 11px; margin-top: 3px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- Novo recado: escolha de destinatários ---- */
.recado-rotulo { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7A8AA0; margin-bottom: 10px; }
.dest-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; max-height: 280px; overflow-y: auto; padding: 4px 2px; }
.dest-chip {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; cursor: pointer;
    background: #F3F6FA; border: 2px solid transparent; margin: 0; transition: background .15s, border-color .15s, opacity .15s;
}
.dest-chip:hover { background: #E9EFF7; }
.dest-chip:has(input:checked) { background: color-mix(in srgb, var(--cor-primaria) 10%, #fff); border-color: var(--cor-primaria); }
.dest-chip:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.dest-chip input { margin: 0; flex-shrink: 0; }
.dest-chip .msg-av { width: 34px; height: 34px; font-size: .72rem; }
.dest-nome { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; font-size: .86rem; }
.dest-nome strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-nome small { color: #7A8AA0; font-size: .72rem; }
.dest-todos { margin-bottom: 12px; padding: 12px 14px; }
.dest-todos .msg-av { width: 40px; height: 40px; border-radius: 12px; }

/* ---- Clientes ---- */
.cli-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cli-card { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(27,42,61,.07); display: flex; flex-direction: column; gap: 12px; transition: box-shadow .15s, transform .15s; }
.cli-card:hover { box-shadow: 0 10px 24px rgba(27,42,61,.13); transform: translateY(-2px); }
.cli-topo { display: flex; gap: 12px; align-items: center; }
.cli-id { min-width: 0; }
.cli-nome { font-weight: 700; font-size: .93rem; line-height: 1.25; }
.cli-doc { font-size: .75rem; color: #7A8AA0; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cli-etiquetas { display: flex; flex-wrap: wrap; gap: 6px; }
.cli-etq { background: #F0F3F8; color: #51627A; font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.cli-etq.azul { background: #E3EEFF; color: #2F7BF5; }
.cli-etq.verde { background: #E2F6EE; color: #12875A; }
.cli-contato { font-size: .8rem; color: #51627A; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cli-contato i { color: #95A3B8; margin-right: 4px; }
.cli-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-acoes { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #EDF0F5; padding-top: 12px; gap: 6px; }
.cli-acoes > span { display: flex; gap: 6px; align-items: center; }

/* ---- Formulários em seções (cada bloco vira um card) — Cliente, etc. ---- */
body.layout-novo form.form-secoes.card { background: transparent !important; box-shadow: none !important; padding: 0 !important; border: 0; }
body.layout-novo .form-secoes .hr-secao { display: none; }
body.layout-novo .form-secoes .form-secao {
    background: #fff; border-radius: 18px; padding: 20px 22px; margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(27,42,61,.07);
}
body.layout-novo .form-secoes .form-secao h6 { color: #3D4F68 !important; display: flex; align-items: center; gap: 8px; }
body.layout-novo .form-secoes .form-secao h6 i {
    width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--cor-primaria) 12%, #fff); color: var(--cor-primaria); font-size: .9rem;
}
body.layout-novo .form-secoes .form-label { font-size: .8rem; font-weight: 600; color: #51627A; }
body.layout-novo .form-secoes .form-control, body.layout-novo .form-secoes .form-select { background: #F6F8FB; box-shadow: none; }
body.layout-novo .form-secoes .form-control:focus { background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-primaria) 22%, transparent); }

/* ---- Novo/Editar Serviço ---- */
.secao-titulo-novo { display: none; }
body.layout-novo .form-secoes .secao-titulo-novo {
    display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .78rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: #3D4F68;
}
body.layout-novo .form-secoes .secao-titulo-novo i {
    width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--cor-primaria) 12%, #fff); color: var(--cor-primaria); font-size: .9rem;
}
.itens-cab { display: none !important; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #7A8AA0; padding: 0 2px 4px; }
body.layout-novo .itens-cab { display: flex !important; }
@media (max-width: 767px) { body.layout-novo .itens-cab { display: none !important; } }
body.layout-novo .item-orcamento { background: #F6F8FB; border-radius: 12px; padding: 8px 6px; margin-left: 0; margin-right: 0; }
body.layout-novo .item-orcamento .form-control, body.layout-novo .item-orcamento .input-group-text { background: #fff; }
body.layout-novo .total-orc {
    margin-top: 10px; padding: 12px 16px; border-radius: 14px; font-size: 1.05rem;
    background: color-mix(in srgb, var(--cor-primaria) 9%, #fff); color: var(--cor-primaria);
}
body.layout-novo .total-orc span { font-weight: 800; font-size: 1.3rem; }

/* ---- Tela da OS (servico.php) ---- */
body.layout-novo .os-hero {
    background: #fff; border-radius: 20px; padding: 20px 24px; box-shadow: 0 2px 10px rgba(27,42,61,.07);
    position: relative; overflow: hidden; --c: #8A99B0;
}
body.layout-novo .os-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
body.layout-novo .os-hero.status-em_andamento { --c: #2F7BF5; }
body.layout-novo .os-hero.status-concluido { --c: #12B886; }
body.layout-novo .os-hero.status-arquivado { --c: #6B7C93; }
.os-hero-status {
    display: inline-block; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
    font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 11px; border-radius: 999px; margin-bottom: 8px;
}
.os-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.os-chip {
    display: inline-flex; align-items: center; gap: 6px; background: #F3F6FA; color: #51627A;
    font-size: .76rem; padding: 5px 12px; border-radius: 999px;
}
.os-chip.atraso { background: #FDE8EC; color: #D93A55; }

/* Cards de resumo financeiro */
body.layout-novo .card-resumo {
    border: 0; border-radius: 18px; box-shadow: 0 2px 10px rgba(27,42,61,.07);
    text-align: left !important; align-items: flex-start; position: relative; overflow: hidden;
}
body.layout-novo .card-resumo small { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: #7A8AA0; }
body.layout-novo .card-resumo .valor-grande { font-weight: 800; font-size: 1.45rem; margin-top: 2px; }

/* Área das abas */
body.layout-novo .tab-content.border {
    border: 0 !important; border-radius: 20px !important; box-shadow: 0 2px 10px rgba(27,42,61,.07);
    padding: 20px 22px !important; margin-top: 12px;
}
body.layout-novo .tab-content .table > :not(caption) > * > * { border-bottom-color: #EDF0F5; padding-top: .65rem; padding-bottom: .65rem; }
body.layout-novo .tab-content .table thead th {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #7A8AA0; font-weight: 700;
    border-bottom: 2px solid #EDF0F5; background: transparent;
}
body.layout-novo .tab-content .table-secondary, body.layout-novo .tab-content .table-secondary > * { --bs-table-bg: #F0F3F8; }
body.layout-novo .tab-content .table-info, body.layout-novo .tab-content .table-info > * { --bs-table-bg: #E6F1FF; }
body.layout-novo .tab-content .table-light, body.layout-novo .tab-content .table-light > * { --bs-table-bg: #F6F8FB; }
body.layout-novo .tab-content .table-danger, body.layout-novo .tab-content .table-danger > * { --bs-table-bg: #FDE8EC; }
body.layout-novo .tab-content .table tbody tr:hover > * { background-color: #FAFBFD; }
body.layout-novo .tab-content .list-group-item { border-color: #EDF0F5; }
body.layout-novo .tab-content .badge { border-radius: 999px; padding: .38em .75em; }

/* ---- Relatórios ---- */
body.layout-novo form.filtros-card {
    background: #fff; border-radius: 18px; padding: 14px 16px 16px !important; margin-left: 0 !important; margin-right: 0 !important;
    box-shadow: 0 2px 10px rgba(27,42,61,.07);
}
body.layout-novo form.filtros-card .form-label { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #7A8AA0; margin-bottom: 4px; }
body.layout-novo form.filtros-card .form-control, body.layout-novo form.filtros-card .form-select { background: #F6F8FB; box-shadow: none; }
body.layout-novo .card > h6 { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #3D4F68; margin-bottom: 14px; }
body.layout-novo .card.p-3 { padding: 18px 20px !important; }
body.layout-novo .card .table thead th { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #7A8AA0; font-weight: 700; border-bottom: 2px solid #EDF0F5; }
body.layout-novo .card .table > :not(caption) > * > * { border-bottom-color: #EDF0F5; padding-top: .6rem; padding-bottom: .6rem; }
body.layout-novo .card .table-secondary, body.layout-novo .card .table-secondary > * { --bs-table-bg: #F0F3F8; }
body.layout-novo .card .table-info, body.layout-novo .card .table-info > * { --bs-table-bg: #E6F1FF; }
body.layout-novo .alert-warning { border: 0; border-radius: 16px; background: linear-gradient(135deg, #FFF8E6, #FFF1CF); }
body.layout-novo .mini-bar { background: linear-gradient(180deg, color-mix(in srgb, var(--cor-primaria) 70%, #3BA0FF), var(--cor-primaria)); border-radius: 10px 10px 4px 4px; }
body.layout-novo .mini-bar-valor { font-weight: 700; color: #3D4F68; }
body.layout-novo .mini-bar-label { color: #7A8AA0; }

/* ---- Repasses / Extrato ---- */
body.layout-novo form.filtro-status .form-check { padding: 0; margin: 0; }
body.layout-novo form.filtro-status .form-check-input { position: absolute; opacity: 0; pointer-events: none; }
body.layout-novo form.filtro-status .form-check-label {
    display: inline-block; cursor: pointer; padding: 7px 16px; border-radius: 999px;
    background: #F0F3F8; color: #51627A; font-size: .82rem; font-weight: 600; transition: background .15s, color .15s;
}
body.layout-novo form.filtro-status .form-check-input:checked + .form-check-label {
    background: var(--cor-primaria); color: #fff; box-shadow: 0 4px 12px rgba(27,42,61,.18);
}
body.layout-novo form.filtro-status .form-check-input:focus-visible + .form-check-label { outline: 2px solid var(--cor-primaria); outline-offset: 2px; }
body.layout-novo .table-responsive > .table.bg-white {
    background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px rgba(27,42,61,.07); margin-bottom: 0;
}
body.layout-novo .table-responsive:has(> .table.bg-white) { border-radius: 18px; padding-bottom: 4px; }
body.layout-novo .table.bg-white thead th, body.layout-novo .table.bg-white thead.table-light th {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #7A8AA0; font-weight: 700;
    background: #F6F8FB; border-bottom: 0; padding: .85rem .75rem;
}
body.layout-novo .table.bg-white > :not(caption) > * > * { border-bottom-color: #EDF0F5; padding-top: .75rem; padding-bottom: .75rem; }
body.layout-novo .table.bg-white .table-info, body.layout-novo .table.bg-white .table-info > * { --bs-table-bg: #E6F1FF; }
body.layout-novo .table.bg-white tfoot, body.layout-novo .table.bg-white tfoot > * { --bs-table-bg: #F6F8FB; }
@media print {
    body.layout-novo { background: #fff; }
    body.layout-novo .table-responsive > .table.bg-white { box-shadow: none; border-radius: 0; }
}

/* ---- Fechamento ---- */
.fech-formula { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-bottom: 18px; }
.fech-passo {
    flex: 1 1 150px; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 2px 10px rgba(27,42,61,.07);
    border-top: 4px solid #8A99B0; display: flex; flex-direction: column; gap: 2px;
}
.fech-passo small { font-weight: 700; font-size: .78rem; color: #3D4F68; }
.fech-passo span { font-size: .72rem; color: #7A8AA0; line-height: 1.3; }
.fech-passo.ok { border-top-color: #12B886; } .fech-passo.ruim { border-top-color: #E5384F; } .fech-passo.final { border-top-color: #2F7BF5; }
.fech-op { align-self: center; font-size: 1.4rem; font-weight: 700; color: #95A3B8; }
@media (max-width: 767px) { .fech-op { display: none; } }
body.layout-novo .fech-meses .badge { border-radius: 999px; padding: .5em 1em; font-size: .78rem; border: 0 !important; background: #fff !important; color: #51627A !important; box-shadow: 0 1px 4px rgba(27,42,61,.1); }
body.layout-novo .fech-meses .badge.bg-primary { background: var(--cor-primaria) !important; color: #fff !important; }
body.layout-novo .mes-card {
    background: #fff; border-radius: 18px; padding: 16px 20px; margin-bottom: 14px !important; position: relative; overflow: hidden;
    box-shadow: 0 2px 10px rgba(27,42,61,.07);
}
body.layout-novo .mes-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #F0A800; }
body.layout-novo .mes-card.fechado::before { background: #12B886; }
body.layout-novo .mes-card h5 { font-size: 1.15rem; font-weight: 800; }
body.layout-novo .mes-card .badge { border-radius: 999px; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; margin-left: 6px; }
body.layout-novo .mes-card h5 small { font-size: .78rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #7A8AA0 !important; margin-top: 6px; }

/* ---- Equipe (cards inativos) ---- */
.cli-card.inativo { opacity: .6; }
.cli-card.inativo:hover { opacity: 1; }
body.layout-novo .form-secoes .form-check-input:checked { background-color: var(--cor-primaria); border-color: var(--cor-primaria); }

/* ---- Arquivados ---- */
body.layout-novo .valor-etq { background: #E6F7EF; color: #12875A; font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 9px; white-space: nowrap; }
body.layout-novo .table.bg-white .kc-resp { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: #51627A; }

/* ---- Configurações ---- */
body.layout-novo .cfg-pagina .card h6 {
    font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #3D4F68; margin-bottom: 12px;
}
body.layout-novo .cfg-pagina .card h6 i {
    width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--cor-primaria) 12%, #fff); color: var(--cor-primaria); font-size: .9rem; margin-right: 6px;
}
body.layout-novo .cfg-pagina .card.p-3 { padding: 20px 22px !important; }
body.layout-novo .cfg-pagina .card .form-control, body.layout-novo .cfg-pagina .card .form-select { background: #F6F8FB; box-shadow: none; }
body.layout-novo .cfg-pagina .card .form-control:focus { background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-primaria) 22%, transparent); }
body.layout-novo .cfg-pagina .card .form-label { font-size: .8rem; font-weight: 600; color: #51627A; }
body.layout-novo .cfg-pagina .form-check-input:checked { background-color: var(--cor-primaria); border-color: var(--cor-primaria); }
body.layout-novo .layout-toggle {
    background: color-mix(in srgb, var(--cor-primaria) 8%, #fff); border: 1px dashed color-mix(in srgb, var(--cor-primaria) 45%, #fff);
    border-radius: 14px; padding: 14px 16px 14px 3.1rem !important;
}
body.layout-novo .btn-swatch { box-shadow: 0 2px 6px rgba(27,42,61,.18); }


/* ============================================================
   Login (index.php) e Portal do Cliente — layout novo
   ============================================================ */
body.login-novo .login-shell {
    background: linear-gradient(135deg, var(--cor-primaria-escura) 0%, #0B1F35 120%);
    justify-content: center; gap: 64px; padding: 24px;
}
body.login-novo .login-hero { color: #fff; max-width: 420px; }
body.login-novo .login-hero-marca { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
body.login-novo .login-hero-marca i {
    width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #3BA0FF, #2FD4A7);
}
body.login-novo .login-hero h1 { color: #fff; font-size: 2.3rem; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
body.login-novo .login-hero p { color: rgba(255,255,255,.75); font-size: 1.02rem; margin-bottom: 26px; }
body.login-novo .login-hero-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
body.login-novo .login-hero-lista li { color: rgba(255,255,255,.9); font-size: .93rem; }
body.login-novo .login-hero-lista i { color: #2FD4A7; margin-right: 8px; }
body.login-novo .login-card { border-radius: 22px; max-width: 400px; padding: 40px 36px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
body.login-novo .login-brand { background: linear-gradient(135deg, #3BA0FF, #2FD4A7); color: #fff; border-radius: 16px; }
body.login-novo .login-abas { background: #EEF1F6; border-radius: 14px; }
body.login-novo .login-abas .nav-link { border-radius: 11px; }
body.login-novo .login-card .form-control { background: #F5F7FA; box-shadow: none; border: 1px solid transparent; padding: 10px 14px; }
body.login-novo .login-card .form-control:focus { background: #fff; border-color: var(--cor-primaria); }
body.login-novo .login-card .input-group .btn { border-radius: 0 10px 10px 0; border-color: transparent; background: #F5F7FA; }
body.login-novo .login-card .btn-primary { padding: 11px; font-weight: 600; border-radius: 12px; }
@media (max-width: 860px) {
    body.login-novo .login-hero { display: none; }
}

/* Portal do Cliente */
body.portal-novo { background: var(--ln-fundo); }
body.portal-novo .portal-header { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 0; box-shadow: 0 2px 12px rgba(27,42,61,.07); }
body.portal-novo .portal-brand { background: linear-gradient(135deg, #3BA0FF, #2FD4A7); color: #fff; border-radius: 12px; }
body.portal-novo .portal-card { border: 0; border-radius: 16px; box-shadow: 0 2px 10px rgba(27,42,61,.07); }
body.portal-novo .portal-servico-card { border-left: 4px solid var(--cor-primaria); }
body.portal-novo .portal-linha { border-bottom-color: #EEF1F6; }
body.portal-novo h6.text-muted { font-size: .72rem; letter-spacing: .08em; font-weight: 700; }
body.portal-novo .portal-badge-status { font-size: .75rem; }
body.portal-novo .portal-badge-status.status-em_andamento { background: #E8F1FF; color: #2D6CDF; }
body.portal-novo .portal-badge-status.status-concluido { background: #E3F6EC; color: #1F8A56; }
body.portal-novo .portal-badge-status.status-orcamento { background: #EEF1F6; color: #64707D; }
body.portal-novo .portal-hero {
    background: linear-gradient(135deg, var(--cor-primaria-escura), #0B1F35 130%);
    color: #fff; border-radius: 20px; padding: 22px 24px; margin-bottom: 22px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    box-shadow: 0 12px 30px rgba(27,42,61,.2);
}
body.portal-novo .portal-hero-ola { font-size: 1.3rem; font-weight: 700; }
body.portal-novo .portal-hero-sub { color: rgba(255,255,255,.75); font-size: .88rem; margin-top: 2px; }
body.portal-novo .portal-hero-nums { display: flex; gap: 10px; }
body.portal-novo .portal-hero-nums div { background: rgba(255,255,255,.12); border-radius: 14px; padding: 8px 16px; text-align: center; }
body.portal-novo .portal-hero-nums strong { display: block; font-size: 1.4rem; line-height: 1.1; }
body.portal-novo .portal-hero-nums span { font-size: .7rem; color: rgba(255,255,255,.75); }


/* ---- Nota de Débito ---- */
body.layout-novo .nota-novo .nota-folha { box-shadow: 0 14px 40px rgba(27,42,61,.14) !important; border-radius: 22px !important; }
body.layout-novo .nota-novo .nota-folha > div:first-child { padding: 36px 40px !important; background-image: radial-gradient(circle at 90% 0%, rgba(255,255,255,.18), transparent 45%), linear-gradient(135deg,var(--cor-primaria),var(--cor-primaria-escura)) !important; }
body.layout-novo .nota-novo .nota-folha > div:last-child { padding: 36px 40px !important; }
body.layout-novo .nota-novo .nota-folha thead tr { background: #F5F7FA; }
body.layout-novo .nota-novo .nota-folha thead th { padding: 10px 12px; }
body.layout-novo .nota-novo .nota-folha tbody td { padding: 14px 12px !important; border-color: #EEF1F6; }
body.layout-novo .nota-novo .nota-folha .border-top { border-color: #EEF1F6 !important; }
body.layout-novo .nota-novo .row.mb-4 { background: #F5F7FA; border-radius: 14px; padding: 16px 6px; margin-left: 0; margin-right: 0; }
body.layout-novo .nota-edit-novo form.card { padding: 24px !important; }
body.layout-novo .nota-edit-novo .item-nota { background: #F5F7FA; border-radius: 12px; padding: 8px 4px; margin-left: 0; margin-right: 0; }
body.layout-novo .nota-edit-novo .item-nota .form-control,
body.layout-novo .nota-edit-novo .item-nota .form-select { background: #fff; }
@media print {
    body.layout-novo .nota-novo .nota-folha { box-shadow: none !important; border: 1px solid #ddd; }
    body.layout-novo { background: #fff; }
}

/* ---- Documentos do cliente ---- */
body.layout-novo .docs-topo { display: flex; align-items: center; gap: 14px; margin: 10px 0 20px; flex-wrap: wrap; }
body.layout-novo .docs-topo > div { flex: 1; min-width: 220px; }
body.layout-novo .docs-total { background: #fff; border-radius: 14px; padding: 8px 16px; box-shadow: 0 2px 10px rgba(27,42,61,.07); font-size: .85rem; color: var(--ln-texto-suave); }
body.layout-novo .docs-total strong { font-size: 1.3rem; color: var(--cor-texto); margin-right: 4px; }
body.layout-novo .docs-lista { display: grid; gap: 10px; }
body.layout-novo .doc-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(27,42,61,.07); }
body.layout-novo .doc-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; background: #EEF1F6; color: #64707D; flex-shrink: 0; }
body.layout-novo .doc-ico.doc-pdf { background: #FDEAE6; color: #C4432E; }
body.layout-novo .doc-ico.doc-jpg, body.layout-novo .doc-ico.doc-jpeg, body.layout-novo .doc-ico.doc-png { background: #E8F1FF; color: #2D6CDF; }
body.layout-novo .doc-ico.doc-doc, body.layout-novo .doc-ico.doc-docx { background: #E8F1FF; color: #2D6CDF; }
body.layout-novo .doc-ico.doc-xls, body.layout-novo .doc-ico.doc-xlsx, body.layout-novo .doc-ico.doc-csv { background: #E3F6EC; color: #1F8A56; }
body.layout-novo .doc-info { flex: 1; min-width: 0; }
body.layout-novo .doc-nome { font-weight: 600; word-break: break-all; }
body.layout-novo .doc-serv { background: #EEF1F6; border-radius: 999px; padding: 1px 9px; font-size: .75rem; }

/* ---- Impressão da OS ---- */
body.layout-novo .os-novo .os-dados { background: #F5F7FA; border-radius: 14px; overflow: hidden; }
body.layout-novo .os-novo .os-dados th { color: var(--ln-texto-suave); font-weight: 600; padding: 8px 16px; }
body.layout-novo .os-novo .os-dados td { padding: 8px 16px; }
body.layout-novo .os-novo .os-dados tr:nth-child(even) { background: rgba(255,255,255,.7); }
body.layout-novo .os-novo .row.mt-5 .border-top { border-top: 2px solid #1B2430 !important; margin: 0 16px; font-size: .85rem; }
@media print {
    body.layout-novo .os-novo .os-dados { background: #fff; border: 1px solid #ddd; }
    body.layout-novo .os-novo .nota-folha > div:first-child { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
body.layout-novo .docs-topo .kc-av { width: 52px; height: 52px; border-radius: 16px; font-size: 1rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--c, #3BA0FF); color: #fff; font-weight: 700; }
body.layout-novo .os-novo .os-dados { --bs-table-bg: transparent; }
body.layout-novo .os-novo .os-dados > :not(caption) > * > * { background: transparent !important; box-shadow: none !important; padding: 7px 16px !important; font-size: .92rem; }
body.layout-novo .os-novo .os-dados tr:nth-child(even) > * { background: rgba(255,255,255,.75) !important; }
body.layout-novo .nota-edit-novo .item-nota > .col-6 { width: 38%; }
body.layout-novo .nota-edit-novo .item-nota > .col-3 { width: 25%; }
body.layout-novo .nota-edit-novo .item-nota > .col-2 { width: 25%; }
body.layout-novo .nota-edit-novo .item-nota > .col-1 { width: 8%; }

/* ---- Menu: ícones coloridos ---- */
body.layout-novo .sidebar-nav a > i:first-child { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; opacity: 1; margin-right: 10px; font-size: 1rem; flex-shrink: 0; }
body.layout-novo .sidebar-nav a[href^="/dashboard.php"] > i:first-child { color: #7FB5FF; background: #7FB5FF22; }
body.layout-novo .sidebar-nav a[href^="/caixa_mensagens.php"] > i:first-child { color: #FFB86B; background: #FFB86B22; }
body.layout-novo .sidebar-nav a[href^="/clientes.php"] > i:first-child { color: #6FE3C1; background: #6FE3C122; }
body.layout-novo .sidebar-nav a[href^="/servico_form.php"] > i:first-child { color: #7DE08A; background: #7DE08A22; }
body.layout-novo .sidebar-nav a[href^="/relatorios.php"] > i:first-child { color: #C6A2FF; background: #C6A2FF22; }
body.layout-novo .sidebar-nav a[href^="/repasses.php"] > i:first-child { color: #FFD66B; background: #FFD66B22; }
body.layout-novo .sidebar-nav a[href^="/fechamento.php"] > i:first-child { color: #FF8FA3; background: #FF8FA322; }
body.layout-novo .sidebar-nav a[href^="/usuarios.php"] > i:first-child { color: #5FD3F3; background: #5FD3F322; }
body.layout-novo .sidebar-nav a[href^="/arquivados.php"] > i:first-child { color: #B7C0CC; background: #B7C0CC22; }
body.layout-novo .sidebar-nav a[href^="/configuracoes.php"] > i:first-child { color: #9FB0C8; background: #9FB0C822; }
body.layout-novo .sidebar-nav a.active > i:first-child { background: rgba(255,255,255,.15); }
body.layout-novo .sidebar-nav a[href^="/agenda.php"] > i:first-child { color: #8ED1FF; background: #8ED1FF22; }
body.layout-novo .sidebar-nav a[href^="/suspensos.php"] > i:first-child { color: #FFB454; background: #FFB45422; }
body.layout-novo .susp-banner > .flex-grow-1 { min-width: 280px; }
body.layout-novo .susp-banner, body.layout-novo .susp-alerta { border-radius: 16px; box-shadow: 0 2px 10px rgba(27,42,61,.07); }

/* ======== Ajustes do Sistelab sobre o layout novo ======== */
/* Menu lateral mantém o azul-marinho da marca */
body.layout-novo .sidebar,
body.layout-novo .offcanvas {
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
}
body.layout-novo .sidebar-brand { padding: 16px 18px 8px; font-size: 1.1rem; }
body.layout-novo .sidebar-brand i {
    width: auto; height: auto; border-radius: 0; background: none; font-size: 1.2rem; display: inline;
    color: var(--cor-acento); opacity: 1;
}
body.layout-novo .sidebar-nav a.active { background: rgba(0,104,232,0.14); box-shadow: none; border-left: 3px solid var(--cor-acento); }

/* Painel: colunas com arrastar-e-soltar (cabeçalho e corpo separados) */
body.layout-novo .kanban-col-header { padding: 2px 4px 0; }
body.layout-novo .kanban-col-header h6 { flex: 1; margin: 2px 0 12px; display: flex; justify-content: space-between; align-items: center; }
body.layout-novo .kanban-col-corpo { min-height: 60px; flex: 1; }
body.layout-novo .kanban-col-corpo.arraste-sobre { background: rgba(0,104,232,0.10); outline: 2px dashed var(--cor-acento); outline-offset: -4px; border-radius: 12px; }
body.layout-novo .kanban-card { cursor: grab; transition: box-shadow .15s ease, opacity .15s ease; }
body.layout-novo .kanban-card:active { cursor: grabbing; }
body.layout-novo .kanban-card.arrastando { opacity: .35; }
body.layout-novo .kanban-card .kanban-drag-handle { position: absolute; right: 10px; top: 10px; float: none; color: #A9B4C4; font-size: .9rem; cursor: grab; }
body.layout-novo .kc-estrela { right: 30px; }
body.layout-novo .kc-titulo { padding-right: 40px; }
