:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --text: #142b49;
  --muted: #65758a;
  --quiet: #8190a3;
  --line: #e5eaf0;
  --accent: #098c72;
  --accent-hover: #08745f;
  --accent-soft: #e9f5ef;
  --accent-line: #cfe5db;
  --blue: #0e2858;
  --blue-soft: #edf2fa;
  --danger: #b64248;
  --danger-soft: #fceded;
  --warning: #9a681a;
  --warning-soft: #fff6e7;
  --focus: #89c7b6;
  --hero: #edf6f1;
  --hero-end: #f5f9f7;
  --dot: #d0e4da;
  --shadow: 0 8px 24px rgb(18 43 73 / 4%);
  --shadow-raised: 0 14px 36px rgb(18 43 73 / 8%);
  --button-shadow: 0 3px 6px rgb(9 140 114 / 10%);
  --overlay: rgb(14 40 88 / 42%);
  --radius: 16px;
  --sidebar: 260px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); }
::selection { background: var(--accent-line); color: var(--blue); }
.icon { display: inline-block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 20px; border-radius: 8px; background: var(--blue); color: var(--surface); z-index: 1000; }
.skip-link:focus { top: 15px; }
.sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); padding: 29px 20px 20px; background: var(--surface); border-right: 1px solid var(--line); z-index: 10; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--blue); font-size: 25px; font-weight: 750; letter-spacing: -1.2px; }
.brand-logo { display: block; width: 50px; height: 50px; object-fit: contain; flex: none; }
.brand small { display: block; margin-top: -2px; color: var(--accent); font-size: 8px; font-weight: 700; letter-spacing: 1.9px; }
.workspace-label { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 29px 0 30px; border: 1px solid var(--line); border-radius: 11px; font-size: 11px; font-weight: 650; }
.workspace-label small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 2px; }
.workspace-label > .icon { width: 13px; margin-left: auto; color: var(--quiet); }
.workspace-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.workspace-icon .icon { width: 18px; }
.nav-label { margin: 0 14px 12px; color: var(--quiet); font-size: 9px; font-weight: 650; letter-spacing: 1.7px; }
nav { display: grid; gap: 6px; }
nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 12px 14px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 550; transition: background .15s, color .15s; }
nav a:hover { background: var(--surface-soft); color: var(--blue); }
nav a.active { background: var(--accent-soft); color: var(--accent-hover); font-weight: 650; }
nav a.active::after { content: ""; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--accent); }
.sidebar-note { margin-top: auto; padding: 22px 15px 24px; color: var(--muted); }
.sidebar-note > .icon { color: var(--accent); width: 24px; height: 24px; margin-bottom: 10px; }
.sidebar-note strong { display: block; color: var(--text); font-size: 11px; font-weight: 650; }
.sidebar-note p { font-size: 10px; line-height: 1.8; margin: 5px 0 0; }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; padding: 19px 5px 0; border-top: 1px solid var(--line); }
.avatar, .header-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; }
.operator { flex: 1; min-width: 0; }
.operator strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; font-weight: 650; }
.operator small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.logout { display: grid; place-items: center; min-width: 32px; min-height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.logout:hover { color: var(--danger); background: var(--danger-soft); }
.logout .icon { width: 17px; }
.app { display: flex; flex-direction: column; margin-left: var(--sidebar); min-height: 100svh; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 38px; border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumb { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 11px; }
.breadcrumb > .icon { width: 12px; height: 12px; color: var(--quiet); }
.breadcrumb strong { color: var(--text); font-weight: 550; }
.topbar-right { display: flex; align-items: center; gap: 21px; }
.secure-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.secure-label .icon { width: 15px; height: 15px; color: var(--accent); }
.header-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; }
main { width: 100%; max-width: 1660px; margin: 0 auto; padding: 34px 38px 24px; flex: 1; min-width: 0; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 9px; letter-spacing: 2px; font-weight: 750; }
h1 { margin: 0 0 10px; font-size: clamp(26px, 2.2vw, 35px); font-weight: 650; letter-spacing: -1.3px; line-height: 1.23; text-wrap: balance; }
h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.4px; }
h3 { margin: 0; font-size: 13px; font-weight: 650; }
.muted { margin: 5px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-heading > div { min-width: 0; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 10px; white-space: nowrap; }
.date-chip .icon { width: 15px; height: 15px; }
.overview-hero { position: relative; overflow: hidden; padding: 30px 32px; border: 1px solid var(--accent-line); border-radius: 19px; background: linear-gradient(110deg, var(--hero), var(--hero-end)); }
.overview-hero::after { content: ""; position: absolute; width: 135px; height: 135px; right: 8px; bottom: -58px; background-image: radial-gradient(var(--dot) 1.5px, transparent 1.5px); background-size: 12px 12px; pointer-events: none; }
.overview-hero h1 { max-width: 620px; }
.overview-hero .muted { max-width: 570px; }
.overview-hero .date-chip { align-self: flex-start; position: relative; z-index: 1; background: var(--surface); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 27px; }
.metric { position: relative; display: block; padding: 22px 23px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s; }
.metric:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-raised); }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 550; margin-bottom: 13px; }
.metric-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); flex: none; }
.metric-icon .icon { width: 18px; height: 18px; }
.metric:nth-child(2) .metric-icon { background: var(--accent-soft); color: var(--accent); }
.metric:nth-child(3) .metric-icon { background: var(--warning-soft); color: var(--warning); }
.metric:nth-child(4) .metric-icon { background: var(--blue-soft); color: var(--blue); }
.metric-value { display: block; color: var(--text); font-size: 36px; line-height: 1.05; font-weight: 650; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.metric .accent { color: var(--accent); }
.metric .warning-text { color: var(--warning); }
.metric small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 13px; min-height: 30px; }
.metric-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 9px; }
.metric-foot .icon { width: 14px; height: 14px; color: var(--accent); }
.columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 22px; margin-bottom: 22px; }
.columns > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow); }
.columns .panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 24px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 14px; letter-spacing: -.2px; }
.panel-head p { font-size: 10px; margin: 5px 0 0; line-height: 1.7; }
.panel-body { padding: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 11px; font-weight: 650; white-space: nowrap; }
.text-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 6px; color: var(--muted); background: var(--bg); font-size: 10px; font-weight: 600; white-space: nowrap; }
.badge.good { color: var(--accent-hover); background: var(--accent-soft); }
.badge.warn { color: var(--warning); background: var(--warning-soft); }
.badge.bad { color: var(--danger); background: var(--danger-soft); }
.badge.info { color: var(--blue); background: var(--blue-soft); }
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.empty { padding: 50px 24px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 49px; height: 49px; margin: 0 auto 16px; border: 1px solid var(--accent-line); border-radius: 15px; background: var(--accent-soft); color: var(--accent); }
.empty-icon .icon { width: 22px; height: 22px; }
.empty h3 { margin-bottom: 7px; }
.empty p { max-width: 330px; margin: 0 auto; font-size: 11px; }
.table-wrap { width: 100%; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 13px 23px; background: var(--surface-soft); color: var(--quiet); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .7px; white-space: nowrap; }
td { border-top: 1px solid var(--line); padding: 18px 23px; font-size: 12px; color: var(--muted); vertical-align: middle; }
tbody tr:hover { background: var(--surface-soft); }
td:last-child { text-align: right; }
.person { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.person > div { min-width: 0; }
.person .avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 11px; }
.person strong { display: block; color: var(--text); font-size: 11px; font-weight: 650; }
.person small { display: block; max-width: 240px; margin-top: 3px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.quick-action { display: flex; align-items: center; gap: 13px; padding: 23px 24px; border-bottom: 1px solid var(--line); transition: background .15s; }
.quick-action:last-child { border-bottom: 0; }
.quick-action:hover { background: var(--surface-soft); }
.quick-action > span { display: grid; place-items: center; width: 39px; height: 39px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.quick-action strong { display: block; font-size: 12px; font-weight: 600; }
.quick-action small { display: block; color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 3px; }
.quick-action > .icon { width: 17px; height: 17px; color: var(--quiet); margin-left: auto; }
.help-card { display: flex; align-items: center; gap: 17px; padding: 23px 25px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--hero); }
.help-card strong { font-size: 12px; font-weight: 650; }
.help-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.help-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; background: var(--surface); color: var(--accent); border-radius: 12px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.search { flex: 1; min-width: 200px; }
.search input { padding-left: 42px; }
.search > .icon { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--quiet); width: 17px; pointer-events: none; }
.toolbar .search { position: relative; }
.toolbar input, .toolbar select { margin: 0; font-size: 11px; min-height: 42px; }
.toolbar > select { width: auto; min-width: 180px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination > div { display: flex; gap: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 11px; font-weight: 650; transition: background .15s, border-color .15s, transform .15s; }
.button .icon { width: 16px; height: 16px; }
.button:hover:not(:disabled) { background: var(--surface-soft); border-color: var(--accent-line); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--surface); box-shadow: var(--button-shadow); }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); }
.button:active:not(:disabled) { transform: translateY(1px); }
.full { width: 100%; }
label { display: block; margin-bottom: 19px; color: var(--text); font-size: 12px; font-weight: 550; }
input, select, textarea { display: block; width: 100%; min-height: 43px; margin-top: 8px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 12px; }
input::placeholder, textarea::placeholder { color: var(--quiet); opacity: 1; }
textarea { min-height: 113px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 38px 22px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 10px; }
.footer-brand { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 650; }
.footer-brand img { width: 24px; height: 24px; }
.back-link { display: inline-flex; align-items: center; color: var(--muted); font-size: 11px; margin-bottom: 23px; }
.back-link:hover { color: var(--accent); }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .avatar { width: 53px; height: 53px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-size: 19px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 25px; margin-top: 26px; }
.detail-grid > div { min-width: 0; }
.detail-grid small { display: block; color: var(--quiet); font-size: 9px; letter-spacing: .7px; text-transform: uppercase; margin-bottom: 7px; }
.detail-grid strong { color: var(--text); font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.action-stack { display: grid; gap: 12px; }
.action-stack > .muted { margin: 0 0 6px; }
.action-stack > .button { min-height: 44px; }
.ticket-event { padding: 20px 0; border-bottom: 1px solid var(--line); }
.ticket-event:first-child { padding-top: 0; }
.ticket-event:last-child { border: 0; padding-bottom: 0; }
.ticket-event p, .ticket-description { font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.ticket-event small { color: var(--quiet); font-size: 10px; }
.status-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notice { padding: 13px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-hover); font-size: 12px; }
.notice.error { background: var(--danger-soft); color: var(--danger); }
dialog { width: min(490px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 30px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow-raised); color: var(--text); }
dialog::backdrop { background: var(--overlay); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.dialog-icon, .login-lock { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
dialog h2 { font-size: 23px; line-height: 1.3; margin: 5px 0 10px; letter-spacing: -.7px; }
dialog .muted { margin-bottom: 25px; }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: var(--bg); color: var(--muted); font-size: 23px; }
.dialog-actions { margin-top: 23px; }
.dialog-actions .button { width: 100%; min-height: 45px; }
.toast { position: fixed; bottom: 25px; right: 30px; z-index: 100; max-width: 430px; padding: 17px 23px; border-radius: 12px; background: var(--blue); color: var(--surface); box-shadow: var(--shadow-raised); font-size: 12px; }
.loading { margin: 40px 0; }
.mobile-exit { display: none; }
/* Acesso: identidade de marca e formulário sem dependências externas. */
.login-body { background: var(--surface); }
.login-shell { display: grid; grid-template-columns: 1.06fr 1fr; max-width: 1920px; padding: 0; min-height: 100svh; margin: 0 auto; }
.login-story { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: 44px clamp(32px, 4.7vw, 84px) 26px; overflow: hidden; background: var(--hero); border-right: 1px solid var(--accent-line); }
.login-story::after { position: absolute; content: ""; width: 230px; height: 210px; right: -100px; top: 100px; background-image: radial-gradient(var(--dot) 1.5px, transparent 1.5px); background-size: 13px 13px; pointer-events: none; }
.login-story > .brand { align-self: flex-start; position: relative; z-index: 1; }
.login-story-content { max-width: 510px; margin: auto 0; padding: 62px 0 47px; position: relative; z-index: 1; }
.login-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 23px; color: var(--accent-hover); font-size: 9px; letter-spacing: 1.8px; font-weight: 700; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-line); }
.login-story h2 { font-size: clamp(30px, 3.2vw, 49px); line-height: 1.16; font-weight: 650; letter-spacing: -1.9px; margin-bottom: 20px; }
.login-story h2 span { color: var(--accent); }
.login-story-content > p { margin: 0 0 32px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.login-features { padding: 4px 20px; border: 1px solid var(--accent-line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.login-features > div { display: flex; align-items: center; gap: 13px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.login-features > div:last-child { border: 0; }
.login-features > div > span { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.login-features h3 { font-size: 11px; font-weight: 650; }
.login-features p { font-size: 10px; color: var(--muted); margin: 3px 0 0; }
.login-features > div > .icon { margin-left: auto; width: 16px; height: 16px; color: var(--accent); }
.login-story-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 15px; border-top: 1px solid var(--accent-line); }
.wordmark { display: block; position: relative; width: 113px; height: 39px; flex: none; overflow: hidden; }
.wordmark img { position: absolute; width: 120px; height: 120px; top: -42px; left: -3px; }
.login-story-foot > span:last-child { font-size: 9px; line-height: 1.7; color: var(--muted); text-align: right; }
.login-entry { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 60px 40px 24px; }
.login-card { width: 100%; max-width: 365px; margin: auto 0; padding: 30px 0; }
.login-lock { width: 48px; height: 48px; margin-bottom: 28px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--blue); }
.login-card h1 { font-size: 34px; line-height: 1.18; letter-spacing: -1.2px; margin: 11px 0 15px; }
.login-card > .muted { margin-bottom: 29px; font-size: 12px; }
.login-card label { font-size: 11px; }
.login-card input { min-height: 47px; font-size: 12px; padding-left: 42px; }
.input-icon { position: relative; margin-top: 8px; }
.input-icon > .icon { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--quiet); width: 16px; height: 16px; pointer-events: none; }
.input-icon input { margin-top: 0; }
.login-card form { margin-top: 26px; }
.login-card form .button { justify-content: space-between; margin-top: 6px; min-height: 48px; padding: 13px 18px; font-size: 12px; }
.login-foot { display: flex; align-items: flex-start; gap: 9px; padding-top: 22px; margin-top: 27px; border-top: 1px solid var(--line); color: var(--quiet); }
.login-foot > .icon { width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }
.login-foot p { font-size: 10px; line-height: 1.8; margin: 0; }
.login-copyright { color: var(--quiet); font-size: 10px; margin-top: 45px; text-align: center; }
@media (min-width: 1600px) { main { padding-top: 44px; } }
@media (max-height: 780px) and (min-width: 901px) {
  .sidebar { padding-top: 22px; }
  .workspace-label { margin: 22px 0; }
  .sidebar-note { padding-top: 22px; padding-bottom: 18px; }
  .login-story { padding-top: 25px; }
  .login-story-content { padding: 35px 0; }
  .login-story h2 { font-size: 36px; }
  .login-story-content > p { margin-bottom: 23px; }
  .login-features > div { padding: 14px 0; }
}
@media (max-width: 1200px) {
  :root { --sidebar: 235px; }
  .sidebar { padding-inline: 16px; }
  .brand { font-size: 23px; }
  .brand small { letter-spacing: 1.3px; }
  .workspace-label { gap: 8px; padding: 10px; }
  .topbar { padding-inline: 27px; }
  main { padding: 28px 27px 20px; }
  .overview-hero { padding: 27px; }
  .overview-hero .date-chip { display: none; }
  .metric { padding: 19px 18px 15px; }
  .metric-label { font-size: 10px; gap: 6px; }
  .metrics { gap: 13px; }
  .columns { grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); gap: 18px; }
  th, td { padding-inline: 18px; }
  .panel-head, .panel-body { padding: 20px; }
  .quick-action { padding: 22px 20px; gap: 10px; }
  .quick-action small { font-size: 9px; }
  .app-footer { margin-inline: 27px; }
}
@media (max-width: 1050px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .columns { grid-template-columns: 1fr; }
  .metric-label { align-items: flex-start; flex-direction: column-reverse; gap: 12px; }
  .metric small { min-height: 42px; }
  .metric-value { font-size: 32px; }
  .quick-action small { font-size: 11px; }
  .page-heading { align-items: flex-start; }
  .page-heading > .date-chip { display: none; }
  .login-story { padding-inline: 30px; }
  .login-entry { padding-inline: 34px; }
  .login-story h2 { font-size: 34px; }
  .login-story-content > p { font-size: 12px; }
}
@media (max-width: 760px) {
  .sidebar { position: sticky; top: 0; width: auto; padding: 13px 17px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { font-size: 22px; }
  .sidebar .brand-logo { width: 40px; height: 40px; }
  .sidebar .brand small { font-size: 7px; letter-spacing: 1.5px; }
  .workspace-label, .nav-label, .sidebar-bottom, .sidebar-note { display: none; }
  nav { display: flex; gap: 2px; margin-top: 13px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
  nav a { flex: none; min-height: 39px; padding: 10px; font-size: 10px; gap: 7px; white-space: nowrap; }
  nav a .icon { width: 16px; height: 16px; }
  nav a.active::after { display: none; }
  .app { margin-left: 0; min-height: calc(100svh - 115px); }
  .topbar { min-height: 54px; padding: 8px 19px; }
  .breadcrumb { gap: 10px; font-size: 10px; }
  .topbar-right { display: none; }
  .mobile-exit { display: block; }
  .mobile-exit .button { min-height: 34px; padding: 6px 10px; font-size: 10px; }
  .mobile-exit .icon { width: 13px; height: 13px; }
  main { padding: 23px 17px 18px; }
  .page-heading { gap: 15px; margin-bottom: 23px; }
  .page-heading h1 { font-size: 27px; letter-spacing: -1px; }
  .page-heading > .button { min-width: 100px; font-size: 10px; }
  .overview-hero { padding: 24px 21px; border-radius: 15px; }
  .overview-hero h1 { font-size: 27px; max-width: 300px; }
  .overview-hero .muted { font-size: 11px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 21px; }
  .metric { padding: 16px 16px 12px; }
  .metric-label { gap: 9px; margin-bottom: 11px; font-size: 10px; }
  .metric-icon { width: 30px; height: 30px; border-radius: 9px; }
  .metric-icon .icon { width: 16px; height: 16px; }
  .metric-value { font-size: 32px; }
  .metric small { min-height: 30px; font-size: 9px; }
  .metric-foot { font-size: 8px; margin-top: 10px; padding-top: 10px; }
  .columns { gap: 17px; margin-bottom: 17px; }
  .panel { margin-bottom: 17px; border-radius: 14px; }
  .panel-head, .panel-body { padding: 20px; }
  .panel-head { gap: 10px; }
  .panel-head h2 { font-size: 13px; }
  .panel-head p { font-size: 10px; }
  .panel-head .text-link { font-size: 10px; }
  .help-card { padding: 20px; align-items: flex-start; gap: 12px; }
  .help-card strong { display: block; font-size: 11px; }
  .help-card p { font-size: 10px; }
  .help-icon { width: 33px; height: 33px; border-radius: 10px; }
  .help-icon .icon { width: 17px; height: 17px; }
  .toolbar { padding: 17px; }
  .toolbar .search { flex-basis: 100%; min-width: 0; }
  .toolbar > select { min-width: 0; flex: 1; }
  .pagination { padding: 15px 17px; flex-wrap: wrap; font-size: 9px; }
  .pagination .button { min-height: 36px; padding: 7px 11px; font-size: 10px; }
  .app-footer { margin: 16px 17px 18px; font-size: 9px; }
  .footer-brand { font-size: 10px; }
  .detail-grid { gap: 20px; }
  .detail-grid > div:first-child { grid-column: 1 / -1; }
  .detail-grid small { font-size: 8px; }
  .action-stack .button { font-size: 11px; }
  .back-link { font-size: 10px; margin-bottom: 21px; }
  .toast { left: 17px; right: 17px; bottom: 17px; max-width: none; }
  dialog { padding: 24px; }
  .login-shell { display: block; }
  .login-story { min-height: 0; padding: 23px 24px; border-right: 0; border-bottom: 1px solid var(--accent-line); }
  .login-story::after { width: 120px; top: -15px; height: 160px; right: -50px; }
  .login-story > .brand { font-size: 24px; }
  .login-story-content { padding: 31px 0 7px; margin: 0; }
  .login-tag { margin-bottom: 13px; font-size: 8px; }
  .login-story h2 { font-size: 30px; letter-spacing: -1px; margin-bottom: 0; }
  .login-story-content > p, .login-features, .login-story-foot { display: none; }
  .login-entry { min-height: 0; padding: 34px 25px 20px; }
  .login-card { max-width: 400px; padding: 0; }
  .login-lock { display: none; }
  .login-card h1 { font-size: 29px; margin-top: 10px; }
  .login-card h1 br { display: none; }
  .login-card > .muted { margin-bottom: 23px; }
  .login-card label { font-size: 12px; }
  .login-card input { font-size: 16px; min-height: 49px; }
  .login-card .button { min-height: 49px; }
  .login-copyright { margin: 33px 0 0; font-size: 9px; }
}
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody { display: grid; gap: 12px; padding: 15px; }
  tbody tr { display: block; padding: 5px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
  tbody tr:hover { background: var(--surface); }
  td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); font-size: 11px; text-align: right; }
  td::before { content: attr(data-label); color: var(--quiet); flex: none; font-size: 10px; text-align: left; }
  td[data-label=""]::before { display: none; }
  td:first-child { padding-top: 13px; }
  td:last-child { border: 0; justify-content: flex-end; }
  .person { text-align: left; min-width: 0; }
  .person small { max-width: 200px; }
  td .person { flex: 1; justify-content: flex-end; }
  td > div { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .metric:hover { transform: none; }
}
[hidden] { display: none !important; }
/* Assinaturas: datas e situação sempre visíveis, sem alterar cobranças. */
.subscription-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.subscription-stat { padding: 19px 24px; text-align: left; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text); }
.subscription-stat:last-child { border-right: 0; }
.subscription-stat:hover { background: var(--accent-soft); }
.subscription-stat .metric-label { display: block; font-size: 10px; margin-bottom: 10px; }
.subscription-stat .metric-value { font-size: 25px; }
.subscription-metrics .metric { text-align: left; }
.subscription-metrics .metric-foot { margin-top: 20px; }
.subscription-filters { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.subscription-filter-row { display: flex; align-items: center; gap: 12px; }
.subscription-filter-row + .subscription-filter-row { margin-top: 17px; }
.subscription-filter-row .search { position: relative; min-width: 190px; }
.subscription-filter-row input, .subscription-filter-row select { margin: 0; font-size: 11px; }
.subscription-filter-row > select { flex: 1; width: auto; min-width: 0; }
.date-filters { align-items: flex-end; flex-wrap: wrap; }
.date-filters label { flex: 1; min-width: 145px; margin: 0; color: var(--muted); font-size: 10px; }
.date-filters input, .date-filters select { margin-top: 7px; }
.subscription-notice { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; padding: 16px 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--warning-soft); color: var(--warning); }
.subscription-notice p { margin: 0; font-size: 11px; }
.text-button { border: 0; padding: 6px 0; background: transparent; color: inherit; font-size: 11px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; margin-left: auto; }
@media (max-width: 1050px) {
  .subscription-filter-row { flex-wrap: wrap; }
  .subscription-filter-row > .search { flex-basis: 100%; }
  .subscription-stat { padding-inline: 18px; }
}
@media (max-width: 760px) {
  .subscription-strip { grid-template-columns: 1fr 1fr; margin-bottom: 21px; }
  .subscription-stat { padding: 17px; border-bottom: 1px solid var(--line); }
  .subscription-stat:nth-child(2) { border-right: 0; }
  .subscription-stat:nth-last-child(-n+2) { border-bottom: 0; }
  .subscription-filters { padding: 18px; }
  .subscription-filter-row { gap: 10px; }
  .subscription-filter-row input, .subscription-filter-row select { font-size: 12px; }
  .date-filters label { min-width: 125px; }
  .date-filters label:last-of-type { flex-basis: 100%; }
  .subscription-notice { align-items: flex-start; flex-wrap: wrap; padding: 16px; gap: 10px; }
  .subscription-notice p { flex: 1; }
  .subscription-notice .text-button { margin-left: 30px; }
}
