/* ============================================================
   درزی ماسٹر (TAILOR MASTER) - COMPLETE STYLESHEET
   Mobile-First, Responsive, RTL Urdu Typography
   ============================================================ */

:root {
  --primary: #0d9488;         /* Emerald Teal */
  --primary-hover: #0f766e;
  --primary-light: #ccfbf1;
  --secondary: #4f46e5;       /* Royal Indigo */
  --accent-pink: #f43f5e;      /* Late alerts */
  --accent-pink-light: #ffe4e6;
  --accent-amber: #f59e0b;     /* Pending / In-shop */
  --accent-amber-light: #fef3c7;
  --accent-green: #10b981;     /* Ready / Paid */
  --accent-green-light: #d1fae5;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --font-urdu: 'Noto Nastaliq Urdu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --bottom-nav-height: 64px;
  --header-height: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-urdu);
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--header-height);
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  user-select: none;
}

/* Common Font Overrides for Numbers & English */
input, select, textarea, .stat-number, .total-figure, .balance-figure, .tag-receipt {
  font-family: var(--font-sans), var(--font-urdu);
}

/* ============================================================
   TOP APP HEADER
   ============================================================ */
.app-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.logo-badge.has-custom-logo {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 2px;
}

.logo-badge img.header-shop-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: calc(var(--radius-md) - 2px);
}

.shop-title-wrap {
  display: flex;
  flex-direction: column;
}

.shop-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.app-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-status-badge {
  display: none !important;
  visibility: hidden !important;
}

.sync-online {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.sync-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  animation: pulse 1.8s infinite;
}

.sync-offline {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.sync-syncing {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.sync-dot {
  font-size: 0.8rem;
  line-height: 1;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.header-icon-btn:hover {
  background: #e2e8f0;
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ============================================================
   MAIN CONTENT & SECTIONS
   ============================================================ */
.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
}

.app-section {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.app-section.active-section {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION 1: DASHBOARD & STATUS CARDS
   ============================================================ */
.date-selector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.quick-date-buttons {
  display: flex;
  gap: 6px;
}

.btn-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  font-size: 0.82rem;
  font-family: var(--font-urdu);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}

.date-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: #ffffff;
  color: var(--text-main);
  outline: none;
}

.date-readable {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

/* Alert Banner */
.alert-banner {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.alert-icon {
  font-size: 1.5rem;
}

.alert-text {
  font-size: 0.88rem;
  color: #9f1239;
}

/* 4 Status Grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card:active {
  transform: scale(0.98);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-today .stat-icon-wrap { background: #e0f2fe; }
.stat-late .stat-icon-wrap { background: var(--accent-pink-light); }
.stat-shop .stat-icon-wrap { background: var(--accent-amber-light); }
.stat-ready .stat-icon-wrap { background: var(--accent-green-light); }

.stat-today { border-right: 4px solid #0284c7; }
.stat-late { border-right: 4px solid var(--accent-pink); background: #fff5f7; }
.stat-shop { border-right: 4px solid var(--accent-amber); }
.stat-ready { border-right: 4px solid var(--accent-green); }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

/* Khata Strip Card */
.khata-strip-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.khata-strip-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.strip-label {
  font-size: 0.88rem;
  color: #94a3b8;
}

.strip-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: #38bdf8;
}

.strip-arrow {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Section Heading Bar */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.count-badge {
  background: #e2e8f0;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* ============================================================
   ORDER CARDS LIST (DASHBOARD & SHOP)
   ============================================================ */
.orders-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.order-card.is-late {
  border-right: 5px solid var(--accent-pink);
  background: #fffbfb;
}

.order-card.is-ready {
  border-right: 5px solid var(--accent-green);
}

.order-card.is-in-shop {
  border-right: 5px solid var(--accent-amber);
}

.order-card.is-delivered {
  border-right: 5px solid #94a3b8;
  opacity: 0.88;
}

.order-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.order-parchi-badge {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-status-pill {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-in_shop { background: var(--accent-amber-light); color: #92400e; }
.status-ready { background: var(--accent-green-light); color: #065f46; }
.status-delivered { background: #f1f5f9; color: #475569; }

.order-body-flex {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cloth-thumb-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.cloth-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cloth-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.5rem;
}

.order-details-col {
  flex: 1;
}

.client-name-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.client-phone-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  direction: ltr;
  display: inline-block;
}

.suit-type-badge {
  display: inline-block;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-main);
  margin-top: 4px;
}

.order-dates-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.return-date-badge {
  font-weight: 600;
  color: #b91c1c;
}

.return-date-badge.normal {
  color: var(--primary);
}

.balance-tag {
  font-weight: 700;
}

.balance-tag.has-balance {
  color: var(--accent-pink);
}

.balance-tag.paid {
  color: var(--accent-green);
}

/* Order Card Actions Bar */
.order-actions-bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-card-action {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-urdu);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-card-action:hover {
  background: var(--bg-main);
}

.btn-action-ready {
  background: var(--accent-green-light);
  color: #065f46;
  border-color: #a7f3d0;
}

.btn-action-deliver {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.btn-action-extend {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.btn-action-paydone {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}

.btn-action-edit {
  background: #f0fdfa;
  color: #0f766e;
  border-color: #99f6e4;
}

.btn-action-edit:hover {
  background: #ccfbf1;
  border-color: #5eead4;
}

.btn-action-whatsapp {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.btn-action-delete {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.btn-action-delete:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #991b1b;
}

.btn-card-header-del {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.15s ease;
}

.btn-card-header-del:hover {
  background: #fecaca;
  border-color: #ef4444;
  color: #b91c1c;
}

/* Empty State */
.empty-state {
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

/* ============================================================
   SECTION 2: ADD SUIT FORM
   ============================================================ */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-header-banner {
  background: linear-gradient(135deg, var(--primary), #047857);
  color: #ffffff;
  padding: 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-header-banner h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.form-header-banner p {
  font-size: 0.85rem;
  opacity: 0.9;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 12px;
}

.badge-tag {
  font-size: 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input, .form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  background: #ffffff;
  color: var(--text-main);
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  width: 100%;
  padding-left: 36px;
}

.input-icon {
  position: absolute;
  left: 10px;
  font-size: 1rem;
  color: var(--text-muted);
}

.saved-client-prompt {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.3s;
}

.prompt-text {
  font-size: 0.82rem;
  color: #0e7490;
  font-weight: 600;
}

.btn-small-action {
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* Pill Selectors */
.pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: var(--font-urdu);
  cursor: pointer;
  transition: all 0.15s;
}

.pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.sub-input {
  margin-top: 6px;
  font-size: 0.85rem;
}

/* Photo Capture Area */
.photo-capture-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-preview-box {
  width: 100%;
  max-width: 280px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--primary);
  margin: 0 auto;
}

.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-photo {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 700;
}

.btn-photo-action {
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  background: #f0fdfa;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-photo-action:active {
  background: #ccfbf1;
}

/* ============================================================
   MEASUREMENTS GRID & TAILOR NUMPAD
   ============================================================ */
.measurements-card {
  position: relative;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.helper-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.size-group {
  margin-bottom: 14px;
}

.size-group-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.size-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.size-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.size-input {
  width: 100%;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 700;
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.size-input.active-field {
  border-color: var(--primary);
  background: #f0fdfa;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

/* Floating Tailor Numpad Drawer */
.tailor-numpad-drawer {
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 12px 16px;
  z-index: 95;
  display: none;
  max-width: 800px;
  margin: 0 auto;
  animation: slideUp 0.2s ease-out;
}

.tailor-numpad-drawer.active {
  display: block;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.numpad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.btn-close-numpad {
  background: #f1f5f9;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-urdu);
}

.numpad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.num-key {
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, transform 0.1s;
}

.num-key:active {
  background: #e2e8f0;
  transform: scale(0.96);
}

.num-special {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 1rem;
}

.num-fraction {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 1.1rem;
}

.num-next {
  grid-column: span 4;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-family: var(--font-urdu);
  font-size: 1rem;
}

/* ============================================================
   DESIGN & STYLES (VISUAL ICONS)
   ============================================================ */
.style-row {
  margin-bottom: 14px;
}

.style-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  display: block;
}

.visual-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.visual-options.multi-select {
  grid-template-columns: repeat(3, 1fr);
}

.style-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
}

.style-box:active {
  transform: scale(0.97);
}

.style-box.active {
  background: #f0fdfa;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.style-icon {
  font-size: 1.25rem;
}

.style-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.quick-notes-chips, .quick-date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip {
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s;
}

.chip:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* ============================================================
   BILLING & QUANTITY CARD
   ============================================================ */
.counter-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.btn-counter {
  width: 44px;
  height: 42px;
  background: #f1f5f9;
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}

.counter-box input {
  flex: 1;
  border: none;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0;
}

.total-bar {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  margin-top: 10px;
}

.total-figure {
  font-size: 1.25rem;
  color: var(--primary);
}

.payment-mode-pills {
  display: flex;
  gap: 6px;
}

.payment-mode-pills .pill-btn {
  flex: 1;
}

.balance-bar {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.balance-label {
  font-weight: 700;
  color: #9f1239;
}

.balance-figure {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-pink);
}

.submit-action-area {
  margin-top: 8px;
  margin-bottom: 24px;
}

.btn-primary-large {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), #047857);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-urdu);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary-large:active {
  transform: scale(0.98);
}

/* ============================================================
   SECTION 3: SHOP ORDERS FILTER BAR
   ============================================================ */
.filter-tabs-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.filter-tabs-bar::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-urdu);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.tab-btn.tab-late.active {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
}

.quick-search-box {
  margin-bottom: 14px;
}

.quick-search-box input {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  outline: none;
}

/* ============================================================
   SECTION 4/5: CLIENTS LIST & COMPLETE PROFILES
   ============================================================ */
.clients-search-bar {
  margin-bottom: 14px;
}

.clients-search-bar input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  outline: none;
}

.clients-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.client-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.client-row-card:active {
  transform: scale(0.98);
  border-color: var(--primary);
}

.client-main-meta {
  display: flex;
  flex-direction: column;
}

.client-row-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.client-row-phone {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  direction: ltr;
}

.client-side-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.client-orders-tag {
  font-size: 0.75rem;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.client-khata-balance {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-pink);
}

/* ============================================================
   SECTION 6: KHATA (LEDGER) OVERVIEW
   ============================================================ */
.khata-date-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.khata-date-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.khata-date-header .date-label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary, #0f172a);
}

.khata-preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.khata-preset-pills .preset-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.khata-preset-pills .preset-pill:hover {
  background: #e2e8f0;
}

.khata-preset-pills .preset-pill.active {
  background: var(--primary, #0f172a);
  color: #ffffff;
  border-color: var(--primary, #0f172a);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.khata-date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: flex-end;
}

@media (max-width: 600px) {
  .khata-date-inputs {
    grid-template-columns: 1fr 1fr;
  }
  .khata-date-inputs .date-actions-group {
    grid-column: span 2;
    display: flex;
    gap: 8px;
  }
}

.khata-date-inputs .date-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.khata-date-inputs .khata-date-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.9rem;
  font-family: inherit;
  background: #ffffff;
  color: #0f172a;
  outline: none;
}

.khata-date-inputs .khata-date-input:focus {
  border-color: var(--accent-blue, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.date-actions-group {
  display: flex;
  gap: 8px;
}

.btn-khata-filter {
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-khata-filter:hover {
  opacity: 0.92;
}

.btn-khata-reset {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-khata-reset:hover {
  background: #e2e8f0;
}

.khata-active-banner {
  margin-top: 10px;
  padding: 8px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  color: #1e40af;
  font-weight: 600;
}

.btn-clear-filter {
  background: none;
  border: none;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.khata-secondary-strip {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 14px;
}

.khata-mini-chip {
  flex: 1;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
}

.khata-mini-chip strong {
  color: #0f172a;
  font-size: 1.05rem;
  margin-right: 4px;
}

.khata-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.khata-overview-card {
  border-radius: var(--radius-lg);
  padding: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.khata-pending {
  background: linear-gradient(135deg, #e11d48, #9f1239);
}

.khata-collected {
  background: linear-gradient(135deg, #059669, #065f46);
}

.overview-title {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-bottom: 6px;
}

.overview-figure {
  font-size: 1.45rem;
  font-weight: 700;
  font-family: var(--font-sans);
}

.khata-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.khata-client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-right: 5px solid var(--accent-pink);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.khata-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.khata-due-figure {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-pink);
}

.khata-actions-row {
  display: flex;
  gap: 8px;
}

.btn-khata-pay {
  flex: 1;
  padding: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-urdu);
  cursor: pointer;
}

.btn-khata-whatsapp {
  padding: 8px 12px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-urdu);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   MODALS & DRAWERS
   ============================================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-small {
  max-width: 420px;
}

.modal-slips {
  max-width: 480px;
}

.modal-profile {
  max-width: 600px;
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.modal-body {
  padding: 16px 18px;
}

.modal-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.current-date-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-sans);
}

.modal-footer-actions {
  margin-top: 16px;
}

/* Profile Modal Specifics */
.profile-header-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.profile-phone {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  direction: ltr;
  display: inline-block;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.pstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pstat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.pstat-balance .pstat-val {
  color: var(--accent-pink);
}

.pstat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-quick-action {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.btn-primary-small {
  flex: 1;
  padding: 9px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-urdu);
  cursor: pointer;
}

.btn-whatsapp-small {
  padding: 9px 14px;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-urdu);
  display: flex;
  align-items: center;
}

.profile-section-box {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.profile-section-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.update-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.profile-sizes-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.size-pill-tag {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.size-pill-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.size-pill-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.profile-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.profile-order-row {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ============================================================
   THERMAL RECEIPTS & SLIPS
   ============================================================ */
.slip-lang-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
}

.slip-lang-btn {
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.slip-lang-btn:hover {
  background: #e2e8f0;
}

.slip-lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(13, 148, 136, 0.25);
}

.slip-type-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
}

.slip-tab {
  flex: 1;
  padding: 10px 6px;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-urdu);
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.slip-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #fff;
  font-weight: 700;
}

.slip-render-wrap {
  padding: 16px;
  background: #f1f5f9;
  display: flex;
  justify-content: center;
}

.thermal-receipt {
  background: #ffffff;
  width: 100%;
  max-width: 320px;
  padding: 16px 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace, var(--font-urdu);
  font-size: 0.88rem;
  line-height: 1.4;
  border-top: 4px dashed #cbd5e1;
  border-bottom: 4px dashed #cbd5e1;
}

.slip-header-center {
  text-align: center;
  border-bottom: 1px dashed #000;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.slip-shop-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.slip-shop-sub {
  font-size: 0.75rem;
  color: #475569;
}

.slip-parchi-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 6px 0;
  text-align: center;
}

.slip-row {
  display: flex;
  justify-content: space-between;
  margin: 3px 0;
}

.slip-row-divider {
  border-bottom: 1px dashed #000;
  margin: 6px 0;
}

.slip-measure-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0;
}

.slip-measure-table td {
  padding: 3px 4px;
  border: 1px solid #e2e8f0;
  font-size: 0.82rem;
}

.slip-footer-note {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dashed #000;
}

.tag-receipt {
  text-align: center;
}

.tag-huge-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 10px 0;
  line-height: 1;
}

.slip-actions-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.btn-copy-slip-action {
  flex: 1;
  padding: 12px 14px;
  background: #0d9488;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font-urdu), var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(13, 148, 136, 0.35);
}

.btn-copy-slip-action:hover {
  background: #0f766e;
  transform: translateY(-1px);
}

.btn-copy-slip-action.copied-success {
  background: #16a34a !important;
  box-shadow: 0 3px 12px rgba(22, 163, 74, 0.45) !important;
}

.btn-whatsapp-action {
  flex: 1;
  padding: 10px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-urdu);
  cursor: pointer;
}

.btn-print-action {
  padding: 10px 16px;
  background: #1e293b;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-urdu);
  cursor: pointer;
}

/* Toast message for instant copy feedback */
.copy-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-urdu), var(--font-sans);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   SETTINGS & MOBILE CONNECT
   ============================================================ */
.mobile-connect-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.mobile-connect-box h4 {
  font-size: 0.95rem;
  color: #0f766e;
  margin-bottom: 4px;
}

.mobile-connect-box p {
  font-size: 0.82rem;
  color: #115e59;
}

.ip-address-badge {
  background: #0f172a;
  color: #38bdf8;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  direction: ltr;
  text-align: center;
  margin: 8px 0;
  user-select: all;
}

.mobile-tip {
  font-size: 0.75rem !important;
  color: #0d9488 !important;
}

.backup-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.backup-box h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.backup-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.btn-backup-download {
  display: inline-block;
  padding: 8px 16px;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-urdu);
}

/* Photo Modal Enlarged */
.photo-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.photo-modal-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.close-photo {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #fff;
}

/* ============================================================
   BOTTOM NAVIGATION BAR (MOBILE APP BAR)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  height: var(--bottom-nav-height);
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 90;
  max-width: 800px;
  margin: 0 auto;
}

.nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  padding: 4px 0;
}

.nav-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 2px;
}

.nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-urdu);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active .nav-label {
  font-weight: 700;
}

.nav-add-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.4);
}

/* ============================================================
   MEDIA PRINT
   ============================================================ */
@media print {
  body {
    padding: 0;
    background: #fff;
  }
  .app-header, .bottom-nav, .modal-header, .slip-actions-bar, .slip-type-tabs {
    display: none !important;
  }
  .modal-backdrop {
    position: static;
    background: none;
    padding: 0;
    display: block !important;
  }
  .modal-card {
    box-shadow: none;
    max-width: 100%;
  }
  .slip-render-wrap {
    padding: 0;
    background: none;
  }
  .thermal-receipt {
    box-shadow: none;
    border: none;
  }
}

/* ============================================================
   IN-SHOP ("دکان پر ہیں، کام ہو رہا ہے") PROMINENT STYLING
   ============================================================ */
.order-card.is-in_shop {
  border-right: 5px solid #0284c7 !important;
  background: linear-gradient(to left, rgba(2, 132, 199, 0.04), #ffffff) !important;
}

.order-status-pill.status-in_shop {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  font-weight: 700;
}

.in-shop-active-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0;
}

.in-shop-status-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #15803d;
}

.stitching-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: stitchingPulse 1.8s infinite;
}

@keyframes stitchingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.in-shop-time-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.in-shop-time-badge.urgent {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  animation: urgentBlink 1.5s infinite;
}
.in-shop-time-badge.tomorrow {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.in-shop-time-badge.normal {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.in-shop-time-badge.late {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fda4af;
  font-weight: 800;
}

@keyframes urgentBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================================
   POS SALES DASHBOARD & REGISTER STYLES (KHATA)
   ============================================================ */
.pos-sales-header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.pos-badge {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pos-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: #f8fafc;
}

.pos-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.btn-pos-add {
  background: linear-gradient(135deg, #0d9488, #059669);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.pos-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .pos-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pos-card {
  border-radius: var(--radius-md);
  padding: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.pos-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pos-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pos-card-label {
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-card-value {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-sans);
  line-height: 1.2;
  margin: 2px 0;
}

.pos-card-sub {
  font-size: 0.68rem;
  opacity: 0.85;
}

.pos-card-sales {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.pos-card-today {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.pos-card-cash {
  background: linear-gradient(135deg, #059669, #047857);
}

.pos-card-udhar {
  background: linear-gradient(135deg, #e11d48, #be123c);
}

/* POS Dual Tab Switcher */
.pos-tabs-switcher {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.pos-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: none;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-urdu);
  color: #64748b;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.pos-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* POS Register Toolbar */
.pos-register-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.pos-search-wrap {
  position: relative;
  width: 100%;
}

.pos-search-wrap input {
  width: 100%;
  padding: 10px 38px 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: var(--font-urdu);
  outline: none;
  box-sizing: border-box;
}

.pos-search-wrap input:focus {
  border-color: var(--primary);
}

.pos-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
}

.pos-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.pos-filter-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}

.pos-filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* POS Sales List & Cards */
.pos-sales-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pos-sale-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease;
}

.pos-sale-card:hover {
  transform: translateY(-1px);
}

.pos-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 6px;
}

.pos-receipt-badge {
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.pos-sale-time {
  font-size: 0.74rem;
  color: #64748b;
}

.pos-sale-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-client-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.pos-client-phone {
  font-size: 0.78rem;
  color: #64748b;
}

.pos-sale-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.pos-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
  margin-top: 4px;
}

.pos-amt-col {
  padding: 6px 4px;
  border-radius: 6px;
}

.pos-amt-col.total {
  background: #eff6ff;
  color: #1d4ed8;
}

.pos-amt-col.paid {
  background: #ecfdf5;
  color: #047857;
}

.pos-amt-col.udhar {
  background: #fff1f2;
  color: #be123c;
}

.pos-amt-label {
  font-size: 0.68rem;
  font-weight: 600;
  display: block;
}

.pos-amt-val {
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--font-sans);
}

.pos-sale-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.btn-pos-receipt {
  flex: 1;
  padding: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-pos-wa {
  padding: 6px 10px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Custom Shop Logo & Branding Styles */
.slip-shop-logo {
  max-height: 52px;
  max-width: 150px;
  margin: 0 auto 6px;
  display: block;
  object-fit: contain;
}

.slip-tag-logo {
  max-height: 28px;
  max-width: 90px;
  margin: 0 auto 4px;
  display: block;
  object-fit: contain;
}

.logo-setting-preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 12px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.settings-logo-thumb-wrap {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.settings-logo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Thermal & Slip Print Styles */
@media print {
  body * {
    visibility: hidden !important;
  }
  #slipsModal,
  #slipsModal .modal-container,
  #slipsModal .modal-body,
  .slip-content-wrapper,
  .slip-paper-receipt,
  .slip-paper-receipt * {
    visibility: visible !important;
  }
  #slipsModal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  #slipsModal .modal-container {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  #slipsModal .modal-header,
  #slipsModal .slip-tabs-bar,
  #slipsModal .slip-lang-pills,
  #slipsModal .slip-actions-bar {
    display: none !important;
  }
  .slip-paper-receipt {
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 6px !important;
    margin: 0 auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .slip-tab-pane:not(.active) {
    display: none !important;
  }
  .slip-tab-pane.active {
    display: block !important;
  }
}

/* ============================================================
   MOBILE-FIRST FULLSCREEN LOGIN SCREEN
   ============================================================ */
.mobile-login-screen {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999999 !important;
  background: #f8fafc !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100vw !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.mobile-login-card {
  width: 100% !important;
  max-width: 440px !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

@media (min-width: 641px) {
  .mobile-login-screen {
    padding: 30px 16px !important;
    align-items: center !important;
    background: #f1f5f9 !important;
  }
  .mobile-login-card {
    min-height: auto !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    border: 2px solid #0d9488 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
  }
}

.mobile-login-hero {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  padding: 36px 20px 28px;
  border-radius: 0 0 28px 28px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
  position: relative;
}

.mobile-login-badge {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.mobile-login-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  font-family: var(--font-urdu);
  line-height: 1.3;
}

.mobile-login-subtag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f0fdfa;
}

.mobile-login-body {
  padding: 24px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-login-instructions {
  text-align: center;
  margin-bottom: 20px;
}

.mobile-login-instructions h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.mobile-login-instructions p {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
}

.mobile-login-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: none;
  text-align: center;
}

.mobile-form-group {
  margin-bottom: 16px;
  text-align: right;
}

.mobile-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.mobile-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-input-wrapper input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-size: 16px !important; /* Prevents mobile browser auto-zoom */
  font-weight: 600;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  text-align: right;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.mobile-input-wrapper.with-toggle input {
  padding-left: 48px;
}

.mobile-input-wrapper input:focus {
  border-color: #0d9488 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15) !important;
}

.btn-toggle-eye {
  position: absolute;
  left: 10px;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s;
}

.btn-toggle-eye:active {
  background: #e2e8f0;
}

.mobile-btn-submit {
  width: 100%;
  height: 54px;
  margin-top: 6px;
  margin-bottom: 18px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  font-family: var(--font-urdu);
}

.mobile-btn-submit:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.mobile-login-wa-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  margin-top: auto;
  margin-bottom: 12px;
}

.mobile-login-wa-box p {
  font-size: 0.82rem;
  color: #166534;
  font-weight: 700;
  margin: 0 0 10px;
}

.mobile-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: #25d366;
  color: #ffffff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease;
  font-family: var(--font-urdu);
}

.mobile-btn-wa:active {
  transform: scale(0.98);
}

.mobile-login-footer {
  text-align: center;
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
  padding-bottom: 6px;
}

/* ============================================================
   GLOBAL MOBILE-FIRST OPTIMIZATIONS
   ============================================================ */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

button, input, select, textarea, a, .stat-card, .client-item, .order-card {
  touch-action: manipulation;
}

input, select, textarea {
  font-size: 16px !important;
}

@media (max-width: 640px) {
  body {
    padding-top: 56px;
    padding-bottom: calc(var(--bottom-nav-height) + 18px);
  }

  .app-header {
    height: 56px;
  }

  .header-content {
    padding: 0 10px;
  }

  .shop-title-wrap {
    max-width: 140px;
    overflow: hidden;
  }

  .shop-name {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 5px;
  }

  .header-icon-btn {
    width: 34px;
    height: 34px;
  }

  .main-content {
    padding: 10px 10px;
    max-width: 100%;
  }

  /* Status Cards Grid on small phones */
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }

  .stat-card {
    padding: 10px;
    gap: 8px;
  }

  .stat-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-title {
    font-size: 0.78rem;
  }

  /* Native Mobile Bottom Sheet Modals */
  .modal-backdrop {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .modal-card {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    margin-bottom: 0 !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25) !important;
    border: none !important;
  }

  .modal-header {
    padding: 14px 16px !important;
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    z-index: 10 !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .modal-body {
    padding: 14px 14px !important;
  }

  /* Mobile Bottom Navigation */
  .bottom-nav {
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
  }

  .nav-label {
    font-size: 0.68rem;
  }

  .nav-icon {
    font-size: 1.18rem;
  }

  /* Slips tabs */
  .slip-tabs-bar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
  }

  .slip-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 12px;
  }
}
