/* ===== s7. — tokens (identidade S7; ver app/S7_IDENTIDADE.md) ===== */
@font-face{font-family:"Manrope";src:url("fonts/manrope-variable.woff2") format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("fonts/ibm-plex-mono-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("fonts/ibm-plex-mono-500.woff2") format("woff2");font-weight:500;font-display:swap}

:root{
  --s7-font:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
  --s7-mono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --s7-radius-sm:8px; --s7-radius:12px; --s7-radius-lg:20px;
  --s7-bg:#F4F5F7; --s7-surface:#FFFFFF; --s7-surface-2:#F6F7F9;
  --s7-border:#E6E8EC; --s7-border-strong:#D5D9E0;
  --s7-text:#10131A; --s7-text-muted:#4A515C;
  --s7-ink:#10131A; --s7-on-ink:#FFFFFF;
  --s7-danger:#B8280E; --s7-success:#137A3D; --s7-warning:#8A5A12;
  /* padrão = events */
  --s7-accent:#FF5A36; --s7-accent-text:#C2361A; --s7-on-accent:#10131A;
  --s7-accent-soft:color-mix(in srgb,var(--s7-accent) 12%,var(--s7-surface));
  --s7-focus:var(--s7-accent-text);
}
[data-theme="dark"]{
  --s7-bg:#0B0D11; --s7-surface:#14171D; --s7-surface-2:#1B1F27;
  --s7-border:#262B33; --s7-border-strong:#3A404B;
  --s7-text:#F4F5F7; --s7-text-muted:#9AA1AD;
  --s7-ink:#F4F5F7; --s7-on-ink:#10131A;
  --s7-danger:#FF7A5C; --s7-success:#3CC574; --s7-warning:#E0A94A;
}
/* módulo ativo: <html data-module="..."> */
[data-module="events"]  {--s7-accent:#FF5A36;--s7-accent-text:#C2361A;--s7-on-accent:#10131A}
[data-module="people"]  {--s7-accent:#E5487F;--s7-accent-text:#B8285E;--s7-on-accent:#10131A}
[data-module="finance"] {--s7-accent:#1FA855;--s7-accent-text:#137A3D;--s7-on-accent:#10131A}
[data-module="assets"]  {--s7-accent:#C98A2B;--s7-accent-text:#8A5A12;--s7-on-accent:#10131A}
[data-module="tasks"]   {--s7-accent:#F0B400;--s7-accent-text:#8A6500;--s7-on-accent:#10131A}
[data-module="connect"] {--s7-accent:#2F6BFF;--s7-accent-text:#2457D6;--s7-on-accent:#FFFFFF}
[data-module="learn"]   {--s7-accent:#00A6B4;--s7-accent-text:#00727C;--s7-on-accent:#10131A}
[data-module="insights"]{--s7-accent:#8B4FDB;--s7-accent-text:#7A3FC7;--s7-on-accent:#FFFFFF}
[data-theme="dark"][data-module="connect"] {--s7-accent-text:#6B93FF}
[data-theme="dark"][data-module="insights"]{--s7-accent-text:#A87BEA}
[data-theme="dark"][data-module]:not([data-module="connect"]):not([data-module="insights"]){--s7-accent-text:var(--s7-accent)}

/* logotipo */
.s7-wordmark{display:inline-flex;align-items:baseline;white-space:nowrap;font-family:var(--s7-font);line-height:.9;color:var(--s7-text);text-decoration:none;font-size:22px}
.s7-wordmark:hover{text-decoration:none}
.s7-wordmark .s7-wm-base{font-weight:800;letter-spacing:-.09em}
.s7-wordmark .s7-wm-dot{font-weight:800;margin-left:.02em;color:var(--s7-text)}
.s7-wordmark.has-module .s7-wm-dot{color:var(--s7-accent)}
.s7-wordmark .s7-wm-mod{font-weight:500;letter-spacing:-.045em;margin-left:.03em}
.s7-wordmark[data-size="sm"]{font-size:18px}
.s7-wordmark[data-size="lg"]{font-size:40px}
.s7-wordmark[data-size="xl"]{font-size:clamp(72px,12vw,168px)}

/* ===== Variáveis do app → tokens s7 ===== */
:root {
  --bg: var(--s7-bg);
  --surface: var(--s7-surface);
  --surface-2: var(--s7-surface-2);
  --border: var(--s7-border);
  --text: var(--s7-text);
  --muted: var(--s7-text-muted);
  --brand: var(--s7-ink);
  --brand-hover: color-mix(in srgb, var(--s7-ink) 82%, var(--s7-bg));
  --brand-soft: var(--s7-accent-soft);
  --on-brand: var(--s7-on-ink);
  --success: var(--s7-success);
  --success-soft: color-mix(in srgb, var(--s7-success) 12%, var(--s7-surface));
  --warning: var(--s7-warning);
  --warning-soft: color-mix(in srgb, var(--s7-warning) 12%, var(--s7-surface));
  --danger: var(--s7-danger);
  --danger-soft: color-mix(in srgb, var(--s7-danger) 10%, var(--s7-surface));
  --info-soft: var(--s7-accent-soft);
  --shadow: none;
  --shadow-lg: 0 12px 32px rgba(16, 19, 26, .18);
  --radius: var(--s7-radius-lg);
  --radius-sm: var(--s7-radius);
  --sidebar-w: 260px;
  --topbar-h: 72px;
  --font: var(--s7-font);
  --mono: var(--s7-mono);
  color-scheme: light;
}
:root[data-theme="dark"] { --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--text); background: var(--bg); min-height: 100vh; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.hide { display: none !important; }

/* ===== App shell ===== */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .65rem; padding: 0 1.25rem; height: var(--topbar-h); font-weight: 700; font-size: 1.15rem; color: var(--text); border-bottom: 1px solid var(--border); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.nav { padding: .5rem 1rem 1rem; display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 1.1rem .85rem .35rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .85rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.nav a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.sidebar-foot { margin-top: auto; padding: .75rem; border-top: 1px solid var(--border); font-size: .85rem; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem; position: sticky; top: 0; z-index: 20; }
.topbar .event-switch { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.topbar .event-switch select { max-width: 280px; }
.content { padding: 1.5rem; max-width: 1280px; width: 100%; margin: 0 auto; }
.menu-btn { display: none; }
.backdrop { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(290px, 84vw); z-index: 40; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 30; }
  .menu-btn { display: inline-flex; }
  .content { padding: 1rem; }
  .topbar { padding: 0 .75rem; }
  .topbar .event-switch label { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== Page header ===== */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head p { color: var(--muted); margin: .2rem 0 0; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem 1.1rem; min-height: 40px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { min-height: 32px; padding: .3rem .6rem; font-size: .875rem; }
.btn.icon-only { padding: 0; width: 40px; }
.btn.sm.icon-only { width: 32px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ===== Cards, stats ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head h2, .card-head h3 { font-weight: 600; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); }
.card-body { padding: 1.1rem; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.stat { padding: 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.stat .label { color: var(--muted); font-size: .85rem; font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.stat .value { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .hint { color: var(--muted); font-size: .82rem; }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field > label, .label-text { font-weight: 600; font-size: .9rem; }
.field .help { color: var(--muted); font-size: .82rem; }
.field .error { color: var(--danger); font-size: .85rem; }
.input, .select, .textarea { width: 100%; min-height: 40px; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--muted) 60%, var(--border)); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; padding-top: .5rem; }
.check { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); }
.search { position: relative; }
.search .icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 2.25rem; }

/* ===== Toolbar / filters ===== */
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); }
.toolbar .search { flex: 1 1 240px; min-width: 0; }
.toolbar .select { width: auto; max-width: 220px; }
.bulkbar { display: none; align-items: center; gap: .75rem; padding: .6rem 1.1rem; background: var(--brand-soft); border-bottom: 1px solid var(--border); }
.bulkbar.show { display: flex; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .85rem; color: var(--text); font-weight: 600; padding: .65rem 1.1rem; background: var(--surface-2); white-space: nowrap; }
.table td { padding: .7rem 1.1rem; border-top: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table th.right, .table td.right { text-align: right; }
.table td.actions { text-align: right; white-space: nowrap; }
.table th.check-col, .table td.check-col { width: 44px; padding-right: 0; }
.table .sub { color: var(--muted); font-size: .85rem; }
@media (max-width: 720px) {
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { border-top: 1px solid var(--border); padding: .6rem 1rem; }
  .table.responsive td { border: 0; padding: .2rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: left; flex: none; }
  .table.responsive td.actions { justify-content: flex-end; padding-top: .5rem; }
  .table.responsive td.actions::before, .table.responsive td.check-col::before { content: none; }
  .table.responsive td.check-col { width: auto; }
}

/* ===== Badges, alerts, empty ===== */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .65rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.info { background: var(--brand-soft); color: var(--brand); }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.alert { display: flex; gap: .65rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--text); border: 1px solid var(--border); }
.alert.danger { background: var(--danger-soft); } .alert.warning { background: var(--warning-soft); } .alert.success { background: var(--success-soft); }
.empty { text-align: center; padding: 3rem 1.25rem; color: var(--muted); }
.empty .icon { width: 2.4rem; height: 2.4rem; color: var(--muted); opacity: .7; margin-bottom: .5rem; }
.empty h3 { color: var(--text); margin-bottom: .25rem; }

/* ===== Pagination ===== */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1.1rem; border-top: 1px solid var(--border); flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.pagination nav { display: flex; gap: .25rem; }
.page-link { min-width: 34px; height: 34px; padding: 0 .55rem; display: inline-grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid transparent; color: var(--text); font-weight: 600; }
.page-link:hover { background: var(--surface-2); text-decoration: none; }
.page-link[aria-current="page"] { background: var(--brand); color: #fff; }
.page-link[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ===== Toasts & dialog ===== */
.toasts { position: fixed; top: 1rem; right: 1rem; z-index: 100; display: flex; flex-direction: column; gap: .5rem; width: min(380px, calc(100vw - 2rem)); }
.toast { display: flex; gap: .65rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: .8rem .9rem; box-shadow: var(--shadow-lg); animation: toast-in .2s ease; }
.toast.success { border-left-color: var(--success); } .toast.error, .toast.danger { border-left-color: var(--danger); } .toast.warning { border-left-color: var(--warning); }
.toast .icon { margin-top: .15rem; }
.toast.success .icon { color: var(--success); } .toast.error .icon, .toast.danger .icon { color: var(--danger); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(460px, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(0,0,0,.5); }
dialog .dialog-body { padding: 1.25rem; }
dialog .dialog-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

/* ===== Guest (login) ===== */
.guest { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; background:
  radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%), radial-gradient(700px 400px at 0% 110%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%), var(--bg); }
.guest-card { width: min(440px, 100%); }
.guest-card > .card { border-radius: 16px; }
.guest-card .brand { padding: 0; height: auto; margin-bottom: 1.25rem; justify-content: center; font-size: 1.25rem; }
.guest-card .card-body { padding: 2rem; }
.guest-card .input { min-height: 48px; border-radius: 12px; }
.guest-card .btn { min-height: 48px; border-radius: 12px; }

/* ===== Error page ===== */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page .code { font-size: 4rem; font-weight: 800; color: var(--brand); letter-spacing: -.04em; line-height: 1; }

/* ===== Print ===== */
@media print { .sidebar, .topbar, .page-actions, .toolbar, .pagination, .toasts, .btn { display: none !important; } .app { display: block; } body { background: #fff; color: #000; } .card { box-shadow: none; } }

/* ===== Estilo WowDash: sidebar, navbar, login dividido ===== */
.app { grid-template-columns: var(--sidebar-w) 1fr; transition: grid-template-columns .2s ease; }
.app.collapsed { grid-template-columns: 84px 1fr; }
.app.collapsed .brand-text, .app.collapsed .nav-title, .app.collapsed .nav a .label-text, .app.collapsed .sidebar-foot .who { display: none; }
.app.collapsed .nav a { justify-content: center; padding: .75rem; }
.app.collapsed .brand { justify-content: center; padding: 0; }
.app.collapsed .sidebar-foot .row { justify-content: center; }
.sidebar { border-right: 1px solid var(--border); }
.nav a .icon { width: 1.3em; height: 1.3em; }
.topbar { border-bottom: 1px solid var(--border); padding: 0 1.5rem; }
.topbar .collapse-btn { display: inline-flex; }
.topbar .menu-btn.round-btn { display: none; }
@media (max-width: 900px) { .topbar .menu-btn.round-btn { display: inline-grid; } }
.topbar .event-switch { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0 .75rem; height: 42px; }
.topbar .event-switch .select { border: 0; background-color: transparent; min-height: 40px; }
.topbar .event-switch .select:focus { outline: 0; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 0; color: var(--text); display: inline-grid; place-items: center; cursor: pointer; }
.round-btn:hover { background: var(--brand-soft); color: var(--brand); }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .25rem .25rem .25rem; border-radius: 99px; color: var(--text); }
.user-chip:hover { text-decoration: none; background: var(--surface-2); }
.user-chip .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.user-chip .who { line-height: 1.2; padding-right: .5rem; }
.user-chip .who small { display: block; color: var(--muted); }
.content { max-width: none; padding: 1.5rem; }
.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.crumbs h1 { font-size: 1.5rem; font-weight: 600; }
.crumbs ol { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; font-weight: 500; color: var(--muted); align-items: center; }
.crumbs ol a { color: var(--text); display: inline-flex; align-items: center; gap: .3rem; }
.footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: auto; }
.page-head > div:first-child h1 { font-weight: 600; }
.card-head { background: transparent; }
.stat .label { font-weight: 500; }
.stat .value { font-weight: 600; }

/* Login dividido (como o Signin do WowDash) */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.auth-art { background: linear-gradient(135deg, #487fff 0%, #4536b6 100%); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem; text-align: center; position: relative; overflow: hidden; }
.auth-art::before, .auth-art::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.auth-art::before { width: 520px; height: 520px; top: -160px; right: -160px; }
.auth-art::after { width: 380px; height: 380px; bottom: -120px; left: -100px; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .mark { width: 96px; height: 96px; border-radius: 28px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 1.5rem; }
.auth-art .mark svg { width: 48px; height: 48px; }
.auth-art h2 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.auth-art p { opacity: .85; max-width: 380px; font-size: 1.05rem; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.5rem; }
.auth-form .inner { width: min(464px, 100%); margin: 0 auto; }
.auth-form h1 { font-size: 1.75rem; font-weight: 600; margin-bottom: .5rem; }
.auth-form .sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }
.auth-form .brand { padding: 0; height: auto; border: 0; margin-bottom: 1.5rem; }
.auth-form .input { min-height: 56px; border-radius: 12px; background: var(--bg); }
.auth-form .icon-field { position: relative; }
.auth-form .icon-field .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); width: 1.3em; height: 1.3em; pointer-events: none; }
.auth-form .icon-field .input { padding-left: 3rem; }
.auth-form .btn.primary { min-height: 56px; border-radius: 12px; font-size: 1rem; width: 100%; margin-top: .5rem; }
.auth-form .field > label { display: none; }
@media (max-width: 900px) { .topbar .collapse-btn { display: none; } .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .app.collapsed { grid-template-columns: 1fr; } }

/* Botões redondos da barra: ícone maior e centralizado */
.round-btn { padding: 0; flex: none; line-height: 0; }
.round-btn .icon { width: 22px; height: 22px; vertical-align: 0; }
.topbar .collapse-btn { display: inline-grid; place-items: center; }
@media (max-width: 900px) {
  .topbar .collapse-btn { display: none; }
  .topbar { gap: .5rem; padding: 0 .75rem; }
  .user-chip .who { display: none; }
  .user-chip { padding: 0; }
  .topbar .event-switch { flex: 1 1 auto; min-width: 0; }
  .topbar .event-switch .select { max-width: none; width: 100%; }
}

/* ===== s7. — componentes ===== */
body { font-family: var(--s7-font); font-weight: 500; background: var(--s7-bg); color: var(--s7-text); }
h1, h2, h3 { letter-spacing: -.02em; }
h1, .page-head h1, .crumbs h1 { font-weight: 800; letter-spacing: -.035em; }
h2, h3 { font-weight: 700; }
a { color: var(--s7-text); }
a:hover { color: var(--s7-accent-text); }
.content a:not([class]), .alert a, .empty a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--s7-focus); outline-offset: 2px; border-radius: 4px; }
.mono, .stat .value, .table td.right, .table th.right, .table td.mono { font-family: var(--s7-mono); font-weight: 500; letter-spacing: 0; }
.stat .value { font-weight: 500; }

.btn { background: var(--s7-surface); border: 1px solid var(--s7-border-strong); border-radius: var(--s7-radius); font-weight: 700; min-height: 44px; color: var(--s7-text); }
.btn:hover { background: var(--s7-surface-2); color: var(--s7-text); }
.btn.primary { background: var(--s7-ink); border-color: var(--s7-ink); color: var(--s7-on-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--s7-ink) 82%, var(--s7-bg)); border-color: transparent; color: var(--s7-on-ink); }
.btn.danger { color: var(--s7-danger); border-color: var(--s7-danger); background: var(--s7-surface); }
.btn.danger:hover { background: var(--danger-soft); color: var(--s7-danger); }
.btn.danger.solid { background: var(--s7-danger); border-color: var(--s7-danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--s7-surface-2); }
.btn.sm { min-height: 34px; border-radius: var(--s7-radius-sm); }
.btn.icon-only { width: 44px; }
.btn.sm.icon-only { width: 34px; }

.card { background: var(--s7-surface); border: 1px solid var(--s7-border); border-radius: var(--s7-radius-lg); box-shadow: none; }
.card-head h2, .card-head h3 { font-weight: 700; }
.input, .select, .textarea { border: 1px solid var(--s7-border-strong); border-radius: var(--s7-radius); background: var(--s7-surface); color: var(--s7-text); min-height: 44px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--s7-focus); outline-offset: 2px; border-color: var(--s7-border-strong); box-shadow: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--s7-ink); }
.table th { background: var(--s7-surface-2); color: var(--s7-text-muted); font-weight: 700; }
.badge { background: var(--s7-surface-2); color: var(--s7-text); }
.badge.info { background: var(--s7-accent-soft); color: var(--s7-accent-text); }
.badge.success { background: var(--success-soft); color: var(--s7-success); }
.badge.warning { background: var(--warning-soft); color: var(--s7-warning); }
.badge.danger { background: var(--danger-soft); color: var(--s7-danger); }
.bar { background: var(--s7-surface-2); }
.bar > span { background: var(--s7-accent); }
.bulkbar { background: var(--s7-accent-soft); }
.page-link[aria-current="page"] { background: var(--s7-ink); color: var(--s7-on-ink); }
.alert { background: var(--s7-surface); border: 1px solid var(--s7-border); color: var(--s7-text); }
.alert .icon { color: var(--s7-text-muted); }
.alert.danger .icon { color: var(--s7-danger); } .alert.success .icon { color: var(--s7-success); } .alert.warning .icon { color: var(--s7-warning); }
.toast { border: 1px solid var(--s7-border); border-left-width: 1px; box-shadow: var(--shadow-lg); }
.toast.success .icon { color: var(--s7-success); } .toast.error .icon, .toast.danger .icon { color: var(--s7-danger); } .toast .icon { color: var(--s7-text-muted); }
.error-page .code { color: var(--s7-text); font-family: var(--s7-mono); }

/* menu lateral: item ativo = texto forte + marcador de 3px na cor do módulo */
.sidebar { background: var(--s7-surface); border-right: 1px solid var(--s7-border); }
.side-brand { display: flex; align-items: center; height: var(--topbar-h); padding: 0 1.25rem; border-bottom: 1px solid var(--s7-border); }
.nav a { color: var(--s7-text-muted); font-weight: 600; position: relative; }
.nav a:hover { background: var(--s7-surface-2); color: var(--s7-text); }
.nav a[aria-current="page"] { background: var(--s7-surface-2); color: var(--s7-text); font-weight: 800; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -1rem; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--s7-accent); }
.nav-title { color: var(--s7-text-muted); }
.app.collapsed .side-brand { justify-content: center; padding: 0; }
.app.collapsed .s7-wm-mod { display: none; }
.app.collapsed .nav a[aria-current="page"]::before { left: -1rem; }

.topbar { background: var(--s7-surface); border-bottom: 1px solid var(--s7-border); }
.topbar .event-switch { background: var(--s7-surface-2); border-color: var(--s7-border); border-radius: var(--s7-radius); }
.round-btn { background: var(--s7-surface-2); color: var(--s7-text); }
.round-btn:hover { background: var(--s7-border); color: var(--s7-text); }
.user-chip { color: var(--s7-text); }
.user-chip:hover { background: var(--s7-surface-2); color: var(--s7-text); }
.user-chip .avatar { background: var(--s7-ink); color: var(--s7-on-ink); font-weight: 800; }
.footer { background: var(--s7-surface); border-top: 1px solid var(--s7-border); }

/* login: painel escuro (sempre ink) + formulário */
.auth { background: var(--s7-surface); }
.auth-art { --s7-text: #F4F5F7; --s7-text-muted: #9AA1AD; background: #10131A; color: #F4F5F7; align-items: stretch; justify-content: space-between; text-align: left; padding: 2.25rem 3rem; background-image: none; }
.auth-art::before, .auth-art::after { display: none; }
.auth-art .s7-wordmark { color: #F4F5F7; }
.auth-art .s7-wordmark .s7-wm-dot { color: var(--s7-accent); }
.auth-art .art-hero { display: flex; flex-direction: column; gap: 2rem; }
.auth-art .art-mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .5rem 3rem; font-family: var(--s7-mono); font-size: .95rem; color: #F4F5F7; }
.auth-art .art-mods i { font-style: normal; }
.auth-art .art-foot { color: #9AA1AD; font-size: .85rem; }
.auth-form h1 { font-weight: 800; letter-spacing: -.035em; }
.auth-form .sub { color: var(--s7-text-muted); }
.auth-form .input { background: var(--s7-surface); border-radius: var(--s7-radius); min-height: 52px; }
.auth-form .btn.primary { background: var(--s7-ink); border-radius: var(--s7-radius); min-height: 52px; }
.auth-form .icon-field .icon { color: var(--s7-text-muted); }
.guest { background: var(--s7-bg); }
.auth-art .art-mods li[data-m] i { color: var(--c); }
.auth-art .art-mods [data-m="events"]{--c:#FF5A36}.auth-art .art-mods [data-m="people"]{--c:#E5487F}.auth-art .art-mods [data-m="finance"]{--c:#1FA855}.auth-art .art-mods [data-m="assets"]{--c:#C98A2B}
.auth-art .art-mods [data-m="tasks"]{--c:#F0B400}.auth-art .art-mods [data-m="connect"]{--c:#2F6BFF}.auth-art .art-mods [data-m="learn"]{--c:#00A6B4}.auth-art .art-mods [data-m="insights"]{--c:#8B4FDB}
.pwa-evento { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.pwa-evento .s7-wordmark { flex: none; }
@media (max-width: 900px) { .auth-art { display: none; } }
.page-head > div:first-child h1, .page-head h1 { font-weight: 800; }
.auth-art .s7-wordmark .s7-wm-dot { color: #F4F5F7; }
.auth-art .s7-wordmark.has-module .s7-wm-dot { color: var(--s7-accent); }
.auth-art .art-hero { align-items: center; text-align: center; }
.auth-art .art-mods { justify-content: center; text-align: left; }

/* ===== s7. — seção 8: padrões comuns das telas ===== */
:root { --sidebar-w: 248px; }
.content { max-width: 1180px; padding: 32px; }
@media (max-width: 900px) { .content { padding: 16px; } }
.eyebrow { font-family: var(--s7-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--s7-text-muted); margin: 0 0 .35rem; }
.nav-title { font-family: var(--s7-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.page-head h1, .page-head > div:first-child h1 { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.page-head p { color: var(--s7-text-muted); }
.breadcrumb { font-size: .85rem; color: var(--s7-text-muted); margin-bottom: .5rem; }
.breadcrumb a { color: var(--s7-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--s7-text); text-decoration: underline; }
.field > label, .label-text { font-size: 14px; font-weight: 700; }

/* listas */
.toolbar { border-bottom: 1px solid var(--s7-border); }
.table th { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--s7-text-muted); }
.table td { border-top: 1px solid var(--s7-border); }
.table tbody tr:hover { background: var(--s7-surface-2); }
.table tbody tr:has(.js-check-row:checked), .table tbody tr.is-selected { background: var(--s7-accent-soft); }
.bulkbar { background: var(--s7-ink); color: var(--s7-on-ink); border-bottom: 0; }
.bulkbar .btn { background: transparent; color: var(--s7-on-ink); border-color: color-mix(in srgb, var(--s7-on-ink) 40%, transparent); }
.bulkbar .btn:hover { background: color-mix(in srgb, var(--s7-on-ink) 14%, transparent); color: var(--s7-on-ink); }
.bulkbar .btn.danger { color: var(--s7-on-ink); }
.row-link { font-weight: 700; color: var(--s7-text); text-decoration: underline; text-underline-offset: 2px; margin-right: .9rem; }
.row-link:hover { color: var(--s7-accent-text); }
.row-del { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--s7-danger); cursor: pointer; }
.row-del:hover { text-decoration: underline; }
.row-del[disabled] { opacity: .4; cursor: not-allowed; text-decoration: none; }
.badge { border: 1px solid var(--s7-border); border-radius: 999px; }
.badge.info { border-color: transparent; }

/* em andamento / ao vivo */
.live { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--s7-accent-text); }
.live::before { content: ""; width: 7px; height: 7px; background: var(--s7-accent); display: inline-block; }
tr.is-live { background: var(--s7-accent-soft); box-shadow: inset 3px 0 0 var(--s7-accent); }
.is-muted-row { color: var(--s7-text-muted); }

/* faixa de números com divisórias */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1rem; overflow: hidden; }
.stats .stat { border-left: 1px solid var(--s7-border); padding: 1.25rem 1.5rem; }
.stats .stat:first-child { border-left: 0; }
.stats.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .stats, .stats.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats .stat:nth-child(odd) { border-left: 0; } .stats .stat:nth-child(n+3) { border-top: 1px solid var(--s7-border); } }
.stat .label { font-size: 13px; }
.stat .value { font-size: 2.2rem; line-height: 1.1; }
.bar > span.is-ink { background: var(--s7-ink); }
.bar > span.is-live { background: var(--s7-accent); }

/* controle segmentado e pílulas */
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--s7-surface-2); border: 1px solid var(--s7-border); border-radius: var(--s7-radius); }
.segmented > a, .segmented > button { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 0; border-radius: calc(var(--s7-radius) - 3px); background: transparent; color: var(--s7-text-muted); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.segmented > [aria-pressed="true"], .segmented > [aria-current="true"], .segmented > .is-on { background: var(--s7-surface); color: var(--s7-text); font-weight: 800; box-shadow: 0 0 0 1px var(--s7-border); }
.segmented .n { font-family: var(--s7-mono); font-weight: 500; }
.pill-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-checks .check { padding: .45rem .9rem; border: 1px solid var(--s7-border-strong); border-radius: 999px; background: var(--s7-surface); font-weight: 600; }
.pill-checks .check:has(input:checked) { border-color: var(--s7-text); font-weight: 800; }
.pill-checks .check input { accent-color: var(--s7-ink); }

/* estados vazios e formulários */
.empty .icon { color: var(--s7-text-muted); }
.form-actions { border-top: 1px solid var(--s7-border); margin-top: 1.25rem; padding-top: 1.25rem; }
.alert.danger { border-color: var(--s7-danger); }
.alert.warning { border-color: var(--s7-warning); }
.dropfile { padding: 1.4rem 1rem; border: 2px dashed var(--s7-border-strong); background: var(--s7-surface-2); cursor: pointer; height: auto; }
.dropfile::file-selector-button { margin-right: 1rem; padding: .5rem 1rem; border: 1px solid var(--s7-border-strong); border-radius: var(--s7-radius-sm); background: var(--s7-surface); color: var(--s7-text); font: inherit; font-weight: 700; cursor: pointer; }

/* eventos (cards empilhados) */
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ev-item { display: flex; align-items: center; gap: 1.5rem; padding: 1.1rem 1.4rem; flex-wrap: wrap; }
.ev-item.is-atual { border: 2px solid var(--s7-text); }
.ev-main { flex: 1 1 240px; min-width: 0; }
.ev-nome { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ev-per { margin: .2rem 0 0; font-size: .9rem; }
.ev-selo { font-family: var(--s7-mono); font-size: .72rem; letter-spacing: .08em; font-weight: 500; }
.ev-num { display: flex; flex-direction: column; align-items: flex-end; min-width: 4.5rem; }
.ev-num .mono { font-size: 1.4rem; }
.ev-num small { color: var(--s7-text-muted); }
.ev-acoes { display: flex; align-items: center; gap: .9rem; }
.ev-acoes .row-link { margin-right: 0; }
/* usuários */
.u-who { display: inline-flex; align-items: center; gap: .65rem; }
.u-av { width: 34px; height: 34px; border-radius: 50%; background: var(--s7-surface-2); border: 1px solid var(--s7-border); display: inline-grid; place-items: center; font-size: .75rem; font-weight: 800; color: var(--s7-text); flex: none; }
/* impressão */
.imp-thumb { height: 74px; border-radius: var(--s7-radius); background: var(--s7-surface-2); border: 1px solid var(--s7-border); display: grid; place-items: center; color: var(--s7-text-muted); margin-bottom: .9rem; }
.imp-thumb svg { height: 52px; width: auto; }
.side-brand { position: sticky; top: 0; z-index: 2; background: var(--s7-surface); }
.table td.actions .btn + .row-link, .table td.actions form + .row-link { margin-left: .9rem; }
.table td.actions .row-link { margin-right: .9rem; }
.content .segmented > a, .content .page-actions a.btn, .content .toolbar a { text-decoration: none; }
.ent-pres { display: flex; align-items: center; gap: .75rem; min-width: 220px; }
.ent-pres .bar { flex: 1; }
.ent-pres .bar > span { background: var(--s7-accent); }
.ent-pres .mono { white-space: nowrap; font-size: .85rem; color: var(--s7-text-muted); }
.tipos-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .tipos-layout { grid-template-columns: 1fr; } .tipos-new { order: -1; } }

/* barra superior: módulos, busca, início do S7 */
.mod-menu { position: relative; }
.mod-menu > summary { list-style: none; cursor: pointer; min-height: 42px; }
.mod-menu > summary::-webkit-details-marker { display: none; }
.mod-menu-list { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; width: 300px; padding: .4rem; background: var(--s7-surface); border: 1px solid var(--s7-border); border-radius: var(--s7-radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; }
.mod-menu-list > * { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .75rem; border-radius: var(--s7-radius-sm); text-decoration: none; color: var(--s7-text); }
.mod-menu-list a:hover { background: var(--s7-surface-2); }
.mod-menu-list a[aria-current="true"] { background: var(--s7-accent-soft); }
.mod-menu-list small { color: var(--s7-text-muted); font-size: .8rem; }
.mod-off { opacity: .55; cursor: default; }
.mod-menu-list .s7-wordmark { font-size: 18px; pointer-events: none; }
.mod-menu-list [data-size="sm"] .s7-wm-dot { color: var(--s7-text); }
.s7-search { position: relative; flex: 0 1 260px; min-width: 0; }
.s7-search .icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--s7-text-muted); pointer-events: none; }
.s7-search .input { padding-left: 2.25rem; background: var(--s7-surface-2); }
.s7-home { display: inline-flex; align-items: center; gap: .3rem; color: var(--s7-text-muted); font-weight: 600; white-space: nowrap; text-decoration: none; }
.s7-home:hover { color: var(--s7-text); text-decoration: underline; }
@media (max-width: 1100px) { .s7-home { display: none; } }
@media (max-width: 900px) { .s7-search, .mod-menu .mod-label { display: none; } }
.side-brand, .nav, .sidebar-foot { flex: none; }
.user-chip .who { white-space: nowrap; }

/* ===== s7. — logos dos módulos (seção 1.1) ===== */
.s7-wordmark[data-module="events"]{--s7-accent:#FF5A36}.s7-wordmark[data-module="people"]{--s7-accent:#E5487F}.s7-wordmark[data-module="finance"]{--s7-accent:#1FA855}.s7-wordmark[data-module="assets"]{--s7-accent:#C98A2B}
.s7-wordmark[data-module="tasks"]{--s7-accent:#F0B400}.s7-wordmark[data-module="connect"]{--s7-accent:#2F6BFF}.s7-wordmark[data-module="learn"]{--s7-accent:#00A6B4}.s7-wordmark[data-module="insights"]{--s7-accent:#8B4FDB}
:root[data-theme="dark"] .s7-wordmark[data-module="connect"] .s7-wm-dot{color:#6B93FF}
:root[data-theme="dark"] .s7-wordmark[data-module="insights"] .s7-wm-dot{color:#A87BEA}
.mod-menu-list [data-size="sm"] .s7-wm-dot { color: var(--s7-accent); }
/* versão sobre a cor do módulo: fundo na cor, letras e ponto conforme a tabela */
.s7-tile{--tile-bg:#F4F5F7;--tile-fg:#10131A;--tile-dot:#10131A;display:flex;align-items:center;justify-content:center;min-height:96px;border-radius:var(--s7-radius);background:var(--tile-bg)}
.s7-tile .s7-wordmark,.s7-tile .s7-wordmark .s7-wm-base,.s7-tile .s7-wordmark .s7-wm-mod{color:var(--tile-fg)}
.s7-tile .s7-wordmark .s7-wm-dot{color:var(--tile-dot)}
.s7-tile[data-module]{--tile-bg:var(--m);--tile-fg:#10131A;--tile-dot:#FFFFFF}
.s7-tile[data-module="events"]{--m:#FF5A36}.s7-tile[data-module="people"]{--m:#E5487F}.s7-tile[data-module="finance"]{--m:#1FA855}.s7-tile[data-module="assets"]{--m:#C98A2B}
.s7-tile[data-module="tasks"]{--m:#F0B400}.s7-tile[data-module="learn"]{--m:#00A6B4}
.s7-tile[data-module="connect"]{--m:#2F6BFF;--tile-fg:#FFFFFF;--tile-dot:#10131A}
.s7-tile[data-module="insights"]{--m:#8B4FDB;--tile-fg:#FFFFFF;--tile-dot:#10131A}

/* menu do usuário (Editar perfil / Sair) */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary > .icon { color: var(--s7-text-muted); margin-right: .25rem; }
.user-menu[open] > summary { background: var(--s7-surface-2); }
.user-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; padding: .35rem; background: var(--s7-surface); border: 1px solid var(--s7-border); border-radius: var(--s7-radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; }
.user-menu-list a, .user-menu-list button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .75rem; border: 0; border-radius: var(--s7-radius-sm); background: none; color: var(--s7-text); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.user-menu-list a:hover, .user-menu-list button:hover { background: var(--s7-surface-2); color: var(--s7-text); }
.user-menu-list form { margin: 0; }
.user-menu-list button { color: var(--s7-danger); }
@media (max-width: 900px) { .user-menu > summary > .icon { display: none; } }
@media (max-width: 700px) { .mod-menu { display: none; } .topbar .event-switch { flex: 1 1 0; min-width: 0; } .topbar .event-switch .select { min-width: 0; width: 100%; } .user-menu-list { right: 0; } }
@media (max-width: 900px) { .app, .app.collapsed { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   s7. — seção 9: componentes (referência única; vence as regras acima)
   ===================================================================== */

/* 9.2 menu lateral */
.sidebar { background: var(--s7-surface); border-right: 1px solid var(--s7-border); padding: 20px 14px; }
@media (min-width: 901px) { .app:not(.collapsed) .sidebar { width: 248px; } .app.collapsed .sidebar { width: 84px; padding: 20px 8px; } }
.s7-side-brand { position: static; height: auto; display: block; padding: 4px 10px 18px; border: 0; background: none; flex: none; }
.nav { padding: 0; }
.nav-title { font-family: var(--s7-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--s7-text-muted); padding: 14px 12px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--s7-text); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--s7-surface-2); color: var(--s7-text); }
.nav a[aria-current="page"] { background: var(--s7-surface-2); font-weight: 700; box-shadow: inset 3px 0 0 var(--s7-accent); color: var(--s7-text); }
.nav a[aria-current="page"]::before { display: none; }
.nav a svg { color: var(--s7-text-muted); } .nav a[aria-current="page"] svg { color: var(--s7-text); }
.sidebar-foot { padding: 12px 0 0; border-top: 1px solid var(--s7-border); margin-top: auto; }

/* 9.3 barra superior */
.topbar { height: auto; min-height: var(--topbar-h); background: var(--s7-surface); border-bottom: 1px solid var(--s7-border); padding: 12px 32px; gap: 12px 16px; flex-wrap: wrap; }
.topbar .event-switch { background: none; border: 0; padding: 0; height: auto; border-radius: 0; }
.event-switch label { font-family: var(--s7-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--s7-text-muted); }
.event-switch .select, .topbar .event-switch .select { font-weight: 700; border: 1px solid var(--s7-border-strong); background-color: var(--s7-surface); min-height: 44px; }
.topbar .btn.icon-only, .round-btn { width: 44px; height: 44px; }
@media (max-width: 900px) { .topbar { padding: 10px 14px; } }

/* 9.4 cabeçalho da página */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; margin: 0; }
.page-head p { color: var(--s7-text-muted); margin: 4px 0 0; }
.s7-crumbs { font-size: 14px; margin: 0 0 4px !important; } .s7-crumbs a { font-weight: 700; color: var(--s7-text); }
.s7-eyebrow { font-family: var(--s7-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--s7-accent-text) !important; margin: 0 !important; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 9.5 botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--s7-radius); border: 1px solid var(--s7-border-strong); background: var(--s7-surface); color: var(--s7-text); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--s7-ink); border-color: var(--s7-ink); color: var(--s7-on-ink); }
.btn.s7-accent { background: var(--s7-accent); border-color: var(--s7-accent); color: var(--s7-on-accent); font-weight: 800; }
.btn.s7-accent:hover { background: var(--s7-accent); color: var(--s7-on-accent); filter: brightness(.95); }
.btn.danger { color: var(--s7-danger); border-color: var(--s7-danger); }
.btn.danger.solid { background: var(--s7-danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--s7-surface-2); }
.btn.sm { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn.icon-only { width: 44px; padding: 0; } .btn.sm.icon-only { width: 34px; }

/* 9.6 card, filtros e tabela */
.card { background: var(--s7-surface); border: 1px solid var(--s7-border); border-radius: var(--s7-radius-lg); box-shadow: none; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 24px 8px; border-bottom: 0; }
.card-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.card-body { padding: 16px 24px 24px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--s7-border); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--s7-text-muted); padding: 12px 18px; border-bottom: 1px solid var(--s7-border); background: transparent; text-transform: none; letter-spacing: 0; }
.table td { padding: 12px 18px; border-top: 0; border-bottom: 1px solid var(--s7-border); }
.table tr:last-child td { border-bottom: 0; }
.table td.right, .table th.right { text-align: right; }
.table tr:has(.js-check-row:checked) { background: var(--s7-accent-soft); }
.table .actions a { font-weight: 700; color: var(--s7-text); }
.table-wrap { overflow-x: auto; }

/* 9.7 barra de seleção em massa (o app.js usa .show) */
.bulkbar { display: none; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 18px; background: var(--s7-ink); color: var(--s7-on-ink); font-size: 14px; }
.bulkbar.show, .bulkbar.is-visible { display: flex; }
.bulkbar a, .bulkbar .btn { color: var(--s7-on-ink); background: transparent; border-color: color-mix(in srgb, var(--s7-on-ink) 35%, transparent); }
.bulkbar .btn.danger { color: #FF9A84; border-color: #FF9A84; }

/* 9.8 paginação */
.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--s7-border); font-size: 14px; color: var(--s7-text-muted); }
.page-link { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--s7-border-strong); border-radius: 10px; font-family: var(--s7-mono); color: var(--s7-text); text-decoration: none; padding: 0 .55rem; }
.page-link[aria-current="page"] { background: var(--s7-ink); border-color: var(--s7-ink); color: var(--s7-on-ink); }
.page-link[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* 9.9 faixa de números */
.s7-statstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--s7-border); border: 1px solid var(--s7-border); border-radius: var(--s7-radius-lg); overflow: hidden; margin-bottom: 20px; }
.s7-statstrip .stat { background: var(--s7-surface); padding: 20px 22px; border: 0 !important; border-radius: 0; display: flex; flex-direction: column; }
.stat .label { font-size: 13px; color: var(--s7-text-muted); }
.stat .value { font-family: var(--s7-mono); font-size: 34px; letter-spacing: -.02em; line-height: 1.2; font-weight: 500; }
.stat .hint { font-size: 13px; color: var(--s7-text-muted); }
.sorteio-counters { margin-bottom: 16px; }

/* 9.10 barra de progresso */
.bar { height: 6px; border-radius: 3px; background: var(--s7-border); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: var(--s7-accent); }
.bar.s7-neutral > span { background: var(--s7-ink); }

/* 9.11 selo ao vivo */
.s7-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--s7-accent-text); }
.s7-live::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--s7-accent); }
.s7-row-live { background: var(--s7-accent-soft); box-shadow: inset 3px 0 0 var(--s7-accent); }

/* 9.12 badges e chips */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--s7-surface-2); border: 1px solid var(--s7-border); color: var(--s7-text); font-size: 13px; font-weight: 600; }
.badge.info { background: var(--s7-accent-soft); border-color: transparent; color: var(--s7-accent-text); font-weight: 700; }
.badge.success { color: var(--s7-success); } .badge.danger { color: var(--s7-danger); } .badge.warning { color: #8A6500; }
:root[data-theme="dark"] .badge.warning { color: #F0B400; }
.s7-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s7-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--s7-border-strong); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; background: var(--s7-surface); }
.s7-chip:has(input:checked) { border-color: var(--s7-text); background: var(--s7-surface-2); font-weight: 700; }
.s7-chip input { accent-color: var(--s7-ink); }

/* 9.13 formulários */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label { font-size: 14px; font-weight: 700; }
.input, .select { min-height: 44px; border: 1px solid var(--s7-border-strong); border-radius: var(--s7-radius); padding: 0 14px; background: var(--s7-surface); color: var(--s7-text); font: inherit; }
.input:focus-visible, .select:focus-visible, .input:focus, .select:focus { outline: 2px solid var(--s7-focus); outline-offset: 2px; }
.field .hint, .field .help { font-size: 13px; color: var(--s7-text-muted); }
.field .error { font-size: 13px; color: var(--s7-danger); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.s7-form-actions { display: flex; gap: 10px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--s7-border); flex-wrap: wrap; }
.input.mono { font-family: var(--s7-mono); }

/* 9.14 controle segmentado */
.s7-seg { display: inline-flex; background: var(--s7-surface-2); border: 1px solid var(--s7-border); border-radius: var(--s7-radius); padding: 3px; }
.s7-seg > * { border: 0; background: transparent; border-radius: 9px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 700; color: var(--s7-text); text-decoration: none; cursor: pointer; }
.s7-seg > [aria-pressed="true"] { background: var(--s7-ink); color: var(--s7-on-ink); }
.s7-seg .mono { font-family: var(--s7-mono); font-weight: 500; }

/* 9.15 alertas e resultado de ação */
.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px 16px; border: 1px solid var(--s7-border); background: var(--s7-surface-2); }
.alert.danger { background: color-mix(in srgb, var(--s7-danger) 8%, var(--s7-surface)); border-color: color-mix(in srgb, var(--s7-danger) 30%, transparent); }
.alert.success { background: color-mix(in srgb, var(--s7-success) 8%, var(--s7-surface)); border-color: color-mix(in srgb, var(--s7-success) 30%, transparent); }
.s7-result { display: flex; align-items: center; gap: 16px; border-radius: 16px; padding: 18px 20px; }
.s7-result.is-ok { background: color-mix(in srgb, var(--s7-success) 10%, var(--s7-surface)); border: 1px solid color-mix(in srgb, var(--s7-success) 35%, transparent); }
.s7-result.is-error, .s7-result.is-err { background: color-mix(in srgb, var(--s7-danger) 10%, var(--s7-surface)); border: 1px solid color-mix(in srgb, var(--s7-danger) 35%, transparent); }
.s7-result strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

/* 9.16 estado vazio */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 24px; }
.empty svg { width: 32px; height: 32px; color: var(--s7-text-muted); }
.empty h3 { font-size: 18px; font-weight: 800; margin: 0; } .empty p { color: var(--s7-text-muted); margin: 0; max-width: 420px; }

/* 9.17 diálogo e toasts */
dialog { border: 1px solid var(--s7-border); border-radius: var(--s7-radius-lg); padding: 0; background: var(--s7-surface); color: var(--s7-text); box-shadow: 0 12px 32px rgba(16, 19, 26, .18); }
dialog::backdrop { background: rgba(11, 13, 17, .5); }
.dialog-body { padding: 24px; } .dialog-body h3 { font-size: 20px; font-weight: 800; margin: 0; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--s7-border); background: transparent; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--s7-ink); color: var(--s7-on-ink); border: 0; border-radius: var(--s7-radius); padding: 12px 14px; font-size: 14px; font-weight: 600; }
.toast .icon { color: var(--s7-on-ink); } .toast.success .icon { color: #3CC574; } .toast.error .icon, .toast.danger .icon { color: #FF7A5C; }
.toast button { color: var(--s7-on-ink); opacity: .7; }

/* 9.18 ícone de módulo */
.s7-appicon { display: inline-flex; align-items: baseline; justify-content: center; width: 44px; height: 44px; padding-top: 10px; box-sizing: border-box; border-radius: 11px; background: #10131A; color: #fff; font-family: var(--s7-font); font-size: 20px; line-height: 1; flex: none; }
.s7-appicon .s7-wm-base { font-weight: 800; letter-spacing: -.09em; } .s7-appicon .s7-wm-dot { font-weight: 800; color: var(--s7-accent); }
.s7-appicon[data-module="events"]{--s7-accent:#FF5A36}.s7-appicon[data-module="people"]{--s7-accent:#E5487F}.s7-appicon[data-module="finance"]{--s7-accent:#1FA855}.s7-appicon[data-module="assets"]{--s7-accent:#C98A2B}
.s7-appicon[data-module="tasks"]{--s7-accent:#F0B400}.s7-appicon[data-module="connect"]{--s7-accent:#2F6BFF}.s7-appicon[data-module="learn"]{--s7-accent:#00A6B4}.s7-appicon[data-module="insights"]{--s7-accent:#8B4FDB}
.mod-menu-list > * { flex-direction: row; align-items: center; gap: 12px; }
.mod-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.content .s7-seg > a, .content .s7-crumbs a { text-decoration: none; }
.content .s7-crumbs a:hover { text-decoration: underline; }
.s7-search { flex: 0 1 280px; }
@media (max-width: 1100px) { .s7-search { flex-basis: 200px; } }
@media (min-width: 901px) {
  .topbar { flex-wrap: nowrap; }
  .topbar .event-switch { min-width: 0; flex: 0 1 auto; }
  .topbar .event-switch .select { min-width: 0; max-width: 260px; }
  .s7-search { flex: 0 1 280px; min-width: 120px; }
}
@media (max-width: 1250px) { .user-chip .who { display: none; } .user-menu > summary > .icon { display: none; } }
@media (max-width: 1100px) { .event-switch label { display: none; } }

/* seletores: seta própria, com respiro até a borda */
.select, select.input {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A515C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
:root[data-theme="dark"] .select, :root[data-theme="dark"] select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239AA1AD' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.select:disabled { opacity: .6; }
.pwa-top .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239AA1AD' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* Rodapé do menu: recolhido, o botão "Página inicial do S7" vira só o ícone de casa (sem achatar). */
.sidebar-foot .side-home { width: 100%; }
.sidebar-foot .side-home .ico-col { display: none; }
@media (min-width: 901px) {
  .app.collapsed .sidebar-foot { display: flex; justify-content: center; }
  .app.collapsed .sidebar-foot .side-home { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .app.collapsed .sidebar-foot .side-home .label-text, .app.collapsed .sidebar-foot .side-home .ico-exp { display: none; }
  .app.collapsed .sidebar-foot .side-home .ico-col { display: inline-flex; }
}

/* ===== s7.vehicles (cor do módulo) ===== */
[data-module="vehicles"]{--s7-accent:#7FA61B;--s7-accent-text:#4F6B0E;--s7-on-accent:#10131A}
[data-theme="dark"][data-module="vehicles"]{--s7-accent-text:#7FA61B}
.auth-art .art-mods [data-m="vehicles"]{--c:#7FA61B}
.s7-wordmark[data-module="vehicles"]{--s7-accent:#7FA61B}
.s7-tile[data-module="vehicles"]{--m:#7FA61B}
.s7-appicon[data-module="vehicles"]{--s7-accent:#7FA61B}

/* ===== s7.live (cor do módulo) ===== */
[data-module="live"]{--s7-accent:#C026D3;--s7-accent-text:#9A1BAA;--s7-on-accent:#FFFFFF}
html[data-theme="dark"][data-module="live"]:not(.x):not(.y){--s7-accent-text:#D86AE6} /* mais específico que a regra geral do tema escuro */
.auth-art .art-mods [data-m="live"]{--c:#C026D3}
.s7-wordmark[data-module="live"]{--s7-accent:#C026D3}
.s7-tile[data-module="live"]{--m:#C026D3}
.s7-appicon[data-module="live"]{--s7-accent:#C026D3}

/* instituição ativa e faixa de acesso da plataforma (modelo de instituições) */
.inst-atual { font-weight: 700; color: var(--s7-text, var(--text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.faixa-plataforma { background: var(--s7-ink, #10131A); color: var(--s7-on-ink, #fff); padding: .55rem 1.5rem; font-size: .9rem; }
@media (max-width: 700px) { .inst-atual { display: none; } }

/* ficha do inscrito */
.kv { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: .4rem 1rem; margin: 0 0 1.25rem; }
.kv dt { color: var(--s7-muted, #6b7280); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: .6rem; } }

/* telas largas (administração das inscrições, inscritos, relatório): usam a largura da tela, com um teto para não esticar demais */
.content, .content.content-wide { max-width: min(100%, 1760px); }

/* editor de texto com formatação (descrições) */
.rte { border: 1px solid var(--s7-border-strong, #cfd4dc); border-radius: 10px; background: var(--s7-surface, #fff); overflow: hidden; }
.rte:focus-within { border-color: var(--s7-accent, #FF5A36); }
.rte-barra { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; padding: .35rem .5rem; border-bottom: 1px solid var(--s7-border, #e6e8ec); background: var(--s7-surface-2, #f7f8fa); }
.rte-bt { min-width: 2.1rem; height: 2.1rem; padding: 0 .4rem; border: 0; border-radius: 6px; background: transparent; color: var(--s7-text, #111); font: inherit; font-weight: 600; cursor: pointer; }
.rte-bt:hover { background: var(--s7-border, #e6e8ec); }
.rte-bt[aria-pressed="true"] { background: var(--s7-border-strong, #cfd4dc); }
.rte-bt:focus-visible { outline: 2px solid var(--s7-accent, #FF5A36); outline-offset: 1px; }
.rte-sep { width: 1px; height: 1.4rem; margin: 0 .35rem; background: var(--s7-border, #e6e8ec); }
.rte-link { display: flex; gap: .4rem; padding: .4rem .5rem; border-bottom: 1px solid var(--s7-border, #e6e8ec); }
.rte-link[hidden] { display: none; }
.rte-link .input { flex: 1; min-width: 0; }
.rte-area { min-height: 11rem; max-height: 28rem; overflow: auto; padding: .75rem .9rem; outline: none; line-height: 1.55; overflow-wrap: anywhere; }
.rte-area h1 { font-size: 1.5rem; margin: .4em 0; } .rte-area h2 { font-size: 1.25rem; margin: .4em 0; } .rte-area h3 { font-size: 1.05rem; margin: .4em 0; }
.rte-area p { margin: 0 0 .7em; } .rte-area ul, .rte-area ol { margin: 0 0 .7em; padding-left: 1.4em; }
.rte-area a { text-decoration: underline; }
.rte-contador { display: block; padding: .3rem .75rem .45rem; text-align: right; font-size: .8rem; color: var(--s7-text-muted, #666); }
.rte-contador.rte-erro { color: var(--s7-danger, #c00); font-weight: 600; }

/* espaçamento dos formulários da administração: campos, caixas de marcação, títulos, textos de ajuda e botões com respiro */
.content .card-body .field { gap: 8px; margin-bottom: 22px; }
.content .card-body .field > label, .content .card-body .field > legend { margin-bottom: 2px; }
.content .card-body .field .help, .content .card-body .field .hint, .content .card-body .field .error { margin-top: 2px; line-height: 1.45; }
.content .card-body > .help, .content .card-body > p.help { margin: 0 0 18px; line-height: 1.5; }
.content .card-body > p { margin-top: 0; margin-bottom: 16px; line-height: 1.55; }
.content .card-body h3, .content .card-body fieldset > legend { margin: 28px 0 12px; font-size: 1.05rem; }
.content .card-body > h3:first-child, .content .card-body > form > h3:first-child, .content .card-body > fieldset:first-child > legend { margin-top: 0; }
.content .card-body fieldset { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.content .card-body .check:not(.pill-checks .check) { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; line-height: 1.45; }
.content .card-body .check input { margin-top: 3px; flex: none; }
.content .card-body .form-grid { gap: 0 20px; }
.content .acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--s7-border, #e6e8ec); }
.content .card-body .acoes:last-child { margin-bottom: 0; }
.content .card > .table-wrap + form.card-body, .content .card > .table-wrap + .card-body { border-top: 1px solid var(--s7-border, #e6e8ec); margin-top: 8px; padding-top: 24px; }
.content .card > form.card-body + form.card-body { border-top: 1px solid var(--s7-border, #e6e8ec); padding-top: 24px; margin-top: 4px; }
.content .card > .card-head + .card-body, .content .card > .card-head + form.card-body { padding-top: 8px; }
.content .card-head { gap: 16px; }
.content .card .card-body .btn + .btn, .content .card .card-body .btn + a.btn { margin-left: 0; }
.content .page-head { margin-bottom: 24px; }
.content section.card, .content article.card { margin-bottom: 20px; }
.content > .card, .content > .alert, .content > div.alert { margin-bottom: 16px; }
.content .alert { line-height: 1.5; }
.content .card-head { padding-bottom: 6px; }
.content .card-body fieldset > legend { font-weight: 700; }
