/* VerySinple palette (2026-09-06, section 4) - overrides shared/
   sinpeguard.css's tokens for merchant-admin ONLY (this file is never
   loaded by landing/, which stays on the original palette untouched, per
   explicit instruction). Loaded after sinpeguard.css, so this simply wins
   the cascade for these custom properties - no selector-specificity
   trick needed. Primary: Navy #003a5f, Green #6c9840, Neutral gray
   #4d4d4f. Deliberately NOT touching --red/--yellow/--blue (destructive/
   warning/info semantics stay exactly as they already read) or --bg/
   --surface (already a light neutral background, matches "use white/
   light neutral backgrounds as needed for readability") - this is a
   hierarchy-aware accent/action-color pass, not "make everything green". */
:root{
  --green:#6c9840;
  --green-2:#82ab54;
  --green-soft:#e9f0dd;
  --navy:#003a5f;
  --navy-2:#0a4d78;
  --navy-soft:#e3ebf1;
  --muted:#4d4d4f;
}
/* Navy for primary page headings only - green stays the action/selected-
   state color (buttons, active nav, accepted badges via var(--green)
   already used throughout), gray for secondary text (var(--muted) above).
   This is the "hierarchy" the palette asks for, not a blanket recolor. */
header h1{color:var(--navy)}
html[data-theme="dark"]{
  /* Same hue family, brightened for adequate contrast against a dark
     background - the exact light-mode hex values would read as
     low-contrast/muddy on dark surfaces. */
  --green:#8fc25e;
  --green-2:#a3d178;
  --green-soft:#233a1a;
  --navy:#5b9bc9;
  --navy-2:#7bb2da;
  --navy-soft:#152736;
}
/* minmax(0,1fr), not bare 1fr - see platform.css's identical fix for the
   full reasoning (2026-09 table-design-system unification): without it, a
   wide table anywhere on the page blows out this whole grid past the
   viewport instead of scrolling inside its own .table-card. */
.shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}
aside{background:var(--surface);border-right:1px solid var(--line);padding:22px 14px}
aside .logo small{display:block;color:var(--muted);font-size:10px}
/* Real logo lockup (navy+green text) needs a guaranteed-white backing in
   dark theme, where aside's background is near-black - same fix already
   used by platform-admin/platform.css's .logo-chip. */
aside .logo-chip{display:inline-flex;align-items:center;background:#ffffff;border-radius:9px;padding:5px 9px}
aside .logo-chip img{display:block;width:auto}
nav{display:grid;gap:6px;margin-top:25px}nav a{padding:12px;border-radius:11px;color:var(--muted);font-weight:750}nav a.active,nav a:hover{background:var(--green-soft);color:var(--green)}
.mobile-nav-toggle{display:none;align-items:center;justify-content:center;width:42px;height:42px;border:0;background:transparent;color:var(--text);font-size:22px;border-radius:10px;cursor:pointer}
.mobile-nav-toggle:hover{background:var(--surface-2)}
main{padding:0 28px 40px}header{height:90px;display:flex;align-items:center;justify-content:space-between}header h1{margin:0}header p{margin:4px 0 0}.header-actions{display:flex;align-items:center;gap:9px}
.live-pill{font-size:12px;font-weight:800;padding:8px 10px;border-radius:999px}.live-pill.online{background:var(--green-soft);color:var(--green)}.live-pill.offline{background:var(--red-soft);color:var(--red)}.live-pill.loading{background:var(--surface-2);color:var(--muted)}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}.metrics article{padding:17px}.metrics span{color:var(--muted)}.metrics strong{display:block;font-size:28px;margin-top:7px}
/* Resumen's top summary row gained a 5th card ("Detectados hoy", real
   fix 2026-08-26 - separate from "Total SINPE Detectados") - scoped by
   id, not a change to the shared 4-column .metrics rule other pages/
   rows still use unmodified (e.g. the 2-card "Monto confirmado/recibido
   hoy" row further down this same page). */
#summary-metrics{grid-template-columns:repeat(5,1fr)}
.panel{padding:18px;margin-top:14px}.panel-head{display:flex;justify-content:space-between;align-items:center}.panel h2{margin:0}.panel p{margin:4px 0 0}
.feed-row{display:grid;grid-template-columns:42px 1fr auto auto;gap:11px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.feed-row:last-child{border-bottom:0}.feed-row strong{font-size:16px}.feed-row small{display:block;color:var(--muted);margin-top:3px}.state-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-weight:900}.state-icon.ACCEPTED{background:var(--green-soft);color:var(--green)}.state-icon.REVIEW{background:var(--yellow-soft);color:var(--yellow)}.state-icon.REJECTED{background:var(--red-soft);color:var(--red)}
.row-actions{display:flex;flex-wrap:wrap;gap:8px}.row-actions .btn{padding:10px 16px;font-size:13px;border-radius:10px;min-height:44px}.row-actions .btn:disabled{opacity:.5;cursor:not-allowed}
.gmail-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:6px 0}.gmail-row strong{display:block}.gmail-row small{display:block;margin-top:3px}
.gmail-row.gmail-error{background:var(--red-soft);border:1px solid color-mix(in srgb,var(--red) 25%,transparent);border-radius:12px;padding:12px 14px}.gmail-error-message{color:var(--red);font-weight:700;margin:4px 0 0;font-size:13px}.gmail-error-title{display:block;color:var(--red);font-size:15px;font-weight:850}
.toast{position:fixed;right:20px;bottom:20px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px;padding:14px 18px;transform:translateY(120px);opacity:0;transition:.25s}.toast.show{transform:none;opacity:1}.toast.error{background:var(--red-soft);color:var(--red);border-color:color-mix(in srgb,var(--red) 25%,transparent)}
.supported-banks-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}.supported-banks-list li small{margin-left:6px}

/* Table/toolbar/pagination primitives now live in shared/sinpeguard.css
   (2026-09 table-design-system unification) - were byte-identical
   duplicated CSS, matching platform-admin/platform.css's own copy. */
.role-select{padding:7px 9px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:12px}
.role-select:disabled{opacity:.6;cursor:not-allowed}
.modal{display:none;position:fixed;inset:0;background:#0009;z-index:30;place-items:center;padding:18px}
.modal.open{display:grid}
.modal-card{width:min(480px,100%);padding:22px;max-height:92vh;overflow:auto}
.modal-title{display:flex;justify-content:space-between;align-items:flex-start}
.modal-title h2{margin:4px 0}
.modal-title button{border:0;background:transparent;color:var(--muted);font-size:26px}
.eyebrow{font-size:10px;letter-spacing:.08em;color:var(--green);font-weight:900}
.detail-grid{display:grid;grid-template-columns:1fr;gap:10px}
.detail-grid label{display:block;color:var(--muted);font-size:11px;margin:0 0 5px}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
/* Store Detail Hub (2026-09-06) - same tab component platform-admin's
   customer detail modal already uses (platform.css), mirrored here so
   both apps share one visual language for a tabbed detail view. */
.detail-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--line);margin:18px 0}
.detail-tab{border:0;background:transparent;color:var(--muted);padding:10px 12px;font-weight:750;cursor:pointer}
.detail-tab.active{color:var(--green);border-bottom:2px solid var(--green)}
.error{margin-top:14px;padding:12px;border-radius:12px;background:var(--red-soft);color:var(--red);font-size:13px;font-weight:700}
.success{margin-top:14px;padding:12px;border-radius:12px;background:var(--green-soft);color:var(--green);font-size:13px;font-weight:700}
.code-block{margin-top:10px;padding:14px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;line-height:1.6;overflow-x:auto;white-space:pre}
/* .token-result etc. were referenced in profile.html since fc00272 but had
   zero CSS anywhere in the app - real gap found 2026-08-25 while
   investigating a reported "credential secret didn't show" bug. Unstyled,
   the box still rendered (removing `hidden` alone makes a bare <div>
   visible) but with no background/spacing/border and the raw input packed
   against the copy button - easy to read as "nothing happened" at a
   glance, especially on a page a merchant only visits once to grab a key. */
.token-result{margin-top:16px;padding:16px;border-radius:13px;background:var(--surface-2);border:1px solid var(--line)}
.token-label{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:6px}
.token-row{display:flex;gap:8px;align-items:center}
.token-value{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px}
.token-warn{margin-top:10px}
.token-result .toggle-row{margin-top:10px}
/* merchant-admin never had .toggle-row at all (platform-admin/admin do,
   in their own platform.css/admin.css) - added now for the ack-gate
   checkbox above, so it doesn't repeat the exact same unstyled-class
   mistake .token-result itself just got fixed for. */
.toggle-row{display:flex!important;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);margin:0!important;color:var(--text)!important;font-size:13px!important}
.toggle-row:last-child{border-bottom:0}
/* Same switch component as platform-admin's provider toggles
   (platform.css) - merchant-admin had no on/off switch control at all
   before the online-store-integration toggle, so this is ported verbatim
   rather than inventing a second visual system for the same concept. */
.switch{position:relative!important;display:inline-block!important;width:42px;height:24px;margin:0!important;flex-shrink:0}.switch input{display:none}.switch span{position:absolute;inset:0;background:var(--surface-3);border-radius:99px;cursor:pointer}.switch span:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:white;border-radius:50%;transition:.2s}.switch input:checked+span{background:var(--green)}.switch input:checked+span:before{transform:translateX(18px)}.switch input:disabled+span{opacity:.5;cursor:default}
.integration-notes{margin:14px 0 0;padding-left:20px;font-size:13px;color:var(--muted)}
.integration-notes li{margin-bottom:8px}
.integration-notes code{background:var(--surface-2);border-radius:5px;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.status-lifecycle{margin:10px 0 0;display:grid;gap:8px}
.status-lifecycle div{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:8px 10px;border-radius:10px;background:var(--surface-2);font-size:13px}
.status-lifecycle code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:700}
#pairing-panel #pairing-device-quota{margin-top:16px}
#pairing-panel #generate-pairing-code{margin-top:12px}
#pairing-panel #pairing-limit-notice{margin-top:12px}
.pairing-result{margin-top:16px;padding:18px;border-radius:13px;background:var(--surface-2);text-align:center}
.pairing-code{font-size:40px;font-weight:900;letter-spacing:.12em;font-variant-numeric:tabular-nums}
.pairing-expiry{margin-top:6px;font-size:13px;font-weight:700;color:var(--green)}
.pairing-expiry.expiring{color:var(--yellow)}
.pairing-expiry.expired{color:var(--red)}
.usage-box{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:6px 0}.usage-box>div{background:var(--surface-2);border-radius:13px;padding:13px}.usage-box span{display:block;color:var(--muted);font-size:11px}.usage-box strong{display:block;margin:5px 0}progress{width:100%;accent-color:var(--green)}
.usage-box-wide{grid-template-columns:repeat(3,1fr)}

/* Mi Suscripción (subscription.html) - plan-selection cards and the
   trial/past-due/suspended banner. Same token vocabulary as everywhere
   else in this app (--green/--surface-2/--line/.badge), not a second
   visual system - only the layout is new. */
.alert-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(130deg,var(--yellow-soft),var(--surface));border:1px solid color-mix(in srgb,var(--yellow) 30%,transparent)}
/* Same fix as sinpeguard.css's .btn[hidden] rule - .alert-banner's own
   display:flex (declared after the UA stylesheet) wins the cascade over
   the browser's default [hidden]{display:none} otherwise, so an ACTIVE
   subscription would show an empty yellow banner box on every load. */
.alert-banner[hidden]{display:none}
.alert-banner h2{color:var(--yellow)}
.billing-toggle{display:flex;gap:6px;width:fit-content;margin:14px 0 18px;padding:5px;background:var(--surface-2);border-radius:99px;border:1px solid var(--line)}
.toggle-option{border:0;background:transparent;color:var(--muted);font-weight:750;font-size:13px;padding:9px 16px;border-radius:99px;cursor:pointer;display:flex;align-items:center;gap:6px}
.toggle-option.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.save-badge{background:var(--green);color:white;font-size:10px;font-weight:800;padding:3px 7px;border-radius:99px}
.plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:14px}
.plan-card{padding:20px;display:flex;flex-direction:column}
.plan-card.plan-card-current{border:2px solid var(--green)}
.plan-label{color:var(--green);font-size:11px;font-weight:900;letter-spacing:.06em}
.plan-card h3{margin:8px 0 0;font-size:19px}
.plan-price{font-size:24px;font-weight:900;letter-spacing:-.03em;margin:12px 0 4px;min-height:30px}
.plan-price small{font-size:12px;font-weight:650;color:var(--muted)}
.plan-card ul{list-style:none;padding:0;margin:10px 0;display:grid;gap:8px;flex:1;font-size:13px}
.plan-card li::before{content:"✓";color:var(--green);font-weight:900;margin-right:7px}
.plan-card .btn{width:100%;margin-top:8px}
.enterprise-plan-card{margin-top:14px}
.enterprise-contact-card{margin-top:14px;flex-direction:row;align-items:center;gap:20px;flex-wrap:wrap}
.enterprise-contact-copy{flex:1;min-width:240px}
.enterprise-contact-copy h3{margin:8px 0 6px;font-size:17px}
.enterprise-contact-email{margin:10px 0 0;font-size:14px;font-weight:650}
.enterprise-contact-email a{color:var(--green)}
.enterprise-contact-actions{display:flex;gap:10px;flex-wrap:wrap}
.enterprise-contact-btn{width:auto;flex:none;margin-top:0;white-space:nowrap;padding-left:22px;padding-right:22px}
@media (max-width:640px){
 .enterprise-contact-card{flex-direction:column;align-items:stretch}
 .enterprise-contact-actions{flex-direction:column}
 .enterprise-contact-btn{width:100%}
}
@media(max-width:900px){
  .plan-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:800px){
  .shell{display:block}
  /* Top hamburger instead of a bottom bar (Jorge's decision, 2026-08-23) -
     aside becomes a slim fixed-top strip (logo + toggle only), nav becomes
     a slide-down panel beneath it, closed by default (max-height:0) and
     opened via .open (added/removed by shared/mobilenav.js). Unified with
     platform-admin's own <800px threshold on purpose - see platform.css. */
  aside{position:fixed;z-index:30;top:0;left:0;right:0;width:auto;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:10px 14px;display:flex;align-items:center;justify-content:space-between}
  aside .logo{display:flex}
  .mobile-nav-toggle{display:flex}
  nav{position:fixed;top:61px;left:0;right:0;z-index:29;display:flex;flex-direction:column;gap:0;margin-top:0;background:var(--surface);border-bottom:1px solid var(--line);max-height:0;overflow:hidden;transition:max-height .2s ease}
  nav.open{max-height:70vh;overflow-y:auto}
  nav a{padding:14px 16px;border-radius:0;border-bottom:1px solid var(--line);min-height:44px;display:flex;align-items:center}
  main{padding:70px 14px 24px}
  header{height:auto;flex-wrap:wrap;gap:10px;padding:14px 0}
  #user-email{display:none}
  .header-actions{width:100%;justify-content:space-between}
  .metrics{grid-template-columns:1fr 1fr}
  #summary-metrics{grid-template-columns:1fr 1fr}
  .usage-box-wide{grid-template-columns:1fr 1fr}
  .plan-grid{grid-template-columns:1fr}
  .alert-banner{flex-direction:column;align-items:flex-start}
  .alert-banner .btn{width:100%}
  .toast{bottom:20px}
  /* .table-card/table/.toolbar/.stack-mobile mobile rules now live in
     shared/sinpeguard.css's own @media(max-width:800px) block. */
}
