/* ============================================================
   Kutch Tours & Travels CRS - base styles
   Palette: salt-flat white, Kutchi indigo, KTT red, Rann sunset amber
   ============================================================ */
:root {
  --salt:      #F3F5F7;
  --paper:     #FFFFFF;
  --ink:       #1B2A4A;
  --ink-soft:  #56627A;
  --line:      #DCE1E8;
  --red:       #C8102E;
  --red-dark:  #A00C24;
  --sun:       #E39B2D;
  --sun-bg:    #FDF3E2;
  --leaf:      #2E7D55;
  --leaf-bg:   #E6F3EC;
  --err-bg:    #FBE8EA;
  --info-bg:   #E8EEF8;
  --radius-sm: 6px;
  --radius:    10px;
  --font: "Hind", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mirror: radial-gradient(circle, rgba(255,255,255,.22) 0 2px, transparent 2.6px),
            radial-gradient(circle, rgba(227,155,45,.30) 0 1.4px, transparent 2px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--salt); }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
p  { margin: 0 0 1em; max-width: 72ch; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-block; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--red); color: #fff; font: 600 1rem/1 var(--font);
  padding: 12px 18px; text-decoration: none; min-height: 44px;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--paper); color: var(--ink); }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.input {
  width: 100%; min-height: 44px; padding: 10px 12px; font: 1rem var(--font); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(27,42,74,.15); }

/* ---------- Alerts ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; border-left: 4px solid; }
.alert-success { background: var(--leaf-bg); border-color: var(--leaf); }
.alert-error   { background: var(--err-bg);  border-color: var(--red); }
.alert-warn    { background: var(--sun-bg);  border-color: var(--sun); }
.alert-info    { background: var(--info-bg); border-color: var(--ink); }

/* ---------- App shell ---------- */
.topbar { display: none; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 248px; overflow-y: auto;
  display: flex; flex-direction: column;
  background-color: var(--ink); color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--red) ; box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 2px var(--sun);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { font-size: .8rem; color: rgba(255,255,255,.7); }
.brand-logo { flex-direction: column; align-items: stretch; gap: 8px; text-decoration: none; color: #fff; padding: 18px 16px 16px; }
.brand-logo small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); text-align: center; font-weight: 600; }
.logo-plate { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.18); }
.logo-plate img { display: block; max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.brand-logo:hover .logo-plate { box-shadow: 0 0 0 2px var(--sun), 0 6px 18px rgba(0,0,0,.18); }
.logo-plate.sm { padding: 4px 10px; border-radius: 6px; box-shadow: none; }
.logo-plate.sm img { max-height: 30px; max-width: 140px; }
.topbar-brand { color: #fff; text-decoration: none; }
.login-logo { display: inline-flex; margin-bottom: 28px; padding: 12px 18px; box-shadow: 0 0 0 1px var(--line); }
.login-logo img { max-height: 64px; max-width: 260px; }

.nav { padding: 12px 10px; flex: 1; }
.nav-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; margin-bottom: 2px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.88); text-decoration: none; font-weight: 500;
}
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.is-active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--sun); }
.nav-link.is-soon { color: rgba(255,255,255,.4); cursor: default; }
.nav-link.is-soon:hover { background: none; }
.nav-link em { font-style: normal; font-size: .72rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 0 7px; }

.me { padding: 16px 20px 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.me-name { font-weight: 600; }
.me-role { color: rgba(255,255,255,.65); margin-bottom: 8px; }
.me-actions { display: flex; gap: 14px; align-items: center; }
.me-actions a, .me-actions .linklike { color: rgba(255,255,255,.85); }
.me-actions form { margin: 0; }

.main { margin-left: 248px; padding: 28px 32px 48px; max-width: 1280px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { color: var(--ink-soft); margin: 0; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }

/* Setup checklist on the dashboard */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks .ok  { color: var(--leaf); font-weight: 600; white-space: nowrap; }
.checks .bad { color: var(--red);  font-weight: 600; white-space: nowrap; }

/* ---------- Login page ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 44%) 1fr; }
.login-art {
  background-color: var(--ink);
  background-image: var(--mirror);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end;
}
.login-art h1 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }
.login-art p { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 34ch; }
.login-art .horizon { height: 6px; width: 96px; background: var(--red); border-radius: 3px; margin-bottom: 22px; box-shadow: 40px 0 0 -1px var(--sun); }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box { width: 100%; max-width: 380px; }
.login-box h2 { font-size: 1.5rem; margin-bottom: 4px; }
.login-box .sub { color: var(--ink-soft); margin-bottom: 24px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20;
    background: var(--ink); color: #fff; padding: 10px 14px;
  }
  .menu-btn { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 8px 12px; font: 600 .95rem var(--font); min-height: 40px; }
  .topbar-brand { font-weight: 600; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; z-index: 30; top: 60px; }
  body.menu-open .sidebar { transform: none; }
  .main { margin-left: 0; padding: 20px 16px 40px; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 32px 24px; min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

/* ---------- Tables, badges, toolbars (module pages) ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .input { flex: 1 1 260px; max-width: 420px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table .nowrap { white-space: nowrap; }
.muted { color: var(--ink-soft); font-size: .88rem; }
.empty { color: var(--ink-soft); padding: 24px 0; margin: 0; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge-on   { background: var(--leaf-bg); color: var(--leaf); }
.badge-off  { background: var(--err-bg);  color: var(--red); }
.badge-warn { background: var(--sun-bg);  color: #9A6712; }
.tag { font-size: .75rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

.btn-sm { padding: 7px 12px; font-size: .88rem; min-height: 36px; }
form.inline { display: inline; margin: 0; }

.form-panel { max-width: 560px; }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field.check input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; flex: none; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
select.input:disabled { background-color: var(--salt); color: var(--ink-soft); }

.rolelist { margin: 0 0 14px; padding-left: 20px; }
.rolelist li { margin-bottom: 6px; }

@media (max-width: 700px) {
  .table th, .table td { padding: 10px 8px; }
  .table .right { text-align: left; }
}

/* ---------- Leads: stat cards, filters, status badges ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 16px 18px; text-decoration: none; color: inherit; }
.stat:hover { border-color: var(--ink-soft); color: inherit; }
.stat.is-on { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--sun); }
.stat-num { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.stat-label { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.stat.is-alert .stat-num { color: var(--red); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters .input { flex: 0 1 200px; min-width: 150px; }
.filters input[type=search] { flex: 1 1 240px; }

.due-today { color: #9A6712; font-weight: 600; }
.due-late  { color: var(--red); font-weight: 600; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; padding-top: 16px; }

.badge-blue   { background: #E4EDFB; color: #1B4F9C; }
.badge-cyan   { background: #DEF1F5; color: #11626F; }
.badge-amber  { background: var(--sun-bg); color: #9A6712; }
.badge-indigo { background: #E6E6F8; color: #38399B; }
.badge-purple { background: #F0E6F8; color: #6B2E9B; }
.badge-teal   { background: #DDF1EC; color: #126B5B; }
.badge-lime   { background: #EAF3D8; color: #4F6B12; }
.badge-green  { background: var(--leaf-bg); color: var(--leaf); }
.badge-orange { background: #FBEADA; color: #9A5312; }
.badge-red    { background: var(--err-bg); color: var(--red); }
.badge-grey   { background: #E9ECF1; color: var(--ink-soft); }

/* Forms with many fields */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
h2.sec { font-size: 1rem; color: var(--ink-soft); border-bottom: 1px solid var(--line);
         padding-bottom: 8px; margin: 22px 0 16px; }
h2.sec:first-of-type { margin-top: 0; }
textarea.input { min-height: 72px; resize: vertical; }

/* ---------- Code / key display ---------- */
.code { background: var(--salt); border: 1px solid var(--line); border-radius: var(--radius-sm);
        padding: 12px 14px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
        font-size: .9rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 0 0 14px; }
.code-key { background: #fff; font-weight: 600; }

/* ---------- Follow-ups (Step 6) ---------- */
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-call { background: var(--ink); }
.btn-call:hover { background: #0F1B33; }
.btn-wa { background: #1E8E4E; }
.btn-wa:hover { background: #16703C; }
.lead-link { color: inherit; text-decoration: none; }
.lead-link:hover { text-decoration: underline; }

.lead-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.lead-cols > *, .q-cols > * { min-width: 0; }
@media (max-width: 1000px) { .lead-cols { grid-template-columns: 1fr; } }

fieldset.chips-field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.chips-field legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
             background: var(--paper); cursor: pointer; font-weight: 500; min-height: 40px; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
[hidden] { display: none !important; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.tl { position: relative; padding: 0 0 18px 14px; }
.tl::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
              background: var(--paper); border: 2px solid var(--ink-soft); }
.tl-call::before, .tl-whatsapp::before, .tl-meeting::before, .tl-email::before { background: var(--leaf); border-color: var(--leaf); }
.tl-status_change::before { background: var(--sun); border-color: var(--sun); }
.tl-created::before { background: var(--red); border-color: var(--red); }
.tl-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tl-desc { margin: 4px 0; white-space: normal; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 8px; }
.facts dt { color: var(--ink-soft); font-size: .88rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
h3.mini { font-size: .88rem; color: var(--ink-soft); margin: 14px 0 4px; }
.pre { margin: 0; overflow-wrap: anywhere; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }

.fu-list { list-style: none; margin: 0; padding: 0; }
.fu { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fu:last-child { border-bottom: 0; }
.fu-main { min-width: 0; flex: 1; }
.fu-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.fu-name { font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.fu-name:hover { text-decoration: underline; color: var(--ink); }
.fu-last { font-size: .9rem; margin: 4px 0; overflow-wrap: anywhere; }
.fu-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 320px; }
@media (max-width: 700px) {
  .fu { flex-direction: column; gap: 10px; }
  .fu-actions { justify-content: flex-start; max-width: none; }
  .fu-actions .btn { flex: 1 1 auto; text-align: center; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1 1 auto; text-align: center; }
}
details.setup summary { cursor: pointer; font-weight: 600; }
.fu-actions .btn, .head-actions .btn { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 700px) { .checks .ok, .checks .bad { white-space: normal; text-align: right; } }

/* ---------- Quotations (Step 8) ---------- */
.q-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.q-cols > aside { position: sticky; top: 16px; }
@media (max-width: 1100px) { .q-cols { grid-template-columns: 1fr; } .q-cols > aside { position: static; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid2 .field:first-child { grid-column: 1 / -1; }
.join { display: flex; gap: 6px; }
.join .input:first-child { flex: 1; }
.join select.input { width: 76px; flex: none; }
table.sum { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: .95rem; }
table.sum td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.sum td.right { text-align: right; white-space: nowrap; padding-left: 10px; }
table.sum tr.sub td { font-weight: 600; }
table.sum tr.total td { font-size: 1.25rem; font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.margin-box { background: var(--leaf-bg); border-left: 4px solid var(--leaf); padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: .92rem; }
.items-table td { padding: 6px 4px; }
.items-table .input { min-height: 38px; padding: 6px 8px; }
.items-table .num { width: 90px; }
.items-table td:first-child .input { min-width: 180px; }
.items-table .center { text-align: center; }
.items-table input[type=checkbox] { width: 20px; height: 20px; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.items-table select.input { min-width: 140px; }
details.panel summary { cursor: pointer; }

/* ---------- Phone app (PWA) ---------- */
.app-install { padding: 0 14px 12px; }
.app-install button { width: 100%; background: rgba(255,255,255,.1); color: #fff; border: 1px dashed rgba(255,255,255,.35); border-radius: var(--radius-sm); padding: 10px 12px; font: 600 .9rem var(--font); cursor: pointer; text-align: left; }
.app-install button:hover { background: rgba(255,255,255,.16); }
.app-install .ai-tip { font-size: .8rem; color: rgba(255,255,255,.8); margin: 8px 2px 0; line-height: 1.45; }
.is-app .topbar { padding-top: max(10px, env(safe-area-inset-top)); }
.is-app body { -webkit-tap-highlight-color: transparent; }

/* ---------- Phone: tables as cards ---------- */
@media (max-width: 700px) {
  .mcard-wrap { overflow: visible; border: 0; }
  table.mcard, table.mcard tbody, table.mcard tfoot, table.mcard tr { display: block; width: 100%; }
  table.mcard thead { display: none; }
  table.mcard tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; background: var(--paper); box-shadow: 0 1px 2px rgba(27,42,74,.04); }
  table.mcard tr:hover { background: var(--paper); }
  table.mcard td { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; border: 0 !important; padding: 5px 0 !important; text-align: left !important; white-space: normal !important; min-height: 0; }
  table.mcard td::before { content: attr(data-label); flex: 0 0 34%; max-width: 120px; color: var(--ink-soft); font-size: .8rem; font-weight: 600; padding-top: 2px; }
  table.mcard td .cv { flex: 1; min-width: 0; text-align: right; overflow-wrap: anywhere; }
  table.mcard td[data-label=""]::before { display: none; }
  table.mcard td[data-label=""] .cv { text-align: left; }
  table.mcard td:first-child { display: block; padding-bottom: 8px !important; margin-bottom: 4px; border-bottom: 1px solid var(--line) !important; font-size: 1.02rem; }
  table.mcard td:first-child::before { display: none; }
  table.mcard td:first-child .cv { text-align: left; display: block; }
  table.mcard td.cv-empty { display: none; }
  table.mcard td .cv .btn, table.mcard td .cv form.inline { margin: 2px 0 2px 4px; }
  table.mcard tfoot tr { background: var(--salt); font-weight: 700; }
}

/* Phone par alag list (jaise Leads) */
.mob-only { display: none; }
@media (max-width: 700px) {
  .mob-only { display: block; }
  .desk-only { display: none !important; }
}
.lead-cards { list-style: none; margin: 0; padding: 0; }
.lc { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--paper); overflow: hidden; }
.lc.is-late { border-left: 4px solid var(--red); }
.lc-main { display: block; padding: 10px 12px 6px; color: inherit; text-decoration: none; }
.lc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 1.05rem; }
.lc-top .badge { flex: none; }
.lc-meta { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 2px; }
.lc-act { display: flex; gap: 6px; padding: 6px 12px 10px; }
.lc-act .btn { flex: 1 1 0; text-align: center; justify-content: center; min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 520px) {
  .stat { padding: 12px 14px; min-width: 0; }
  .stat-num { font-size: 1.5rem; overflow-wrap: anywhere; }
  .stat-num[style] { font-size: 1.15rem !important; }
  .page-head h1 { font-size: 1.45rem; overflow-wrap: anywhere; }
  .panel { padding: 16px; }
}
@media (max-width: 520px) { .qr-row { flex-direction: column; } }

/* Admin delete box */
details.danger-box { border: 1px solid #f1c4cb; background: #fffafa; }
details.danger-box > summary { color: #C8102E; font-weight: 600; }
.danger-list { margin: 0 0 .8rem 1.1rem; padding: 0; color: #444; }
.danger-list li { margin: .2rem 0; }
.btn-danger { background: #C8102E; border-color: #C8102E; color: #fff; }
.btn-danger:hover { background: #a00d25; }
.clean-tbl td { vertical-align: top; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 7px 0; border-bottom: 1px solid #eee; }
.plain-list li:last-child { border-bottom: 0; }
