body.admin { background: #f4f3ef; color: #22281f; }
.admin-nav { background: #34502b; }
.admin-nav .nav-link.active { color: #fff; font-weight: 600; }
.admin-main { max-width: 1280px; padding: 1.5rem 1rem 3rem; }
.admin h1 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.card { border: 0; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.stat { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.btn-brand { background: #4a6b3f; color: #fff; }
.btn-brand:hover { background: #34502b; color: #fff; }
.table td, .table th { vertical-align: middle; }
.login-box { max-width: 380px; margin: 10vh auto; }

/* Agenda mensal (agenda.php) */
.cal-nav-group { display: inline-flex; background: #fff; border-radius: 50px; box-shadow: 0 4px 16px rgba(0,0,0,.06); overflow: hidden; }
.cal-nav-group a { padding: .5rem 1rem; color: #34502b; text-decoration: none; font-weight: 500; }
.cal-nav-group a + a { border-left: 1px solid #ece8dd; }
.cal-nav-group a:hover { background: #eef4ea; }
.cal-nav-group a.is-current { color: #8a9085; }

.kpi.kpi-compact { flex-direction: row; align-items: center; gap: .85rem; padding: .9rem 1rem; }
.kpi-compact .kpi-icon { margin-bottom: 0; flex-shrink: 0; }
.kpi-compact .kpi-value { display: block; font-size: 1.45rem; }
.kpi-compact .kpi-value small { font-size: .9rem; color: #8a9085; font-weight: 500; }
.kpi-compact .kpi-label { display: block; font-size: .8rem; color: #6b7266; }
.occ-bar { display: block; height: 5px; border-radius: 5px; background: #f0ece2; margin-top: .35rem; overflow: hidden; }
.occ-bar span { display: block; height: 100%; background: #a0743c; border-radius: 5px; }

/* Legenda com as mesmas cores dos eventos */
.legend-card { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; background: #fff; border-radius: 12px; padding: .75rem 1rem; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.lg-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 50px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.lg-chip-sm { padding: .15rem .6rem; font-size: .72rem; }
.lg-plain { background: #f4f3ef; color: #34502b; }
.lg-today { background: #fff; color: #34502b; box-shadow: inset 0 0 0 2px #4a6b3f; }
.legend-note { margin-left: auto; font-size: .8rem; color: #8a9085; }

/* Cores dos eventos (fortes, iguais na legenda, grade e lista) */
.ev-aprovada { background: #2f7d4f; color: #fff; }
.ev-pendente { background: #fff4d1; color: #8a5a00; outline: 1.5px dashed #d39e00; outline-offset: -1.5px; } /* tracejado = ainda não confirmado */
.ev-bloqueio { color: #3d4246; background: repeating-linear-gradient(135deg, #e3e5e8 0 6px, #d2d5da 6px 12px); }

/* Grade do mês (minmax(0,1fr): colunas não crescem com nomes longos) */
.agenda { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.agenda .wd { text-align: center; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7266; padding: .4rem 0; }
.agenda .wd-weekend { color: #a0743c; }
.agenda .day { background: #fff; border: 1px solid #f0ece2; border-radius: 10px; min-height: 104px; padding: .4rem; font-size: .8rem; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.agenda .day.weekend { background: #fcfaf5; }
.agenda .day.past { opacity: .5; }
.agenda .day.today { border-color: transparent; box-shadow: inset 0 0 0 2px #4a6b3f; }
.agenda .num { font-weight: 600; font-size: .85rem; display: flex; align-items: center; gap: .35rem; margin-bottom: 2px; }
.today-pill { background: #4a6b3f; color: #fff; font-size: .6rem; font-weight: 700; text-transform: uppercase; border-radius: 50px; padding: .05rem .4rem; letter-spacing: .04em; }
.agenda .ev { display: flex; align-items: center; gap: .3rem; border-radius: 6px; padding: 2px 6px; text-decoration: none; font-size: .74rem; font-weight: 600; min-width: 0; }
.agenda .ev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda .ev:hover { filter: brightness(.95); }
.agenda .ev-cont { font-weight: 500; opacity: .85; }
.agenda .ev i { flex-shrink: 0; }

/* Celular: só número + barrinhas coloridas; os detalhes ficam na lista "Neste mês" */
@media (max-width: 767px) {
    .agenda { gap: 3px; }
    .agenda .wd { font-size: .62rem; letter-spacing: 0; }
    .agenda .day { min-height: 54px; padding: .25rem; border-radius: 7px; gap: 2px; }
    .agenda .num { font-size: .75rem; }
    .today-pill { display: none; }
    .agenda .ev { height: 6px; padding: 0; border-radius: 3px; outline-width: 1px; }
    .agenda .ev span, .agenda .ev i { display: none; }
    .legend-card { gap: .4rem; }
    .legend-note { margin-left: 0; width: 100%; }
    .lg-chip { font-size: .74rem; padding: .25rem .6rem; }
}

/* Indicador de carregamento entre telas (admin.js) */
.page-loader { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: #c08a4a; z-index: 2000; opacity: 0; box-shadow: 0 0 8px rgba(192,138,74,.6); }
body.is-loading .page-loader { opacity: 1; width: 85%; transition: width 8s cubic-bezier(.1,.7,.2,1); }
.page-loader-overlay { position: fixed; inset: 0; z-index: 1990; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
                       background: rgba(244,243,239,.6); backdrop-filter: blur(1px); color: #34502b; font-weight: 500;
                       opacity: 0; visibility: hidden; transition: opacity .2s; }
.page-loader-overlay .spinner-border { color: #4a6b3f; width: 2.5rem; height: 2.5rem; }
body.is-loading-overlay .page-loader-overlay { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
    body.is-loading .page-loader { transition: none; }
    .page-loader-overlay .spinner-border { animation-duration: 2s; }
}

/* ---------- Tela do pedido (reservas.php?id=) ---------- */
.order-head { margin-bottom: 1.5rem; }
.order-back { display: inline-block; color: #6b7266; text-decoration: none; font-size: .9rem; margin-bottom: .5rem; }
.order-back:hover { color: #34502b; }

/* Título padrão dos cards: ícone + rótulo pequeno em maiúsculas */
.card-title-sm { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #4a6b3f; margin-bottom: 1rem; display: flex; align-items: center; gap: .45rem; }
.card-title-sm i { font-size: 1rem; }

/* Estadia: blocos lado a lado com divisórias */
.stay-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #f8f6f0; border-radius: 12px; }
.stay-item { padding: .9rem 1rem; display: flex; flex-direction: column; }
.stay-item + .stay-item { border-left: 1px solid #e6e1d5; }
.stay-item small { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7266; }
.stay-item strong { font-size: 1.3rem; line-height: 1.3; color: #22281f; }
.stay-item span { font-size: .82rem; color: #6b7266; }
@media (max-width: 575px) {
    .stay-strip { grid-template-columns: 1fr 1fr; }
    .stay-item:nth-child(3) { border-left: 0; }
    .stay-item:nth-child(n+3) { border-top: 1px solid #e6e1d5; }
}

/* Cliente */
.client-name { font-size: 1.25rem; font-weight: 600; margin-bottom: .35rem; }
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { display: flex; align-items: center; gap: .5rem; padding: .15rem 0; word-break: break-all; }
.contact-lines i { color: #4a6b3f; }
.client-quote { margin: 1.25rem 0 0; padding: .9rem 1.1rem; background: #fbf7ef; border-left: 4px solid #c08a4a; border-radius: 0 10px 10px 0; font-style: italic; }
.client-quote small { display: block; font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #a0743c; margin-bottom: .25rem; }

/* Lista rótulo/valor */
.info-list { display: grid; grid-template-columns: 9rem 1fr; gap: .55rem 1rem; margin: 0; }
.info-list dt { font-weight: 500; color: #6b7266; }
.info-list dd { margin: 0; }

/* Observação interna */
.note-internal { background: #fffaf0; border-left: 4px solid #e0b252 !important; }
.tag-internal, .tag-mail { display: inline-block; font-size: .68rem; font-weight: 600; text-transform: none; letter-spacing: 0; border-radius: 50px; padding: .05rem .5rem; margin-left: .3rem; vertical-align: 1px; }
.tag-internal { background: #f1ede2; color: #6b7266; }
.tag-mail { background: #e3eedf; color: #34502b; }

/* Painel de ação (coluna direita) */
@media (min-width: 992px) { .sticky-lg { position: sticky; top: 1rem; } }
.action-card { overflow: hidden; }
.action-body { padding: 1.5rem; }
.action-footer { padding: 1.25rem 1.5rem; background: #f8f6f0; border-top: 1px solid #ece8dd; }
.step + .step { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed #e0dbcd; }
.step-title { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: #4a6b3f; color: #fff; font-size: .8rem; display: inline-grid; place-items: center; flex-shrink: 0; }
.field-label { display: block; font-size: .85rem; font-weight: 500; color: #4b5247; margin-bottom: .4rem; }

/* Opções selecionáveis (radios como cartões) */
.choice-grid { display: grid; gap: .5rem; }
.choice-grid-3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid-2 { grid-template-columns: repeat(2, 1fr); }
.choice { display: flex; flex-direction: column; gap: .1rem; border: 1.5px solid #ddd8cb; border-radius: 10px; padding: .65rem .8rem; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; user-select: none; }
.choice:hover { border-color: #9cb592; }
.choice small { color: #6b7266; font-size: .78rem; }
.choice-center { align-items: center; text-align: center; padding: .7rem .4rem; }
.choice-center i { font-size: 1.35rem; color: #6b7266; }
.choice-center span { font-size: .88rem; font-weight: 500; }
.btn-check:checked + .choice { border-color: #4a6b3f; background: #eef4ea; box-shadow: 0 0 0 1px #4a6b3f inset; }
.btn-check:checked + .choice i, .btn-check:checked + .choice strong { color: #34502b; }
.btn-check:focus-visible + .choice { outline: 2px solid #4a6b3f; outline-offset: 2px; }
/* Radio obrigatório sem escolha ao tentar aprovar */
.show-invalid .btn-check:invalid + .choice { border-color: #dc3545; }

/* Interruptores de pagamento recebido */
.switch-list { background: #f8f6f0; border-radius: 10px; padding: .75rem 1rem; }
.switch-list .form-check { margin: .2rem 0; }
.switch-list .form-check-input:checked { background-color: #4a6b3f; border-color: #4a6b3f; }


/* ---------- Painel (index.php) ---------- */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.dash-head h1 { margin-bottom: .25rem; }

/* Indicadores com ícone */
.kpi { display: flex; flex-direction: column; gap: .15rem; padding: 1.25rem; height: 100%; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); color: inherit; }
.kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: .75rem; }
.kpi-amber { background: #fff3d6; color: #b7791f; }
.kpi-green { background: #e3f1e6; color: #1e7b45; }
.kpi-brand { background: #e8efe4; color: #4a6b3f; }
.kpi-gold  { background: #f6ecdc; color: #a0743c; }
.kpi-value { font-size: 2rem; font-weight: 700; line-height: 1.1; color: #22281f; }
.kpi-label { font-size: .9rem; font-weight: 500; color: #4b5247; }
.kpi-foot { font-size: .8rem; color: #8a9085; margin-top: .35rem; padding-top: .5rem; border-top: 1px solid #f0ece2; }

/* Listas do painel */
.list-rows { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: .9rem; padding: .8rem .5rem; border-radius: 10px; color: inherit; text-decoration: none; }
.list-row + .list-row { border-top: 1px solid #f0ece2; }
.list-row:hover { background: #f8f6f0; color: inherit; }
.list-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row-main small { color: #6b7266; }
.list-row-main .text-muted-2 { color: #9aa094; font-size: .76rem; }
.list-row-side { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.date-chip { width: 50px; flex-shrink: 0; border-radius: 10px; background: #eef4ea; color: #34502b; text-align: center; padding: .35rem 0; line-height: 1.1; }
.date-chip strong { display: block; font-size: 1.25rem; }
.date-chip small { font-size: .66rem; font-weight: 600; letter-spacing: .06em; }
.empty-state { text-align: center; color: #8a9085; padding: 2rem 1rem; }
.empty-state i { font-size: 2.4rem; color: #c9d6c2; display: block; margin-bottom: .5rem; }
.empty-state p { margin: 0; }
@media (max-width: 575px) {
    /* No celular o selo (conflito / em N dias) desce para baixo do texto, liberando o nome */
    .list-row { flex-wrap: wrap; align-items: flex-start; }
    .list-row-main strong { white-space: normal; }
    .list-row-side { width: 100%; padding-left: calc(50px + .9rem); margin-top: -.2rem; }
    .list-row-side:not(:has(.badge, .lg-chip, .role-badge, .btn, .icon-btn)) { display: none; }
    .list-row-side .bi-chevron-right { display: none; }
    .kpi-value { font-size: 1.7rem; }
}

/* ---------- Lista de reservas (reservas.php) ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.search-box { position: relative; width: 320px; max-width: 100%; }
.search-box i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #8a9085; pointer-events: none; }
.search-box .form-control { padding-left: 2.3rem; border-radius: 50px; border-color: #e0dbcd; background: #fff; }
.search-box .form-control:focus { border-color: #4a6b3f; box-shadow: 0 0 0 .2rem rgba(74,107,63,.15); }

/* Abas segmentadas com contador */
.seg-tabs { display: flex; gap: .35rem; background: #fff; padding: .35rem; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.05); overflow-x: auto; scrollbar-width: none; }
.seg-tabs::-webkit-scrollbar { display: none; }
.seg-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 9px; color: #4b5247; text-decoration: none; font-weight: 500; white-space: nowrap; transition: background .15s; }
.seg-tab:hover { background: #f4f3ef; color: #22281f; }
.seg-tab.active { background: #4a6b3f; color: #fff; }
.seg-count { font-size: .72rem; font-weight: 600; min-width: 1.5rem; text-align: center; padding: .1rem .45rem; border-radius: 50px; background: #f0ece2; color: #6b7266; }
.seg-tab.active .seg-count { background: rgba(255,255,255,.22); color: #fff; }
.seg-count-warn { background: #ffe8a8; color: #8a5a00; }

.row-id { font-weight: 400; color: #9aa094; font-size: .85rem; }
.list-row-side { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 575px) {
    .search-box { width: 100%; }
    .list-row-side { justify-content: flex-start; }
}

/* ---------- Bloqueios (bloqueios.php) ---------- */
.hint { display: block; color: #6b7266; font-size: .9rem; background: #fff; border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.hint i { color: #4a6b3f; margin-right: .4rem; }
.block-preview { margin-top: .75rem; padding: .65rem .8rem; border-radius: 10px; background: #f8f6f0; color: #6b7266; font-size: .85rem; }
.block-preview.is-ok { background: #eef4ea; color: #34502b; }
.block-preview.is-error { background: #fdecec; color: #b42318; }
.chip-btn { border: 1px solid #e0dbcd; background: #fff; color: #4b5247; border-radius: 50px; padding: .2rem .7rem; font-size: .78rem; }
.chip-btn:hover { border-color: #4a6b3f; color: #34502b; background: #eef4ea; }
.seg-tabs-sm { padding: .2rem; box-shadow: none; background: #f4f3ef; border-radius: 10px; }
.seg-tabs-sm .seg-tab { padding: .3rem .8rem; font-size: .85rem; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #f1d0d0; background: #fff; color: #c0392b; display: inline-grid; place-items: center; transition: background .15s; }
.icon-btn:hover { background: #fdecec; }

/* Modal de detalhes da agenda */
#eventModal .modal-content { border: 0; border-radius: 16px; overflow: hidden; }
#eventModal .modal-header { background: #f8f6f0; border-bottom: 1px solid #ece8dd; }
#eventModal .modal-footer { background: #f8f6f0; border-top: 1px solid #ece8dd; }
#eventModal .stay-strip { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
#eventModal .stay-item[hidden] { display: none; }
.pre-line { white-space: pre-line; }
.note-box { background: #fffaf0; border-left: 4px solid #e0b252; border-radius: 0 10px 10px 0; padding: .9rem 1rem; }
@media (max-width: 575px) { #eventModal .modal-content { border-radius: 0; } #eventModal .stay-strip { grid-template-columns: 1fr 1fr; } }

/* "recebido em" ao lado dos interruptores de pagamento */
.switch-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; padding: .25rem 0; }
.switch-row .form-check { margin: 0; }
.received-on { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: #6b7266; }
.received-on[hidden] { display: none; }
.received-on input { width: auto; padding: .15rem .4rem; font-size: .8rem; }

/* ---------- Financeiro (financeiro.php) ---------- */
.kpi-red { background: #fde8e8; color: #c0392b; }
.kpi-alert { box-shadow: 0 0 0 2px #f5c2c2, 0 4px 16px rgba(0,0,0,.05); }
.kpi-value.money { font-size: 1.55rem; white-space: nowrap; }
.kpi-foot .occ-bar { margin: 0 0 .3rem; }
.seg-count-danger { background: #fde8e8; color: #b42318; }

/* Gráfico anual: recebido (verde) + a receber (âmbar) empilhados, com 2px de respiro entre os segmentos */
.fin-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .85rem; color: #4b5247; }
.fin-legend strong { color: #22281f; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: 0; margin-right: .25rem; }
.sw-recebido { background: #2f7d4f; }
.sw-aberto { background: #d9a441; }
.fin-chart { position: relative; height: 240px; padding-left: 64px; }
.fin-grid { position: absolute; inset: 0 0 26px 64px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.fin-grid div { border-top: 1px dashed #ece8dd; position: relative; height: 0; }
.fin-grid span { position: absolute; right: calc(100% + 8px); top: -.55rem; font-size: .7rem; color: #9aa094; white-space: nowrap; }
.fin-bars { position: relative; height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; border-bottom: 1px solid #e0dbcd; padding-bottom: 26px; }
.fin-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-decoration: none; border-radius: 8px; outline: none; }
.fin-col:hover, .fin-col:focus-visible { background: #f8f6f0; }
.fin-col.is-selected { background: #eef4ea; }
.fin-stack { width: min(28px, 70%); height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.fin-bar { display: block; width: 100%; min-height: 2px; }
.fin-stack .fin-bar:first-child { border-radius: 4px 4px 0 0; }
.fin-recebido { background: #2f7d4f; }
.fin-aberto { background: #d9a441; }
.fin-month { position: absolute; bottom: -24px; font-size: .75rem; color: #6b7266; }
.fin-month.is-now { color: #22281f; font-weight: 700; }
.fin-tip { position: absolute; bottom: calc(100% - 8px); left: 50%; transform: translate(-50%, 4px); background: #22281f; color: #fff; border-radius: 8px; padding: .5rem .7rem; font-size: .75rem; white-space: nowrap; display: flex; flex-direction: column; gap: .15rem; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 5; }
.fin-tip b { margin-left: .25rem; }
.fin-col:hover .fin-tip, .fin-col:focus-visible .fin-tip { opacity: 1; transform: translate(-50%, 0); }
.fin-col:first-child .fin-tip { left: 0; transform: none; }
.fin-col:last-child .fin-tip { left: auto; right: 0; transform: none; }
.fin-table summary { font-size: .85rem; color: #4a6b3f; cursor: pointer; }

.fin-value { font-weight: 700; font-size: 1rem; color: #22281f; white-space: nowrap; }
.fin-total { display: flex; justify-content: space-between; align-items: center; padding: .9rem .5rem 0; margin-top: .25rem; border-top: 2px solid #ece8dd; color: #6b7266; }
.fin-total strong { font-size: 1.15rem; color: #22281f; }
.method-row + .method-row { margin-top: 1rem; }
.method-row i { color: #4a6b3f; margin-right: .25rem; }
.method-bar { display: block; height: 8px; border-radius: 8px; background: #f0ece2; margin: .35rem 0 .2rem; overflow: hidden; }
.method-bar span { display: block; height: 100%; background: #4a6b3f; border-radius: 8px; }
.info-list-tight { grid-template-columns: 8.5rem 1fr; }

@media (max-width: 575px) {
    .kpi-value.money { font-size: 1.15rem; }
    .fin-chart { height: 200px; padding-left: 0; }
    .fin-grid { left: 0; }
    .fin-grid span { display: none; }
    .fin-bars { gap: 2px; }
    .fin-month { font-size: .62rem; }
}

/* ---------- Usuários, perfil e menu de configurações ---------- */
.avatar { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: #e3efe0; color: #34502b; display: inline-grid; place-items: center; font-weight: 700; font-size: .9rem; }
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; background: rgba(255,255,255,.18); color: #fff; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.profile-head { display: flex; align-items: center; gap: 1rem; }
.role-badge { display: inline-block; font-size: .72rem; font-weight: 600; border-radius: 50px; padding: .15rem .6rem; }
.role-admin { background: #e3efe0; color: #2f6b3f; }
.role-operador { background: #e6eef8; color: #2b5c8a; }
.list-row.is-inactive { opacity: .55; }
.pw-meter { height: 5px; border-radius: 5px; background: #f0ece2; margin-top: .4rem; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.mail-list { list-style: none; padding: 0; margin: 0; }
.mail-list li { display: flex; gap: .7rem; padding: .55rem 0; align-items: flex-start; }
.mail-list li + li { border-top: 1px solid #f0ece2; }
.mail-list i { color: #4a6b3f; font-size: 1.05rem; margin-top: .1rem; }
.mail-list small { display: block; color: #8a9085; }

/* Chip do usuário no menu */
.user-chip { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; padding: .2rem .7rem .2rem .25rem; border-radius: 50px; background: rgba(255,255,255,.08); }
.user-chip:hover { background: rgba(255,255,255,.16); color: #fff; }
.user-chip-text { display: flex; flex-direction: column; line-height: 1.1; }
.user-chip-text strong { font-size: .82rem; }
.user-chip-text small { font-size: .66rem; opacity: .75; }

/* Submenu de Configurações */
.admin-dropdown { border: 0; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.15); padding: .4rem; min-width: 200px; }
.admin-dropdown .dropdown-item { border-radius: 8px; padding: .5rem .75rem; display: flex; gap: .6rem; align-items: center; }
.admin-dropdown .dropdown-item i { color: #4a6b3f; }
.admin-dropdown .dropdown-item.active, .admin-dropdown .dropdown-item:active { background: #4a6b3f; color: #fff; }
.admin-dropdown .dropdown-item.active i, .admin-dropdown .dropdown-item:active i { color: #fff; }
@media (max-width: 991px) {
    .admin-nav .navbar-collapse > .d-flex { flex-wrap: wrap; padding: .5rem 0; }
    .admin-dropdown { box-shadow: none; background: rgba(255,255,255,.06); }
    .admin-dropdown .dropdown-item { color: #fff; }
    .admin-dropdown .dropdown-item i { color: #c9d6c2; }
}

/* ---------- Telas de acesso: login e redefinir senha ---------- */
.admin-main:has(.auth-page) { max-width: none; padding: 0; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fff; }
.auth-hero { position: relative; background-size: cover; background-position: center; color: #fff; }
.auth-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(27,38,24,.55) 0%, rgba(27,38,24,.82) 60%, rgba(27,38,24,.95) 100%); }
.auth-hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem 3rem; gap: 2rem; }
.auth-brand { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.15rem; display: inline-flex; align-items: center; gap: .5rem; }
.auth-brand i { color: #e0b252; }
.auth-brand:hover { color: #fff; }
.auth-hero-text h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 700; line-height: 1.1; margin-bottom: .75rem; }
.auth-hero-text p { font-size: 1.1rem; opacity: .85; max-width: 420px; }
.auth-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-direction: column; gap: .8rem; }
.auth-points li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.auth-points i { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.auth-back { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; }
.auth-back:hover { color: #fff; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: #f8f6f0; }
.auth-box { width: 100%; max-width: 400px; }
.auth-title { font-size: 1.75rem; font-weight: 700; margin-bottom: .35rem; }
.auth-sub { color: #6b7266; margin-bottom: 1.5rem; }
.auth-link { color: #4a6b3f; text-decoration: none; font-weight: 500; }
.auth-link:hover { color: #34502b; text-decoration: underline; }
.auth-icon { width: 56px; height: 56px; border-radius: 16px; background: #e3efe0; color: #34502b; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.25rem; }
.auth-icon-warn { background: #fff3d6; color: #b7791f; }
.auth-form .form-control { padding: .7rem .9rem; border-radius: 10px; border-color: #ddd8cb; background: #fff; }
.auth-form .form-control:focus { border-color: #4a6b3f; box-shadow: 0 0 0 .2rem rgba(74,107,63,.15); }
.auth-form .btn-lg { border-radius: 10px; font-size: 1rem; padding: .8rem; }

/* Campo com ícone à esquerda */
.icon-field { position: relative; }
.icon-field > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #8a9085; pointer-events: none; }
.icon-field .form-control { padding-left: 2.5rem; }

/* Campo de senha com o olho para mostrar/ocultar */
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 2.9rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #6b7266; display: grid; place-items: center; font-size: 1.05rem; }
.pw-toggle:hover { background: #f0ece2; color: #34502b; }

@media (max-width: 991px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-hero-inner { padding: 1.5rem 1.25rem 2rem; gap: 1rem; }
    .auth-hero-text h1 { font-size: 1.7rem; }
    .auth-points, .auth-back { display: none; }
    .auth-form { align-items: flex-start; padding: 2rem 1.25rem 3rem; }
}

/* Barra da plataforma (admin/sitios.php acessado sem o login do painel do sítio) */
.platform-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; background: #34502b; color: #fff; border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1.25rem; }
.platform-bar i { color: #e0b252; margin-right: .3rem; }

/* Super-admin: faixa da plataforma acima do menu e selo dourado */
.platform-strip { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: #1f2d1a; color: #f3e6c4; font-size: .82rem; padding: .35rem 1rem; }
.platform-strip i { color: #e0b252; }
.platform-strip a { color: #f3e6c4; text-decoration: none; border: 1px solid rgba(224, 178, 82, .55); border-radius: 50px; padding: .1rem .7rem; white-space: nowrap; }
.platform-strip a:hover { background: rgba(224, 178, 82, .18); color: #fff; }
.role-super-text { color: #e0b252; opacity: 1 !important; font-weight: 600; }
.role-super { background: #fbf1da; color: #8a6414; }
