:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #14223a; background: #f6f8fc; }
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #0c1424; color: #fff; }
.shell { width: min(100% - 2rem, 77rem); margin-inline: auto; }
.top { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.top span { color: #a8c7ff; }
.login-layout { display: grid; place-items: center; min-height: 100svh; padding: 2rem 1rem; }
.login-card { width: min(100%, 29rem); padding: clamp(1.35rem, 5vw, 2.7rem); border-top: .25rem solid #2457d6; }
.login-logo { display: block; width: min(100%, 13rem); height: auto; margin-bottom: 1.4rem; }
.login-card h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.back-link { display: inline-block; margin-top: 1.3rem; }
.logout { border-color: #617799; background: transparent; }
main { padding-block: clamp(2rem, 5vw, 4rem); }
.intro { margin-bottom: 1.6rem; }
.eyebrow { color: #2457d6; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 750; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; letter-spacing: -.05em; margin: .25rem 0 .55rem; }
h2 { font-size: 1.28rem; margin-bottom: .35rem; }
h3 { font-size: 1rem; overflow-wrap: anywhere; }
.muted { color: #4c5c73; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.stats div, .card { background: #fff; border: 1px solid #d9e2ef; border-radius: .8rem; padding: clamp(1rem, 2.2vw, 1.5rem); min-width: 0; }
dt { color: #4c5c73; font-size: .85rem; }
dd { font-size: clamp(1.15rem, 3vw, 2rem); font-weight: 750; margin: .25rem 0 0; overflow-wrap: anywhere; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1rem; align-items: start; }
.workspace.editing { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.gestao-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.gestao-nav a { flex: 0 1 auto; display: grid; align-items: center; min-height: 2.75rem; border: 1px solid #d9e2ef; padding: .45rem .7rem; background: #fff; border-radius: .45rem; text-decoration: none; font-size: .85rem; }
.gestao-nav a[aria-current="page"] { background: #2457d6; color: #fff; border-color: #2457d6; }
.install-help { margin-top: 1rem; padding: .85rem 1rem; border: 1px solid #d9e2ef; border-radius: .55rem; color: #4c5c73; }
.install-help summary { cursor: pointer; font-weight: 700; color: #2457d6; }
.install-help p { margin-top: .5rem; }
.editor, .filters { display: grid; gap: .9rem; margin-top: 1rem; }
.form-row, .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.filters { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.filters button { justify-self: start; }
.pedido-info { display: grid; gap: .5rem; padding: .8rem; border-radius: .45rem; background: #edf2fa; }
.pedido-info dd { font-size: .95rem; }
label, .field { display: grid; gap: .3rem; }
label { font-size: .85rem; font-weight: 650; }
input, textarea, select, button { font: inherit; }
input, textarea, select { width: 100%; min-width: 0; padding: .6rem; color: #14223a; background: #f6f8fc; border: 1px solid #8a9cb8; border-radius: .45rem; }
textarea { resize: vertical; }
button { padding: .55rem .85rem; border-radius: .45rem; border: 1px solid transparent; color: #fff; background: #2457d6; font-weight: 700; cursor: pointer; }
button:hover { background: #1c45ad; }
:focus-visible { outline: 2px solid #2457d6; outline-offset: 3px; }
a { color: #2457d6; font-weight: 650; text-underline-offset: .17em; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .9rem; }
.records { list-style: none; margin: 1.15rem 0; padding: 0; }
.records li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; padding: .9rem 0; border-top: 1px solid #d9e2ef; }
.records li .actions { grid-column: 1 / -1; font-size: .85rem; }
.record-meta { display: grid; gap: .3rem; align-content: start; justify-items: end; font-size: .86rem; }
.badge { color: #193a91; background: #e6efff; border-radius: 1rem; padding: .15rem .55rem; font-size: .73rem; font-weight: 700; text-align: center; }
.empty { color: #4c5c73; padding-block: 1.5rem .5rem; }
.error, .success { padding: .7rem .9rem; margin-block: .8rem; border-radius: .5rem; }
.error { background: #fff0ef; color: #8c211d; }
.success { background: #dff4eb; color: #155b42; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 49rem) { .workspace, .workspace.editing { grid-template-columns: 1fr; } }
@media (max-width: 32rem) { .stats, .filters, .form-row { grid-template-columns: 1fr; } }
