:root {
  --color-bg: #f5f3ef;
  --color-panel: #ffffff;
  --color-border: #ddd6cc;
  --color-text: #2b2620;
  --color-muted: #6b6255;
  --color-primary: #a8471f;
  --color-primary-dark: #833614;
  --color-ok: #2f7d3c;
  --color-warn: #b8860b;
  --color-danger: #b3261e;
  --radius: 8px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-primary);
  color: #fff;
}
.topbar-brand { font-weight: 700; }
.topbar-user { display: flex; align-items: center; gap: 12px; }

.layout { display: flex; min-height: calc(100vh - 52px); }

.sidenav {
  width: 220px;
  flex-shrink: 0;
  background: var(--color-panel);
  border-right: 1px solid var(--color-border);
  padding: 12px 0;
}
.sidenav a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.sidenav a:hover, .sidenav a:focus { background: #f0ebe3; }
.sidenav a.active { border-left-color: var(--color-primary); font-weight: 600; background: #f0ebe3; }

.content { flex: 1; padding: 20px; max-width: 1100px; }

.view[hidden] { display: none; }

.login-card {
  max-width: 360px;
  margin: 80px auto;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-card label { font-weight: 600; margin-top: 8px; }
.login-card input { padding: 10px; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 1rem; }

.btn {
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn-primary { background: var(--color-primary); color: #fff; margin-top: 12px; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-secondary { background: #efe9e0; color: var(--color-text); border-color: var(--color-border); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.error-text { color: var(--color-danger); min-height: 1.2em; font-size: 0.9rem; }

.card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.badge-ok { background: #e3f2e5; color: var(--color-ok); }
.badge-warn { background: #fbf0d9; color: var(--color-warn); }
.badge-danger { background: #fbe3e1; color: var(--color-danger); }
.badge-muted { background: #eee; color: var(--color-muted); }
.badge-info { background: #e1eefb; color: #1c5faa; }
/* NUEVO V3.1: resalta filas con alerta real (p.ej. PAID sin SENT_OK) en tablas de Pedidos/Flow/Inicio. */
.row-alert { background: #fdf1f0; }
.chain-steps { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 0.8rem; margin: 8px 0; }
.prod-thumb { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--color-border); }
th { color: var(--color-muted); font-weight: 600; }

input[type="text"], input[type="number"], input[type="search"], input[type="time"], textarea, select {
  padding: 8px; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.95rem; width: 100%;
}
label { font-weight: 600; display: block; margin: 8px 0 4px; }
fieldset { border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 12px; }

.toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--color-text);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  max-width: 320px;
  z-index: 200;
}
.toast.error { background: var(--color-danger); }
.toast.ok { background: var(--color-ok); }

@media (max-width: 720px) {
  .layout { flex-direction: column; }
  .sidenav { width: 100%; display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--color-border); }
  .sidenav a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .sidenav a.active { border-left: none; border-bottom-color: var(--color-primary); }
  .content { padding: 12px; }
}

:focus-visible { outline: 3px solid #2c6ea5; outline-offset: 2px; }

/* --- V3: Control Center / módulos nuevos --- */
.muted { color: var(--color-muted); }
.topbar-brand { display: flex; flex-direction: column; line-height: 1.2; }
.topbar-store { font-size: 0.8rem; font-weight: 400; opacity: 0.85; }
.topbar-status { display: flex; align-items: center; }
.module-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.module-card-head h3 { margin: 0; font-size: 1rem; }
.module-summary { min-height: 1.2em; }
.alerts-list { list-style: none; padding: 0; margin: 0; }
.alerts-list li { padding: 8px 12px; border-radius: var(--radius); margin-bottom: 6px; }
.alert-critical { background: #fbe3e1; color: var(--color-danger); }
.alert-warning { background: #fbf0d9; color: var(--color-warn); }
.alert-info { background: #eef3fb; color: #2c6ea5; }
details.card summary { cursor: pointer; font-weight: 600; }
.user-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* --- Catalogo: rediseño 2026-08-12 (DIAGNOSTICO-CATALOGO-UX-RUCULA.md) --- */

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.catalog-toolbar input[type="search"],
.catalog-toolbar select {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.segmented {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.segmented-opt {
  padding: 8px 12px;
  font-size: 0.85rem;
  background: var(--color-panel);
  border: none;
  border-left: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
}
.segmented-opt:first-child { border-left: none; }
.segmented-opt.is-active { background: var(--color-primary); color: #fff; }

/* FIX 2026-08-12 v2 (pedido por Dan tras revisar el candidato v1):
   overflow:hidden en la tarjeta de la tabla cortaba columnas en
   pantallas angostas (notebook/tablet) en vez de permitir scroll
   horizontal. overflow-x:auto dentro de un wrapper deja que la
   tabla se desplace horizontalmente sin recortar contenido, y
   preserva las esquinas redondeadas de la tarjeta. */
.catalog-table-card { padding: 0; overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; }
.catalog-table { table-layout: auto; width: 100%; min-width: 640px; }
.catalog-table th, .catalog-table td { padding: 10px 12px; vertical-align: middle; }
.catalog-table thead th { background: #f0ebe3; text-align: left; font-weight: 600; }
.catalog-table tbody tr:hover { background: #faf8f4; }

.catalog-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.catalog-thumb-empty {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #efe9e0;
  display: block;
}

/* Switch ON/OFF -- reemplaza checkbox + "Sí"/"No" redundante */
.switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #d9d2c4;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}
.switch.is-on { background: var(--color-primary); }
.switch.is-on::after { transform: translateX(18px); }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }
.switch-label { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }

/* Tarjeta de publicacion del catalogo (correccion 2026-08-12 v2,
   pedida por Dan: la zona de Vista previa/Publicar debe estar SIEMPRE
   visible para usuarios con permiso, no escondida detras de un
   contador de cambios pendientes -- reemplaza la vieja .pending-bar,
   que se ocultaba con `hidden` segun CatalogState.pendingChanges).
   flex-wrap en las acciones evita que los botones se corten o se
   salgan de la tarjeta en pantallas angostas (tablet/notebook). */
.catalog-publish-card { margin: 12px 0; }
.catalog-publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* Drawer de edicion de producto */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 32, 0.45);
  display: flex;
  justify-content: flex-end;
  z-index: 200;
}
.drawer {
  width: min(400px, 100%);
  height: 100%;
  background: var(--color-panel);
  box-shadow: -4px 0 16px rgba(0,0,0,0.15);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-title { font-size: 1.1rem; font-weight: 700; }
.drawer-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
  padding: 4px 8px;
}
.drawer-photo-row { display: flex; gap: 12px; align-items: center; }
.drawer-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #efe9e0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.drawer-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.drawer-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-switches { display: flex; gap: 20px; margin: 4px 0; }
.drawer-advanced { border-top: 1px solid var(--color-border); padding-top: 8px; margin-top: 4px; }
.drawer-advanced summary { cursor: pointer; font-weight: 600; color: var(--color-muted); }
.drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: auto;
}


/* ATLAS RC PANEL SCHEDULED */
.atlas-modal{position:fixed;inset:0;z-index:5000;display:none}
.atlas-modal.open{display:block}
.atlas-modal-backdrop{position:absolute;inset:0;background:rgba(20,16,12,.48)}
.atlas-modal-panel{position:absolute;top:0;right:0;width:min(760px,94vw);height:100%;overflow:auto;background:#fffaf4;box-shadow:-18px 0 45px rgba(0,0,0,.18);padding:24px}
.atlas-modal-open{overflow:hidden}
.atlas-modal-header,.atlas-card-head,.atlas-scheduled-row,.atlas-scheduled-meta{display:flex;align-items:center}
.atlas-modal-header,.atlas-card-head{justify-content:space-between;gap:16px}
.atlas-modal-close{border:0;background:transparent;font-size:34px;cursor:pointer}
.atlas-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.atlas-detail-grid section,.atlas-order-section{border:1px solid #ead8c6;border-radius:14px;padding:16px;background:#fff}
.atlas-detail-grid dl{display:grid;grid-template-columns:120px 1fr;gap:8px 12px;margin:0}
.atlas-detail-grid dt{color:#765f4b}.atlas-detail-grid dd{margin:0;font-weight:600}.atlas-total{font-size:1.25rem}
.atlas-order-badges{display:flex;gap:8px;flex-wrap:wrap}.badge-info{background:#e9f2ff;color:#24558c}
.atlas-order-section{margin-top:16px}.atlas-tech{margin-top:10px}.atlas-tech summary{cursor:pointer;font-weight:700}
.atlas-tech pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto}
.atlas-timeline{display:grid;gap:12px}.atlas-timeline-row{display:flex;gap:12px;align-items:flex-start}
.atlas-timeline-dot{width:10px;height:10px;border-radius:50%;margin-top:6px;background:#b6531c;flex:0 0 auto}
.atlas-scheduled-card{margin-top:18px}.atlas-scheduled-list{display:grid;gap:10px}
.atlas-scheduled-row{gap:16px;justify-content:space-between;border:1px solid #ead8c6;border-radius:12px;padding:14px;background:#fff}
.atlas-scheduled-time{min-width:78px;display:grid}.atlas-scheduled-time strong{font-size:1.25rem}
.atlas-scheduled-main{flex:1;display:grid;gap:4px}.atlas-scheduled-meta{gap:10px;flex-wrap:wrap}
.atlas-scheduled-total{font-weight:800;white-space:nowrap}
@media(max-width:720px){.atlas-modal-panel{top:8vh;width:100%;height:92%;border-radius:18px 18px 0 0}.atlas-detail-grid{grid-template-columns:1fr}.atlas-detail-grid dl{grid-template-columns:100px 1fr}.atlas-scheduled-row{align-items:flex-start}}

/* ATLAS ORDERS OPERATIONS */
.atlas-orders-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:18px;
}

.atlas-store-open-pill{
  border-radius:999px;
  padding:10px 16px;
  background:#edf7ee;
  font-weight:700;
}

.atlas-sound-banner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 18px;
  margin-bottom:20px;
  border-radius:12px;
  background:#fff1be;
  border:1px solid #e7c14b;
}

.atlas-sound-banner div{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.atlas-sound-banner.enabled{
  background:#edf7ee;
  border-color:#b9dfbf;
}

.atlas-orders-board{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}

.atlas-order-column{
  min-width:0;
}

.atlas-order-column-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.atlas-order-column-title h2{
  font-size:18px;
  margin:0;
}

.atlas-count{
  min-width:30px;
  height:30px;
  padding:0 8px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#eee;
  font-weight:700;
}

.atlas-order-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.atlas-order-card{
  background:#fff;
  border:1px solid #ddd6cc;
  border-radius:14px;
  padding:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}

.atlas-order-new{
  border:2px solid #d89b00;
}

.atlas-order-ready{
  border:2px solid #47985a;
}

.atlas-order-card-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.atlas-order-state{
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
}

.atlas-order-card h3{
  margin:12px 0 2px;
}

.atlas-order-id{
  margin:0 0 12px;
  font-size:12px;
  opacity:.7;
}

.atlas-order-pickup{
  font-weight:700;
  margin-bottom:14px;
}

.atlas-order-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.atlas-empty-order{
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  border:1px dashed #d8d0c5;
  border-radius:12px;
  color:#756e66;
}

.atlas-programmed-orders,
.atlas-orders-history{
  margin-top:18px;
}

@media(max-width:1000px){
  .atlas-orders-board{
    grid-template-columns:1fr;
  }

  .atlas-sound-banner{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* ATLAS GLOBAL ORDER SOUND */
.atlas-global-sound-prompt{
  position:fixed;
  left:50%;
  bottom:22px;
  z-index:10050;
  transform:translate(-50%, 140%);
  width:min(720px, calc(100vw - 32px));
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:14px 16px;
  background:#fff1be;
  border:1px solid #dfb62d;
  border-radius:14px;
  box-shadow:0 10px 35px rgba(0,0,0,.20);
  opacity:0;
  pointer-events:none;
  transition:
    transform .2s ease,
    opacity .2s ease;
}

.atlas-global-sound-prompt.visible{
  transform:translate(-50%,0);
  opacity:1;
  pointer-events:auto;
}

.atlas-global-sound-prompt > div{
  display:flex;
  flex-direction:column;
  gap:3px;
}

@media(max-width:700px){
  .atlas-global-sound-prompt{
    align-items:stretch;
    flex-direction:column;
  }

  .atlas-global-sound-prompt button{
    width:100%;
  }
}

/* ATLAS HEADER OPERATIVO */

.atlas-topbar-operational{
  display:flex;
  align-items:center;
  gap:10px;
}

.atlas-store-mode{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 11px;
  border-radius:999px;
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
  background:#f1efec;
  color:#4f4b47;
}

.atlas-store-mode-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:currentColor;
}

.atlas-store-mode.online{
  background:#e8f6ec;
  color:#22753b;
}

.atlas-store-mode.paused{
  background:#fdeaea;
  color:#b52b2b;
}

.atlas-store-mode.queue{
  background:#fff2d9;
  color:#956000;
}

.atlas-store-mode.unknown{
  background:#f1efec;
  color:#77716b;
}

.atlas-topbar-bell{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  font-size:21px;
  cursor:pointer;
}

.atlas-topbar-bell:hover{
  background:rgba(0,0,0,.06);
}

.atlas-topbar-bell.blocked{
  opacity:.58;
}

.atlas-topbar-bell.has-orders{
  background:#fff0c2;
  animation:atlasBellAttention 1.1s ease-in-out infinite;
}

.atlas-topbar-bell.has-orders::after{
  content:"";
  position:absolute;
  top:5px;
  right:5px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#d73d32;
}

@keyframes atlasBellAttention{
  0%,100%{transform:rotate(0)}
  25%{transform:rotate(-7deg)}
  75%{transform:rotate(7deg)}
}

/* Estado discreto dentro de Pedidos */
.atlas-sound-status{
  display:flex;
  align-items:center;
  gap:8px;
  margin:-5px 0 18px;
  color:#6c665f;
  font-size:13px;
}

.atlas-sound-status-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#aaa49d;
}

.atlas-sound-status.enabled .atlas-sound-status-dot{
  background:#2d8b48;
}

.atlas-sound-inline{
  border:0;
  background:transparent;
  padding:3px 5px;
  cursor:pointer;
  font-size:16px;
}

/*
 * El antiguo prompt permanece en DOM por compatibilidad,
 * pero ya no aparece automáticamente.
 */
.atlas-global-sound-prompt{
  display:none !important;
}

@media(max-width:760px){
  .atlas-store-mode{
    padding:6px 8px;
  }

  .atlas-topbar-bell{
    width:34px;
    height:34px;
  }
}

/* ATLAS HEADER FINAL */
/* Ya no se muestra ningún estado de sonido dentro de Pedidos */
.atlas-sound-status,
.atlas-sound-inline{
  display:none !important;
}

/* ============================================================
   ATLAS · ESTADO OPERATIVO EN HEADER
   ============================================================ */

button.atlas-store-mode{
  border:0;
  font:inherit;
  cursor:pointer;
}

button.atlas-store-mode:hover{
  filter:brightness(.97);
}

.atlas-store-mode-chevron{
  font-size:13px;
  margin-left:2px;
  opacity:.75;
}

.atlas-modal-open{
  overflow:hidden;
}

.atlas-store-mode-modal[hidden]{
  display:none;
}

.atlas-store-mode-modal{
  position:fixed;
  inset:0;
  z-index:12000;
}

.atlas-store-mode-backdrop{
  position:absolute;
  inset:0;
  background:rgba(25,24,22,.48);
}

.atlas-store-mode-sheet{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:min(520px, calc(100vw - 32px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  background:#fff;
  border-radius:18px;
  box-shadow:
    0 24px 70px rgba(0,0,0,.25);
}

.atlas-store-mode-sheet-header{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:22px 22px 18px;
  border-bottom:1px solid #ebe6df;
}

.atlas-store-mode-sheet-header h2{
  margin:0 0 5px;
  font-size:22px;
}

.atlas-store-mode-sheet-header p{
  margin:0;
  color:#716b64;
  font-size:14px;
}

.atlas-store-mode-close{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border:0;
  border-radius:50%;
  background:transparent;
  font-size:27px;
  line-height:1;
  cursor:pointer;
}

.atlas-store-mode-close:hover{
  background:#f3f0ec;
}

.atlas-store-mode-options{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:20px 22px 8px;
}

.atlas-store-mode-option{
  position:relative;
  display:grid;
  grid-template-columns:18px 1fr 22px;
  align-items:center;
  gap:14px;
  min-height:76px;
  padding:14px 16px;
  border:1px solid #ddd6ce;
  border-radius:13px;
  cursor:pointer;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.atlas-store-mode-option:hover{
  border-color:#a59c93;
}

.atlas-store-mode-option.selected{
  border:2px solid #292522;
  padding:13px 15px;
  background:#fff;
}

.atlas-store-mode-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.atlas-store-mode-option-dot{
  width:14px;
  height:14px;
  border-radius:50%;
}

.atlas-store-mode-option-dot.online{
  background:#31aa69;
}

.atlas-store-mode-option-dot.queue{
  background:#e5a82c;
}

.atlas-store-mode-option-dot.paused{
  background:#db3e3e;
}

.atlas-store-mode-option-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.atlas-store-mode-option-copy strong{
  font-size:15px;
}

.atlas-store-mode-option-copy small{
  color:#716b64;
  font-size:13px;
  line-height:1.35;
}

.atlas-store-mode-radio{
  width:18px;
  height:18px;
  border:2px solid #817970;
  border-radius:50%;
}

.atlas-store-mode-option.selected
.atlas-store-mode-radio{
  border:5px solid #211e1c;
}

.atlas-store-mode-reason{
  padding:14px 22px 8px;
}

.atlas-store-mode-reason label{
  display:block;
  margin-bottom:7px;
  font-size:13px;
  font-weight:700;
}

.atlas-store-mode-reason input{
  width:100%;
  box-sizing:border-box;
}

.atlas-store-mode-error{
  min-height:19px;
  margin:7px 0 0;
  color:#b52b2b;
  font-size:13px;
}

.atlas-store-mode-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px 22px 22px;
}

@media(max-width:620px){
  .atlas-store-mode-sheet{
    top:auto;
    bottom:0;
    left:0;
    transform:none;
    width:100%;
    max-height:88vh;
    border-radius:18px 18px 0 0;
  }

  .atlas-store-mode-actions{
    flex-direction:column-reverse;
  }

  .atlas-store-mode-actions .btn{
    width:100%;
  }
}

/* ============================================================
   ATLAS · CLEAN OPERATION BOARD
   ============================================================ */

/* El header de Pedidos ya no necesita pill Operación */
.atlas-orders-header{
  align-items:flex-start;
}

/* Chevron real, no carácter Unicode */
.atlas-store-mode-chevron{
  display:inline-block;
  width:7px;
  height:7px;
  margin-left:3px;
  border-right:1.7px solid currentColor;
  border-bottom:1.7px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transform-origin:center;
  opacity:.72;
  transition:transform .16s ease;
}

button.atlas-store-mode[aria-expanded="true"]
.atlas-store-mode-chevron{
  transform:rotate(225deg) translate(-1px,-1px);
}

/* Nuevo ahora significa entrada informativa, no aceptación pendiente */
.atlas-order-new .atlas-order-state{
  letter-spacing:.02em;
}


/* =========================================================
   ATLAS ORDERS UX DETAIL RC
   ========================================================= */

.atlas-orders-board{
  align-items:start;
  gap:18px;
}

.atlas-order-column{
  min-width:0;
  background:#faf8f5;
  border:1px solid #eee7df;
  border-radius:16px;
  padding:12px;
}

.atlas-order-column-title{
  padding:2px 3px 8px;
}

.atlas-order-stack{
  gap:10px;
}

.atlas-order-card{
  width:100%;
  box-sizing:border-box;
  padding:15px;
  border-radius:14px;
  box-shadow:0 2px 7px rgba(0,0,0,.05);
}

.atlas-order-card h3{
  margin:0;
  font-size:17px;
  line-height:1.25;
}

.atlas-order-total{
  font-size:16px;
  white-space:nowrap;
}

.atlas-order-customer-row{
  display:grid;
  gap:4px;
  margin-top:12px;
}

.atlas-order-id{
  margin:0;
  font-size:11px;
  color:#827970;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.atlas-order-pickup{
  margin:10px 0 0;
  padding-bottom:10px;
  border-bottom:1px solid #eee7df;
}

.atlas-order-card-items{
  display:grid;
  gap:8px;
  margin:11px 0 13px;
}

.atlas-order-card-item{
  line-height:1.28;
  font-size:13px;
}

.atlas-order-card-modifiers{
  margin:3px 0 0 18px;
  color:#695f56;
  font-size:12px;
}

.atlas-order-more{
  color:#766d65;
  font-size:12px;
  font-weight:650;
}

.atlas-order-items-empty{
  margin:10px 0;
  font-size:12px;
  color:#827970;
}

.atlas-order-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin-top:auto;
}

.atlas-order-actions .btn{
  min-height:40px;
}

.atlas-order-products-section{
  margin-top:16px;
  padding:18px;
  background:#fff;
  border:1px solid #ead8c6;
  border-radius:14px;
}

.atlas-order-products-title h3{
  margin:0;
  font-size:20px;
}

.atlas-order-products-title p{
  margin:0 0 3px;
}

.atlas-order-detail-items{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.atlas-order-detail-item{
  padding:13px 14px;
  border:1px solid #eee3d8;
  border-radius:12px;
  background:#fffaf4;
}

.atlas-order-detail-item-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}

.atlas-order-detail-qty{
  display:inline-flex;
  min-width:32px;
  font-weight:800;
  color:#ad481d;
}

.atlas-order-detail-modifiers{
  margin:8px 0 0 32px;
  padding-left:18px;
  color:#5e554e;
}

.atlas-order-detail-modifiers li{
  margin:3px 0;
}

.atlas-order-item-note{
  margin:10px 0 0 32px;
  padding:8px 10px;
  border-radius:8px;
  background:#fff2d9;
  font-size:13px;
}

.atlas-order-detail-status{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
}

.atlas-order-detail-status-pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#f1eee9;
  font-size:12px;
  font-weight:800;
}

.atlas-order-human-detail{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}

.atlas-order-human-detail section{
  border:1px solid #ead8c6;
  border-radius:14px;
  padding:15px;
  background:#fff;
}

.atlas-order-human-detail h3{
  margin:0 0 12px;
}

.atlas-order-human-detail dl{
  display:grid;
  grid-template-columns:90px minmax(0,1fr);
  gap:7px 10px;
  margin:0;
}

.atlas-order-human-detail dt{
  color:#786b60;
}

.atlas-order-human-detail dd{
  margin:0;
  font-weight:650;
  overflow-wrap:anywhere;
}

.atlas-order-detail-total{
  font-size:17px;
}

.atlas-scheduled-products .atlas-order-card-items{
  margin:6px 0 0;
}

.atlas-scheduled-products .atlas-order-card-modifiers{
  display:none;
}

/* Reduce caja vacía cuando una columna no tiene pedidos */
.atlas-empty-order{
  min-height:72px;
  padding:14px;
}

/* Próximos programados vacío: más compacto */
.atlas-programmed-orders{
  padding-top:2px;
}

@media(max-width:1100px){
  .atlas-orders-board{
    grid-template-columns:repeat(3,minmax(260px,1fr));
    overflow-x:auto;
    padding-bottom:6px;
  }
}

@media(max-width:760px){
  .atlas-orders-board{
    grid-template-columns:1fr;
    overflow:visible;
  }

  .atlas-order-human-detail{
    grid-template-columns:1fr;
  }

  .atlas-order-actions{
    grid-template-columns:1fr;
  }

  .atlas-order-actions .btn{
    width:100%;
  }

  .atlas-order-detail-item-head{
    gap:8px;
  }
}


/* =========================================================
   ATLAS ORDER MODAL FINAL POLISH
   ========================================================= */

.atlas-order-schedule-highlight{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:22px;
  margin-top:14px;
  padding:16px 18px;
  border:1px solid #ead8c6;
  border-radius:14px;
  background:#fff5e9;
}

.atlas-order-schedule-highlight.asap{
  background:#f4f8f4;
}

.atlas-order-schedule-highlight > div:first-child{
  display:grid;
  gap:2px;
}

.atlas-order-highlight-label{
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  color:#8b684f;
}

.atlas-order-highlight-time{
  font-size:27px;
  line-height:1.05;
  color:#29231f;
}

.atlas-order-highlight-date{
  font-size:12px;
  color:#766d65;
}

.atlas-order-schedule-meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.atlas-order-schedule-meta span{
  display:grid;
  gap:2px;
  min-width:100px;
  padding:8px 10px;
  background:rgba(255,255,255,.72);
  border:1px solid #eadfd4;
  border-radius:10px;
  font-size:11px;
  color:#776b61;
}

.atlas-order-schedule-meta strong{
  font-size:14px;
  color:#302923;
}

.atlas-order-products-section > h3{
  margin:0 0 12px;
  font-size:19px;
}

.atlas-order-human-detail-compact{
  gap:10px;
}

.atlas-order-human-detail-compact section{
  padding:13px 14px;
}

.atlas-order-human-detail-compact h3{
  margin-bottom:9px;
  font-size:16px;
}

.atlas-order-human-detail-compact dl{
  grid-template-columns:82px minmax(0,1fr);
  gap:5px 9px;
  font-size:13px;
}

.atlas-order-code{
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:11px;
  color:#665d55;
  word-break:break-all;
}

.atlas-order-modal-total{
  font-size:20px;
}

.atlas-order-products-section + .atlas-order-human-detail{
  margin-top:12px;
}

@media(max-width:720px){
  .atlas-order-schedule-highlight{
    align-items:flex-start;
    flex-direction:column;
  }

  .atlas-order-schedule-meta{
    width:100%;
    justify-content:flex-start;
  }

  .atlas-order-schedule-meta span{
    flex:1 1 120px;
  }
}


/* =========================================================
   ATLAS ORDERS FINAL POLISH RC
   Presentación únicamente. Sin lógica operativa.
   ========================================================= */

/* ---------- Estructura general ---------- */

.atlas-orders-header{
  margin-bottom:22px;
}

.atlas-orders-board{
  gap:16px;
  margin-bottom:20px;
}

.atlas-order-column{
  padding:13px;
  border-radius:16px;
  background:#fbfaf8;
  border-color:#e9e3dc;
}

.atlas-order-column-title{
  min-height:34px;
  padding:0 2px 9px;
}

.atlas-order-column-title h2{
  font-size:17px;
  letter-spacing:-.01em;
}

.atlas-count{
  min-width:27px;
  height:27px;
  font-size:12px;
  background:#f0ede9;
}

/* ---------- Estados vacíos ---------- */

.atlas-empty-order{
  min-height:76px;
  border-color:#ddd6cf;
  background:rgba(255,255,255,.5);
  color:#80776f;
  font-size:13px;
}

/* ---------- Tarjetas ---------- */

.atlas-order-card{
  padding:15px;
  border-radius:13px;
  transition:
    box-shadow .15s ease,
    transform .15s ease,
    border-color .15s ease;
}

.atlas-order-card:hover{
  box-shadow:0 5px 16px rgba(40,30,20,.07);
}

.atlas-order-new{
  border-color:#d59b18;
}

.atlas-order-ready{
  border-color:#4c9a61;
}

.atlas-order-card-top{
  min-height:22px;
}

.atlas-order-state{
  font-size:11px;
  letter-spacing:.055em;
}

.atlas-order-card h3{
  font-size:16px;
  letter-spacing:-.01em;
}

.atlas-order-customer-row{
  margin-top:11px;
}

.atlas-order-pickup{
  margin-top:9px;
  font-size:13px;
}

.atlas-order-card-items{
  margin-top:10px;
  margin-bottom:12px;
}

.atlas-order-card-item{
  padding:2px 0;
}

.atlas-order-card-item > strong{
  font-size:13px;
}

.atlas-order-card-modifiers{
  padding-left:5px;
  border-left:2px solid #eaded2;
  margin-left:16px;
  line-height:1.45;
}

.atlas-order-more{
  margin-top:1px;
}

/* ---------- Botones ---------- */

.atlas-order-actions{
  gap:8px;
  margin-top:12px;
}

.atlas-order-actions .btn{
  min-height:38px;
  border-radius:9px;
  font-size:13px;
  font-weight:700;
}

.atlas-order-actions .btn-secondary{
  background:#f4f1ed;
  border-color:#ddd5cc;
}

.atlas-order-actions .btn-secondary:hover{
  background:#ebe6df;
}

.atlas-order-actions .btn-primary{
  padding-left:16px;
  padding-right:16px;
}

/* ---------- Programados ---------- */

.atlas-programmed-orders{
  margin-top:15px;
}

.atlas-scheduled-card{
  margin-top:15px;
}

.atlas-scheduled-row{
  padding:12px 14px;
  border-radius:11px;
}

.atlas-scheduled-time strong{
  font-size:18px;
}

.atlas-scheduled-products{
  margin-top:3px;
}

/* ---------- Modal ---------- */

.atlas-modal-panel{
  width:min(720px,96vw);
  padding:22px 22px 28px;
}

.atlas-modal-header{
  padding-bottom:11px;
  border-bottom:1px solid #eee5dc;
}

#atlas-order-modal-title{
  margin:3px 0 0;
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.018em;
}

.atlas-modal-close{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  font-size:27px;
  line-height:1;
  transition:background .15s ease;
}

.atlas-modal-close:hover{
  background:#f2ece6;
}

/* ---------- Cabecera del pedido ---------- */

.atlas-order-detail-status{
  margin-top:14px;
}

.atlas-order-detail-status-pill{
  padding:5px 9px;
  font-size:11px;
  letter-spacing:.04em;
}

.atlas-order-modal-total{
  font-size:19px;
  letter-spacing:-.015em;
}

/* ---------- Hora / preparación ---------- */

.atlas-order-schedule-highlight{
  margin-top:12px;
  padding:15px 16px;
  border-radius:13px;
}

.atlas-order-highlight-label{
  font-size:10px;
  letter-spacing:.09em;
}

.atlas-order-highlight-time{
  margin-top:2px;
  font-size:28px;
  font-weight:800;
  letter-spacing:-.025em;
}

.atlas-order-highlight-date{
  margin-top:2px;
}

.atlas-order-schedule-meta{
  gap:7px;
}

.atlas-order-schedule-meta span{
  min-width:92px;
  padding:7px 9px;
  border-radius:9px;
}

.atlas-order-schedule-meta strong{
  font-size:13px;
}

/* ---------- Productos ---------- */

.atlas-order-products-section{
  margin-top:13px;
  padding:15px;
  border-radius:13px;
}

.atlas-order-products-section > h3{
  font-size:17px;
  margin-bottom:10px;
}

.atlas-order-detail-items{
  gap:8px;
  margin-top:8px;
}

.atlas-order-detail-item{
  padding:11px 12px;
  border-radius:10px;
}

.atlas-order-detail-item-head{
  align-items:center;
}

.atlas-order-detail-item-head strong{
  font-size:13px;
}

.atlas-order-detail-qty{
  min-width:31px;
  font-size:13px;
}

.atlas-order-detail-modifiers{
  margin-top:7px;
  margin-left:31px;
  padding:7px 0 0 17px;
  border-left:2px solid #ead8c6;
  list-style:none;
}

.atlas-order-detail-modifiers li{
  position:relative;
  margin:4px 0;
  font-size:12px;
  color:#685e56;
}

.atlas-order-detail-modifiers li::before{
  content:"+";
  position:absolute;
  left:-14px;
  font-weight:800;
  color:#a85a34;
}

.atlas-order-item-note{
  margin-left:31px;
  font-size:12px;
}

/* ---------- Datos operativos ---------- */

.atlas-order-human-detail{
  margin-top:11px;
}

.atlas-order-human-detail-compact{
  gap:9px;
}

.atlas-order-human-detail-compact section{
  min-height:112px;
  padding:12px 13px;
  border-radius:12px;
}

.atlas-order-human-detail-compact h3{
  margin-bottom:8px;
  font-size:15px;
}

.atlas-order-human-detail-compact dl{
  grid-template-columns:76px minmax(0,1fr);
  gap:5px 8px;
  font-size:12px;
}

.atlas-order-human-detail-compact dt{
  color:#81756c;
}

.atlas-order-human-detail-compact dd{
  line-height:1.35;
}

.atlas-order-code{
  font-size:10px;
  line-height:1.35;
}

/* ---------- Información técnica ---------- */

.atlas-tech{
  margin-top:11px;
  padding-top:2px;
}

.atlas-tech summary{
  font-size:13px;
  color:#655c54;
}

/* ---------- Historial ---------- */

.atlas-orders-history{
  margin-top:15px;
}

.atlas-orders-history table{
  border-collapse:separate;
  border-spacing:0;
}

.atlas-orders-history th{
  padding:10px 8px;
  font-size:12px;
  color:#71675f;
  border-bottom:1px solid #ddd5cd;
}

.atlas-orders-history td{
  padding:10px 8px;
  vertical-align:middle;
  border-bottom:1px solid #eee8e2;
}

.atlas-orders-history tbody tr:hover{
  background:#fcfaf7;
}

.atlas-orders-history .btn{
  min-height:34px;
  padding:6px 12px;
  border-radius:8px;
}

/* ---------- Header operativo ---------- */

.atlas-topbar-operational{
  gap:8px;
}

.atlas-store-mode{
  min-height:34px;
  padding:6px 12px;
}

.atlas-topbar-bell{
  width:36px;
  height:36px;
  font-size:19px;
}

/* ---------- Responsive ---------- */

@media(max-width:1100px){
  .atlas-orders-board{
    gap:12px;
  }

  .atlas-order-column{
    padding:10px;
  }
}

@media(max-width:720px){
  .atlas-modal-panel{
    padding:18px 16px 24px;
  }

  #atlas-order-modal-title{
    font-size:18px;
  }

  .atlas-order-highlight-time{
    font-size:25px;
  }

  .atlas-order-human-detail-compact section{
    min-height:0;
  }

  .atlas-order-detail-modifiers,
  .atlas-order-item-note{
    margin-left:24px;
  }
}

/* =========================================================
   LPDO BRAND THEME - 2026-09-14
   Solo visual. No modifica lógica del Control Center.
   ========================================================= */

:root {
  --color-bg: #f4eee6;
  --color-panel: #fffaf4;
  --color-border: #d8c3ad;

  --color-text: #24170f;
  --color-muted: #796654;

  --color-primary: #5a2a12;
  --color-primary-dark: #35170a;

  --lpdo-accent: #b84f1d;
  --lpdo-cream: #f4dfc4;
  --lpdo-dark: #24140c;
}

/* Barra superior */
.topbar {
  background: var(--lpdo-dark);
  color: #fff7ed;
  border-bottom: 3px solid var(--lpdo-accent);
}

/* Fondo general */
body {
  background: var(--color-bg);
}

/* Menú lateral */
.sidenav {
  background: #fffaf4;
  border-right-color: #d8c3ad;
}

.sidenav a {
  color: #2b1a10;
}

.sidenav a:hover,
.sidenav a:focus {
  background: #f1dfcf;
}

.sidenav a.active {
  background: #ead3bf;
  border-left-color: var(--lpdo-accent);
  color: #2b160c;
}

/* Tarjetas */
.card {
  background: #fffaf4;
  border-color: #d8c3ad;
  box-shadow: 0 2px 8px rgba(53, 23, 10, .05);
}

/* Botones */
.btn-primary {
  background: var(--lpdo-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #963d16;
}

.btn-secondary {
  background: #f1dfcf;
  color: #2b160c;
  border-color: #d8c3ad;
}

/* Selecciones / controles */
input,
select,
textarea {
  background: #fffdf9;
  color: #24170f;
}

/* Tablas */
th {
  color: #6f5a48;
}

.catalog-table thead th {
  background: #ead3bf;
}

.catalog-table tbody tr:hover {
  background: #f8eee4;
}

/* Estados */
.badge-muted {
  background: #e9dfd5;
  color: #6b5848;
}

.badge-info {
  background: #f0ddca;
  color: #8e3e19;
}

/* Foco */
:focus-visible {
  outline-color: var(--lpdo-accent);
}


/* ATLAS - DASHBOARD ALOHA EMBEBIDO */
.atlas-dashboard-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.atlas-dashboard-page-head h1 {
  margin-bottom: 2px;
}

.atlas-dashboard-page-head .muted {
  margin-top: 0;
}

.atlas-dashboard-embed {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 680px;
  background: #0b0b16;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.atlas-dashboard-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b0b16;
}

@media (max-width: 720px) {
  .atlas-dashboard-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .atlas-dashboard-embed {
    height: 78vh;
    min-height: 600px;
  }
}

/* =========================================================
   LPDO PALETA OFICIAL - CONTROL CENTER
   ========================================================= */

:root {
  --color-bg: #f7eddf;
  --color-panel: #fff8ed;
  --color-border: #eadbc6;
  --color-text: #182235;
  --color-muted: #6f6258;

  --color-primary: #b85a30;
  --color-primary-dark: #9f4822;

  --lpdo-accent: #c5642f;
  --lpdo-cream: #fff8ed;
  --lpdo-ink: #182235;
}

/* Barra superior LPDO */
.topbar {
  background: #b85a30 !important;
  color: #ffffff !important;
  border-bottom: 3px solid #9f4822 !important;
}

/* Fondo principal */
body {
  background: #f7eddf !important;
  color: #182235 !important;
}

/* Menú lateral */
.sidenav {
  background: #fff8ed !important;
  border-right: 1px solid #eadbc6 !important;
}

.sidenav a {
  color: #182235 !important;
}

.sidenav a:hover,
.sidenav a:focus {
  background: #f2e4d2 !important;
}

.sidenav a.active {
  background: #ead8c0 !important;
  border-left-color: #b85a30 !important;
  color: #182235 !important;
}

/* Contenido */
.content {
  background: #f7eddf !important;
}

/* Tarjetas */
.card {
  background: #fff8ed !important;
  border-color: #eadbc6 !important;
  box-shadow: 0 2px 8px rgba(24,34,53,.06) !important;
}

/* Botones */
.btn-primary {
  background: #b85a30 !important;
  color: #fff !important;
}

.btn-primary:hover {
  background: #9f4822 !important;
}

.btn-secondary {
  background: #fff8ed !important;
  color: #182235 !important;
  border-color: #cfae91 !important;
}

.btn-secondary:hover {
  background: #f2e4d2 !important;
}

/* Etiquetas / estados */
.badge-muted {
  background: #eadbc6 !important;
  color: #6f6258 !important;
}

.badge-info {
  background: #f3dfcf !important;
  color: #b85a30 !important;
}

/* Formularios */
input,
select,
textarea {
  background: #fffaf3 !important;
  color: #182235 !important;
  border-color: #d9c4ae !important;
}

/* Títulos */
h1, h2, h3 {
  color: #182235 !important;
}

/* Foco */
:focus-visible {
  outline-color: #c5642f !important;
}


/* =========================================================
   VENTAS / DASHBOARD - LAYOUT LIMPIO
   ========================================================= */

/* Solo cuando esta vista contiene el dashboard embebido */
.content:has(.atlas-dashboard-embed) {
  max-width: none !important;
  width: calc(100vw - 220px) !important;
  padding: 14px 18px 18px !important;
  overflow: hidden;
}

/* Cabecera de la sección */
.atlas-dashboard-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 12px 0 !important;
}

.atlas-dashboard-page-head > div {
  min-width: 0;
}

.atlas-dashboard-page-head h1 {
  margin: 0 !important;
  line-height: 1.15;
}

.atlas-dashboard-page-head .muted {
  margin: 4px 0 0 !important;
}

/* Botón secundario más discreto */
.atlas-dashboard-page-head .btn-secondary {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 12px;
}

/* Dashboard ocupa prácticamente toda la pantalla disponible */
.atlas-dashboard-embed {
  width: 100% !important;
  height: calc(100vh - 145px) !important;
  min-height: 720px;
  margin: 0 !important;
  padding: 0 !important;

  background: #080812;
  border: 1px solid #d9c4ae;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none !important;
}

.atlas-dashboard-embed iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Tablet / móvil */
@media (max-width: 720px) {
  .content:has(.atlas-dashboard-embed) {
    width: 100% !important;
    padding: 10px !important;
  }

  .atlas-dashboard-page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .atlas-dashboard-embed {
    height: 78vh !important;
    min-height: 600px;
  }
}

/* =========================================================
   CONTROL CENTER - RESPONSIVE DASHBOARD REAL
   ========================================================= */

@media (max-width: 1180px) {

  .layout {
    flex-direction: column !important;
  }

  .sidenav {
    width: 100% !important;
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eadbc6 !important;
    white-space: nowrap;
  }

  .sidenav a {
    flex: 0 0 auto;
    padding: 11px 14px !important;
    border-left: 0 !important;
    border-bottom: 3px solid transparent !important;
  }

  .sidenav a.active {
    border-left: 0 !important;
    border-bottom-color: #b85a30 !important;
  }

  .content,
  .content:has(.atlas-dashboard-embed) {
    width: 100% !important;
    max-width: none !important;
    padding: 12px !important;
  }

  .atlas-dashboard-page-head {
    flex-wrap: wrap !important;
  }

  .atlas-dashboard-embed {
    width: 100% !important;
    height: calc(100vh - 205px) !important;
    min-height: 650px !important;
  }
}

@media (max-width: 700px) {

  .topbar {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .atlas-dashboard-page-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .atlas-dashboard-embed {
    height: 75vh !important;
    min-height: 560px !important;
  }
}
