/* Generated app-ui stylesheet. Do not edit directly. */

/* components/action-progress/action-progress.css */
.action-progress {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 1000;
}

.action-progress__content {
    align-items: center;
    color: var(--color-ink, #172640);
    display: flex;
    flex-direction: column;
    font-weight: 700;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}

.action-progress__spinner {
    animation: action-progress-spin .75s linear infinite;
    border: 4px solid rgba(36, 87, 214, .18);
    border-radius: 50%;
    border-top-color: #2457d6;
    height: 2.5rem;
    width: 2.5rem;
}

@keyframes action-progress-spin {
    to { transform: rotate(360deg); }
}

/* styles/tokens.css */
:root {
    --ink: #172640;
    --muted: #637083;
    --line: #dfe5ec;
    --canvas: #f4f6f8;
    --surface: #ffffff;
    --nav: #142239;
    --nav-soft: #223552;
    --accent: #00a889;
    --accent-soft: #dff7f1;
    --blue: #2d61d6;
    --amber: #d58711;
    --danger: #bd3a49;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(23, 38, 64, .08);
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* styles/base.css */
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(45, 97, 214, .35); outline-offset: 2px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,168,137,.12); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* components/brand/brand.css */
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 26px; color: inherit; text-decoration: none; }
.brand__logo { width: 82px; height: 62px; object-fit: contain; border-radius: 9px; }
.brand__text { display: grid; gap: 1px; }
.brand__text strong { font-size: 18px; letter-spacing: .01em; }
.brand__text small { color: #aebbd0; font-size: 12px; }
.brand--public { display: inline-flex; padding: 0; }
.brand--public .brand__logo { width: 92px; height: 69px; }
.brand--public .brand__text small { color: var(--muted); }

/* components/brand-attribution/brand-attribution.css */
.brand-attribution { display: block; width: 168px; height: auto; object-fit: contain; }
.sidebar__footer .brand-attribution { margin-top: 16px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); }
.public-footer { display: flex; justify-content: center; padding: 0 24px 28px; }

/* components/button/button.css */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; color: #fff; background: var(--blue); text-decoration: none; font-weight: 750; cursor: pointer; }
.button--quiet { color: var(--ink); border-color: var(--line); background: #fff; }
.button--quiet:hover { background: #f6f8fb; }

/* components/app-shell/app-shell.css */
.app-frame { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 20px; color: #fff; background: var(--nav); }
.sidebar__footer { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid rgba(255,255,255,.1); color: #aebbd0; font-size: 11px; }
.sidebar__account { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.workspace { min-width: 0; }
.auth-diagnostics { width: min(1100px, calc(100% - 40px)); margin: 24px auto; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow-wrap: anywhere; }
.auth-diagnostics__report { display: block; width: 100%; max-width: 100%; min-height: 420px; margin-top: 12px; padding: 14px; font: 12px/1.6 monospace; color: var(--ink); background: #f5f7fa; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.is-public:has(.auth-diagnostics) .public-main { min-height: 0; }
.is-public:has(.auth-diagnostics) .public-footer { display: none; }
.is-public:has(.auth-diagnostics) .error-state { width: min(1100px, 100%); padding: 24px; text-align: left; }
.is-public:has(.auth-diagnostics) .error-state h1 { font-size: clamp(22px, 4vw, 30px); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 96px; padding: 20px 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); }
.topbar h1 { margin: 2px 0 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.025em; }
.workspace__content { padding: 28px 34px 48px; }
.public-header { padding: 26px clamp(22px, 5vw, 72px); }
.public-main { display: grid; min-height: calc(100vh - 100px); place-items: center; padding: 24px; }
.is-public--compact .public-main { min-height: calc(100vh - 72px); }
.is-public--standalone .public-main { min-height: 100vh; }
@media (max-width: 760px) {
    .app-frame { grid-template-columns: 1fr; }
    .sidebar { position: static; width: 100%; height: auto; padding: 16px; }
    .sidebar .brand { padding-bottom: 14px; }
    .sidebar__footer { display: none; }
    .sidebar__account { margin-top: 14px; padding: 14px 0 0; }
    .topbar { align-items: flex-start; padding: 18px 20px; }
    .workspace__content { padding: 20px; }
}

/* components/navigation/navigation.css */
.sidebar__nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; border-radius: 10px; color: #d9e1ed; text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-item:hover { background: var(--nav-soft); color: #fff; }
.nav-item.is-active { color: #fff; background: var(--nav-soft); box-shadow: inset 3px 0 var(--accent); }
.nav-item.is-disabled { color: #8e9cb0; cursor: default; }
.nav-item small { margin-left: auto; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.nav-item__icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: rgba(255,255,255,.08); font-size: 12px; }
.nav-item__icon svg { display: block; }
@media (max-width: 760px) {
    .sidebar__nav { display: flex; overflow-x: auto; padding-bottom: 4px; }
    .nav-item { flex: 0 0 auto; }
    .nav-item small { display: none; }
}

/* components/account-menu/account-menu.css */
.account-menu { display: flex; align-items: center; gap: 9px; }
.account-menu form { margin: 0; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.user-chip > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); }
.account-menu--sidebar { display: grid; gap: 13px; }
.account-menu--sidebar .user-chip { min-width: 0; overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.account-menu--sidebar .user-chip > span { flex: 0 0 34px; color: #fff; background: rgba(255, 255, 255, .14); }
.account-menu__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.account-menu--sidebar .button { min-height: 36px; padding: 7px 10px; color: #e7edf6; border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); font-size: 11px; }
.account-menu--sidebar .button:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.account-menu--sidebar form .button { width: 100%; }
@media (max-width: 760px) {
    .account-menu:not(.account-menu--sidebar) .account-menu__account,
    .account-menu:not(.account-menu--sidebar) .user-chip { display: none; }
    .account-menu--sidebar { grid-template-columns: minmax(0, 1fr) minmax(190px, auto); align-items: center; }
}
@media (max-width: 460px) { .account-menu--sidebar { grid-template-columns: 1fr; } }

/* components/notice/notice.css */
.notice { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; padding: 14px 16px; border: 1px solid #b9e9dd; border-radius: 12px; color: #176959; background: var(--accent-soft); font-size: 13px; }
.notice strong { display: block; margin-bottom: 2px; }

/* components/metric-card/metric-card.css */
.metrics { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric__label { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric__value { margin: 7px 0 2px; font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.metric__meta { color: var(--muted); font-size: 11px; }
.metric--accent { border-top: 3px solid var(--accent); }
.metric--blue { border-top: 3px solid var(--blue); }
.metric--amber { border-top: 3px solid var(--amber); }
.metric--danger { border-top: 3px solid var(--danger); }
@media (max-width: 1100px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .metrics { grid-template-columns: 1fr; } }

/* components/panel/panel.css */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel__header h2 { margin: 0; font-size: 17px; }
.panel__header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .panel__header { align-items: flex-start; flex-direction: column; } }

/* components/filter-chips/filter-chips.css */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 11px; font-weight: 750; }
.filter-chip.is-active { color: #176959; border-color: #a6dfd2; background: var(--accent-soft); }
.filter-chip:disabled { cursor: default; opacity: 1; }

/* components/fleet-timeline/fleet-timeline.css */
.timeline { min-width: 700px; padding: 0 20px 18px; }
.timeline-scroll { overflow-x: auto; }
.timeline__head, .timeline__row { display: grid; grid-template-columns: 190px; grid-auto-columns: minmax(72px, 1fr); grid-auto-flow: column; align-items: center; }
.timeline__head { min-height: 44px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }
.timeline__head span:first-child { text-align: left; }
.timeline__row { min-height: 58px; border-bottom: 1px solid #edf0f4; }
.vehicle { display: grid; gap: 2px; padding-right: 12px; font-size: 12px; font-weight: 800; }
.vehicle a { text-decoration: none; }
.vehicle a:hover { text-decoration: underline; }
.vehicle small { color: var(--muted); font-weight: 500; }
.slot { height: 28px; margin: 0 3px; border-radius: 7px; background: #eef2f5; }
.slot--available { background: #e2f6f0; }
.slot--reserved { background: #dce6fb; }
.slot--maintenance { background: #fae8c7; }
.slot span { display: block; overflow: hidden; padding: 7px 8px; color: #24426c; font-size: 10px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }

/* components/task-list/task-list.css */
.task-list { list-style: none; margin: 0; padding: 8px 20px 20px; }
.task-list li { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf0f4; }
.task-list li:last-child { border-bottom: 0; }
.task-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #176959; background: var(--accent-soft); font-size: 12px; font-weight: 800; }
.task-list strong { display: block; font-size: 13px; }
.task-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }

/* components/login-card/login-card.css */
.login-card { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.15fr); width: min(920px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(23,38,64,.13); }
.login-card__copy { padding: clamp(30px, 6vw, 64px); }
.login-card__logo { display: block; width: min(280px, 100%); height: auto; max-height: 92px; margin: 0 auto 30px; object-fit: contain; }
.login-card__copy .eyebrow { margin-bottom: 12px; }
.login-card h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -.05em; }
.login-card p { color: var(--muted); line-height: 1.65; }
.login-card .button { margin-top: 12px; }
.login-card__visual { position: relative; display: grid; align-content: end; min-height: 450px; padding: 40px; color: #fff; background: radial-gradient(circle at 85% 10%, rgba(0,168,137,.55), transparent 30%), linear-gradient(145deg, #1d3150, #0f1c30); }
.visual-grid { position: absolute; inset: 30px; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent); }
.login-card__visual strong { position: relative; max-width: 350px; font-size: 26px; line-height: 1.2; }
.login-card__visual small { position: relative; margin-top: 10px; color: #b9c9dd; line-height: 1.5; }
.login-card--simple { display: block; width: min(430px, 100%); text-align: center; }
.login-card--simple .login-card__copy { padding: clamp(34px, 7vw, 56px); }
.login-card--simple .login-card__system-name { margin: 0 0 28px; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
.login-card--simple .button { width: 100%; margin: 0; }
@media (max-width: 760px) {
    .login-card { grid-template-columns: 1fr; }
    .login-card__visual { min-height: 260px; }
}
@media (max-width: 460px) { .login-card__copy { padding: 30px 24px; } }

/* components/error-state/error-state.css */
.error-state { width: min(560px, 100%); padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.error-state__code { color: var(--accent); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.error-state h1 { margin: 10px 0; font-size: clamp(28px, 5vw, 42px); letter-spacing: -.04em; }
.error-state p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }

/* components/lazy-section/lazy-section.css */
.lazy-section { min-height: 150px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.lazy-section--metrics { min-height: 130px; margin-bottom: 22px; }
.lazy-section--panel { min-height: 330px; }
.lazy-section--dashboard { min-height: 480px; }
.lazy-section__skeleton { display: grid; gap: 13px; padding: 24px; }
.lazy-section__skeleton span { height: 18px; border-radius: 8px; background: linear-gradient(90deg, #edf1f5 25%, #f7f9fb 50%, #edf1f5 75%); background-size: 200% 100%; animation: lazy-pulse 1.4s ease-in-out infinite; }
.lazy-section__skeleton span:first-child { width: 38%; }
.lazy-section__skeleton span:nth-child(2) { height: 64px; }
.lazy-section__skeleton span:last-child { width: 72%; }
.lazy-section__fallback { padding: 0 24px 24px; }
.lazy-section__error { display: grid; gap: 10px; place-items: start; padding: 24px; color: var(--muted); }
.lazy-section__retry { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; cursor: pointer; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes lazy-pulse { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .lazy-section__skeleton span { animation: none; } }

/* cata.css */
/* Grupo CATA identity (cata.com.br): near-black warm ink, paper background, signal red. */
:root {
    --ink: #100c0b;
    --muted: #69615d;
    --line: #dcd6d2;
    --canvas: #f9f7f3;
    --surface: #ffffff;
    --nav: #100c0b;
    --nav-soft: #292220;
    --accent: #c2152f;
    --accent-soft: #e3f1e8;
    --blue: #c2152f;
    --danger: #d01c29;
    --signal-deep: #94001d;
    --shadow: 0 10px 30px rgba(16, 12, 11, .07);
    font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sidebar .brand { justify-content: flex-start; padding: 0 8px; }
.sidebar .brand__logo { width: 168px; height: auto; }
.nav-item { color: #c9c2bd; }
.nav-item.is-disabled { color: #7d7570; }
.public-header { background: var(--nav); }
/* The shared shell uses a plain 1fr column on phones, which grows with wide content instead of the screen. */
@media (max-width: 760px) { .app-frame { grid-template-columns: minmax(0, 1fr); } }
.public-header .brand__logo { width: 180px; height: auto; }
.login-card__logo { max-height: 76px; }
.login-card__visual { background: radial-gradient(circle at 85% 10%, rgba(194, 21, 47, .55), transparent 32%), linear-gradient(145deg, #241e1c, #100c0b); }
.login-card__visual small { color: #a9a39e; }
.button,
.admin-primary-link,
.button-primary,
.inline-action button,
.filter-bar button,
.admin-form > footer button { transition: background-color .15s ease; }
.button:not(.button--quiet):hover,
.admin-primary-link:hover,
.button-primary:not(:disabled):hover,
.inline-action button:hover,
.filter-bar button:hover,
.admin-form > footer button:hover { background-color: var(--signal-deep); }
.back-link { justify-self: start; color: var(--blue); font-weight: 750; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.empty-state { margin: 0; padding: 28px 20px; color: var(--muted); text-align: center; }
.detail-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }

.admin-page,
.admin-form-page { display: grid; gap: 18px; }
.admin-page__heading h2,
.admin-page__heading p,
.admin-form header h2,
.admin-form header p { margin: 0; }
.admin-page__heading p,
.admin-form header p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.admin-page__heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-primary-link { flex-shrink: 0; padding: 9px 12px; border-radius: 9px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; }

.admin-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-menu__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 112px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.admin-menu__item:hover { border-color: color-mix(in srgb, var(--blue) 42%, var(--line)); box-shadow: 0 14px 34px rgba(15, 23, 42, .12); }
.admin-menu__item:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 24%, transparent); outline-offset: 2px; }
.admin-menu__item strong,
.admin-menu__item small { display: block; }
.admin-menu__item strong { margin-bottom: 5px; font-size: 17px; }
.admin-menu__item small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-menu__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: #fff; background: var(--nav); font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.admin-menu__arrow { color: var(--blue); font-size: 22px; font-weight: 800; }

.admin-record-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.admin-record-list__header,
.admin-record-row { display: grid; align-items: center; gap: 18px; padding: 13px 18px; }
.admin-record-list__header { color: #4a423e; background: #e8e1d9; border-bottom: 1px solid #cfc6bd; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.admin-record-grid--catalog { grid-template-columns: minmax(180px, 1.6fr) minmax(140px, 1fr) 100px 24px; }
.admin-record-row { min-height: 66px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .12s ease; }
.admin-record-row:hover { background: #f4f1ed; }
.admin-record-row:focus-visible { position: relative; z-index: 1; outline: 3px solid color-mix(in srgb, var(--blue) 24%, transparent); outline-offset: -3px; }
.admin-record-row strong,
.admin-record-row small { display: block; overflow-wrap: anywhere; }
.admin-record-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.admin-record-cell--secondary { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.admin-record-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #126452; background: var(--accent-soft); font-size: 11px; font-weight: 800; }
.admin-record-status.is-inactive { color: #596579; background: #ece7e3; }
.admin-record-arrow { color: var(--blue); font-size: 18px; font-weight: 800; text-align: right; }

.admin-form > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding: 20px; }
.form-field { display: grid; align-content: start; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.form-field--wide { grid-column: 1 / -1; }
.form-field input,
.form-field select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; font-weight: 500; }
.form-field input:focus,
.form-field select:focus { border-color: var(--blue); outline: 3px solid color-mix(in srgb, var(--blue) 18%, transparent); }
.form-field .input--code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.field-help { color: var(--muted); font-size: 11px; font-weight: 500; }
.field-error { color: #9e2f2f; font-size: 11px; font-weight: 700; }
.check-field { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; font-weight: 700; }
.check-field input[type="checkbox"] { width: 20px; height: 20px; }
.admin-form > footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.admin-form > footer a { color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.admin-form > footer button { min-height: 44px; padding: 9px 18px; border: 0; border-radius: 9px; color: #fff; background: var(--blue); cursor: pointer; font-weight: 800; }
.form-alert { margin: 0 20px 20px; padding: 11px 13px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.admin-form > header + .form-alert { margin-top: 20px; margin-bottom: 0; }
.admin-page > .form-alert { margin: 0; }
.form-alert a { color: inherit; }
.form-alert--success { color: #126452; background: #def5ed; }
.form-alert--error { color: #8f2929; background: #fbe3e3; }
.form-alert--info { color: #4a3f3a; background: #efe9e3; }

.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.summary-card { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; }
.summary-card:hover { border-color: color-mix(in srgb, var(--blue) 42%, var(--line)); }
.summary-card small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.summary-card strong { font-size: 28px; }
.summary-card span { color: var(--muted); font-size: 12px; }

.form-field textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; resize: vertical; }
.form-field textarea:focus { border-color: var(--blue); outline: 3px solid color-mix(in srgb, var(--blue) 18%, transparent); }
[data-question-types][hidden] { display: none; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.filter-bar .form-field:first-child { flex: 1 1 240px; }
.filter-bar .form-field { flex: 0 1 180px; }
.filter-bar button { min-height: 44px; padding: 9px 18px; border: 0; border-radius: 9px; color: #fff; background: var(--blue); cursor: pointer; font-weight: 800; }
.admin-record-grid--question { grid-template-columns: minmax(220px, 2.4fr) minmax(130px, 1fr) 60px 90px 24px; }

.detail-card--padded { padding: 20px; }
.detail-card--padded h3 { margin: 0 0 14px; font-size: 15px; }

/* Mirrors the inspector screen: statement on the left, large answer buttons on the right. */
.question-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.question-preview__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 8px 14px; border-top: 1px solid var(--line); }
.question-preview__row:first-child { border-top: 0; }
.question-preview__row--subitem { padding-left: 30px; background: #eef0fc; }
.question-preview__statement { font-size: 14px; }
.question-preview__answer { display: flex; flex-shrink: 0; gap: 10px; }
.question-preview__note { margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.answer-button { display: inline-grid; min-width: 44px; height: 36px; padding: 0 8px; place-items: center; border: 1px solid #8a8f98; border-radius: 6px; color: #1f2937; background: #a3a7ae; font-size: 13px; font-weight: 800; }
.answer-button.is-selected { border-color: #3f8f3f; background: #8ef08e; }
.answer-input { display: inline-flex; min-width: 180px; height: 36px; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fff; font-size: 13px; }

.version-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.version-list > li { border-top: 1px solid var(--line); }
.version-list > li:first-child { border-top: 0; }
.version-list summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0; cursor: pointer; }
.version-list summary span { color: var(--muted); font-size: 12px; }
.version-list .version-list__note { flex-basis: 100%; color: var(--ink); font-size: 13px; }
.version-list details[open] > .question-preview { margin-bottom: 14px; }

@media (max-width: 900px) {
    .admin-menu { grid-template-columns: 1fr; }
    .admin-record-grid--question { grid-template-columns: minmax(0, 1fr) 60px 90px 24px; }
    .admin-record-grid--question > :nth-child(2) { display: none; }
}
@media (max-width: 620px) {
    .admin-page__heading { align-items: flex-start; flex-direction: column; }
    .form-grid,
    .summary-grid { grid-template-columns: 1fr; }
    .admin-form > header { align-items: flex-start; flex-direction: column; }
    .admin-form > footer { flex-direction: column-reverse; align-items: stretch; text-align: center; }
    .admin-record-list__header { display: none; }
    .admin-record-grid--catalog { grid-template-columns: minmax(0, 1fr) auto 20px; }
    .admin-record-grid--catalog > :nth-child(2) { display: none; }
    .admin-record-grid--question { grid-template-columns: minmax(0, 1fr) auto 20px; }
    .admin-record-grid--question > :nth-child(3) { display: none; }
    .filter-bar .form-field,
    .filter-bar button { flex: 1 1 100%; }
    .question-preview__row { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .admin-menu__item,
    .admin-record-row { transition: none; }
}

/* Buttons used across the checklist editor. */
.admin-secondary-link { flex-shrink: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--blue); background: var(--surface); font-size: 12px; font-weight: 800; text-decoration: none; }
.button-primary,
.button-quiet,
.button-icon,
.button-toggle,
.button-danger-quiet,
.inline-action button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.button-primary,
.inline-action button { border-color: var(--blue); color: #fff; background: var(--blue); }
.button-primary:disabled { cursor: not-allowed; opacity: .5; }
.button-icon { min-width: 40px; padding: 8px; font-size: 15px; }
.button-toggle { color: var(--muted); }
.button-toggle.is-on { border-color: #b9b0aa; color: var(--ink); background: #f0ece7; }
.button-danger-quiet { color: #9e2f2f; }
.button-quiet:hover,
.button-icon:hover,
.button-toggle:hover,
.button-danger-quiet:hover { background: #efebe6; }
.muted-text { margin: 0; color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.badge--warning { color: #80530d; background: #fff1d6; }
.badge--danger { color: #8f2929; background: #fbe3e3; }
.version-state { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.version-state--published { color: #126452; background: var(--accent-soft); }
.version-state--draft { color: #80530d; background: #fff1d6; }
.version-state--retired { color: #596579; background: #ece7e3; }

.admin-record-grid--template { grid-template-columns: minmax(200px, 2fr) minmax(150px, 1.2fr) minmax(110px, .8fr) 90px 24px; }
.admin-record-grid--version { grid-template-columns: 90px minmax(200px, 1fr) 120px 24px; }
.status-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.status-panels p { margin: 0 0 12px; font-size: 13px; }
.status-panels a:not(.admin-primary-link) { color: var(--blue); font-size: 13px; font-weight: 750; }
.status-panels .admin-primary-link { display: inline-block; }
.usage-list { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; }
.usage-list a { color: var(--blue); font-weight: 750; }
.usage-list span { margin-left: 8px; color: var(--muted); }
.inline-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inline-action small { color: var(--muted); font-size: 12px; }

.publish-panel { display: grid; gap: 14px; }
.publish-panel h3 { margin: 0; }
.publish-panel__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; background: #fff7e6; }
.publish-panel__row p { margin: 0; font-size: 13px; }
.publish-panel__changes summary { cursor: pointer; font-size: 13px; font-weight: 750; }
.publish-panel__form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.publish-panel__form .form-field { flex: 1 1 280px; }
.problem-list { display: grid; gap: 4px; margin: 0; padding: 10px 12px 10px 30px; border-radius: 9px; color: #8f2929; background: #fbe3e3; font-size: 12px; font-weight: 700; }
.change-list { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; }
.change-list__item { padding: 6px 10px; border-left: 3px solid var(--line); border-radius: 4px; background: #f4f1ed; }
.change-list__item--added { border-left-color: #3f8f3f; }
.change-list__item--removed { border-left-color: #a93434; }
.change-list__item--changed { border-left-color: #c58a12; }

.editor-category__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #ece7e2; }
.editor-category__rename { display: flex; flex: 1 1 280px; gap: 8px; }
.editor-category__rename input { flex: 1; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 14px; font-weight: 800; }
.editor-category__footer { padding: 12px 16px; border-top: 1px solid var(--line); }
.editor-category__footer .admin-secondary-link { display: inline-block; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.editor-items { margin: 0; padding: 0; list-style: none; }
.editor-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.editor-item:first-child { border-top: 0; }
.editor-item.is-inactive { background: #fdf2f2; }
.editor-item__text { flex: 1 1 260px; }
.editor-item__text strong,
.editor-item__text small { display: block; }
.editor-item__text small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.editor-item__text a { color: var(--blue); }
.editor-move { display: flex; gap: 6px; }
.editor-move select { max-width: 170px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 12px; }
.editor-add-category { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.editor-add-category .form-field { flex: 1 1 280px; }
:target { scroll-margin-top: 16px; }
.editor-item:target,
.editor-category:target { outline: 3px solid color-mix(in srgb, var(--blue) 30%, transparent); }

.picker-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 18px; border-top: 1px solid var(--line); }
.picker-row:first-child { border-top: 0; }
.picker-row strong,
.picker-row small { display: block; }
.picker-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.picker-row__included { color: var(--muted); font-size: 12px; font-weight: 700; }

.checklist-preview { display: grid; gap: 0; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
.checklist-preview__category h4 { margin: 0; padding: 8px 14px; color: #fff; background: var(--nav-soft); font-size: 12px; }
.checklist-preview .question-preview { border: 0; border-top: 1px solid var(--line); border-radius: 0; }

@media (max-width: 760px) {
    .status-panels { grid-template-columns: 1fr; }
    .admin-record-grid--template { grid-template-columns: minmax(0, 1fr) auto 20px; }
    .admin-record-grid--template > :nth-child(2),
    .admin-record-grid--template > :nth-child(3) { display: none; }
    .admin-record-grid--version { grid-template-columns: 60px minmax(0, 1fr) 20px; }
    .admin-record-grid--version > :nth-child(3) { display: none; }
}

.heading-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 8px; }
.rule-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; overflow-wrap: anywhere; }
.segmented { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.segmented a { padding: 8px 12px; white-space: nowrap; color: var(--muted); font-size: 12px; font-weight: 800; text-decoration: none; }
.segmented a[aria-current="page"] { color: #fff; background: var(--blue); }

/* Escopo › serviço › modelo. */
.admin-record-grid--scope { grid-template-columns: minmax(180px, 1.4fr) minmax(90px, .7fr) minmax(160px, 1fr) 90px 24px; }
.admin-record-grid--link { grid-template-columns: minmax(160px, 1fr) minmax(260px, 2fr) auto; }
.admin-record-grid--link .badge { margin-top: 4px; }
.link-checklist { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.link-checklist select,
.model-adder select { min-width: 0; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; font-size: 13px; }
.link-checklist select { flex: 1 1 200px; }
.link-checklist small { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.link-checklist small a { color: var(--blue); font-weight: 750; }
.model-adder { display: grid; gap: 14px; margin-top: 18px; }
.model-adder h3 { margin: 0; }
.model-adder .form-alert { margin: 0; }
.model-adder__models { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; overflow: auto; max-height: 320px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.model-adder__models legend { padding: 0 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.model-adder__footer { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.model-adder__footer .form-field { flex: 1 1 280px; }
.model-adder .muted-text a { color: var(--blue); font-weight: 750; }
@media (max-width: 620px) {
    .admin-record-grid--scope { grid-template-columns: minmax(0, 1fr) auto 20px; }
    .admin-record-grid--scope > :nth-child(2),
    .admin-record-grid--scope > :nth-child(3) { display: none; }
    .admin-record-grid--link { grid-template-columns: 1fr; gap: 10px; }
}

/* JSON import. */
.admin-record-grid--import { grid-template-columns: minmax(200px, 2fr) minmax(150px, 1fr) minmax(130px, auto); }
.admin-record-grid--import code,
.import-problems code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.import-section h3 { margin-bottom: 4px; }
.import-problems { display: grid; gap: 4px; max-height: 420px; overflow: auto; margin: 12px 0 0; padding: 10px 12px 10px 30px; border-radius: 9px; font-size: 12px; }
.import-problems--error { color: #8f2929; background: #fbe3e3; }
.import-problems--warning { color: #80530d; background: #fff6e3; }
.import-problems code { padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .7); font-weight: 700; }
.import-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-left: 5px solid #3f8f3f; }
.import-confirm h3 { margin: 0 0 4px; }
.import-action { display: inline-flex; padding: 4px 9px; border-radius: 999px; color: #596579; background: #ece7e3; font-size: 11px; font-weight: 800; }
.import-action--new { color: #126452; background: var(--accent-soft); }
.import-action--version,
.import-action--draft { color: #80530d; background: #fff1d6; }
.import-details > summary { padding: 14px 18px; cursor: pointer; font-size: 13px; font-weight: 800; }
.form-field .input--json { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.form-field input[type="file"] { min-height: 0; padding: 8px; }
.admin-form > footer a[href$=".json"] { margin-right: auto; color: var(--blue); }
.import-steps,
.import-rules { display: grid; gap: 8px; margin: 0 0 12px; padding-left: 20px; font-size: 13px; line-height: 1.5; }
.import-guide a:not(.admin-secondary-link):not(.back-link) { color: var(--blue); font-weight: 750; }
.import-copy-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.import-copy-heading h3 { margin: 0 !important; }
.import-code { overflow: auto; max-height: 460px; margin: 0; padding: 14px; border-radius: 9px; color: #f4efe9; background: var(--nav-soft); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Checklist preview as the inspector fills it. The sheet is a size container, so the
   Tablet/Celular widths switch layout on a desktop exactly as a real device would. */
/* A size container does not take its width from its content, so it needs an explicit one. */
.fill-sheet { container-type: inline-size; width: 100%; overflow: clip; margin-inline: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.fill-sheet--tablet { max-width: 820px; }
.fill-sheet--celular { max-width: 390px; }
.fill-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 10px 16px; color: var(--muted); font-size: 12px; }
.fill-legend b { color: var(--ink); }
.fill-category__title { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 16px; color: #fff; background: var(--nav-soft); font-size: 14px; }
.fill-category__title small { color: #c9c2bd; font-size: 11px; font-weight: 600; }
.fill-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-width: 0; margin: 0; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); }
.fill-category__title + .fill-item { border-top: 0; }
/* A floated legend is laid out like any other child, so it can sit beside the answers. */
.fill-item > legend,
.fill-subitem > legend { float: left; width: auto; padding: 0; }
.fill-item__statement { flex: 1 1 260px; min-width: 0; font-size: 15px; line-height: 1.35; }
.fill-item__number { color: var(--muted); font-weight: 700; }
.fill-item__optional { display: inline-flex; margin-left: 4px; padding: 1px 7px; border-radius: 999px; color: #596579; background: #ece7e3; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.fill-item__field { flex: 0 1 280px; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #8a8f98; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 15px; }
.fill-item__choices { display: flex; flex-shrink: 0; gap: 8px; }
.fill-choice { position: relative; display: inline-grid; cursor: pointer; }
.fill-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.fill-choice span { display: grid; min-width: 56px; height: 44px; padding: 0 10px; place-items: center; border: 1px solid #8a8f98; border-radius: 8px; color: #1f2937; background: #a3a7ae; font-size: 14px; font-weight: 800; }
.fill-choice input:checked + span { border-color: #3f8f3f; background: #8ef08e; }
/* "Não" is red and "NA"/"NC" are blue when chosen; every other answer stays green. "N\00E3o" is "Não", escaped so the file's encoding cannot break it. */
.fill-choice input[value="N\00E3o"]:checked + span { border-color: #a32020; background: #f27b7b; }
.fill-choice input[value="NA"]:checked + span,
.fill-choice input[value="NC"]:checked + span { border-color: #2f6f9f; background: #8ec5f0; }
.fill-choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.fill-subitems { display: none; flex-basis: calc(100% + 32px); margin: 2px -16px -12px; border-top: 1px dashed var(--line); background: #eef0fc; }
.fill-item:has(> .fill-item__choices .fill-choice--refusal input:checked) > .fill-subitems { display: block; }
/* Browsers without :has() cannot open sub-items on refusal, so they always show them. */
@supports not selector(:has(*)) { .fill-subitems { display: block; } }
.fill-subitem { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0; padding: 10px 16px 10px 36px; border: 0; border-top: 1px solid #dfe2f5; }
.fill-subitem:first-child { border-top: 0; }
.fill-subitem .fill-item__statement { font-size: 14px; }
.fill-empty { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 13px; }
.fill-sheet__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@container (max-width: 560px) {
    .fill-item { flex-direction: column; align-items: stretch; }
    .fill-item__statement { flex-basis: auto; }
    .fill-item__field { flex-basis: auto; width: 100%; }
    .fill-item__choices > .fill-choice { flex: 1; }
    .fill-subitem { padding-left: 24px; }
}

@media (max-width: 760px) {
    .admin-record-grid--import { grid-template-columns: 1fr; gap: 6px; }
}
