/* POS shell — dense, dark, counter-first. Matches the Retex site palette. */

/* The panels, modal and total lines are toggled with the `hidden` attribute,
   which a later `display` rule would otherwise win against. */
[hidden] { display: none !important; }

.pos-body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}

/* ------------------------------------------------------------------- bar */
.pos-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #0c9d4d, #0f7a3d);
  box-shadow: 0 2px 12px rgb(0 0 0 / 45%);
}
.pos-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.pos-brand img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.pos-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.pos-tab {
  padding: 0.42rem 0.85rem;
  border-radius: 7px;
  border: 1px solid rgb(255 255 255 / 25%);
  background: rgb(0 0 0 / 20%);
  color: #eaf7ef;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease;
}
.pos-tab:hover { background: rgb(0 0 0 / 35%); }
.pos-tab.is-active { background: #04070d; color: #fff; border-color: #04070d; }
.pos-bar-right { display: flex; align-items: center; gap: 10px; color: #eaf7ef; font-weight: 600; }
.pos-clock { font-variant-numeric: tabular-nums; }
.sync-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 28%);
  font-size: 12px;
  white-space: nowrap;
}
.sync-pill--online { color: #b6ffd0; }
.sync-pill--syncing { color: #ffe6a3; }
.sync-pill--offline,
.sync-pill--local { color: #ffc4c4; }

.pos-main { padding: 14px; }
.pos-panel { max-width: 1600px; margin: 0 auto; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  top: 62px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.6rem 1.1rem;
  border-radius: 9px;
  background: #12203a;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgb(0 0 0 / 55%);
  font-weight: 600;
}
.toast--good { border-color: #1f9d4d; color: #b6ffd0; }
.toast--bad { border-color: #a03434; color: #ffc4c4; }

/* ------------------------------------------------------- offline notice */
.offline-banner {
  display: grid;
  gap: 2px;
  margin: 10px 14px 0;
  padding: 9px 12px;
  border: 1px solid #7a5b1a;
  border-radius: 9px;
  background: #2a2110;
  color: #ffd479;
}
.offline-banner strong { font-family: var(--font-display); letter-spacing: 0.04em; }
.offline-banner span { color: #e8cd93; font-size: 12px; }

/* A held order is visibly not yet a record. */
.list-table tr.is-pending { background: #221a08; }
.list-table tr.is-pending:hover { background: #2a2110; }
.pending-tag { color: #ffd479 !important; font-weight: 600; }

/* -------------------------------------------------------------- counter */
.counter-grid {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 1000px) { .counter-grid { grid-template-columns: 1fr; } }

.cart {
  position: sticky;
  top: 62px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.order-type { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.type-btn {
  padding: 0.6rem 0.3rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0c1322;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.type-btn.is-active { background: #12321f; border-color: #1f9d4d; }

.cart-row { display: flex; gap: 6px; align-items: center; }
.cart-row label { font-size: 12px; color: var(--muted); min-width: 62px; }
.cart-row input,
.cart-row select,
.form-grid input,
.form-grid select,
.panel-tools input,
.panel-tools select {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0c1322;
  color: var(--text);
  font: inherit;
}
.recall-row input { flex: 1; }
.edit-banner {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #2a2110;
  border: 1px solid #7a5b1a;
  color: #ffd479;
  font-size: 12px;
}

.cart-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cart-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 4px 2px;
}
.cart-table td { padding: 5px 2px; border-bottom: 1px solid #101a2c; vertical-align: middle; }
.cart-table small { display: block; color: var(--muted); font-size: 11px; }
.cart-table .c { text-align: center; }
.cart-table .r, .list-table .r { text-align: right; }
.qty-cell { white-space: nowrap; }
.qty-cell button {
  width: 22px; height: 22px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #12203a;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.qty-cell b { display: inline-block; min-width: 22px; text-align: center; }
.x-btn {
  border: none; background: none; color: #ff9d9d;
  cursor: pointer; font-size: 16px; line-height: 1;
}
.cart-empty { color: var(--muted); font-size: 12px; margin: 2px 0; }

.cart-foot { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 5px; }
.foot-line { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); }
.disc-line select { flex: 0 0 74px; }
.disc-line input { flex: 0 0 84px; text-align: right; }
.disc-line > span:last-child { min-width: 62px; text-align: right; color: #8fe3ac; }
.foot-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 20px; padding-top: 4px; border-top: 1px solid var(--line);
}
.foot-total strong { color: #2fd06b; font-family: var(--font-display); }

.cart-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.print-toggle { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }

.primary-btn, .ghost-btn, .danger-btn {
  padding: 0.62rem 0.9rem;
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
}
.primary-btn { background: #1f9d4d; border-color: #1f9d4d; color: #fff; }
.primary-btn:hover { background: #23b458; }
.ghost-btn { background: #12203a; color: var(--text); }
.danger-btn { background: #3a1414; border-color: #7a2323; color: #ffc4c4; }
.wide { width: 100%; }

/* ----------------------------------------------------------- menu column */
.menu-col { display: grid; gap: 10px; }
.menu-search {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
}
.cat-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #16202f;
  color: var(--soft);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cat-chip span { opacity: 0.6; margin-left: 4px; }
.cat-chip.is-active { background: #d33; border-color: #d33; color: #fff; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
}
.menu-tile {
  display: grid;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  transition: transform 0.08s ease, border-color 0.08s ease;
}
.menu-tile:active { transform: scale(0.97); }
.menu-tile:hover { border-color: #1f9d4d; }
.tile-img { display: block; height: 82px; background: #12203a; }
.tile-img img { width: 100%; height: 82px; object-fit: cover; display: block; }
.tile-fallback {
  display: grid; place-items: center; height: 82px;
  font-family: var(--font-display); font-size: 24px; color: var(--muted);
}
.tile-name { display: block; padding: 6px 6px 0; font-size: 12px; font-weight: 600; line-height: 1.2; }
.tile-price {
  display: block; margin: 4px auto 6px; padding: 1px 10px;
  border-radius: 999px; background: #12321f; color: #8fe3ac; font-size: 12px; font-weight: 700;
}

/* Low stock is a warning on the tile the operator is already looking at. */
.tile-img { position: relative; }
.stock-badge {
  position: absolute; top: 4px; right: 4px;
  padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.03em;
}
.stock-badge.is-low { background: #7a5b1a; color: #ffd479; }
.stock-badge.is-out { background: #7a2323; color: #ffc4c4; }

/* ------------------------------------------------------- top-seller rail */
.top-rail-wrap { display: grid; gap: 6px; }
.top-rail-label {
  margin: 0; color: var(--muted); font-size: 11px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.top-rail {
  display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.top-rail .menu-tile { flex: 0 0 124px; scroll-snap-align: start; }

/* ------------------------------------------------------------------ deals */
/* Green, so a bundle is never mistaken for a plain menu tile mid-rush. */
.deal-rail-wrap { display: grid; gap: 6px; margin-bottom: 10px; }
.deal-rail-label {
  margin: 0; color: #7fd6a1; font-size: 11px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.deal-rail {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.deal-tile {
  flex: 0 0 190px; scroll-snap-align: start;
  display: grid; gap: 4px; text-align: left;
  padding: 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(127, 214, 161, 0.45);
  background: linear-gradient(160deg, rgba(31, 92, 60, 0.55), rgba(12, 30, 22, 0.55));
  color: var(--ink, #eaf2ff); font: inherit;
}
.deal-tile:hover { border-color: #7fd6a1; }
.deal-name { font-weight: 700; font-size: 14px; }
.deal-parts { color: var(--muted); font-size: 11px; line-height: 1.35; }
.deal-price { font-weight: 700; color: #7fd6a1; }
.deal-price small { display: block; font-weight: 600; color: var(--muted); }

.cart-table .deal-row td { background: rgba(31, 92, 60, 0.18); }
.cart-table .deal-row small { display: block; color: var(--muted); font-size: 11px; }

.deal-picker {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px; max-height: 240px; overflow-y: auto;
  padding: 8px; border: 1px solid var(--line, #22304a); border-radius: 10px;
}
.deal-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.deal-pick small { display: block; color: var(--muted); font-size: 11px; }
.deal-pick input { width: 64px; }
.deal-worth { margin: 0; color: #7fd6a1; font-size: 13px; font-weight: 600; }
.list-table small.warn { display: block; color: #ffc4c4; font-size: 11px; }

/* ------------------------------------------------------ known customers */
.known-customer {
  display: grid; gap: 6px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid rgba(127, 214, 161, 0.4); background: rgba(31, 92, 60, 0.16);
}
.known-head { margin: 0; font-size: 13px; color: #a9e8c2; }
.known-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.known-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.known-foot { margin: 0; color: var(--muted); font-size: 11px; }

/* --------------------------------------------------------------- panels */
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.panel-head h2 { font-family: var(--font-display); margin: 0; font-size: 22px; letter-spacing: 0.03em; }
.panel-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.panel-tools input, .panel-tools select { flex: 0 0 auto; }
.sub-head { font-family: var(--font-display); font-size: 16px; margin: 20px 0 8px; color: var(--soft); }
.empty-note { color: var(--muted); font-size: 13px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); }
.list-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.list-table thead th {
  background: #101c2f;
  text-align: left;
  padding: 9px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9fb0c8;
  white-space: nowrap;
}
.list-table td { padding: 8px 10px; border-top: 1px solid #101a2c; vertical-align: middle; }
.list-table tbody tr:hover { background: #0e1728; }
.list-table small { display: block; color: var(--muted); font-size: 11px; }
.list-table input[type="text"], .list-table input[type="number"] {
  width: 100%; padding: 0.35rem 0.5rem; border-radius: 6px;
  border: 1px solid var(--line); background: #0c1322; color: var(--text); font: inherit;
}

.chip-select {
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #12203a;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.chip--pending { background: #2a2110; border-color: #7a5b1a; color: #ffd479; }
.chip--preparing { background: #10243a; border-color: #24507a; color: #8ec8ff; }
.chip--ready { background: #12321f; border-color: #1f9d4d; color: #8fe3ac; }
.chip--served { background: #1a2740; color: #c8d4e2; }
.chip--paid { background: #12321f; border-color: #1f9d4d; color: #8fe3ac; }
.chip--partial { background: #2a2110; border-color: #7a5b1a; color: #ffd479; }
.chip--non_paid { background: #3a1414; border-color: #7a2323; color: #ffc4c4; }
.chip--method-cash { background: #12321f; border-color: #1f9d4d; color: #8fe3ac; }
.chip--method-card { background: #10243a; border-color: #24507a; color: #8ec8ff; }
.chip--method-credit { background: #2a2110; border-color: #7a5b1a; color: #ffd479; }

.pill--ok { background: #12321f; color: #8fe3ac; }
.pill--low { background: #2a2110; color: #ffd479; }
.pill--out { background: #3a1414; color: #ffc4c4; }

.acts { white-space: nowrap; }
.mini {
  padding: 0.3rem 0.55rem;
  margin-right: 4px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #12203a;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.mini--wa { background: #17a34a; border-color: #17a34a; color: #fff; }
.mini--edit { color: #ffd479; }
.mini--del { color: #ff9d9d; }

/* ------------------------------------------------------------- bookings */
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.k-open { background: #1f9d4d; }
.k-booked { background: #7a2323; }

.court-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.court { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); padding: 12px; }
.court header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.court h3 { margin: 0; font-family: var(--font-display); font-size: 17px; }
.court header span { color: var(--muted); font-size: 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 5px; }
.slot {
  display: grid; gap: 1px; padding: 6px 4px;
  border-radius: 7px; border: 1px solid var(--line);
  background: #0c1322; color: var(--text);
  font: inherit; font-size: 11px; cursor: pointer; text-align: center;
}
.slot strong { font-size: 12px; }
.slot span { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.open:hover { border-color: #1f9d4d; background: #12321f; }
.slot.booked { background: #2a1212; border-color: #7a2323; cursor: not-allowed; opacity: 0.85; }
.slot.booked span { color: #ffc4c4; }

/* -------------------------------------------------------------- summary */
.summary-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.sum-card {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-raised); padding: 12px;
  display: grid; gap: 4px;
}
.sum-card span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.sum-card strong { font-family: var(--font-display); font-size: 22px; }

/* ---------------------------------------------------------------- shift */
.shift-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
}
.shift-state { grid-column: 1 / -1; display: grid; gap: 2px; }
.shift-state strong { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.03em; }
.shift-state span { color: var(--muted); font-size: 12px; }
.shift-bar label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.shift-bar input {
  padding: 0.5rem 0.6rem; border-radius: 8px; border: 1px solid var(--line);
  background: #0c1322; color: var(--text); font: inherit;
}
.shift-bar input:disabled { opacity: 0.55; }
.shift-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.shift-actions button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Net payable while a booking is being written up. */
.bf-net {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 8px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.bf-net strong { color: #2fd06b; font-family: var(--font-display); font-size: 20px; }

/* ------------------------------------------------------------- settings */
.acc {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-raised); margin-bottom: 10px; overflow: hidden;
}
.acc > summary {
  padding: 11px 14px; cursor: pointer;
  font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em;
  background: #101c2f;
}
.acc-body { padding: 14px; display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.form-grid label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.form-grid .span2 { grid-column: 1 / -1; }
.form-grid .inline { display: flex; align-items: center; gap: 8px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 12px; margin: 0; }

/* ---------------------------------------------------------------- modal */
.modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgb(0 0 0 / 68%);
  display: grid; place-items: center; padding: 20px;
}
.modal-card {
  background: #fff; color: #111;
  border-radius: 12px; padding: 16px;
  max-height: 88vh; overflow: auto; width: min(400px, 100%);
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.modal-actions .ghost-btn { background: #eef2f7; color: #111; border-color: #ccd; }

/* =========================================================== small screens */
/*
 * The counter is used on a phone as often as on the till, and until now this
 * file had exactly one media query. Two passes: tablets and narrow tills at
 * 820px, phones at 520px.
 */

@media (max-width: 820px) {
  .pos-bar { flex-wrap: wrap; gap: 8px 10px; padding: 8px 10px; }
  .pos-brand span { font-size: 14px; }

  /* Five tabs never fit across a phone. One swipeable row beats a four-row
     wrap that pushes the whole panel below the fold. */
  .pos-tabs {
    order: 3;
    flex: 1 0 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pos-tabs::-webkit-scrollbar { display: none; }
  .pos-tab { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }

  .pos-bar-right { margin-left: auto; gap: 8px; }
  .pos-main { padding: 10px; }

  /* Menu first: the operator picks items, then reviews the cart under them. */
  .counter-grid { grid-template-columns: 1fr; }
  .menu-col { order: 1; }
  .cart { order: 2; position: static; }

  .court-board { grid-template-columns: 1fr; }
  .form-grid, .record-grid { grid-template-columns: 1fr; }
  .summary-cards { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }

  /* Tables stay wide and scroll sideways inside their own box — that is the
     right answer for a nine-column order list — but the box must show it. */
  .table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

  /* Thumb-sized tap targets. */
  .mini { padding: 0.45rem 0.7rem; margin-bottom: 3px; }
  .cat-chip { padding: 0.5rem 0.85rem; font-size: 13px; }
  .qty-cell button { width: 32px; height: 32px; font-size: 16px; }
  .x-btn { padding: 4px 8px; font-size: 20px; }
}

@media (max-width: 520px) {
  .pos-brand span { display: none; }
  .pos-clock { display: none; }
  .pos-bar-right .ghost-btn--sm { padding: 0.4rem 0.6rem; }
  .who { display: none; }

  .pos-main { padding: 8px; }
  .panel-head h2 { font-size: 19px; }
  .panel-tools { width: 100%; }
  .panel-tools input, .panel-tools select { flex: 1 1 140px; }

  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  .tile-img, .tile-img img, .tile-fallback { height: 64px; }
  .tile-name { font-size: 11px; }

  .cart { padding: 10px; }
  .cart-row { flex-wrap: wrap; }
  .cart-row label { min-width: 100%; }
  .order-type { grid-template-columns: 1fr; }
  .cart-actions { grid-template-columns: 1fr; }

  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); }
  .court { padding: 10px; }

  .modal { padding: 10px; }
  .modal-card { padding: 12px; max-height: 92vh; }
  .modal-actions .primary-btn, .modal-actions .ghost-btn { flex: 1; }

  .toast { width: calc(100% - 20px); text-align: center; }
}
