/* ==========================================================================
   Happy Yatra Admin Portal — Ultra-Modern Design System (v2.0)
   Mobile-First, Tablet & Desktop Adaptive Architecture
   ========================================================================== */

:root {
  /* Brand Theme — Deep Forest Emerald, Teal & Sunlit Amber */
  --brand-950: #041614;
  --brand-900: #072522;
  --brand-850: #0a332f;
  --brand-800: #0e423d;
  --brand-700: #125b54;
  --brand-600: #0f766e;
  --brand-500: #14b8a6;
  --brand-400: #2dd4bf;
  --brand-300: #5eead4;
  --brand-200: #99f6e4;
  --brand-100: #ccfbf1;
  --brand-50:  #f0fdfa;

  /* Accent Highlight — Sunrise Gold & Amber */
  --accent:       #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  --accent-soft:  #fffbeb;

  /* Neutrals & Semantic Ink */
  --ink:          #0f172a;
  --ink-2:        #334155;
  --ink-3:        #64748b;
  --ink-4:        #94a3b8;
  --ink-5:        #cbd5e1;
  --line:         #e2e8f0;
  --line-strong:  #cbd5e1;
  --bg:           #f8fafc;
  --bg-subtle:    #f1f5f9;
  --card:         #ffffff;

  /* Status Colors */
  --danger:       #ef4444;
  --danger-hover: #dc2626;
  --danger-soft:  #fef2f2;
  --danger-border: rgba(239, 68, 68, 0.25);

  --warn:         #d97706;
  --warn-soft:    #fffbeb;
  --warn-border:  rgba(217, 119, 6, 0.25);

  --ok:           #10b981;
  --ok-soft:      #ecfdf5;
  --ok-border:    rgba(16, 185, 129, 0.25);

  --info:         #0284c7;
  --info-soft:    #f0f9ff;
  --info-border:  rgba(2, 132, 199, 0.25);

  --purple:       #8b5cf6;
  --purple-soft:  #f5f3ff;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Type Scale */
  --fs-2xs: 0.68rem;
  --fs-xs:  0.75rem;
  --fs-sm:  0.84rem;
  --fs-md:  0.94rem;
  --fs-lg:  1.10rem;
  --fs-xl:  1.35rem;
  --fs-2xl: 1.65rem;
  --fs-3xl: 2.10rem;

  /* Radii */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-2xl:  28px;
  --r-full: 9999px;

  /* Multi-tier Layered Shadows */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --sh-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --sh-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --sh-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.10), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --sh-xl: 0 20px 48px -8px rgba(7, 37, 34, 0.26);

  --tap: 44px;
  --container-max: 1280px;
}

/* ---------------- Global Reset & Typography ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: contain;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.fw-bold { font-weight: 700; }
.fw-heavy { font-weight: 800; }

/* ---------------- Form Controls ---------------- */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 16px; /* iOS will zoom the page if inputs are < 16px */
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  background: #ffffff;
  width: 100%;
  min-height: var(--tap);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
textarea {
  min-height: 74px;
  resize: vertical;
  line-height: 1.5;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-600);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(15, 118, 110, 0.15);
}
input::placeholder, textarea::placeholder {
  color: var(--ink-4);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
label.f {
  display: block;
  margin-bottom: 14px;
}
label.f > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  color: #ffffff;
  border: 0;
  border-radius: var(--r-md);
  min-height: var(--tap);
  padding: 0 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.28);
  transition: transform 0.12s ease, filter 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.38);
  text-decoration: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}
.btn.secondary {
  background: #ffffff;
  color: var(--brand-800);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--sh-xs);
}
.btn.secondary:hover {
  background: var(--brand-50);
  border-color: var(--brand-500);
  color: var(--brand-700);
}
.btn.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.35);
}
.btn.accent:hover {
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.45);
}
.btn.danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1.5px solid var(--danger-border);
  box-shadow: none;
}
.btn.danger:hover {
  background: #fee2e2;
  color: var(--danger-hover);
}
.btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: var(--fs-sm);
  border-radius: var(--r-sm);
}
.btn.send {
  border-radius: var(--r-md);
  width: var(--tap);
  min-width: var(--tap);
  padding: 0;
  flex-shrink: 0;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  font-size: var(--fs-xs);
  font-weight: 700;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--ink-2);
  border-radius: var(--r-md);
  min-width: 36px;
  min-height: 36px;
  padding: 4px 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: all 0.15s ease;
}
.icon-btn:hover {
  border-color: var(--brand-500);
  background: var(--brand-50);
  color: var(--brand-700);
}
.icon-btn:active {
  transform: scale(0.95);
}

/* ---------------- Status Chips & Badges ---------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-size: var(--fs-2xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.chip.new { background: var(--info-soft); color: var(--info); border: 1px solid var(--info-border); }
.chip.contacted { background: var(--bg-subtle); color: var(--ink-2); border: 1px solid var(--line-strong); }
.chip.quoted { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-border); }
.chip.confirmed, .chip.paid { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-border); }
.chip.travelling { background: var(--purple-soft); color: var(--purple); border: 1px solid rgba(139, 92, 246, 0.25); }
.chip.completed, .chip.done { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-border); }
.chip.cancelled, .chip.unpaid, .chip.lost { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-border); }
.chip.draft { background: #f1f5f9; color: var(--ink-3); border: 1px solid var(--line); }
.chip.partial, .chip.sent { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-border); }

/* ---------------- Shell Layout & Header ---------------- */
.app {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: linear-gradient(135deg, var(--brand-950) 0%, var(--brand-900) 50%, var(--brand-850) 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 4px 24px rgba(4, 22, 20, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}
.topbar-brand:hover {
  text-decoration: none;
  color: #ffffff;
}
.topbar-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.4);
  object-fit: cover;
  flex-shrink: 0;
}
.topbar-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-title span.portal-tag {
  font-weight: 700;
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(45, 212, 191, 0.18);
  color: var(--brand-300);
  padding: 2px 8px;
  border-radius: var(--r-full);
  border: 1px solid rgba(45, 212, 191, 0.3);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.who-chip {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
}
.who-chip::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.view {
  flex: 1;
  padding: 12px 12px calc(96px + env(safe-area-inset-bottom));
}

/* ---------------- Bottom & Desktop Navigation ---------------- */
.bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom) + var(--kb, 0px));
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}
.bottomnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--ink-3);
  font-size: var(--fs-2xs);
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--r-md);
  min-width: 68px;
  transition: color 0.2s ease, transform 0.15s ease;
}
.bottomnav a:hover {
  color: var(--brand-600);
  text-decoration: none;
}
.bottomnav a.active {
  color: var(--brand-700);
}
.bottomnav a.active .nav-ic {
  background: var(--brand-100);
  color: var(--brand-700);
}
.nav-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 26px;
  border-radius: var(--r-full);
  transition: background 0.2s ease, color 0.2s ease;
}

/* ---------------- Layout Helpers & Cards ---------------- */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
h2.page-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  margin: 4px 0 16px;
  color: var(--brand-950);
}
h3.sec {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-700);
  font-weight: 800;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
h3.sec::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 580px) {
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
}

/* ---------------- Home Dashboard ---------------- */
.hello-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.hello {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--brand-950);
  letter-spacing: -0.02em;
}
.today-date-badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-3);
  background: var(--card);
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
}

/* KPI Summary Stats Cards */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.mini-stats .mini, .mini-stats a.mini {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 10px 6px 12px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--brand-900);
  text-decoration: none;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--line);
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.mini-stats .mini::before, .mini-stats a.mini::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3.5px;
  background: var(--brand-600);
}
.mini-stats a.mini.unpaid-card::before { background: var(--danger); }
.mini-stats .mini.today-card::before { background: var(--warn); }
.mini-stats .mini.books-card::before { background: var(--ok); }

.mini-stats a.mini:hover {
  border-color: var(--brand-500);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  text-decoration: none;
}
.mini-stats span.lbl {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

/* Financial Stats Banner (Money Page) */
.money-stats-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.money-stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px 8px;
  box-shadow: var(--sh-sm);
}
.money-stat-card .val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-950);
}
.money-stat-card .lbl {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-top: 2px;
}

/* Filter Chips Bar */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -4px 16px;
  padding: 2px 4px;
}
.chips::-webkit-scrollbar { display: none; }
.chips button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-full);
  padding: 0 14px;
  min-height: 40px;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: var(--sh-xs);
  transition: all 0.18s ease;
}
.chips button:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
  background: var(--brand-50);
}
.chips button.on {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(18, 91, 84, 0.35);
}
.chips button .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--r-full);
  font-size: var(--fs-2xs);
  font-weight: 800;
  background: var(--bg-subtle);
  color: var(--ink-2);
}
.chips button.on .badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Search input */
.search-wrap {
  position: relative;
  margin-bottom: 16px;
}
#q, #invQ {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 42px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}

/* Job & Lead Card Item */
.job-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  grid-template-areas:
    "av main chip"
    "actions actions actions";
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  cursor: pointer;
  min-height: var(--tap);
  box-shadow: var(--sh-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.job-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-400);
}
.job-item .t-avatar {
  grid-area: av;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-100) 0%, #d5f5ee 100%);
  color: var(--brand-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-md);
  border: 1.5px solid var(--brand-200);
  box-shadow: var(--sh-xs);
}
.job-item .t-main { grid-area: main; min-width: 0; }
.job-item .t-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.job-item .t-sub {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.job-item .chip { grid-area: chip; }
.job-item .callwa { grid-area: actions; margin-top: 2px; width: 100%; }
.job-item.overdue {
  background: #fffef7;
  border-left: 4.5px solid var(--warn);
}
.job-item .src {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-100);
  padding: 1px 7px;
  border-radius: var(--r-full);
}
.empty {
  text-align: center;
  padding: 44px 16px;
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--line-strong);
  color: var(--ink-3);
}

/* Call / WhatsApp Buttons */
.callwa { display: flex; gap: 8px; }
.job-item .callwa, .ph-actions .callwa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.pill-btn:hover {
  text-decoration: none;
  filter: brightness(0.96);
}
.pill-btn.call { background: var(--info-soft); color: var(--info); border: 1px solid var(--info-border); }
.pill-btn.wa { background: #e8f9ed; color: #16a34a; border: 1px solid rgba(22, 163, 74, 0.25); }
.pill-btn.disabled { background: var(--bg-subtle); color: var(--ink-4); pointer-events: none; border: 1px solid var(--line); }

/* Floating Action Button (FAB) */
.fab {
  position: fixed;
  right: 14px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 25;
  width: auto;
  height: 52px;
  padding: 0 18px 0 16px;
  border-radius: var(--r-full);
  border: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fab:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.55);
}
.fab:active { transform: scale(0.95); }
.fab em {
  display: inline;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ---------------- Trip Workspace ---------------- */
.person-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-areas:
    "back who status"
    "call call call";
  gap: 8px 10px;
  align-items: center;
  position: sticky;
  top: calc(56px + env(safe-area-inset-top));
  z-index: 20;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(12px);
  padding: 10px;
  margin: -4px 0 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.ph-back {
  grid-area: back;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--brand-800);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
}
.ph-who { grid-area: who; min-width: 0; }
.ph-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-950);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-phone {
  font-size: 0.78rem;
  color: var(--ink-3);
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-select {
  grid-area: status;
  width: auto;
  max-width: 118px;
  min-height: 40px;
  padding: 4px 28px 4px 8px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: var(--r-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ph-actions { grid-area: call; }

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--r-md);
  position: sticky;
  top: calc(148px + env(safe-area-inset-top));
  z-index: 18;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-full { display: none; }
.tab-short { display: inline; }
.tabs button {
  flex: 1 0 0;
  border: 0;
  background: transparent;
  min-height: 40px;
  min-width: 52px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
  padding: 0 6px;
}
.tabs button.active {
  background: #ffffff;
  color: var(--brand-900);
  box-shadow: var(--sh-sm);
}
.savebar {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  text-align: right;
  height: 1.2em;
  margin: -6px 4px 10px;
  font-weight: 600;
}

/* Chat Tab (AI Co-pilot) */
.chat-wrap {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 300px - var(--kb, 0px));
  min-height: 180px;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 8px 4px;
  scroll-behavior: smooth;
}
.msg {
  max-width: 85%;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  font-size: var(--fs-md);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  width: fit-content;
  box-shadow: var(--sh-xs);
}
.msg.user {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-800) 100%);
  color: #ffffff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
  cursor: pointer;
}
.msg.assistant {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg.info {
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-align: center;
  max-width: 100%;
  width: 100%;
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--brand-100);
}
.msg.typing {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 24px;
}
.msg.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-600);
  animation: bounce 1.2s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.chat-input {
  display: flex;
  gap: 10px;
  padding-top: 10px;
  align-items: flex-end;
}
.chat-input textarea {
  flex: 1;
  min-height: var(--tap);
  max-height: 120px;
  border-radius: var(--r-lg);
}
.suggest {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.suggest button {
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-full);
  min-height: 36px;
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand-900);
  box-shadow: var(--sh-xs);
  transition: all 0.15s ease;
}
.suggest button:hover {
  border-color: var(--brand-500);
  background: var(--brand-50);
}
.suggest button.wa {
  border-color: var(--brand-500);
  color: var(--brand-700);
  background: var(--brand-50);
}

/* Plan / Day Cards */
.day-card {
  border: 1px solid var(--line);
  border-left: 4.5px solid var(--brand-600);
  border-radius: var(--r-md);
  padding: 14px 14px 8px;
  margin-bottom: 12px;
  background: #ffffff;
  box-shadow: var(--sh-sm);
  transition: box-shadow 0.15s ease;
}
.day-card:hover {
  box-shadow: var(--sh-md);
}
.day-badge {
  background: var(--brand-900);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

/* Price Tab & Calculations */
.price-row {
  display: grid;
  grid-template-columns: 1fr 120px 36px;
  gap: 10px;
  margin-bottom: 8px;
  align-items: center;
}
.totals-box {
  background: var(--brand-50);
  border: 1.5px solid var(--brand-100);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-top: 12px;
}
.totals-box .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: var(--fs-md);
}
.totals-box .row.big {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--brand-950);
  border-top: 1.5px solid var(--brand-100);
  margin-top: 6px;
  padding-top: 10px;
}

/* Document Preview Tab */
.doc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.doc-zoom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}
.doc-frame {
  background: #cbd5e1;
  border-radius: var(--r-lg);
  padding: 20px;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}
.doc-frame .doc {
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.25);
  border-radius: 4px;
}

/* Invoices View */
.inv-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  box-shadow: var(--sh-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.inv-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-400);
}
.inv-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--brand-950);
  display: flex;
  align-items: center;
  gap: 8px;
}
.inv-sub {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  margin-top: 3px;
}
.inv-amt {
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 800;
  white-space: nowrap;
  font-size: var(--fs-md);
}
.inv-amt .sub {
  font-weight: 500;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* Timeline & Notes */
.warn-line {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin: 0 0 12px;
  border: 1px solid var(--warn-border);
}
.timeline { display: flex; flex-direction: column; gap: 10px; }
.tl {
  background: var(--brand-50);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: var(--fs-sm);
  border: 1px solid var(--brand-100);
}
.tl.inbound { background: var(--info-soft); border-color: var(--info-border); }
.tl-m { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 700; margin-bottom: 4px; }

/* List Menu Settings */
.list-menu { display: flex; flex-direction: column; padding: 4px 0; }
.list-menu a, .list-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: var(--fs-md);
  transition: background 0.15s ease;
}
.list-menu a:hover, .list-menu button:hover {
  background: var(--brand-50);
  color: var(--brand-800);
  text-decoration: none;
}
.list-menu a:last-child, .list-menu button:last-child { border-bottom: 0; }
.list-menu .danger-txt { color: var(--danger); }
.list-menu .danger-txt:hover { background: var(--danger-soft); color: var(--danger-hover); }

/* ---------------- Toast & Modals ---------------- */
.toast {
  position: fixed;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brand-950);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--sh-xl);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(4, 22, 20, 0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } }
@media (min-width: 600px) { .modal-bg { align-items: center; } }

.modal {
  background: #ffffff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--sh-xl);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 600px) { .modal { border-radius: var(--r-xl); } }
.modal h3 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--brand-950);
}
.modal::before {
  content: "";
  display: block;
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-strong);
  margin: -8px auto 16px;
}
@media (min-width: 600px) { .modal::before { display: none; } }

/* Login Screen */
.login-only {
  background: radial-gradient(circle at top right, var(--brand-800) 0%, var(--brand-950) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: #ffffff;
  border-radius: var(--r-xl);
  padding: 28px 20px 24px;
  width: min(420px, 92vw);
  margin: 16px auto;
  text-align: center;
  box-shadow: var(--sh-xl);
}
.login-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--brand-100);
  object-fit: cover;
}
.login-card h1 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-950);
  margin: 16px 0 4px;
}
.login-card > p {
  color: var(--ink-3);
  font-size: var(--fs-sm);
  margin: 0 0 22px;
}
.login-card .f { text-align: left; }
.login-card .err {
  color: var(--danger);
  font-size: var(--fs-sm);
  font-weight: 600;
  min-height: 1.2em;
  margin-top: 12px;
}
.pw-row { display: flex; gap: 8px; align-items: center; }
.pw-row input { flex: 1; }
.text-link {
  background: none;
  border: 0;
  color: var(--brand-600);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-top: 14px;
  text-decoration: underline;
  padding: 8px;
  cursor: pointer;
}

.install-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 12px 18px;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}
.install-bar span { flex: 1; }
.install-steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.6; font-size: var(--fs-md); }

/* ==========================================================================
   A4 BRANDED DOCUMENT (Screen Preview + Print Stylesheet)
   ========================================================================== */
.doc {
  width: 210mm;
  min-height: 296mm;
  background: #ffffff;
  color: #212a28;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 10.2pt;
  line-height: 1.45;
  padding: 13mm 14mm;
  position: relative;
  display: flow-root;
}
.doc * { box-sizing: border-box; }
.doc-head { display: flex; align-items: center; gap: 6mm; border-bottom: 2.5px solid #0e7663; padding-bottom: 5mm; }
.doc-head img { width: 24mm; height: 24mm; border-radius: 50%; object-fit: cover; }
.doc-co { flex: 1; }
.doc-co .nm { font-size: 16.5pt; font-weight: 800; color: #0d3b36; letter-spacing: .01em; }
.doc-co .tg { color: #0e7663; font-weight: 600; font-size: 8.6pt; margin: .5mm 0 1.2mm; }
.doc-co .ad { font-size: 8pt; color: #556; }
.doc-type { text-align: right; min-width: 48mm; }
.doc-type .t { font-size: 12.5pt; font-weight: 800; color: #0e7663; text-transform: uppercase; letter-spacing: .08em; }
.doc-type .meta { font-size: 8.6pt; color: #556; margin-top: 1.5mm; }
.doc-type .meta b { color: #212a28; }
.doc-sec { margin-top: 5mm; }
.doc-sec > .st {
  font-size: 8.4pt; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: #0e7663; border-bottom: 1px solid #cfe0dc; padding-bottom: 1mm; margin-bottom: 2.5mm;
}
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm 8mm; }
.doc-kv { font-size: 9.4pt; }
.doc-kv .k { color: #667; font-size: 7.8pt; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.doc-kv .v { font-weight: 600; }
.trip-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm;
  background: #f0f7f5; border-radius: 3mm; padding: 3.5mm 4mm; margin-top: 3mm;
}
.doc-day { display: flex; gap: 4mm; margin-bottom: 3.2mm; break-inside: avoid; }
.doc-day .db {
  background: #0d3b36; color: #fff; font-weight: 800; font-size: 8.4pt;
  border-radius: 2mm; padding: 1.2mm 0; width: 13mm; text-align: center; height: fit-content; flex-shrink: 0;
}
.doc-day .dt { font-weight: 700; color: #0d3b36; }
.doc-day .dp { font-size: 9.4pt; color: #333d3b; margin-top: .5mm; }
.doc-day .nh { font-size: 8.4pt; color: #0e7663; font-weight: 600; margin-top: .8mm; }
.doc-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.doc-list { margin: 0; padding: 0 0 0 4.5mm; font-size: 9.2pt; }
.doc-list li { margin-bottom: 1mm; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 9.4pt; }
.doc-table th {
  background: #0d3b36; color: #fff; text-align: left; padding: 2.2mm 3mm;
  font-size: 8.2pt; text-transform: uppercase; letter-spacing: .05em;
}
.doc-table th.r, .doc-table td.r { text-align: right; }
.doc-table td { padding: 2.2mm 3mm; border-bottom: 1px solid #e2eae7; }
.doc-table tr.tot td { border-top: 2px solid #0e7663; border-bottom: 0; font-weight: 800; font-size: 10.5pt; color: #0d3b36; }
.doc-table tr.sub td { color: #556; }
.pay-box {
  display: flex; gap: 6mm; background: #f0f7f5; border-radius: 3mm; padding: 3.5mm 4mm;
  margin-top: 4mm; break-inside: avoid; align-items: center; font-size: 9pt;
}
.pay-box .qr { width: 22mm; height: 22mm; flex-shrink: 0; }
.in-words { font-size: 8.8pt; color: #556; margin-top: 1.5mm; font-style: italic; }
.doc-tnc { font-size: 7.8pt; color: #495553; }
.doc-tnc ol { margin: 0; padding-left: 4mm; }
.doc-tnc li { margin-bottom: .8mm; }
.doc-foot {
  margin-top: 6mm; padding-top: 3mm; border-top: 1px solid #cfe0dc;
  display: flex; justify-content: space-between; align-items: flex-end; font-size: 8pt; color: #667;
  break-inside: avoid; gap: 8mm;
}
.sign { text-align: center; flex-shrink: 0; }
.sign .ln { border-top: 1px solid #99a; margin-top: 12mm; padding-top: 1mm; font-weight: 700; color: #212a28; font-size: 8.8pt; }
.badge-line { color: #0e7663; font-weight: 700; }

@media screen { #print-root { display: none; } }
@media print {
  body { background: #fff; }
  .app { display: none !important; }
  #print-root { display: block; }
  .doc { width: auto; min-height: 0; padding: 0; }
  @page { size: A4; margin: 12mm 13mm; }
}

/* ==========================================================================
   TABLET & DESKTOP RESPONSIVE BREAKPOINTS (>= 768px & >= 1024px)
   ========================================================================== */
@media (min-width: 768px) {
  .view {
    padding: 24px 32px 48px;
  }
  .topbar {
    padding: 12px 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
  }
  .bottomnav {
    position: static;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: none;
    border-top: 0;
    justify-self: center;
    display: flex;
    gap: 8px;
  }
  .bottomnav a {
    flex-direction: row;
    gap: 6px;
    padding: 6px 16px;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.80);
    border-radius: var(--r-full);
    min-width: auto;
  }
  .bottomnav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
  }
  .bottomnav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.20);
  }
  .bottomnav a.active .nav-ic {
    background: transparent;
    color: var(--brand-300);
  }
  .nav-ic {
    width: 22px;
    height: 22px;
  }

  .hello { font-size: var(--fs-2xl); }
  .mini-stats .mini, .mini-stats a.mini { font-size: 1.35rem; padding: 14px 10px; }
  .view { padding: 24px 32px 48px; }
  .job-item {
    grid-template-columns: 44px 1fr auto;
    grid-template-areas:
      "av main chip"
      "av actions actions";
    padding: 14px 16px;
  }
  .job-item .t-avatar { width: 44px; height: 44px; }
  .job-item .callwa, .ph-actions .callwa {
    display: flex;
    width: auto;
  }
  .pill-btn { min-height: 36px; font-size: var(--fs-xs); }
  .person-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    top: calc(64px + env(safe-area-inset-top));
    padding: 10px 14px;
  }
  .ph-back { width: 40px; height: 40px; }
  .ph-who { flex: 1; min-width: 160px; }
  .ph-name { font-size: var(--fs-lg); }
  .status-select { max-width: none; min-height: 36px; font-size: var(--fs-xs); }
  .ph-actions { margin-left: auto; }
  .tabs {
    top: calc(128px + env(safe-area-inset-top));
    overflow: visible;
  }
  .tab-full { display: inline; }
  .tab-short { display: none; }
  .tabs button { font-size: var(--fs-sm); min-height: 38px; }
  .fab {
    bottom: 28px;
    right: 28px;
    height: 48px;
    font-size: 1.3rem;
  }
  .fab em { font-size: var(--fs-sm); }
  input, select, textarea { font-size: var(--fs-md); }
  .money-stat-card { padding: 16px; }
  .money-stat-card .val { font-size: 1.35rem; }

  /* Keep a single work-queue column until it's truly wide */
  #invCard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .inv-item { margin-bottom: 0; }
}

@media (hover: none) {
  .job-item:hover, .mini-stats a.mini:hover, .fab:hover { transform: none; }
}

@media (min-width: 1100px) {
  #jobList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .job-item { margin-bottom: 0; }
  #invCard {
    grid-template-columns: 1fr 1fr;
  }
  .grid2 {
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .grid3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 20px;
  }
}
