:root {
  color-scheme: light;
  --ink: #143129;
  --muted: #66766f;
  --green: #1e6c4e;
  --lime: #b9d93b;
  --cream: #f5f2e8;
  --paper: #ffffff;
  --danger: #a63232;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
/* El atributo hidden pierde contra cualquier clase que fije display, así que
   aquí se le devuelve la última palabra: es lo que oculta la cobertura de
   sesión y los avisos hasta que hacen falta. */
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: linear-gradient(145deg, #f8f6ee, #e8f1e9); }
button, input, select, textarea { font: inherit; }
button { border: 0; border-radius: 12px; padding: .85rem 1.1rem; color: white; background: var(--green); cursor: pointer; font-weight: 700; }
button:hover { filter: brightness(.94); }
.secondary { color: var(--green); border: 1px solid #bcd0c5; background: white; }
.small { padding: .45rem .65rem; font-size: .8rem; }
.inline-form { display: inline; }
.return-form { display: grid; min-width: 520px; grid-template-columns: .7fr 1fr 1fr 1.5fr auto; gap: .45rem; align-items: center; }
.return-form input, .return-form select { padding: .55rem .65rem; }
.integrity-ok { color: #155839; font-weight: 800; }
.integrity-error { color: var(--danger); font-weight: 800; }
.danger { background: #a63232; }
.button-link { display: inline-block; border-radius: 12px; padding: .75rem 1rem; color: white; background: var(--green); text-decoration: none; font-weight: 700; }
.button-link.secondary { color: var(--danger); border-color: var(--danger); background: white; }
.primary-large { min-height: 58px; font-size: 1.05rem; }
.narrow { max-width: 520px; }
.sale-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #e4e9e5; }
.reason-input { display: inline-block; width: 120px; padding: .4rem .55rem; }
.status { display: inline-block; padding: .3rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.status.completed { color: #155839; background: #dff6e9; }
.status.cancelled { color: #8a2727; background: #ffe3e3; }
.status.draft { color: #5d4a18; background: #fff2bf; }
.status.active, .status.valid { color: #155839; background: #dff6e9; }
.status.closed { color: #34495e; background: #e8edf2; }
.status.invalid { color: #8a2727; background: #ffe3e3; }
.status.review_required { color: #71480a; background: #ffedc2; }
.ticket-page { background: #ececec; }
.ticket { width: 58mm; min-height: 100vh; margin: 1rem auto; padding: 5mm 4mm; color: #111; background: white; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.ticket h1 { font-size: 20px; text-align: center; }
.ticket-logo { display: block; width: 38mm; max-height: 18mm; object-fit: contain; margin: 0 auto 3mm; }
.ticket table { font-size: 10px; }
.ticket th, .ticket td { padding: 2mm 0; }
.ticket td:last-child { text-align: right; white-space: nowrap; }
.ticket dl div { display: flex; justify-content: space-between; padding: 1mm 0; }
.ticket dd { margin: 0; }
.ticket-total { margin-top: 2mm; border-top: 1px dashed #111; font-size: 14px; font-weight: 800; }
.ticket-payments { padding-left: 4mm; }
.ticket-status { text-align: center; font-weight: 800; text-transform: uppercase; }
.ticket-actions { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: 5mm; }
.raffle-code { display: grid; gap: 1mm; margin: 4mm 0; padding: 3mm; border: 1px dashed #111; text-align: center; }
.raffle-code code { font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.raffle-code small { display: block; }
.raffle-code-missing { border-color: #999; color: #555; }

.check-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.check-list li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
}

.check-list strong {
  color: var(--green-dark);
  font-size: .8rem;
}

@media print {
  @page { size: 58mm auto; margin: 0; }
  .ticket-page { background: white; }
  .ticket { margin: 0; }
  .ticket-actions { display: none; }
}
label { display: grid; gap: .45rem; font-size: .88rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cbd5cf; border-radius: 12px; padding: .85rem 1rem; background: white; color: var(--ink); }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(185, 217, 59, .35); border-color: var(--green); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: min(100%, 420px); padding: 2.25rem; border: 1px solid rgba(20, 49, 41, .08); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 24px 70px rgba(20,49,41,.14); }
.logo { display: block; width: 150px; max-height: 80px; object-fit: contain; object-position: left center; margin-bottom: 1.5rem; }
.eyebrow { margin: 0 0 .5rem; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; }
.muted { color: var(--muted); line-height: 1.6; }
.stack { display: grid; gap: 1rem; margin-top: 1.5rem; }
.alert { margin-top: 1rem; border-radius: 12px; padding: .8rem 1rem; color: var(--danger); background: #fff0f0; }
.app-shell { --sidebar-width: 250px; min-height: 100vh; }
/* Columna que reparte el alto (AVO-39). El POS pedía 100vh para sí, así que
   cualquier aviso encima hacía que la página midiera una pantalla y pico. */
.app-content { display: flex; min-height: 100vh; flex-direction: column; margin-left: var(--sidebar-width); transition: margin-left .2s ease; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: var(--sidebar-width); flex-direction: column; overflow-x: hidden; overflow-y: auto; padding: .75rem; color: white; background: var(--ink); box-shadow: 8px 0 24px rgba(20,49,41,.12); transition: width .2s ease; }
.sidebar-head { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.sidebar a { color: white; text-decoration: none; }
.brand { display: flex; min-width: 0; align-items: center; padding: .65rem .55rem; white-space: nowrap; }
.brand-dot { display: inline-block; width: 12px; height: 12px; margin-right: .65rem; border-radius: 50%; background: var(--lime); }
.sidebar-toggle { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: transparent; }
.sidebar-nav { display: grid; gap: .2rem; }
.sidebar-nav a, .sidebar-session button { display: flex; width: 100%; min-height: 44px; align-items: center; gap: .8rem; padding: .65rem .75rem; border-radius: 10px; color: rgba(255,255,255,.82); background: transparent; font-size: .9rem; font-weight: 700; text-align: left; white-space: nowrap; }
.sidebar-nav a:hover, .sidebar-session button:hover { color: white; background: rgba(255,255,255,.1); filter: none; }
.sidebar-nav a:focus-visible, .sidebar-session button:focus-visible, .sidebar-toggle:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.nav-icon { width: 21px; height: 21px; flex: 0 0 21px; }
.nav-label { overflow: hidden; text-overflow: ellipsis; }
/* AVO-32 · la acción principal pesa más y no comparte fila con la navegación. */
.sidebar-nav .sidebar-action { display: flex; min-height: 46px; align-items: center; gap: .8rem; margin-bottom: .7rem; padding: .7rem .75rem; border-radius: 10px; color: white; background: var(--green); font-size: .92rem; font-weight: 800; white-space: nowrap; }
.sidebar-nav .sidebar-action:hover { background: var(--green); filter: brightness(.94); }
.sidebar-group > summary { display: flex; width: 100%; min-height: 44px; align-items: center; gap: .8rem; padding: .65rem .75rem; border-radius: 10px; color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer; list-style: none; }
.sidebar-group > summary::-webkit-details-marker { display: none; }
.sidebar-group > summary:hover { color: white; background: rgba(255,255,255,.1); }
.sidebar-group > summary:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.nav-chevron { display: inline-flex; margin-left: auto; transition: transform .15s ease; }
.nav-chevron .nav-icon { width: 15px; height: 15px; flex-basis: 15px; }
.sidebar-group[open] > summary .nav-chevron { transform: rotate(90deg); }
.sidebar-group-items { display: grid; gap: .1rem; margin: .1rem 0 .3rem 1.1rem; padding-left: .55rem; border-left: 1px solid rgba(255,255,255,.14); }
.sidebar-group-items a { font-weight: 600; }
/* Dónde estás. Antes no había ninguna señal en toda la barra. La acción
   destacada se marca sin perder su color: si se tiñera como un destino más
   dejaría de leerse como el botón que es. */
.sidebar-nav a[aria-current="page"]:not(.sidebar-action) { color: white; background: rgba(255,255,255,.16); box-shadow: inset 3px 0 0 var(--lime); }
.sidebar-nav .sidebar-action[aria-current="page"] { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.sidebar-session { display: grid; gap: .2rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.14); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.app-shell[data-sidebar-collapsed="true"] { --sidebar-width: 72px; }
.app-shell[data-sidebar-collapsed="true"] .sidebar { width: 72px; }
.app-shell[data-sidebar-collapsed="true"] .sidebar-head { justify-content: center; flex-wrap: wrap; }
.app-shell[data-sidebar-collapsed="true"] .brand { justify-content: center; padding: .55rem; }
.app-shell[data-sidebar-collapsed="true"] .brand-dot { margin-right: 0; }
.app-shell[data-sidebar-collapsed="true"] .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.app-shell[data-sidebar-collapsed="true"] .sidebar-nav a,
.app-shell[data-sidebar-collapsed="true"] .sidebar-session button { justify-content: center; gap: 0; padding-inline: .55rem; }
.app-shell[data-sidebar-collapsed="true"] .sidebar-toggle .nav-icon { transform: rotate(180deg); }
/* A 72 px los grupos desaparecen y quedan los iconos en orden: un menú de
   iconos con desplegables sería peor que la lista plana que había. */
.app-shell[data-sidebar-collapsed="true"] .sidebar-group > summary { display: none; }
.app-shell[data-sidebar-collapsed="true"] .sidebar-group-items { margin: 0; padding: 0; border-left: 0; }
.app-shell[data-sidebar-collapsed="true"] .sidebar-action { justify-content: center; gap: 0; margin-bottom: .4rem; padding-inline: .55rem; }
.dashboard { width: min(1100px, calc(100% - 2rem)); flex: 1; margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) 0; }
.dashboard-wide { display: flex; width: 100%; max-width: none; flex-direction: column; padding: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 2rem; }
.cards article { display: grid; gap: .55rem; padding: 1.3rem; border: 1px solid rgba(20,49,41,.09); border-radius: 18px; background: rgba(255,255,255,.78); }
.cards span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.cards strong { font-size: 1.35rem; }
.panel { margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid rgba(20,49,41,.09); border-radius: 20px; background: rgba(255,255,255,.84); }
.panel h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check { display: flex; align-items: center; gap: .6rem; min-height: 46px; }
.check input { width: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem .75rem; border-bottom: 1px solid #e4e9e5; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
td small { display: block; margin-top: .25rem; color: var(--muted); }
.flash { position: sticky; top: 0; z-index: 5; padding: .8rem 1rem; text-align: center; font-weight: 700; }
.flash.success { color: #155839; background: #dff6e9; }
.flash.error { color: #8a2727; background: #ffe3e3; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.head-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.correction-form { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(140px, 1fr) minmax(160px, 1.5fr) auto; gap: .45rem; min-width: 620px; }
.correction-form input, .correction-form select { padding: .55rem .65rem; }
.secret-panel, .portal-success { border-color: rgba(30,108,78,.35); background: #effaf4; }
.secret-list { display: grid; gap: .7rem; padding-left: 1.25rem; }
.secret-list code, .portal-success code { font-size: 1.05rem; font-weight: 800; letter-spacing: .04em; }
.portal-card { width: min(100%, 520px); }
.privacy-note { margin-bottom: 0; font-size: .8rem; }

.session-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1.5rem; background: rgba(20,49,41,.96); }
.session-overlay .login-card { width: min(100%, 420px); }
.session-overlay h1 { margin-top: .35rem; }
.lock-exit { margin-top: 1rem; }
.lock-exit button { width: 100%; }

.pos-shell { display: grid; flex: 1; grid-template-rows: 1fr auto; min-height: 0; }
/* El formulario es el que estira: sin esto la rejilla mide lo que mide su
   contenido y los dos paneles se quedan a media pantalla. */
.pos { display: flex; min-height: 0; flex-direction: column; }
.pos-grid { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: 0; min-height: 0; }
.pos-products { display: grid; grid-template-rows: auto 1fr auto; gap: .9rem; min-height: 0; padding: 1rem clamp(1rem, 2vw, 1.5rem); background: var(--paper); overflow-y: auto; }
.pos-products-head { display: grid; gap: .5rem; }
.pos-products h2, .pos-sale h2 { margin: 0; color: var(--muted); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.pos-search-field { display: grid; gap: .3rem; }
.pos-search-field label { color: var(--muted); font-size: .8rem; }
.pos-search-field input { width: 100%; min-height: 3.25rem; padding: .7rem 1rem; border: 1px solid #cfdad3; border-radius: 14px; background: white; font-size: 1.05rem; }
.pos-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; align-content: start; list-style: none; margin: 0; padding: 0; }
.pos-card { display: grid; gap: .25rem; align-content: start; width: 100%; min-height: 8.5rem; padding: 1rem; border: 1px solid rgba(20,49,41,.12); border-radius: 16px; color: var(--ink); background: white; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(20,49,41,.05); }
.pos-card:hover, .pos-cards li.is-active .pos-card { border-color: var(--green); background: #eef7f1; filter: none; }
.pos-card-sku { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.pos-card-name { font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.pos-card-price { margin-top: .25rem; font-size: 1.15rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.pos-card-stock { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.pos-sale { display: grid; grid-template-rows: 1fr auto; min-height: 0; border-left: 1px solid rgba(20,49,41,.1); background: white; }
.pos-sale-scroll { display: grid; gap: .8rem; align-content: start; min-height: 0; padding: 1rem 1.1rem; overflow-y: auto; }
.pos-lines { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.pos-line { display: grid; gap: .45rem; padding-bottom: .6rem; border-bottom: 1px solid #e4e9e5; }
.pos-line-head { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; }
.pos-line-name { font-weight: 700; }
.pos-line-amount { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.pos-line-foot { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.pos-stepper { display: inline-flex; align-items: center; border: 1px solid #bcd0c5; border-radius: 999px; background: white; overflow: hidden; }
.pos-stepper button { min-width: 2.75rem; min-height: 2.75rem; padding: 0; border-radius: 0; color: var(--green); background: transparent; font-size: 1.2rem; font-weight: 800; }
.pos-stepper button:hover { background: #eef7f1; filter: none; }
.pos-stepper input { width: 4.5rem; min-height: 2.75rem; padding: 0 .3rem; border: 0; border-inline: 1px solid #e4e9e5; text-align: center; font-variant-numeric: tabular-nums; }
.pos-line-unit { color: var(--muted); font-size: .8rem; }
.pos-line-remove { min-height: 2.75rem; padding: 0 .4rem; color: var(--danger); background: transparent; font-weight: 700; }
.pos-line-remove:hover { background: #ffecec; filter: none; }
.pos-line-rule { color: var(--muted); font-size: .78rem; }
.pos-summary { margin: 0; display: grid; gap: .3rem; }
.pos-summary div { display: flex; gap: 1rem; justify-content: space-between; }
.pos-summary dt { color: var(--muted); }
.pos-summary dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.pos-summary .pos-total { align-items: baseline; margin-top: .35rem; padding-top: .6rem; border-top: 2px solid var(--ink); }
.pos-summary .pos-total dt { color: var(--ink); font-weight: 800; }
.pos-summary .pos-total dd { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.pos-actions { display: grid; gap: .55rem; padding: .9rem 1.1rem; border-top: 1px solid rgba(20,49,41,.1); background: white; }
.pos-actions-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.pos-actions button, .pos-actions .button-link { min-height: 2.75rem; text-align: center; }
.pos-cancel { color: var(--danger); border-color: var(--danger); }
.pos-actions [aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.pos-actions .muted { margin: 0; font-size: .82rem; }
.pos-status { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding: .55rem clamp(1rem, 2vw, 1.5rem); border-top: 1px solid rgba(20,49,41,.1); color: var(--muted); background: white; font-size: .8rem; }
.pos-client { position: relative; display: grid; gap: .3rem; }
.pos-client-input { width: 100%; min-height: 2.6rem; padding: .55rem .85rem; border: 1px solid #cfdad3; border-radius: 12px; background: white; }
.pos-client-clear { justify-self: start; min-height: auto; padding: 0; color: var(--danger); background: transparent; font-size: .78rem; font-weight: 700; }
.pos-client-clear:hover { background: transparent; filter: none; text-decoration: underline; }
.pos-client-results { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; max-height: 240px; margin: .2rem 0 0; padding: .25rem; overflow-y: auto; list-style: none; border: 1px solid #dfe7e2; border-radius: 12px; background: white; box-shadow: 0 12px 30px rgba(20,49,41,.12); }
.pos-client-results:empty { display: none; }
.pos-client-option { display: block; width: 100%; min-height: 2.5rem; padding: .5rem .6rem; border-radius: 8px; color: var(--ink); background: transparent; text-align: left; font-weight: 600; }
.pos-client-option:hover { background: #eef7f1; filter: none; }
.pos-client-option small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }

.pos-types { display: inline-flex; gap: .2rem; padding: .2rem; border-radius: 10px; background: #eef1ef; }
.pos-type { display: inline-flex; min-height: 2.25rem; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-size: .82rem; font-weight: 700; }
.pos-type:hover { color: var(--ink); background: rgba(255,255,255,.7); filter: none; }
.pos-type.is-active { color: var(--green); border-color: var(--green); background: white; box-shadow: 0 0 0 1px rgba(30,108,78,.35), 0 1px 2px rgba(20,49,41,.08); }
.pos-type:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pos-type-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.pos-type-note { margin: 0; font-size: .82rem; }

.pos-shell-blocked { place-items: center; }
.pos-blocked { gap: .5rem; max-width: 34rem; }
.pos-blocked .eyebrow { margin: 0; }
.pos-blocked .pos-empty-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pos-blocked-form { display: grid; gap: .75rem; width: min(18rem, 100%); margin-top: 1rem; text-align: left; }
.pos-blocked .quiet-link { margin-top: .9rem; color: var(--muted); font-size: .88rem; }

.pos-empty { display: grid; gap: .25rem; place-items: center; padding: 2.5rem 1rem; text-align: center; }
.pos-empty-title { margin: 0; font-size: 1.15rem; font-weight: 800; }
.pos-empty .muted { margin: 0; }
.pos-card-stock-low { color: var(--danger); }
[data-pos-charge-total] { font-variant-numeric: tabular-nums; }

.pos-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 1.5rem; background: rgba(20,49,41,.55); }
.pos-modal-card { display: grid; gap: .9rem; width: min(100%, 420px); padding: 1.5rem; border-radius: 20px; background: white; box-shadow: 0 24px 70px rgba(20,49,41,.24); }
.pos-modal-card h2 { margin: 0; }
.pos-amount { width: 100%; min-height: 3rem; padding: .6rem .85rem; border: 1px solid #cfdad3; border-radius: 12px; text-align: right; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pos-change { margin: 0; padding: .8rem 1rem; border-radius: 12px; background: #eef7f1; font-weight: 700; }
.pos-change strong { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); color: #155839; font-variant-numeric: tabular-nums; }
.pos-change.is-short { color: #8a2727; background: #ffe3e3; }
.pos-settled { display: grid; flex: 1 1 auto; gap: .7rem; align-content: center; justify-items: center; padding: 2rem 1.2rem; text-align: center; }
.pos-settled-mark { display: grid; width: 3.2rem; height: 3.2rem; place-items: center; margin: 0; border-radius: 50%; color: white; background: #1e6c4e; font-size: 1.6rem; }
.pos-settled h2 { margin: 0; }
.pos-settled-label { margin: 0; color: var(--muted); }
.pos-settled-change { margin: 0; color: #155839; font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pos-settled .pos-summary { width: min(100%, 320px); }
.pos-settled .pos-actions { width: min(100%, 320px); border: 0; background: transparent; }

@media (max-width: 760px) {
  .app-shell { --sidebar-width: 72px; }
  .app-content { margin-left: 72px; }
  .sidebar { width: min(280px, calc(100vw - 1rem)); }
  .app-shell[data-sidebar-collapsed="true"] .sidebar { width: 72px; }
  .form-grid, .form-grid.compact { grid-template-columns: 1fr; }
  .sale-row { grid-template-columns: 1fr; }
  .pos-grid { grid-template-columns: 1fr; }
  .pos-sale { border-left: 0; border-top: 1px solid rgba(20,49,41,.1); }
  .return-form { min-width: 0; grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .correction-form { min-width: 0; grid-template-columns: 1fr; }
}
