/* =====================================================================
   Kit visual Y'ALL (out/2026) - componentes das telas remodeladas
   Carregado por sistema/topo_nav.asp depois do sistema-tema.css.
   - Todas as classes começam com "yu-" (ou "ys-" no combobox), então
     o arquivo não muda nada nas telas que não usam essas classes.
   - Cores: os tokens --st-marca* vêm do sistema-tema.css; aqui há
     valores de reserva para páginas abertas sem o topo (?sm=1).
   Combobox com busca: <select data-ys> (ver yall-ui.js).
   Guia do padrão (cores, campos, exemplos): Sistema/PADRAO_VISUAL.md
   ===================================================================== */

.yu {
    --yu-rosa: var(--st-marca, #CE0153);
    --yu-rosa-escuro: var(--st-marca-escuro, #8E013A);
    --yu-rosa-claro: var(--st-marca-claro, #FF2E7E);
    --yu-rosa-suave: var(--st-marca-suave, #FCE8F0);
    --yu-tinta: #241A1F;
    --yu-tinta-2: #6F6B72;
    --yu-tinta-3: #9A949E;
    --yu-linha: #ECE6EB;
    --yu-campo: #F7F5F8;
    --yu-ok: #177E58;
    --yu-ok-suave: #E8F6F0;
    --yu-alerta: #9A5B00;
    --yu-alerta-suave: #FFF4E0;
    --yu-perigo: #C62828;
    --yu-perigo-suave: #FDECEC;
    --yu-info: #2A5DB0;
    --yu-info-suave: #EAF1FC;
    --yu-sombra: 0 1px 2px rgba(36, 26, 31, .04), 0 12px 32px rgba(36, 26, 31, .07);
    --yu-sombra-forte: 0 24px 60px rgba(36, 26, 31, .18);

    color: var(--yu-tinta);
    padding-bottom: 32px;
}

.yu *,
.yu *::before,
.yu *::after { box-sizing: border-box; }

/* ---------- Cabeçalho da página ---------- */
.yu-topo {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin: 4px 0 22px;
}
.yu-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: var(--yu-rosa);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.yu .yu-topo h1 {
    margin: 0 0 4px;
    color: var(--yu-tinta);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.yu .yu-topo p { margin: 0; color: var(--yu-tinta-2); font-size: .95rem; }
.yu-acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Cartões ---------- */
.yu-card {
    background: #fff;
    border: 1px solid var(--yu-linha);
    border-radius: 22px;
    box-shadow: var(--yu-sombra);
    margin-bottom: 20px;
}
.yu-card__cab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 18px 22px 0;
}
.yu .yu-card__cab h2,
.yu .yu-card__cab h3 {
    margin: 0;
    color: var(--yu-tinta);
    font-size: 1.05rem;
    font-weight: 800;
}
.yu-card__cab small { color: var(--yu-tinta-2); font-size: .8rem; }
.yu-card__corpo { padding: 18px 22px 22px; }
.yu-card__rodape {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--yu-linha);
}

/* ---------- Formulários ---------- */
.yu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px 18px;
}
.yu-grid--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.yu-campo { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.yu-campo--largo { grid-column: 1 / -1; }
@media (min-width: 768px) { .yu-campo--duplo { grid-column: span 2; } }
.yu .yu-campo > label,
.yu .yu-rotulo {
    margin: 0;
    color: var(--yu-tinta-2);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.yu-ajuda { color: var(--yu-tinta-3); font-size: 12px; line-height: 1.4; }

.yu .yu-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid var(--yu-linha);
    border-radius: 14px;
    background: var(--yu-campo);
    color: var(--yu-tinta);
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.yu textarea.yu-input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.yu .yu-input::placeholder { color: #B3ADB8; }
.yu .yu-input:focus {
    border-color: var(--yu-rosa);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(206, 1, 83, .12);
}
.yu .yu-input.is-erro { border-color: var(--yu-perigo); background: #fff; box-shadow: 0 0 0 4px rgba(198, 40, 40, .1); }

/* Campo com ícone à esquerda */
.yu-icampo { position: relative; }
.yu-icampo > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--yu-tinta-3);
    font-size: 14px;
    pointer-events: none;
}
.yu .yu-icampo > .yu-input { padding-left: 40px; }

/* Opções em cartão (radio) */
.yu-opcoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.yu-opcao { position: relative; margin: 0; cursor: pointer; }
.yu-opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yu-opcao span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--yu-linha);
    border-radius: 16px;
    background: #fff;
    font-weight: 700;
    color: var(--yu-tinta);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.yu-opcao span::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #CFC7CF;
    background: #fff;
    transition: border .16s ease;
}
.yu-opcao:hover span { border-color: rgba(206, 1, 83, .45); }
.yu-opcao input:checked + span {
    border-color: var(--yu-rosa);
    background: linear-gradient(0deg, rgba(206, 1, 83, .04), rgba(206, 1, 83, .04)), #fff;
    box-shadow: 0 0 0 4px rgba(206, 1, 83, .1);
}
.yu-opcao input:checked + span::before { border: 5px solid var(--yu-rosa); }
.yu-opcao input:focus-visible + span { box-shadow: 0 0 0 4px rgba(206, 1, 83, .2); }

/* ---------- Botões ---------- */
.yu .yu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--yu-rosa-claro) 0%, var(--yu-rosa) 60%, var(--yu-rosa-escuro) 100%);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(206, 1, 83, .24);
    transition: transform .14s ease, filter .14s ease, box-shadow .14s ease, background .14s ease;
}
.yu .yu-btn:hover { filter: brightness(1.05); color: #fff; text-decoration: none; }
.yu .yu-btn:active { transform: translateY(1px); }
.yu .yu-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(206, 1, 83, .25); }
.yu .yu-btn[disabled] { opacity: .6; cursor: progress; }
.yu .yu-btn--claro {
    background: #fff;
    color: var(--yu-tinta);
    border: 1.5px solid var(--yu-linha);
    box-shadow: none;
}
.yu .yu-btn--claro:hover { color: var(--yu-rosa); border-color: rgba(206, 1, 83, .4); filter: none; }
.yu .yu-btn--suave { background: var(--yu-rosa-suave); color: var(--yu-rosa); box-shadow: none; }
.yu .yu-btn--suave:hover { color: var(--yu-rosa-escuro); filter: none; background: #F9D6E4; }
.yu .yu-btn--perigo { background: #fff; color: var(--yu-perigo); border: 1.5px solid #F3C7C7; box-shadow: none; }
.yu .yu-btn--perigo:hover { background: var(--yu-perigo-suave); color: var(--yu-perigo); filter: none; }
.yu .yu-btn--sm { min-height: 36px; padding: 0 13px; border-radius: 11px; font-size: 13px; }
.yu .yu-btn--bloco { width: 100%; }

/* ---------- Chips e selos ---------- */
.yu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.yu-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--yu-campo);
    border: 1px solid var(--yu-linha);
    color: var(--yu-tinta-2);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.yu-chip i { color: var(--yu-tinta-3); }
.yu-selo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    background: var(--yu-rosa-suave);
    color: var(--yu-rosa);
}
.yu-selo--ok { background: var(--yu-ok-suave); color: var(--yu-ok); }
.yu-selo--alerta { background: var(--yu-alerta-suave); color: var(--yu-alerta); }
.yu-selo--perigo { background: var(--yu-perigo-suave); color: var(--yu-perigo); }
.yu-selo--info { background: var(--yu-info-suave); color: var(--yu-info); }
.yu-selo--neutro { background: var(--yu-campo); color: var(--yu-tinta-2); }

/* ---------- Avisos ---------- */
.yu-aviso {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    background: var(--yu-info-suave);
    color: var(--yu-info);
}
.yu-aviso > i { margin-top: 3px; }
.yu-aviso b { color: inherit; }
.yu-aviso--alerta { background: var(--yu-alerta-suave); color: var(--yu-alerta); }
.yu-aviso--perigo { background: var(--yu-perigo-suave); color: var(--yu-perigo); }
.yu-aviso--ok { background: var(--yu-ok-suave); color: var(--yu-ok); }

/* ---------- Indicadores ---------- */
.yu-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.yu-stat {
    position: relative;
    overflow: hidden;
    padding: 14px 16px 13px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--yu-linha);
}
.yu-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--yu-cor, var(--yu-tinta-3));
}
.yu-stat b { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1.1; color: var(--yu-tinta); font-variant-numeric: tabular-nums; }
.yu-stat span { display: block; margin-top: 3px; color: var(--yu-tinta-2); font-size: 12px; font-weight: 700; }
.yu-stat small { display: block; color: var(--yu-tinta-3); font-size: 11px; }
.yu-stat--destaque { background: linear-gradient(150deg, var(--yu-rosa) 0%, var(--yu-rosa-escuro) 100%); border-color: transparent; }
.yu-stat--destaque::before { display: none; }
.yu-stat--destaque b, .yu-stat--destaque span { color: #fff; }
.yu-stat--destaque small { color: rgba(255, 255, 255, .75); }

/* ---------- Avatar ---------- */
.yu-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--yu-rosa-claro) 0%, var(--yu-rosa) 60%, var(--yu-rosa-escuro) 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}
.yu-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yu-avatar--g { width: 96px; height: 96px; border-radius: 26px; font-size: 30px; }

/* ---------- Lista de pessoas (cartões) ---------- */
.yu-lista { display: flex; flex-direction: column; gap: 12px; }
.yu-pessoa {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--yu-linha);
    box-shadow: 0 1px 2px rgba(36, 26, 31, .03);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .4s ease;
}
.yu-pessoa:hover { border-color: rgba(206, 1, 83, .3); box-shadow: 0 12px 28px rgba(36, 26, 31, .08); }
.yu-pessoa.is-bloqueado { border-color: #F3C7C7; background: linear-gradient(90deg, #FFF6F6 0%, #fff 40%); }
.yu-pessoa.is-avancado { border-color: #C9D8F5; }
.yu-pessoa.is-saindo { opacity: 0; transform: translateX(20px); }
.yu-pessoa__info { min-width: 0; }
.yu-pessoa__nome {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 0 4px;
    color: var(--yu-tinta);
    font-size: 1.02rem;
    font-weight: 800;
}
.yu-pessoa__linha { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--yu-tinta-2); font-size: 13px; margin-top: 6px; }
.yu-pessoa__linha span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; white-space: nowrap; }
.yu-pessoa__linha span > a { overflow: hidden; text-overflow: ellipsis; }
.yu-pessoa__linha i { color: var(--yu-tinta-3); width: 14px; text-align: center; }
.yu-pessoa__linha a { color: var(--yu-tinta-2); text-decoration: none; }
.yu-pessoa__linha a:hover { color: var(--yu-rosa); }
.yu-pessoa__acoes { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.yu-ordem {
    position: absolute;
    left: -8px;
    top: -8px;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yu-tinta);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(36, 26, 31, .25);
}

/* ---------- Lista de definições ---------- */
.yu-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 18px; margin: 0; }
.yu-dl > div { min-width: 0; }
.yu .yu-dl dt {
    margin: 0 0 3px;
    color: var(--yu-tinta-3);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.yu .yu-dl dd { margin: 0; color: var(--yu-tinta); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.yu .yu-dl dd a { color: var(--yu-rosa); }

/* ---------- Seção recolhível ---------- */
.yu-secao { border-top: 1px solid var(--yu-linha); }
.yu-secao:first-child { border-top: 0; }
.yu-secao > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    list-style: none;
    cursor: pointer;
    color: var(--yu-tinta);
    font-weight: 800;
    font-size: .95rem;
    user-select: none;
}
.yu-secao > summary::-webkit-details-marker { display: none; }
.yu-secao > summary > i:first-child {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yu-rosa-suave);
    color: var(--yu-rosa);
    font-size: 13px;
}
.yu-secao > summary::after {
    content: "";
    margin-left: auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--yu-tinta-3);
    border-bottom: 2px solid var(--yu-tinta-3);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s ease;
}
.yu-secao[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.yu-secao__corpo { padding: 0 22px 20px; }

/* ---------- Estado vazio ---------- */
.yu-vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 34px 20px;
    text-align: center;
    color: var(--yu-tinta-2);
}
.yu-vazio > i {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yu-rosa-suave);
    color: var(--yu-rosa);
    font-size: 24px;
    margin-bottom: 6px;
}
.yu .yu-vazio h3 { margin: 0; color: var(--yu-tinta); font-size: 1.1rem; font-weight: 800; }
.yu .yu-vazio p { margin: 0; max-width: 520px; font-size: .92rem; line-height: 1.55; }

/* ---------- Paginação ---------- */
.yu-paginacao { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; }
.yu .yu-paginacao a,
.yu .yu-paginacao span {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--yu-linha);
    background: #fff;
    color: var(--yu-tinta);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.yu .yu-paginacao a:hover { border-color: var(--yu-rosa); color: var(--yu-rosa); }
.yu .yu-paginacao .is-atual { background: var(--yu-rosa); border-color: var(--yu-rosa); color: #fff; }
.yu .yu-paginacao .is-reticencias { border: 0; background: transparent; min-width: 20px; }

/* ---------- Modal ---------- */
.yu-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 6vh 16px 24px;
    background: rgba(36, 26, 31, .45);
    backdrop-filter: blur(3px);
    overflow-y: auto;
}
.yu-modal.is-aberto { display: flex; animation: yuFade .18s ease both; }
.yu-modal__caixa {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--yu-sombra-forte);
    animation: yuSobe .26s cubic-bezier(.2, .7, .3, 1) both;
}
.yu-modal__cab {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px 6px;
}
.yu .yu-modal__cab h3 { margin: 0; color: var(--yu-tinta); font-size: 1.12rem; font-weight: 800; }
.yu-modal__cab p { margin: 2px 0 0; color: var(--yu-tinta-2); font-size: .88rem; }
.yu .yu-modal__fechar {
    margin-left: auto;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 0;
    border-radius: 12px;
    background: var(--yu-campo);
    color: var(--yu-tinta-2);
    cursor: pointer;
}
.yu .yu-modal__fechar:hover { color: var(--yu-rosa); }
.yu-modal__corpo { padding: 14px 22px 4px; }
.yu-modal__rodape { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px; }

/* ---------- Toast ---------- */
.yu-toasts {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.yu-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    padding: 13px 16px;
    border-radius: 16px;
    background: #241A1F;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 18px 40px rgba(36, 26, 31, .3);
    animation: yuSobe .26s cubic-bezier(.2, .7, .3, 1) both;
    pointer-events: auto;
}
.yu-toast i { font-size: 16px; }
.yu-toast--ok i { color: #6EE7B7; }
.yu-toast--erro i { color: #FCA5A5; }
.yu-toast--alerta i { color: #FCD34D; }
.yu-toast.is-saindo { opacity: 0; transform: translateY(8px); transition: all .25s ease; }

/* ---------- Hero (cabeçalho rosa das telas remodeladas) ----------
   <section class="yu-hero"><div class="yu-hero__topo"><div>
     <span class="yu-kicker">...</span><h1>...</h1><p>...</p></div>
     <div class="yu-acoes"><a class="yu-btn yu-btn--vidro">...</a></div></div></section>
   Mesmo visual dos heros de listar_projeto / cadastro_projeto / projeto_painel. */
.yu-hero {
    position: relative;
    overflow: hidden;
    margin: 4px 0 20px;
    padding: 26px 28px 24px;
    border-radius: 26px;
    color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, #FF2E7E 0%, rgba(255, 46, 126, 0) 55%), linear-gradient(135deg, #8E013A 0%, #CE0153 60%, #E2457F 100%);
    box-shadow: 0 18px 40px rgba(142, 1, 58, .22);
}
.yu-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .07); pointer-events: none; }
.yu-hero__topo { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; }
.yu .yu-hero h1 { margin: 0 0 4px; color: #fff; font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.yu .yu-hero p { margin: 0; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.yu-hero .yu-kicker { color: rgba(255, 255, 255, .85); }
.yu .yu-hero .yu-btn--claro { background: #fff; color: var(--yu-rosa-escuro); border-color: transparent; }
.yu .yu-btn--vidro { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); box-shadow: none; }
.yu .yu-btn--vidro:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- Chave liga/desliga ----------
   <label class="yu-switch"><input type="checkbox"><span class="yu-switch__trilho"></span><span>Texto</span></label> */
.yu .yu-switch { position: relative; display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--yu-tinta); font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none; }
.yu-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yu-switch__trilho { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: #D9D1D8; transition: background .16s ease; }
.yu-switch__trilho::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(36, 26, 31, .3); transition: transform .16s ease; }
.yu-switch input:checked + .yu-switch__trilho { background: var(--yu-rosa); }
.yu-switch input:checked + .yu-switch__trilho::after { transform: translateX(16px); }
.yu-switch input:focus-visible + .yu-switch__trilho { box-shadow: 0 0 0 4px rgba(206, 1, 83, .2); }
.yu-switch input:disabled + .yu-switch__trilho { opacity: .5; }

/* ---------- Escolha segmentada (2 a 4 opções curtas) ----------
   <div class="yu-seg" role="radiogroup"><input type="radio" id="a" name="x"><label for="a">A</label>...</div> */
.yu-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 14px; background: var(--yu-campo); border: 1.5px solid var(--yu-linha); }
.yu-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.yu .yu-seg label { margin: 0; padding: 8px 16px; border-radius: 10px; color: var(--yu-tinta-2); font-size: 13.5px; font-weight: 700; cursor: pointer; user-select: none; text-transform: none; letter-spacing: 0; }
.yu .yu-seg label:hover { color: var(--yu-rosa); }
.yu .yu-seg input:checked + label { background: #fff; color: var(--yu-rosa); box-shadow: 0 1px 3px rgba(36, 26, 31, .12); }
.yu-seg input:focus-visible + label { box-shadow: 0 0 0 3px rgba(206, 1, 83, .2); }

/* ---------- Tabela ----------
   <div class="yu-tabela-wrap"><table class="yu-tabela"> ... <td data-label="Rótulo"> ...
   No celular cada linha vira cartão e o td mostra o data-label. O rodapé do sistema
   aplica tablesorter em toda <table>: th sem ordenação = class="sorter-false". */
.yu-tabela-wrap { background: #fff; border: 1px solid var(--yu-linha); border-radius: 22px; box-shadow: var(--yu-sombra); overflow-x: auto; }
.yu-tabela-wrap:has(.yu-menu) { overflow: visible; } /* o menu de ações não pode ser cortado */
.yu .yu-tabela { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; color: var(--yu-tinta); background: transparent; }
.yu .yu-tabela th { position: static; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--yu-linha); background: #fff; color: var(--yu-tinta-3); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-align: left; white-space: nowrap; vertical-align: middle; }
.yu .yu-tabela td { padding: 13px 16px; border: 0; border-top: 1px solid var(--yu-linha); vertical-align: middle; }
.yu .yu-tabela tbody tr:first-child td { border-top: 0; }
.yu .yu-tabela tbody tr > td, .yu .yu-tabela tbody tr.odd > td, .yu .yu-tabela tbody tr.even > td { background-color: transparent; }
.yu .yu-tabela tbody tr:hover > td { background-color: #FBF8FA; }
.yu .yu-tabela thead th.tablesorter-header { cursor: pointer; user-select: none; }
.yu .yu-tabela thead th.sorter-false { cursor: default; }
.yu .yu-tabela thead th.tablesorter-headerAsc::after { content: " \2191"; color: var(--yu-rosa); }
.yu .yu-tabela thead th.tablesorter-headerDesc::after { content: " \2193"; color: var(--yu-rosa); }
.yu .yu-tabela .tablesorter-header-inner { display: inline; }
.yu .yu-tabela .yu-td-num { width: 1%; white-space: nowrap; color: var(--yu-tinta-3); font-variant-numeric: tabular-nums; }
.yu .yu-tabela .yu-td-acoes { width: 1%; white-space: nowrap; text-align: right; }
.yu-td-sub { display: block; margin-top: 2px; color: var(--yu-tinta-2); font-size: 12px; }
@media (max-width: 767px) {
    .yu-tabela-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
    .yu .yu-tabela, .yu .yu-tabela tbody, .yu .yu-tabela tr, .yu .yu-tabela td { display: block; width: 100%; }
    .yu .yu-tabela thead { display: none; }
    .yu .yu-tabela tr { position: relative; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--yu-linha); border-radius: 18px; background: #fff; }
    .yu .yu-tabela tbody tr:hover > td { background-color: transparent; }
    .yu .yu-tabela td { padding: 4px 0; border: 0; text-align: left; }
    .yu .yu-tabela td[data-label]::before { content: attr(data-label); display: block; color: var(--yu-tinta-3); font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
    .yu .yu-tabela td.yu-td-num { position: absolute; top: 12px; right: 14px; width: auto; padding: 0; font-size: 12px; }
    .yu .yu-tabela td.yu-td-num::before { display: none; }
    .yu .yu-tabela td.yu-td-acoes { width: 100%; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--yu-linha); text-align: left; }
}

/* ---------- Menu de ações ----------
   <details class="yu-menu"><summary class="yu-btn yu-btn--claro yu-btn--sm">Ações</summary>
     <div class="yu-menu__lista"><a class="yu-menu__item">...</a><div class="yu-menu__sep"></div>
     <button class="yu-menu__item yu-menu__item--perigo">...</button></div></details>
   Fecha ao clicar fora e no Esc (yall-ui.js). */
.yu-menu { position: relative; display: inline-block; }
.yu-menu > summary { list-style: none; }
.yu-menu > summary::-webkit-details-marker { display: none; }
.yu-menu__lista { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: grid; gap: 2px; min-width: 210px; padding: 6px; border: 1px solid var(--yu-linha); border-radius: 16px; background: #fff; box-shadow: var(--yu-sombra-forte); text-align: left; }
.yu .yu-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; border-radius: 11px; background: transparent; color: var(--yu-tinta); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.yu .yu-menu__item:hover { background: #F7F1F5; color: var(--yu-rosa); text-decoration: none; }
.yu .yu-menu__item i { width: 16px; text-align: center; color: var(--yu-tinta-3); }
.yu .yu-menu__item--perigo, .yu .yu-menu__item--perigo i { color: var(--yu-perigo); }
.yu .yu-menu__item--perigo:hover { background: var(--yu-perigo-suave); color: var(--yu-perigo); }
.yu-menu__sep { height: 1px; margin: 4px 2px; background: var(--yu-linha); }
@media (max-width: 767px) { .yu-menu__lista { right: auto; left: 0; } }

@keyframes yuFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes yuSobe { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Combobox com busca (YallSelect)  -  <select data-ys>
   ===================================================================== */
.ys {
    position: relative;
    width: 100%;
    font-family: inherit;
    --ys-rosa: var(--st-marca, #CE0153);
}
.ys > select.ys-nativo {
    position: absolute !important;
    left: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
}
.ys-gatilho {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 8px 12px 8px 14px;
    border: 1.5px solid #ECE6EB;
    border-radius: 14px;
    background: #F7F5F8;
    color: #241A1F;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.ys-gatilho:hover { border-color: #DCCFDA; }
.ys.is-aberto .ys-gatilho,
.ys-gatilho:focus-visible {
    outline: none;
    border-color: var(--ys-rosa);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(206, 1, 83, .12);
}
.ys.is-erro .ys-gatilho { border-color: #C62828; box-shadow: 0 0 0 4px rgba(198, 40, 40, .1); background: #fff; }
.ys.is-desativado .ys-gatilho { opacity: .6; cursor: not-allowed; }
.ys-valor { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ys-valor b,
.ys-valor small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ys-valor b { font-weight: 600; }
.ys-valor small { color: #9A949E; font-size: 12px; margin-top: 1px; }
.ys-valor.is-vazio b { color: #B3ADB8; font-weight: 500; }
.ys-seta {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9A949E;
    transition: transform .2s ease, background .16s ease, color .16s ease;
}
.ys-seta svg { width: 16px; height: 16px; }
.ys.is-aberto .ys-seta { transform: rotate(180deg); background: rgba(206, 1, 83, .08); color: var(--ys-rosa); }

.ys-painel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1075;
    display: none;
    flex-direction: column;
    max-height: 360px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #ECE6EB;
    box-shadow: 0 24px 60px rgba(36, 26, 31, .18), 0 2px 6px rgba(36, 26, 31, .06);
    overflow: hidden;
    transform-origin: top center;
}
.ys.is-aberto .ys-painel { display: flex; animation: ysAbrir .18s cubic-bezier(.2, .7, .3, 1) both; }
.ys.is-acima .ys-painel { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; }
.ys-busca { position: relative; padding: 10px 10px 6px; border-bottom: 1px solid #F1ECF0; }
.ys-busca svg {
    position: absolute;
    left: 23px;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    transform: translateY(-50%);
    color: #9A949E;
    pointer-events: none;
}
.ys-busca input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 36px;
    border: 1.5px solid #ECE6EB;
    border-radius: 12px;
    background: #F7F5F8;
    color: #241A1F;
    font: inherit;
    font-size: 14px;
    outline: none;
}
.ys-busca input:focus { border-color: var(--ys-rosa); background: #fff; }
.ys-lista { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.ys-op {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 11px;
    color: #241A1F;
    font-size: 14px;
    cursor: pointer;
    transition: background .1s ease;
}
.ys-op__txt { flex: 1 1 auto; min-width: 0; }
.ys-op__txt b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ys-op__txt small { display: block; color: #9A949E; font-size: 12px; margin-top: 1px; }
.ys-op mark { background: rgba(206, 1, 83, .14); color: inherit; border-radius: 3px; padding: 0 1px; }
.ys-op.is-ativo { background: #F7F1F5; }
.ys-op.is-sel { color: var(--ys-rosa); }
.ys-op.is-sel .ys-op__txt b { font-weight: 800; }
.ys-op__check { flex: 0 0 18px; width: 18px; height: 18px; color: var(--ys-rosa); opacity: 0; }
.ys-op.is-sel .ys-op__check { opacity: 1; }
.ys-op.is-desativado { opacity: .45; cursor: not-allowed; }
.ys-grupo { padding: 10px 11px 4px; color: #9A949E; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ys-vazio { padding: 18px 12px; color: #9A949E; font-size: 13px; text-align: center; }
.ys-rodape { padding: 7px 14px; border-top: 1px solid #F1ECF0; color: #9A949E; font-size: 11.5px; }

@keyframes ysAbrir { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
    .yu .yu-topo h1 { font-size: 1.45rem; }
    .yu-card__cab { padding: 16px 16px 0; }
    .yu-card__corpo { padding: 16px; }
    .yu-grid { grid-template-columns: minmax(0, 1fr); }
    .yu-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .yu-stat { padding: 12px 14px 11px; }
    .yu-stat b { font-size: 1.35rem; }
    .yu-pessoa { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px; }
    .yu-pessoa > .yu-avatar { width: 46px; height: 46px; border-radius: 14px; font-size: 15px; }
    .yu-pessoa__nome { font-size: .95rem; }
    .yu-pessoa__linha { gap: 4px 12px; }
    .yu-pessoa__linha span { white-space: normal; }
    .yu-pessoa__linha span > a { white-space: nowrap; }
    .yu-pessoa__acoes { grid-column: 1 / -1; flex-direction: row; }
    .yu-pessoa__acoes .yu-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
    .yu-modal { padding-top: 16px; }
    .yu-secao > summary { padding: 14px 16px; }
    .yu-secao__corpo { padding: 0 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .yu-modal.is-aberto, .yu-modal__caixa, .yu-toast, .ys.is-aberto .ys-painel { animation: none; }
    .yu-pessoa, .yu .yu-btn { transition: none; }
}
