/* ============================================================
   AGUAS BALNEARIAS — style.css v2.3
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:        #0d1117;
  --bg-surface:     #111827;
  --bg-card:        #131c28;
  --bg-card-hover:  #162035;
  --bg-input:       #0f1a27;
  --bg-tab-active:  #1a2a40;
  --border:         #1e2b3d;
  --border-light:   #243347;
  --text-primary:   #e2eaf5;
  --text-secondary: #8ba3be;
  --text-muted:     #3d5269;
  --accent:         #2563eb;
  --accent-hover:   #1d4fd8;
  --accent-dim:     #0e2a5e;
  --danger:         #dc2626;
  --danger-hover:   #b91c1c;
  --danger-dim:     #2b0e0e;
  --success:        #059669;
  --warning:        #d97706;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --sidebar-w: 190px;
  --header-h:  52px;
  --nav-h:     60px;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }

/* ── App Shell ── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: #0a0f18;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-brand { padding: 20px 16px 16px; border-bottom: 1px solid var(--border); }

.brand-logo { display: flex; align-items: center; gap: 10px; }

.brand-drop {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #1a6fff, #0a4fd4);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}

.brand-name {
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  letter-spacing: .5px; text-transform: uppercase; line-height: 1.2;
}
.brand-name span { display: block; font-size: 9px; font-weight: 400; color: var(--text-muted); letter-spacing: 2px; }

.sidebar-nav {
  flex: 1; padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
}

.nav-section { display: none; }

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: var(--radius-md);
  text-decoration: none; color: var(--text-secondary);
  font-size: 13px; transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.nav-item.active {
  background: var(--bg-tab-active); color: var(--text-primary);
  font-weight: 500; border-left: 3px solid var(--accent); padding-left: 7px;
}

.nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--border); }
.sidebar-version { font-size: 10px; color: var(--text-muted); letter-spacing: .5px; }

/* ── Page Wrap ── */
.page-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  background: var(--bg-surface);
}

/* ── Header ── */
.page-header {
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; padding: 0 22px;
  border-bottom: 1px solid var(--border); background: #0d1420;
  flex-shrink: 0;
}
.page-title { font-size: 16px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.page-title-icon { font-size: 16px; }
.page-header-right { display: flex; align-items: center; gap: 10px; }
.today-chip {
  font-size: 11px; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 20px; letter-spacing: .5px;
}

/* ── Container ── */
.container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}

/* Cuando el container tiene un frameWrap hijo, no scrollea él sino el iframe */
.container:has(.frameWrap) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

/* ── Tabs ── */
.tabs, .tabsBar {
  display: flex; gap: 4px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 5px; margin-bottom: 18px;
  flex-shrink: 0;
}

.tabbtn, .tabBtn {
  flex: 1; padding: 9px 14px; border: none;
  border-radius: var(--radius-md); background: transparent;
  color: var(--text-secondary); font-size: 13px; font-weight: 400;
  cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.tabbtn:hover, .tabBtn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.tabbtn.active, .tabBtn.active { background: var(--bg-tab-active); color: var(--text-primary); font-weight: 500; }

/* ── Split Layout ── */
.split-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.split-left, .split-right { min-width: 0; }

/* ── Cards ── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.card h2 {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 1.4px; text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

/* ── Forms ── */
label {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 5px; margin-top: 14px;
}
label:first-child { margin-top: 0; }

input[type="text"],
input[type="number"],
input[type="month"],
input[type="date"],
select, textarea {
  width: 100%; padding: 9px 12px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 13px; outline: none; transition: border-color .15s;
}
input::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }

select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%233d5269'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
}
select option { background: var(--bg-card); color: var(--text-primary); }

.checksRow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chk {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-secondary); cursor: pointer; margin-top: 0 !important;
}
.chk input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Botones base ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 16px; border-radius: var(--radius-sm); border: none;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .15s, transform .1s; white-space: nowrap;
}
.btn:hover  { background: var(--accent-hover); }
.btn:active { transform: scale(.97); }

.btn-outline, .btn.btn-outline {
  background: transparent; border: 1px solid var(--border-light); color: var(--text-secondary);
}
.btn-outline:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.btn-danger { background: var(--danger); color: #fff; border: none; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-accent { background: var(--accent); color: #fff; border: none; }
.btn-accent:hover { background: var(--accent-hover); }
.btnwide { width: 100%; }

/* ============================================================
   ITEM-ROW
   ============================================================ */
.item-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 14px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 13px 16px; transition: border-color .15s;
}
.item-row:hover { border-color: var(--border-light); }

.item-row__info { flex: 1; min-width: 0; }

.item-row__name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.item-row__sub  { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.item-row__tags { font-size: 12px; color: var(--text-secondary); }

.item-row__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.item-row__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.meta-chip {
  font-size: 11px; padding: 2px 9px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
}
.chip-red   { border-color: rgba(220,38,38,.4); color: #f87171; }
.chip-green { border-color: rgba(5,150,105,.4); color: #34d399; }

.item-row__actions {
  display: flex; gap: 6px; flex-shrink: 0;
  align-items: flex-start; padding-top: 2px;
}

/* ── Editar / Eliminar ── */
.btn-edit {
  padding: 6px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); background: transparent;
  color: var(--text-secondary); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.btn-edit:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.btn-delete {
  padding: 6px 14px; border-radius: var(--radius-sm); border: none;
  background: var(--danger); color: #fff; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: background .15s; white-space: nowrap;
}
.btn-delete:hover { background: var(--danger-hover); }

/* ── Producto (repartos) ── */
.btn-producto {
  padding: 6px 14px; border-radius: var(--radius-sm); border: none;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: background .15s; white-space: nowrap;
}
.btn-producto:hover { background: var(--accent-hover); }
.btn-producto.disabled,
.btn-producto[disabled] {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: not-allowed;
}

/* ── Mensaje vacío ── */
.empty-msg { font-size: 13px; color: var(--text-muted); padding: 16px 0 8px; text-align: center; }

/* ── Cardlist ── */
.cardlist { display: flex; flex-direction: column; gap: 8px; }

/* ── Deudores clientBlock ── */
.clientBlock {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px;
}
.clientHeader {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 14px; flex-wrap: wrap;
}
.clientName { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.clientMeta { font-size: 12px; color: var(--text-muted); }
.clientDebt {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px; min-width: 200px; text-align: right;
}
.clientDebt .small { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; }
.clientDebt .amount { font-size: 22px; font-weight: 700; color: #f87171; margin-top: 2px; }

/* ── Tabla ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.table {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 700px;
  width: 100%;
}

.thead, .trow {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 0.6fr 0.85fr 0.85fr 0.85fr 1.1fr;
}

.thead.col9, .trow.col9 {
  grid-template-columns: 0.9fr 1.2fr 1.2fr 0.7fr 0.5fr 0.75fr 0.75fr 0.75fr 1.1fr;
}

.thead {
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-surface); z-index: 1;
}
.thead > div, .trow > div {
  padding: 10px 12px; border-right: 1px solid var(--border); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thead > div:last-child, .trow > div:last-child { border-right: none; }
.trow { border-bottom: 1px solid var(--border); color: var(--text-secondary); transition: background .12s; }
.trow:last-child { border-bottom: none; }
.trow:hover { background: var(--bg-card); }
.right { text-align: right; }
.money { color: var(--text-primary); font-weight: 500; }

/* ── Tab Panels ── */
.tabPanel        { display: block; }
.tabPanel.hidden { display: none; }

/* ── iFrame Wrapper ── */
.frameWrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.frameWrap iframe {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: none;
  display: block;
}

/* ── Clases in-iframe: ocultar shell cuando está dentro de iframe ── */
html.in-iframe .sidebar,
html.in-iframe .page-header { display: none !important; }
html.in-iframe .app-shell   { display: block; height: 100vh; overflow: hidden; }
html.in-iframe .page-wrap   { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
html.in-iframe .container   { flex: 1; min-height: 0; padding: 16px; overflow-y: auto; }
html.in-iframe .split-layout { min-height: 0; }
html.in-iframe .split-right .card { overflow-y: auto; }

/* ── Modales ── */
.modal { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.modal__panel {
  position: relative; z-index: 1; background: var(--bg-card);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  width: 90%; max-width: 420px; overflow: hidden;
}
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 14px; border-bottom: 1px solid var(--border); }
.modal__header h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.modal__close { background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: var(--radius-sm); transition: background .15s; }
.modal__close:hover { background: var(--bg-surface); color: var(--text-primary); }
.modal__body { padding: 18px; }
.modal__desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.modal__field { margin-top: 4px; }
.modal__field label { margin-top: 0; }
.modal__hint { display: block; margin-top: 5px; font-size: 11px; color: var(--text-muted); }
.modal__footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); }

/* ── Toast ── */
#toastContainer { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 10px 16px; font-size: 13px; color: var(--text-primary); box-shadow: 0 4px 16px rgba(0,0,0,.4); animation: toastIn .2s ease both; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger);  }
.toast.info    { border-left: 3px solid var(--accent);  }
@keyframes toastIn { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:translateX(0); } }

/* ── Helpers ── */
.mini  { font-size: 12px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.line  { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.hidden { display: none !important; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.badge-red   { background: var(--danger-dim); color: #f87171; }
.badge-blue  { background: var(--accent-dim); color: #60a5fa; }
.badge-green { background: #0a2b1e; color: #34d399; }
.badge-amber { background: #2b1d06; color: #fbbf24; }

/* ── Launcher ── */
.welcome-grid { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 480px; margin: 40px auto 0; }
.big-card {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  text-decoration: none; transition: background .18s, border-color .2s, transform .15s;
}
.big-card:hover { background: var(--bg-card-hover); border-color: rgba(37,99,235,.4); transform: translateX(4px); }
.big-card__icon { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.big-card__body  { flex: 1; min-width: 0; }
.big-card__title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.big-card__desc  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.big-card__arrow { font-size: 18px; color: rgba(37,99,235,.5); transition: color .18s; }
.big-card:hover .big-card__arrow { color: var(--accent); }

/* ── Stats ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.stat-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); }

/* ── Btn group ── */
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 768px) {

  /* ── Shell: columna, sidebar abajo ── */
  .app-shell {
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }

  /* ── Page wrap arriba, ocupa todo menos la nav inferior ── */
  .page-wrap {
    order: 1;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* ── Sidebar = barra de nav inferior fija ── */
  .sidebar {
    order: 2;
    width: 100% !important;
    height: var(--nav-h);
    min-height: var(--nav-h);
    flex-shrink: 0;
    background: #0a0f18;
    border-right: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    overflow: hidden;
  }

  .sidebar-brand,
  .sidebar-footer { display: none; }

  .sidebar-nav {
    flex: 1;
    flex-direction: row;
    padding: 0;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: stretch;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }

  .nav-section { display: none; }

  .nav-item {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 0;
    font-size: 10px;
    min-width: 60px;
    max-width: 80px;
    text-align: center;
    border-left: none !important;
    border-top: 2px solid transparent;
  }
  .nav-item.active {
    background: var(--bg-tab-active);
    border-left: none !important;
    border-top: 2px solid var(--accent);
    padding-left: 4px;
  }
  .nav-item span:not(.nav-icon) {
    display: block;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 68px;
    color: inherit;
  }
  .nav-icon {
    font-size: 20px;
    width: auto;
    line-height: 1;
  }

  /* ── Header más compacto ── */
  .page-header {
    padding: 0 12px;
    height: 44px;
    flex-shrink: 0;
  }
  .page-title { font-size: 13px; gap: 6px; }
  .page-title-icon { font-size: 14px; }
  .today-chip { font-size: 10px; padding: 3px 8px; }

  /* ── Contenedor scrolleable ── */
  .container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
  }
  .container:has(.frameWrap) {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }

  /* ── Layout dos columnas → una ── */
  .split-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ── Tabs ── */
  .tabs, .tabsBar {
    flex-wrap: wrap;
    gap: 3px;
    padding: 4px;
    margin-bottom: 12px;
  }
  .tabbtn, .tabBtn {
    flex: 1 1 auto;
    min-width: calc(50% - 6px);
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
  }

  /* ── Tablas ── */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .thead, .trow {
    min-width: 520px;
    grid-template-columns: 1.2fr 0.8fr 0.6fr 0.6fr 0.6fr 0.7fr 0.9fr;
  }
  .thead.col9, .trow.col9 {
    min-width: 700px;
    grid-template-columns: 1fr 1fr 0.8fr 0.5fr 0.5fr 0.6fr 0.6fr 0.6fr 0.8fr;
  }

  /* ── Deudor: debt card full width en mobile ── */
  .clientDebt {
    min-width: 0;
    width: 100%;
    text-align: left;
  }
  .clientHeader { flex-direction: column; gap: 10px; }

  /* ── Cards ── */
  .card { padding: 14px; }
  .card h2 { font-size: 10px; margin-bottom: 12px; }

  /* ── Evita zoom en iOS al hacer foco en inputs ── */
  input[type="text"],
  input[type="number"],
  input[type="month"],
  input[type="date"],
  select, textarea {
    font-size: 16px !important;
  }

  /* ── Stats ── */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 22px; }

  /* ── Botones ── */
  .btn { padding: 9px 14px; font-size: 13px; }
  .btn-group { flex-wrap: wrap; gap: 6px; }

  /* ── Big cards (index) ── */
  .big-card { padding: 14px 12px; }
  .big-card__icon { width: 38px; height: 38px; font-size: 18px; }
  .big-card__title { font-size: 13px; }

  /* ── Iframe ── */
  .frameWrap {
    flex: 1;
    min-height: 0;
    border-radius: var(--radius-md);
  }
  .frameWrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }

  /* ── Toast: sube sobre la nav bar ── */
  #toastContainer {
    bottom: calc(var(--nav-h) + 12px);
    right: 12px;
  }

  /* ── Modal ── */
  .modal__panel {
    width: 95vw;
    max-width: 95vw;
    max-height: 85dvh;
    overflow-y: auto;
  }
  .modal-box {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 85dvh;
    overflow-y: auto;
    padding: 16px;
  }
}