/* ----------------------------------------------------------
   1. DESIGN TOKENS
---------------------------------------------------------- */
:root {
  --green:      #059669;  --green-bg:   #d1fae5;
  --blue:       #2563eb;  --blue-bg:    #dbeafe;
  --orange:     #d97706;  --orange-bg:  #fef3c7;
  --purple:     #7c3aed;  --purple-bg:  #ede9fe;
  --pink:       #db2777;  --pink-bg:    #fce7f3;
  --red:        #dc2626;  --red-bg:     #fee2e2;

  --accent:     #2563eb;
  --accent-bg:  #eff6ff;
  --accent-dark:#1d4ed8;

  --text:       #0f172a;
  --text-2:     #475569;
  --text-3:     #94a3b8;

  --border:     #e2e8f0;
  --border-2:   #cbd5e1;

  --surface:    #f8fafc;
  --bg:         #f1f5f9;
  --card:       #ffffff;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg:  0 8px 32px rgba(15,23,42,0.12);
}

/* ----------------------------------------------------------
   2. RESET & BASE
---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100dvh;
}

input, select, button, textarea { font-family: inherit; }

/* ----------------------------------------------------------
   3. LAYOUT
---------------------------------------------------------- */
.app {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 14px 100px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 14px;
  margin: 0 -14px;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 8px;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}

.header-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.header-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.header-sub {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 1px;
}

.header-menu-wrap {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

.hamburger-btn {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: background 0.15s;
}
.hamburger-btn:active { background: var(--border); }

.hamburger-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  overflow: hidden;
  z-index: 200;
}
.hamburger-dropdown.open { display: block; }

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 3px 8px;
}

/* ── Branch header dropdown ── */
.branch-header-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 100;
}

.branch-header-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  height: 34px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.branch-header-badge.branch-badagaon {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}
.branch-header-badge.branch-badagaon:hover { background: #a7f3d0; }

.branch-header-badge.branch-baghpat {
  background: #dbeafe;
  color: #1e3a8a;
  border-color: #93c5fd;
}
.branch-header-badge.branch-baghpat:hover { background: #bfdbfe; }

.branch-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.branch-header-badge.branch-badagaon .branch-header-dot { background: #059669; }
.branch-header-badge.branch-baghpat  .branch-header-dot { background: #2563eb; }

.branch-header-chevron {
  opacity: 0.6;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.branch-header-badge.open .branch-header-chevron { transform: rotate(180deg); }

/* The dropdown panel */
.branch-header-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  overflow: hidden;
  z-index: 200;
  padding: 6px;
}
.branch-header-dropdown.open { display: block; }

.branch-dropdown-label {
  padding: 6px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.branch-dropdown-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.12s;
  text-align: left;
}
.branch-dropdown-opt:hover { background: var(--surface); }
.branch-dropdown-opt.active { color: var(--text); background: var(--surface); }

.branch-dropdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bdot-badagaon { background: #059669; }
.bdot-baghpat  { background: #2563eb; }

/* ── Tabs ── */
.tabs {
  display: flex;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 4px;
  margin: 14px 0;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  color: var(--text-3);
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tab svg { flex-shrink: 0; }
.tab:hover { color: var(--text-2); background: var(--surface); }
.tab.active {
  color: var(--accent);
  background: var(--accent-bg);
  box-shadow: 0 1px 4px rgba(37,99,235,0.15);
}

/* ----------------------------------------------------------
   4. SECTION CARDS & FORM FIELDS
---------------------------------------------------------- */
.section {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.payment-section { background: var(--card); border-color: var(--border); }
.payment-section .section-title { color: var(--text-3); }

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
}

.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field input:focus,
.field select:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.field input::placeholder,
.field select::placeholder,
.item-row input::placeholder,
.combo-sub input::placeholder {
  color: var(--text-3);
  font-weight: 400;
  opacity: 1;
}

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

/* ----------------------------------------------------------
   5. PAYMENT TOGGLE
---------------------------------------------------------- */
.payment-toggle {
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 3px;
  gap: 3px;
  margin-top: 4px;
}

.pay-btn {
  flex: 1;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-3);
  text-align: center;
  transition: background 0.15s, color 0.15s;
  border-radius: 6px;
}

#pay-pending.active { background: #fef3c7; color: #92400e; }
#pay-cash.active    { background: #d1fae5; color: #065f46; }
#pay-online.active  { background: #dbeafe; color: #1e3a8a; }

/* ----------------------------------------------------------
   6. ITEM TABLE
---------------------------------------------------------- */
.col-labels,
.item-row {
  display: grid;
  grid-template-columns: 1fr 76px 50px 76px 30px;
  gap: 5px;
}

.col-labels { margin-bottom: 6px; }
.col-labels span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.item-row { align-items: center; margin-bottom: 8px; }

.combo-row {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  margin-bottom: 10px;
}

.combo-top {
  display: grid;
  grid-template-columns: 1fr 50px 76px 30px;
  gap: 5px;
  align-items: center;
  margin-bottom: 8px;
}

.combo-sub {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 4px;
}

.combo-item-row {
  display: grid;
  grid-template-columns: 76px 1fr 30px;
  align-items: center;
  gap: 6px;
}

.combo-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  padding-left: 2px;
}

.item-row select,
.item-row input,
.combo-top select,
.combo-top input,
.combo-sub select {
  width: 100%;
  padding: 8px 9px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.item-row input:focus, .item-row select:focus,
.combo-top input:focus, .combo-top select:focus,
.combo-sub select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

.item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.remove-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  color: var(--text-3);
  transition: background 0.15s, color 0.15s;
}
.remove-btn:hover { background: var(--red-bg); color: var(--red); }

/* ----------------------------------------------------------
   7. ADD BUTTONS
---------------------------------------------------------- */
.add-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.add-btn {
  padding: 9px 16px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #c7d2fe;
  border-radius: 20px;
  cursor: pointer;
  color: #4338ca;
  background: #eef2ff;
  transition: background 0.15s, border-color 0.15s;
}
.add-btn:hover { background: #e0e7ff; border-color: #a5b4fc; }

.add-btn.combo {
  color: #3730a3;
  background: #e0e7ff;
  border-color: #a5b4fc;
}
.add-btn.combo:hover { background: #c7d2fe; border-color: #818cf8; }

.add-btn.quickset {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 700;
  color: #3730a3;
  background: #e0e7ff;
  border-color: #a5b4fc;
}
.add-btn.quickset:hover { background: #c7d2fe; border-color: #818cf8; }

.add-btn.adjustment {
  color: #6d28d9;
  background: #f5f3ff;
  border-color: #ddd6fe;
}
.add-btn.adjustment:hover { background: #ede9fe; border-color: #c4b5fd; }

/* ----------------------------------------------------------
   8. TOTAL CARD & SAVE BUTTON
---------------------------------------------------------- */
.total-card {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.total-row { display: flex; justify-content: space-between; align-items: center; }
.total-label { font-size: 13px; font-weight: 600; color: var(--text-3); }
.total-amt   { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }

.total-final {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.save-btn-wrap {
  position: sticky;
  bottom: 0;
  padding: 12px 0 20px;
  margin-top: 6px;
  background: linear-gradient(to bottom, transparent, var(--bg) 35%);
  z-index: 10;
}

.save-btn {
  width: 100%;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  box-shadow: 0 4px 18px rgba(37,99,235,0.4);
  transition: all 0.18s;
  letter-spacing: 0.01em;
}
.save-btn:hover  { box-shadow: 0 6px 22px rgba(37,99,235,0.5); transform: translateY(-1px); }
.save-btn:active { transform: scale(0.99); box-shadow: 0 2px 10px rgba(37,99,235,0.4); }

/* ----------------------------------------------------------
   9. ORDERS LIST
---------------------------------------------------------- */
.search-input-wrap { position: relative; display: flex; align-items: center; }
.search-input-wrap input { width: 100%; padding-right: 36px; }
.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--border);
  border: none;
  cursor: pointer;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 50%;
  transition: all 0.12s;
}
.search-clear-btn:hover { color: var(--text); background: var(--border-2); }

.search-box input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  outline: none;
  margin-bottom: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.total-count { font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; }

.banners-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.pending-banner,
.delivery-banner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
  min-width: 0;
}

.pending-banner  { background: #fffbeb; border: 1px solid #fde68a; }
.pending-banner:hover { background: #fef3c7; }
.delivery-banner { background: #fff1f2; border: 1px solid #fecdd3; }
.delivery-banner:hover { background: #ffe4e6; }

.pending-count      { font-size: 15px; font-weight: 700; color: var(--orange); line-height: 1; flex-shrink: 0; }
.delivery-count-num { font-size: 15px; font-weight: 700; color: var(--red);    line-height: 1; flex-shrink: 0; }

.pending-banner-left { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.pending-banner-info { min-width: 0; }
.pending-label { font-size: 12px; font-weight: 600; color: var(--orange); line-height: 1.3; }
.pending-today { font-size: 11px; font-weight: 400; color: #92400e; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delivery-label { font-size: 12px; font-weight: 600; color: var(--red);    line-height: 1.3; }
.delivery-sub   { font-size: 11px; font-weight: 400; color: #991b1b; margin-top: 1px; }

.order-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.order-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-2); }

.order-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.order-name    { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--text); }
.order-contact { font-size: 12px; font-weight: 500; color: var(--text-3); margin-top: 2px; }
.order-amount  { font-size: 16px; font-weight: 800; margin-top: 4px; letter-spacing: -0.01em; }

/* ----------------------------------------------------------
   10. BADGES & STATUS DOTS
---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.01em;
}

.badge.cash    { background: var(--green-bg);  color: var(--green);  }
.badge.online  { background: var(--blue-bg);   color: var(--blue);   }
.badge.pending { background: var(--orange-bg); color: var(--orange); }
.badge.partial { background: #fef3c7;          color: #d97706;       }
.badge.split   { background: #ede9fe;          color: #7c3aed;       }
.badge.refund  { background: #ede9fe;          color: #7c3aed;       }

.badge.badagaon,
.badge.baghpat {
  background: #f3f4f6;
  color: #6b7280;
}

#eo-branch-badge.badagaon { background: #d1fae5; color: #059669; }
#eo-branch-badge.baghpat  { background: #dbeafe; color: #2563eb; }

.badge.delivery-pending {
  background: #fff1f2;
  color: #e11d48;
  border: 1.5px solid #fecdd3;
}
.badge.delivery-pending:hover { background: #ffe4e6; cursor: pointer; }
.badge.delivery-done { background: var(--green-bg); color: var(--green); }

.item-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-pending    { background: #e11d48; }
.dot-given      { background: var(--green); }
.dot-adjustment { background: #7c3aed; }

.card-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin: -14px -14px 14px -14px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ----------------------------------------------------------
   11. ORDER CARD DETAIL
---------------------------------------------------------- */
.items-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-3);
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.items-toggle-btn:hover { color: var(--text-2); }

.items-chevron {
  font-size: 16px;
  display: inline-block;
  transition: transform 0.18s ease;
  color: var(--text-3);
}
.items-toggle-btn.expanded .items-chevron { transform: rotate(90deg); }

.order-items { margin-top: 10px; }

.order-item-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 5px;
}

.order-final-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.card-bottom-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  height: 28px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.card-action-btn svg { flex-shrink: 0; width: 11px; height: 11px; }

.oc-quick-pay.card-action-btn {
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: var(--green);
}
.oc-quick-pay.card-action-btn:hover { background: #dcfce7; border-color: #4ade80; }

.delivery-action.card-action-btn {
  border: 1px solid #fda4af;
  background: #fff1f2;
  color: #e11d48;
}
.delivery-action.card-action-btn:hover { background: #ffe4e6; border-color: #fb7185; }

/* ----------------------------------------------------------
   12. THREE-DOT CARD MENU
---------------------------------------------------------- */
.menu-wrap { position: relative; display: inline-block; }

.menu-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  color: var(--text-3);
  flex-shrink: 0;
  transition: background 0.15s;
}
.menu-btn:hover { background: var(--surface); color: var(--text-2); }

.menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 164px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 50;
}
.menu-dropdown.open { display: block; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  border: none;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.1s;
}
.menu-item:hover             { background: var(--surface); }
.menu-item.destructive       { color: var(--red); }
.menu-item.destructive:hover { background: var(--red-bg); }

/* ----------------------------------------------------------
   13. TOAST NOTIFICATIONS
---------------------------------------------------------- */
#toast-container {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 10px 20px;
  max-width: 90vw;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  border-radius: 20px;
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show  { opacity: 1; transform: translateY(0) scale(1); }
.toast.error { background: var(--red); }

.empty {
  padding: 3rem 2rem;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
}

/* ----------------------------------------------------------
   14. FILTER BAR
---------------------------------------------------------- */
.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.filter-btn-wrap { position: relative; }

.filter-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover  { background: var(--surface); }
.filter-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

.filter-active-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.filter-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 224px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.filter-dropdown.open { display: block; }

.filter-section-label {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-group { display: flex; gap: 6px; flex-wrap: wrap; }

.filter-opt {
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border-2);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-opt:hover  { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.filter-opt.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); font-weight: 700; }

#filter-bar-label {
  display: flex;
  align-items: center;
  min-height: 20px;
}

.filter-clear-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border-2);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-clear-btn:hover { color: var(--red); border-color: var(--red); background: var(--red-bg); }

/* ----------------------------------------------------------
   15. ANALYTICS SCREEN
---------------------------------------------------------- */
#analytics-screen,
#pricelist-screen,
#qr-screen,
#settings-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  overflow-y: auto;
}

.analytics-screen-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

.analytics-screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.an-header-card { padding-bottom: 0.75rem !important; }
.an-filter-row  { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.an-filter-group { display: flex; align-items: center; gap: 10px; }

.an-filter-label {
  min-width: 52px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.an-seg {
  display: flex;
  flex: 1;
  gap: 2px;
  padding: 3px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
}

.an-seg-btn {
  flex: 1;
  padding: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  border: none;
  border-radius: 7px;
  background: none;
  cursor: pointer;
  color: var(--text-3);
  transition: all 0.15s;
}
.an-seg-btn:hover  { color: var(--text-2); }
.an-seg-btn.active {
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.an-total-block { padding: 8px 0 12px; }
.an-total-label {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.an-total-amt { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; letter-spacing: -0.02em; }
.an-total-sub { font-size: 12px; font-weight: 500; color: var(--text-3); margin-top: 4px; }

.an-divider { height: 1px; background: var(--border); margin: 12px 0; }

.an-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.an-row:last-child { border-bottom: none; }

.an-row-left  { display: flex; align-items: center; gap: 10px; }
.an-row-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.an-row-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.an-row-count {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.an-row-amt { font-size: 14px; font-weight: 800; color: var(--text); }

/* ----------------------------------------------------------
   16. BOTTOM SHEETS
---------------------------------------------------------- */
.sheet-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.sheet-modal.open { display: flex; }

.sheet {
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  padding: 6px 20px 36px;
  overflow-y: auto;
  background: var(--card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 32px rgba(15,23,42,0.15);
}

.sheet::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--border-2);
  border-radius: 2px;
  margin: 10px auto 16px;
}

.sheet-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.sheet-sub   { font-size: 12px; font-weight: 500; color: var(--text-3); margin-bottom: 14px; }

.sheet-label {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chip-grid      { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px,  1fr)); gap: 8px; margin-bottom: 8px; }
.chip-grid.wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 8px; }

.chip {
  padding: 11px 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover    { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 6px rgba(37,99,235,0.3); }

.qty-row { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.qty-row label { font-size: 12px; font-weight: 700; color: var(--text-2); }

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-stepper button {
  padding: 8px 16px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.qty-stepper button:hover { background: var(--border); }
.qty-stepper span {
  min-width: 38px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border-left: 1.5px solid var(--border-2);
  border-right: 1.5px solid var(--border-2);
  padding: 8px 0;
}

.sheet-confirm {
  width: 100%;
  padding: 14px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  transition: all 0.15s;
}
.sheet-confirm:hover { box-shadow: 0 6px 18px rgba(37,99,235,0.45); transform: translateY(-1px); }

.sheet-cancel {
  width: 100%;
  padding: 11px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--text-3);
  cursor: pointer;
}
.sheet-cancel:hover { color: var(--text-2); }

.sheet-done {
  width: 100%;
  padding: 13px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sheet-done:hover { background: var(--border); border-color: var(--text-3); }

.sheet-input {
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  margin-bottom: 4px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  display: block;
}
.sheet-input:focus {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.sheet-input::placeholder { color: var(--text-3); font-weight: 400; opacity: 1; }

.edit-pay-toggle {
  display: flex;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 3px;
  gap: 3px;
}
.edit-pay-btn {
  flex: 1;
  padding: 9px 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}
.edit-pay-btn.cash-active   { background: #d1fae5; color: #065f46; }
.edit-pay-btn.online-active { background: #dbeafe; color: #1e3a8a; }

.ep-info-block {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 4px;
}

.ep-info-section { padding: 10px 12px; }
.ep-info-section + .ep-info-section { border-top: 1px solid var(--border); }

.ep-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 5px 0;
}
.ep-totals-row:first-child { padding-top: 0; }
.ep-totals-row:last-child  { padding-bottom: 0; }

.ep-totals-label { font-weight: 500; color: var(--text-3); }
.ep-totals-val   { font-weight: 700; color: var(--text-2); }
.ep-totals-val.green  { color: var(--green); }
.ep-totals-val.orange { color: var(--orange); }
.ep-totals-val.red    { color: var(--red); }

/* ----------------------------------------------------------
   17. DELETE CONFIRM MODAL
---------------------------------------------------------- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  padding: 1rem;
  background: rgba(15,23,42,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-backdrop.open { display: flex; }

.modal-box {
  width: 100%;
  max-width: 310px;
  padding: 24px 22px 20px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: popIn 0.18s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--red-bg);
}

.modal-title { font-size: 17px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.modal-sub   { font-size: 13px; font-weight: 500; line-height: 1.5; text-align: center; color: var(--text-2); margin-bottom: 20px; }
.modal-btns  { display: flex; gap: 10px; }

.modal-cancel {
  flex: 1;
  padding: 11px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s;
}
.modal-cancel:hover { background: var(--border); }

.modal-delete {
  flex: 1;
  padding: 11px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}
.modal-delete:hover { background: #b91c1c; }

/* ----------------------------------------------------------
   18. EDIT ORDER SCREEN
---------------------------------------------------------- */
#edit-order-screen {
  display: none;
  position: fixed;
  inset: 0;
  padding: 14px;
  background: var(--bg);
  z-index: 100;
  overflow-y: auto;
}
#edit-order-screen.open { display: block; }

.edit-screen-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.edit-screen-title  { font-size: 18px; font-weight: 800; color: var(--text); }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.back-btn:hover { background: var(--surface); }

/* ----------------------------------------------------------
   19. DELIVERY SHEET — toggle switch
---------------------------------------------------------- */
.dv-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.dv-pending { background: #fff1f2; border-color: #fecdd3; }
.dv-given   { background: #f0fdf4; border-color: #bbf7d0; }

.dv-item-info { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }

.dv-item-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.dv-toggle-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.dv-status-text {
  min-width: 52px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
}
.dv-pending .dv-status-text { color: #e11d48; }
.dv-given   .dv-status-text { color: var(--green); }

.dv-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.dv-switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.dv-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 26px;
  background: #fca5a5;
  transition: background 0.2s;
}
.dv-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.dv-switch input:checked + .dv-slider         { background: var(--green); }
.dv-switch input:checked + .dv-slider::before { transform: translateX(18px); }

.dv-mark-all-btn {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--green);
  background: var(--green-bg);
  color: var(--green);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.dv-mark-all-btn:hover { background: var(--green); color: #fff; }

/* ----------------------------------------------------------
   20. PRICE LIST TABLE & QR SCREEN
---------------------------------------------------------- */
.pl-branch-toggle {
  display: flex;
  margin-left: auto;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}
.pl-branch-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--text-3);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}
.pl-branch-btn-active                         { background: var(--green-bg); color: var(--green); }
#pl-branch-badagaon.pl-branch-btn-active { background: #d1fae5; color: #065f46; }
#pl-branch-baghpat.pl-branch-btn-active  { background: #dbeafe; color: #1e3a8a; }

.pl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pl-table thead tr { background: var(--surface); }
.pl-table tbody tr { border-top: 1px solid var(--border); }
.pl-row-alt { background: var(--surface); }

.pl-th {
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
  border-bottom: 1.5px solid var(--border-2);
}
.pl-th:first-child,
.pl-th-size { text-align: left; }

.pl-td-name   { padding: 9px 10px; font-weight: 500; color: var(--text-2); }
.pl-td-size   { padding: 9px 10px; font-weight: 700; color: var(--text-3); min-width: 44px; }
.pl-td-price  { padding: 9px 10px; font-weight: 600; color: var(--text-2); text-align: right; }
.pl-td-single { padding: 9px 10px; font-weight: 700; color: var(--text);   text-align: right; }

.pl-th-total {
  color: #4338ca;
  background: #eef2ff;
  border-left: 1.5px solid #c7d2fe;
}
.pl-td-total {
  padding: 9px 10px;
  font-weight: 800;
  color: #4338ca;
  text-align: right;
  background: #eef2ff;
  border-left: 1.5px solid #c7d2fe;
}

.pl-na { color: var(--text-3); font-weight: 400; }

.section .pl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.pl-table-wrap .pl-table { min-width: 340px; }

#qr-screen img[src=""] { display: none; }
#qr-screen .section    { margin-top: 4px; }

/* ----------------------------------------------------------
   21. ADJUSTMENT SHEET
---------------------------------------------------------- */

.adj-sign-toggle {
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.adj-sign-btn {
  flex: 1;
  padding: 10px 8px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-3);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.adj-sign-btn.plus-active  { background: #d1fae5; color: #065f46; }
.adj-sign-btn.minus-active { background: #fee2e2; color: #dc2626; }

.adj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid #ddd6fe;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  margin-bottom: 8px;
}

.adj-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.adj-row-label {
  font-size: 13px;
  font-weight: 600;
  color: #5b21b6;
}

.adj-row-note {
  font-size: 11px;
  color: var(--text-3);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adj-row-price {
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
.adj-row-price.positive { color: #059669; }
.adj-row-price.negative { color: #dc2626; }

/* ----------------------------------------------------------
   22. SETTINGS SCREEN
---------------------------------------------------------- */

.settings-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1e40af;
  line-height: 1.5;
}

.settings-field-hint {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  line-height: 1.4;
}

.settings-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  background: var(--accent-bg);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.settings-upload-btn:hover { background: var(--accent); color: #fff; }

.settings-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border-2);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.settings-clear-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }

/* ----------------------------------------------------------
   23. DATE PICKER INPUTS (filter & analytics)
---------------------------------------------------------- */

.filter-date-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-date-input:focus {
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.an-date-input {
  flex: 1;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.an-date-input:focus {
  box-shadow: 0 0 0 2px rgba(37,99,235,0.12);
}