/* Painel dos noivos (usa os tokens de site.css) */
.adm { font-size: 17px; min-height: 100vh; }
.adm [hidden] { display: none !important; }
.adm__top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(251, 248, 242, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.adm__brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.adm__brand-txt { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.adm__user { display: flex; align-items: center; gap: 18px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.adm__user .link { display: inline-flex; align-items: center; gap: 6px; }

.adm__login { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 24px; }
.adm__login .card { width: min(440px, 100%); }
.adm__login .title { font-size: 44px; }
.adm__login .link { display: block; margin: 16px auto 0; }
.adm__big-icon { font-size: 54px; color: var(--gold); }

.adm__main { width: min(1240px, 100% - 32px); margin: 0 auto; padding: 40px 0 80px; }
.adm__demo { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; margin-bottom: 28px; background: #F3E9D6; border: 1px solid var(--gold-soft); font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }
.adm__demo i { font-size: 20px; color: var(--gold); flex: none; }
.adm__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.adm__head .title { margin: 0; font-size: clamp(36px, 5vw, 52px); }
.adm__head .kicker { margin-bottom: 10px; }
.adm .btn { min-height: 44px; padding: 0 20px; font-size: 10.5px; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 34px; }
.stat { background: var(--card); border: 1px solid var(--line); padding: 20px 20px 16px; }
.stat__num { display: block; font-family: var(--serif); font-weight: 300; font-size: 46px; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.stat__lbl { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stat__lbl i { font-size: 16px; color: var(--gold); }
.stat--main { background: var(--sage-deep); border-color: var(--sage-deep); }
.stat--main .stat__num { color: var(--paper); }
.stat--main .stat__lbl { color: var(--gold-soft); }
.stat--main .stat__lbl i { color: var(--gold-soft); }

.tabs { scrollbar-width: none; display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs__btn {
  position: relative; background: none; border: 0; padding: 12px 0; cursor: pointer; white-space: nowrap;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.tabs__btn span { color: var(--gold); margin-left: 4px; }
.tabs__btn::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .5s var(--ease); }
.tabs__btn.is-active { color: var(--ink); }
.tabs__btn.is-active::after { transform: scaleX(1); }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .btn { margin-left: auto; }
.toolbar__hint { margin: 0; font-style: italic; color: var(--ink-soft); flex: 1 1 340px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; height: 44px; }
.search i { font-size: 18px; color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: none; font-family: var(--serif); font-size: 18px; color: var(--ink); min-width: 0; }
.seg { display: flex; border: 1px solid var(--line); background: var(--card); }
.seg button { background: none; border: 0; padding: 0 16px; height: 42px; cursor: pointer; font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.seg button.is-active { background: var(--sage-deep); color: var(--paper); }

.table-wrap { background: var(--card); border: 1px solid var(--line); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; font-family: var(--sans); font-weight: 400; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid #F0EADF; vertical-align: top; color: var(--ink-soft); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--ink); font-weight: 500; }
.table td.small { max-width: 260px; white-space: pre-line; }
.table a { color: var(--sage-deep); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; white-space: nowrap; }
.table .empty { text-align: center; font-style: italic; color: var(--muted); padding: 40px; }
.pill { display: inline-block; padding: 3px 10px; font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.pill--sim { color: var(--sage-deep); border-color: #C9D0BF; background: #EEF1E8; }
.pill--nao { color: var(--danger); border-color: #E6C6BC; background: #F7ECE7; }
.del { background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--muted); padding: 4px; transition: color .3s; }
.del:hover { color: var(--danger); }

.adm__notes { columns: 3 280px; column-gap: 16px; }
.adm__notes .note { position: relative; }
.adm__notes .del { position: absolute; top: 12px; right: 12px; }
.adm__notes .empty { font-style: italic; color: var(--muted); text-align: center; padding: 40px; }

@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat--main { grid-column: span 2; } }
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { position: relative; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table td { padding: 3px 0; border: 0; }
  .table td[data-l]::before { content: attr(data-l) ': '; font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .table td.small { max-width: none; }
  .table td:last-child { position: absolute; top: 10px; right: 10px; width: auto; }
  .toolbar .btn { margin-left: 0; width: 100%; }
  .adm__brand-txt { display: none; }
}
