:root {
  --app-ink: #19232e;
  --app-muted: #566577;
  --app-line: #e7ebef;
  --app-surface: #f5f7fa;
  --app-dark: #13151d;
  --app-cyan: #25f4ee;
  --app-pink: #fe2c55;
  --bs-body-font-family: 'DM Sans', sans-serif;
  --bs-body-color: var(--app-ink);
  --bs-border-color: var(--app-line);
}
* { box-sizing: border-box; }
body.app-page { margin: 0; background: var(--app-surface); font-size: 16px; -webkit-font-smoothing: antialiased; }
.app-page a { text-decoration: none; }
.app-page h1, .app-page h2, .app-page h3, .app-page h4 { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--app-ink); }
.app-page h1 { font-size: clamp(27px, 2.5vw, 36px); letter-spacing: -1.2px; line-height: 1.3; }
.app-page h2 { font-size: 20px; letter-spacing: -.5px; }
.app-page h3 { font-size: 18px; letter-spacing: -.4px; }
.app-page p { line-height: 1.7; }
.app-page button, .app-page a { touch-action: manipulation; }
.app-page :is(button, a, input, select):focus-visible { outline: 3px solid #008983; outline-offset: 4px; }
.app-page .icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.app-page .svg-library { width: 0; height: 0; position: absolute; overflow: hidden; }
.app-shell { min-height: 100vh; }
.app-sidebar { position: fixed; z-index: 1040; top: 0; bottom: 0; left: 0; width: 248px; background: var(--app-dark); color: #b4bac8; display: flex; flex-direction: column; padding: 28px 18px 22px; overflow-y: auto; }
.app-brand { display: flex; align-items: center; justify-content: center; margin: 0 12px 34px; flex-shrink: 0; }
.app-brand img { width: 172px; height: auto; max-width: 100%; background: white; border-radius: 8px; padding: 7px 9px; box-sizing: content-box; }
.app-sidebar .app-eyebrow { color: #7f879a; font-size: 11px; letter-spacing: 1.8px; margin: 0 15px 13px; }
.app-nav { display: flex; flex-direction: column; gap: 7px; }
.app-nav-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 15px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #b4bac8; font-size: 14px; font-weight: 500; text-align: left; transition: color .18s, background .18s; }
.app-nav-link:hover { color: white; background: #ffffff08; }
.app-nav-link.active { color: var(--app-cyan); background: #25f4ee0d; border-color: #25f4ee15; box-shadow: inset 3px 0 var(--app-cyan); }
.app-nav-link .icon, .app-nav-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.app-nav-link .badge, .app-nav-link .app-nav-count { margin-left: auto; font-size: 11px; background: #ffffff0a; color: inherit; padding: 3px 7px; border-radius: 5px; }
.app-sidebar-bottom { margin-top: auto; padding-top: 34px; }
.app-sidebar-bottom p { font-size: 12px; color: #929aac; }
.app-sidebar-bottom .app-nav-link { font-size: 13px; }
.app-sidebar .app-demo-note { border-color: #ffffff15; color: #adb6c7; background: #ffffff05; padding: 13px; font-size: 12px; margin: 20px 5px 0; }
.app-workspace { margin-left: 248px; min-width: 0; }
.app-topbar { min-height: 82px; border-bottom: 1px solid var(--app-line); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 36px; background: #ffffffed; }
.app-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 13px; color: var(--app-muted); }
.app-breadcrumb a { color: var(--app-muted); }
.app-breadcrumb strong, .app-breadcrumb b { font-weight: 600; color: #344050; }
.app-topbar-actions { display: flex; align-items: center; gap: 17px; margin-left: auto; min-width: 0; }
.app-avatar { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; flex-shrink: 0; border-radius: 12px; color: #007571; background: #dff8f5; font-size: 13px; font-weight: 700; }
.app-avatar.pink { color: #b51a3a; background: #ffedf0; }
.app-main { padding: 32px 36px 36px; max-width: 1780px; margin: 0 auto; min-width: 0; }
.app-page-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.app-page-heading h1 { margin-bottom: 8px; }
.app-eyebrow { display: block; font-size: 11px; letter-spacing: 1.8px; font-weight: 700; color: #006f6b; margin-bottom: 10px; }
.app-subtitle { color: var(--app-muted); font-size: 14px; margin: 0; }
.app-card { border: 1px solid var(--app-line); border-radius: 14px; background: #fff; min-width: 0; box-shadow: 0 3px 10px #102c4202; }
.app-card-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding: 22px 24px; }
.app-card-header h2, .app-card-header h3 { margin: 0; }
.app-card-header p { font-size: 13px; color: var(--app-muted); margin: 6px 0 0; }
.app-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.app-metric { position: relative; padding: 23px; border: 1px solid var(--app-line); border-radius: 13px; background: #fff; min-width: 0; }
.app-metric h3 { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--app-muted); letter-spacing: 0; }
.app-metric strong, .app-metric .app-metric-value { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 34px; letter-spacing: -1.1px; }
.app-metric small { color: var(--app-muted); font-size: 12px; }
.app-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; color: #526171; background: #f0f3f7; font-size: 12px; line-height: 1.4; font-weight: 550; white-space: nowrap; }
.app-badge.cyan { color: #007470; background: #e0f9f6; }
.app-badge.pink { color: #bf2041; background: #ffedf1; }
.app-badge.green { color: #247654; background: #e8f6ee; }
.app-badge.amber { color: #946210; background: #fff4df; }
.app-demo-note { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #566577; background: #edf1f6; border: 1px solid #e4eaf1; border-radius: 9px; padding: 11px 15px; }
.app-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 11px 16px; font-size: 14px; font-weight: 600; }
.app-page .btn-primary { --bs-btn-bg: #191c25; --bs-btn-border-color: #191c25; --bs-btn-hover-bg: #303644; --bs-btn-hover-border-color: #303644; --bs-btn-active-bg: #191c25; --bs-btn-active-border-color: #191c25; box-shadow: 3px 3px 0 #25f4ee55; }
.app-page .btn-outline-primary { --bs-btn-color: #087b76; --bs-btn-border-color: #b4dedb; --bs-btn-hover-bg: #e4faf7; --bs-btn-hover-color: #006761; --bs-btn-hover-border-color: #6dc3bd; --bs-btn-active-bg: #d4f4ef; --bs-btn-active-color: #006761; }
.app-page .btn-outline-secondary { --bs-btn-color: #596779; --bs-btn-border-color: #dfe5ec; --bs-btn-hover-bg: #f2f5f8; --bs-btn-hover-color: #253446; --bs-btn-hover-border-color: #d5dfe9; }
.app-page .btn-sm { padding: 7px 11px; font-size: 13px; }
.app-page .form-control, .app-page .form-select { border-color: #e0e6ed; border-radius: 8px; font-size: 14px; min-height: 42px; }
.app-page .form-control:focus, .app-page .form-select:focus { border-color: #64c6bf; box-shadow: 0 0 0 3px #25f4ee18; }
.app-page .form-label { font-size: 14px; font-weight: 600; }
.app-page .table { --bs-table-color: #435165; --bs-table-border-color: #edf0f4; margin-bottom: 0; font-size: 14px; }
.app-page .table > :not(caption) > * > * { padding: 16px 20px; vertical-align: middle; }
.app-page .table thead th { background: #fafbfd; color: #626e7f; font-size: 13px; font-weight: 600; border-block: 1px solid #edf0f4; white-space: nowrap; }
.app-page .table tbody tr:last-child td { border-bottom: 0; }
.app-page .table-responsive { border-radius: 0 0 14px 14px; }
.app-page .modal-content { border: 0; border-radius: 16px; box-shadow: 0 25px 80px #17233424; }
.app-page .modal-header, .app-page .modal-body, .app-page .modal-footer { padding: 23px 26px; }
.app-page .modal-title { font-size: 23px; letter-spacing: -.6px; }
.app-page .modal-body { color: #5f6e80; font-size: 15px; }
.app-page [hidden] { display: none !important; }
.app-skip-link { position: fixed; top: -100px; left: 16px; z-index: 2000; background: white; color: #143b3a; padding: 14px 20px; border: 2px solid #087b76; border-radius: 8px; font-weight: 600; }
.app-skip-link:focus { top: 12px; }
.app-main:focus, .app-main h1:focus, .app-page .modal-title:focus { outline: none; }
.app-page .btn, .app-page :is(.admin-detail-button, .painel-row-button, .admin-text-button) { min-height: 44px; }
.app-page :is(.admin-detail-button, .painel-row-button) { min-width: 44px; }
.app-page .modal .btn-close { min-width: 44px; min-height: 44px; padding: 8px; background-position: center; }
.app-page .table-responsive { position: relative; }
.app-menu-toggle, .app-sidebar-close, .app-menu-backdrop { display: none; }
.app-menu-toggle, .app-sidebar-close { border: 0; border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; flex-shrink: 0; font-size: 24px; line-height: 1; }
.app-menu-toggle { color: #354458; background: #f1f4f8; }
.app-sidebar-close { color: white; background: #ffffff12; }
@media (min-width: 1600px) { .app-main { padding: 38px 44px; } .app-topbar { padding-inline: 44px; } }
@media (max-width: 1199.98px) { .app-main { padding: 27px 24px; } .app-topbar { padding-inline: 24px; } .app-metric-grid { gap: 13px; } .app-metric { padding: 19px; } .app-metric strong, .app-metric .app-metric-value { font-size: 29px; } }
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); transition: transform 220ms ease; width: 268px; }
  .app-workspace { margin-left: 0; }
  .app-menu-toggle, .app-sidebar-close { display: inline-flex; }
  .app-sidebar-close { align-self: flex-end; margin: -10px -2px 15px 0; }
  .app-sidebar .app-brand { margin-bottom: 28px; }
  .app-menu-open .app-sidebar { transform: translateX(0); }
  .app-menu-open { overflow: hidden; }
  .app-menu-backdrop { position: fixed; inset: 0; z-index: 1039; background: #10182480; border: 0; backdrop-filter: blur(3px); }
  .app-menu-open .app-menu-backdrop { display: block; }
  .app-topbar { min-height: 76px; gap: 13px; }
  .app-topbar-actions { gap: 10px; }
}
@media (max-width: 575.98px) {
  .app-main { padding: 23px 16px; }
  .app-topbar { padding: 13px 16px; gap: 10px; }
  .app-breadcrumb { font-size: 12px; gap: 5px; }
  .app-topbar-actions { gap: 8px; }
  .app-topbar-actions .app-avatar { width: 34px; height: 34px; border-radius: 10px; }
  .app-page-heading { gap: 17px; margin-bottom: 23px; }
  .app-page h1 { font-size: 28px; }
  .app-page h2 { font-size: 18px; }
  .app-subtitle { font-size: 14px; }
  .app-eyebrow { font-size: 10px; }
  .app-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .app-metric { padding: 17px 14px; border-radius: 11px; }
  .app-metric h3 { font-size: 12px; line-height: 1.6; }
  .app-metric strong, .app-metric .app-metric-value { font-size: 27px; }
  .app-metric small { font-size: 12px; }
  .app-card-header { padding: 20px 17px; }
  .app-page .btn { padding: 10px 13px; font-size: 13px; }
  .app-page .table > :not(caption) > * > * { padding: 14px 16px; }
  .app-page .modal-header, .app-page .modal-body, .app-page .modal-footer { padding: 20px; }
  .app-page .modal-title { font-size: 21px; }
  .app-demo-note { align-items: flex-start; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) { .app-page *, .app-page *::before, .app-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
