/* ═══════════════════════════════════════════════════════════
   TAREL Management — Professional Fish Delivery
   Design: iOS 17 Glassmorphism · Blue & White · 3D Depth
   ═══════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
               'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  background: #f8f7f2;
  color: #1d2821;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Page background ──────────────────────────────────────── */
.app-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(111,142,82,0.20) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(46,66,54,0.12) 0%, transparent 55%),
    linear-gradient(160deg, #f8f7f2 0%, #fbfaf5 42%, #eef3ea 100%);
}

/* scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(111,142,82,0.35); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 500;
  height: 60px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.80);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(111,142,82,0.14);
  box-shadow: 0 1px 20px rgba(46,66,54,0.07);
}

.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.brand-logo {
  width: 74px; height: 74px;
  background: transparent;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.brand-logo::before {
  content: none;
}

.brand-logo img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
}

.navbar-center {
  display: none;
}

@media (min-width: 768px) {
  .navbar-center { display: flex; gap: 4px; }
}

.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: rgba(0,40,120,0.65);
  text-decoration: none; transition: all 0.18s;
}
.nav-link:hover { background: rgba(111,142,82,0.10); color: #6f8e52; }
.nav-link.active { background: rgba(111,142,82,0.14); color: #2e4236; }
.nav-link svg { opacity: 0.7; }
.nav-link.active svg { opacity: 1; }

.navbar-right { display: flex; align-items: center; gap: 10px; }

.avatar {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #2e4236, #6f8e52);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  box-shadow: 0 2px 8px rgba(46,66,54,0.22);
  cursor: pointer;
  position: relative;
}

.avatar-menu {
  position: absolute; top: 44px; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(111,142,82,0.16);
  border-radius: 14px; padding: 6px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(46,66,54,0.12);
  display: none; z-index: 600;
}
.avatar-menu.open { display: block; animation: menuIn 0.18s ease; }
.avatar-name { padding: 8px 12px 6px; font-size: 13px; font-weight: 700; color: #2e4236; }
.avatar-role { font-size: 11px; color: rgba(29,40,33,0.50); font-weight: 400; }
.avatar-menu-divider { height: 1px; background: rgba(111,142,82,0.10); margin: 4px 0; }
.avatar-menu-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: #003399;
  text-decoration: none; cursor: pointer;
}
.avatar-menu-item:hover { background: rgba(111,142,82,0.08); }
.avatar-menu-item.danger { color: #cc2200; }
.avatar-menu-item.danger:hover { background: rgba(220,50,0,0.06); }

@keyframes menuIn { from { opacity:0; transform: scale(0.94) translateY(-6px); } to { opacity:1; transform: none; } }

/* ═══════════════════════════════════════════════════════════
   BOTTOM TAB BAR (mobile)
   ═══════════════════════════════════════════════════════════ */
.bottom-tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  display: flex;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  border-top: 1px solid rgba(111,142,82,0.12);
  box-shadow: 0 -1px 20px rgba(46,66,54,0.07);
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
@media (min-width: 768px) { .bottom-tabs { display: none; } }

.btab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 8px 4px 4px; gap: 3px;
  text-decoration: none; color: rgba(29,40,33,0.50);
  font-size: 10px; font-weight: 500; transition: color 0.15s;
  position: relative;
}
.btab svg { transition: transform 0.15s; }
.btab.active { color: #6f8e52; }
.btab.active svg { transform: scale(1.1); }
.btab.active::before {
  content: '';
  position: absolute; top: 0; left: 25%; right: 25%;
  height: 2px; background: #6f8e52; border-radius: 0 0 2px 2px;
}

/* ═══════════════════════════════════════════════════════════
   PAGE LAYOUT
   ═══════════════════════════════════════════════════════════ */
.page {
  max-width: 760px; margin: 0 auto;
  padding: 24px 16px 100px;
}

@media (min-width: 768px) { .page { padding: 28px 24px 40px; } }

.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; gap: 12px;
}
.page-title { font-size: 28px; font-weight: 800; color: #1d2821; letter-spacing: -0.5px; }
.page-sub { font-size: 13px; color: rgba(29,40,33,0.55); margin-top: 3px; }

@media (max-width: 640px) {
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header .flex { flex-wrap: wrap; width: 100%; gap: 8px; margin-top: 8px; }
  .page-header .btn,
  .page-header .form-control { max-width: 100%; }
  .page-header .btn { flex: 1; min-height: 40px; padding: 8px 16px; font-size: 13px; }

  /* Order bottom badges alignment on mobile */
  .order-bottom {
    justify-content: flex-start;
  }

  /* Bulk actions responsive layout */
  .bulk-actions-group {
    flex-wrap: wrap;
    min-width: 100%;
    margin-top: 10px;
    justify-content: stretch;
    gap: 8px;
  }
  .bulk-actions-group > * {
    flex: 1 1 auto;
    min-width: 120px;
  }

  /* Routes list row responsiveness */
  .list-row-main {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  .list-row-main .flex.items-center.gap-8 {
    width: 100%;
    justify-content: space-between;
  }
  .list-row-main .flex.items-center.gap-8 form {
    flex: 1;
  }
  .list-row-main .flex.items-center.gap-8 select {
    width: 100% !important;
  }
  .list-row-main .flex.items-center.gap-8 .btn {
    flex: 0 0 auto;
  }
}

.section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(29,40,33,0.48);
  margin: 24px 0 10px 2px;
}

/* ═══════════════════════════════════════════════════════════
   GLASS CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow:
    0 4px 24px rgba(46,66,54,0.06),
    0 1px 4px rgba(46,66,54,0.04),
    inset 0 1px 0 rgba(255,255,255,0.90);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}

.card-blue {
  background: linear-gradient(145deg, rgba(111,142,82,0.14), rgba(235,240,229,0.88));
  border-color: rgba(111,142,82,0.18);
  box-shadow: 0 4px 24px rgba(111,142,82,0.10), inset 0 1px 0 rgba(255,255,255,0.72);
}

.card-header {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: rgba(29,40,33,0.45); margin-bottom: 16px;
  display: flex; align-items: center; gap: 7px;
}
.card-header svg { opacity: 0.6; }

/* ═══════════════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }

.stat-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.90);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow:
    0 4px 20px rgba(46,66,54,0.06),
    inset 0 1px 0 rgba(255,255,255,0.90);
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(46,66,54,0.10); }

.stat-card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 18px 18px 0 0;
}
.accent-blue   { background: linear-gradient(90deg, #2e4236, #6f8e52); }
.accent-green  { background: linear-gradient(90deg, #6f8e52, #87a86c); }
.accent-orange { background: linear-gradient(90deg, #ff6d00, #ffab40); }
.accent-purple { background: linear-gradient(90deg, #7c4dff, #b388ff); }

.stat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.si-blue   { background: rgba(111,142,82,0.14); color: #6f8e52; }
.si-green  { background: rgba(111,142,82,0.14);  color: #58713e; }
.si-orange { background: rgba(255,109,0,0.12); color: #e65100; }
.si-purple { background: rgba(124,77,255,0.12);color: #6200ea; }

.stat-num   { font-size: 30px; font-weight: 800; color: #1d2821; line-height: 1; }
.stat-label { font-size: 12px; color: rgba(29,40,33,0.55); margin-top: 4px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   ORDER CARDS
   ═══════════════════════════════════════════════════════════ */
.order-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.90);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer; text-decoration: none;
  display: block; color: inherit;
  box-shadow: 0 2px 12px rgba(46,66,54,0.05), inset 0 1px 0 rgba(255,255,255,0.90);
  transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
}

.order-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #2e4236, #6f8e52);
  border-radius: 0 2px 2px 0;
}

.order-card:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 8px 28px rgba(46,66,54,0.10);
}
.order-card:active { transform: scale(0.98); }

.order-name { font-size: 15px; font-weight: 700; color: #1d2821; padding-left: 8px; }
.order-meta { font-size: 12px; color: rgba(29,40,33,0.55); margin-top: 3px; padding-left: 8px; }
.order-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-left: 8px; flex-wrap: wrap; gap: 8px; }
.order-amount { font-size: 18px; font-weight: 800; color: #2e4236; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer; min-height: 48px;
  text-decoration: none; white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.20) 0%, transparent 100%);
  border-radius: 12px 12px 0 0;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(145deg, #2e4236, #6f8e52);
  color: #fff;
  box-shadow: 0 4px 16px rgba(46,66,54,0.26), 0 1px 3px rgba(46,66,54,0.16), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { background: linear-gradient(145deg, #233229, #58713e); box-shadow: 0 6px 22px rgba(46,66,54,0.34); }

.btn-secondary {
  background: rgba(255,255,255,0.90);
  color: #2e4236;
  border: 1px solid rgba(111,142,82,0.22);
  box-shadow: 0 2px 10px rgba(46,66,54,0.06), inset 0 1px 0 rgba(255,255,255,0.90);
}
.btn-secondary:hover { background: rgba(111,142,82,0.08); }

.btn-danger {
  background: rgba(255,255,255,0.85); color: #cc2200;
  border: 1px solid rgba(220,50,0,0.25);
  box-shadow: 0 2px 8px rgba(220,50,0,0.08);
}
.btn-danger:hover { background: rgba(255,50,0,0.06); }

.btn-success {
  background: linear-gradient(145deg, #00a844, #00c853);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,168,68,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-sm  { padding: 7px 16px; font-size: 13px; min-height: 36px; border-radius: 9px; }
.btn-lg  { padding: 15px 30px; font-size: 17px; min-height: 54px; border-radius: 16px; }
.btn-xl  { padding: 17px; font-size: 17px; min-height: 58px; border-radius: 18px; font-weight: 700; }
.btn-full { width: 100%; }

/* Icon button */
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.84); border: 1px solid rgba(111,142,82,0.16);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; color: rgba(46,66,54,0.72);
  box-shadow: 0 2px 8px rgba(46,66,54,0.06);
  transition: all 0.15s;
}
.icon-btn:hover { background: #fff; box-shadow: 0 4px 14px rgba(46,66,54,0.10); color: #6f8e52; }

/* ═══════════════════════════════════════════════════════════
   ACTION GRID
   ═══════════════════════════════════════════════════════════ */
.action-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 480px) { .action-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 640px) { .action-grid { grid-template-columns: repeat(6,1fr); } }

.action-tile {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.90);
  border-radius: 18px; padding: 16px 10px;
  text-align: center; text-decoration: none; color: inherit;
  box-shadow: 0 2px 12px rgba(46,66,54,0.05), inset 0 1px 0 rgba(255,255,255,0.90);
  transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  cursor: pointer;
}
.action-tile:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 24px rgba(46,66,54,0.10); }
.action-tile:active { transform: scale(0.96); }

.action-tile-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.4);
}
.ati-blue   { background: linear-gradient(145deg, #2e4236, #6f8e52); color: #fff; }
.ati-green  { background: linear-gradient(145deg, #58713e, #87a86c); color: #fff; }
.ati-orange { background: linear-gradient(145deg, #ff6d00, #ff9500); color: #fff; }
.ati-purple { background: linear-gradient(145deg, #7c4dff, #aa80ff); color: #fff; }
.ati-teal   { background: linear-gradient(145deg, #0099aa, #00ccdd); color: #fff; }
.ati-red    { background: linear-gradient(145deg, #dd2200, #ff4422); color: #fff; }

.action-tile-label { font-size: 11px; font-weight: 700; color: rgba(29,40,33,0.72); }

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: rgba(29,40,33,0.55);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.form-label svg { opacity: 0.7; }

.form-control {
  width: 100%; padding: 13px 15px;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(111,142,82,0.18);
  border-radius: 12px; font-size: 15px; font-family: inherit;
  color: #1d2821; outline: none;
  box-shadow: inset 0 1px 3px rgba(46,66,54,0.04);
  transition: all 0.18s;
  -webkit-appearance: none; appearance: none;
}
.form-control::placeholder { color: rgba(29,40,33,0.28); }
.form-control:focus {
  border-color: #6f8e52;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(111,142,82,0.12), inset 0 1px 3px rgba(46,66,54,0.03);
}
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236f8e52'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.form-control { min-height: 100px; resize: vertical; line-height: 1.6; }

/* Grouped fields (iOS style) */
.field-group {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.94);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(46,66,54,0.05), inset 0 1px 0 rgba(255,255,255,0.90);
  margin-bottom: 14px;
}
.field-row {
  display: flex; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid rgba(111,142,82,0.10);
  gap: 12px;
}
.field-row:last-child { border-bottom: none; }
.field-row-label { font-size: 15px; font-weight: 500; color: #1d2821; min-width: 120px; display: flex; align-items: center; gap: 8px; }
.field-row-label svg { color: #6f8e52; opacity: 0.8; }
.field-row .form-control { background: transparent; border: none; box-shadow: none; padding: 0; text-align: right; color: rgba(29,40,33,0.72); font-size: 15px; }
.field-row .form-control:focus { box-shadow: none; }

/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.badge-blue   { background: rgba(111,142,82,0.12); color: #2e4236; border: 1px solid rgba(111,142,82,0.18); }
.badge-green  { background: rgba(111,142,82,0.14);  color: #58713e; border: 1px solid rgba(111,142,82,0.20); }
.badge-yellow { background: rgba(255,160,0,0.12); color: #b35f00; border: 1px solid rgba(255,160,0,0.22); }
.badge-red    { background: rgba(220,50,0,0.10);  color: #cc2200; border: 1px solid rgba(220,50,0,0.18); }
.badge-purple { background: rgba(124,77,255,0.10);color: #5500cc; border: 1px solid rgba(124,77,255,0.18); }
.badge-muted  { background: rgba(29,40,33,0.06);  color: rgba(29,40,33,0.58); border: 1px solid rgba(29,40,33,0.10); }

.badge svg { width: 10px; height: 10px; }

/* ═══════════════════════════════════════════════════════════
   ALERTS & TOASTS
   ═══════════════════════════════════════════════════════════ */
.alert {
  padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 500;
  margin-bottom: 14px; display: flex; align-items: flex-start; gap: 11px;
  border: 1px solid; backdrop-filter: blur(12px);
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(111,142,82,0.10);  border-color: rgba(111,142,82,0.24);  color: #2e4236; }
.alert-error   { background: rgba(220,50,0,0.08);  border-color: rgba(220,50,0,0.22);  color: #8b1500; }
.alert-warning { background: rgba(255,160,0,0.08); border-color: rgba(255,160,0,0.22); color: #7a4400; }
.alert-info    { background: rgba(111,142,82,0.08); border-color: rgba(111,142,82,0.18); color: #2e4236; }

#toast-wrap {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none; width: min(94vw, 380px);
}
.toast {
  padding: 13px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
  backdrop-filter: saturate(200%) blur(24px);
  border: 1px solid; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
.toast-success { background: rgba(111,142,82,0.92); border-color: rgba(111,142,82,0.48); color: #fff; }
.toast-error   { background: rgba(255,60,30,0.90); border-color: rgba(255,60,30,0.5); color: #fff; }
.toast-info    { background: rgba(46,66,54,0.92); border-color: rgba(46,66,54,0.5); color: #fff; }
@keyframes toastIn { from { opacity:0; transform: translateY(-18px) scale(0.88); } to { opacity:1; transform: none; } }

/* ═══════════════════════════════════════════════════════════
   SEARCH & CHIPS
   ═══════════════════════════════════════════════════════════ */
.search-wrap { position: relative; margin-bottom: 16px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(111,142,82,0.45); pointer-events: none; }
.search-input {
  width: 100%; padding: 13px 14px 13px 44px;
  background: rgba(255,255,255,0.90); border: 1.5px solid rgba(111,142,82,0.16);
  border-radius: 14px; font-size: 15px; font-family: inherit;
  color: #1d2821; outline: none; transition: all 0.18s;
  box-shadow: inset 0 1px 3px rgba(46,66,54,0.04);
}
.search-input::placeholder { color: rgba(29,40,33,0.28); }
.search-input:focus { border-color: #6f8e52; background: #fff; box-shadow: 0 0 0 4px rgba(111,142,82,0.10); }

.chips-row { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; padding-bottom: 2px; }
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 15px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.88); border: 1px solid rgba(111,142,82,0.16);
  color: rgba(46,66,54,0.68); cursor: pointer; text-decoration: none; font-family: inherit;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 1px 6px rgba(46,66,54,0.05);
  transition: all 0.15s;
}
.chip:hover, .chip.active { background: rgba(111,142,82,0.12); border-color: rgba(111,142,82,0.28); color: #2e4236; }

/* ═══════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════ */
.tabs {
  display: flex; background: rgba(111,142,82,0.08); border-radius: 14px;
  padding: 4px; gap: 3px; margin-bottom: 18px;
}
.tab {
  flex: 1; padding: 10px; text-align: center; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: rgba(46,66,54,0.62);
  cursor: pointer; border: none; background: transparent; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.18s;
}
.tab.active {
  background: rgba(255,255,255,0.95); color: #2e4236;
  box-shadow: 0 2px 10px rgba(46,66,54,0.10), inset 0 1px 0 rgba(255,255,255,0.90);
}

/* ═══════════════════════════════════════════════════════════
   LIST ROWS (settings style)
   ═══════════════════════════════════════════════════════════ */
.list-group {
  background: rgba(255,255,255,0.80); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.90); border-radius: 18px;
  overflow: hidden; margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(46,66,54,0.05), inset 0 1px 0 rgba(255,255,255,0.90);
}
.list-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(111,142,82,0.08);
  gap: 12px;
}
.list-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: rgba(111,142,82,0.04); }
.list-row-left { display: flex; align-items: center; gap: 12px; }
.list-row-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.list-row-title { font-size: 15px; font-weight: 600; color: #1d2821; }
.list-row-sub   { font-size: 12px; color: rgba(29,40,33,0.55); margin-top: 2px; }
.list-row-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.list-row-value { font-size: 14px; color: rgba(29,40,33,0.58); }
.chevron { color: rgba(111,142,82,0.35); }

/* ═══════════════════════════════════════════════════════════
   TOTAL BOX
   ═══════════════════════════════════════════════════════════ */
.total-box {
  background: linear-gradient(135deg, rgba(111,142,82,0.10), rgba(234,240,229,0.92));
  border: 1.5px solid rgba(111,142,82,0.18); border-radius: 16px; padding: 18px;
  margin-top: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 14px; color: rgba(29,40,33,0.72);
}
.total-row.grand {
  border-top: 1.5px solid rgba(111,142,82,0.18); margin-top: 10px; padding-top: 13px;
  font-size: 22px; font-weight: 800; color: #2e4236;
}

/* ═══════════════════════════════════════════════════════════
   P&L CARD
   ═══════════════════════════════════════════════════════════ */
.pnl-card {
  background: linear-gradient(145deg, rgba(111,142,82,0.10), rgba(255,255,255,0.92));
  backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.90);
  border-radius: 20px; padding: 22px; margin-bottom: 14px;
  box-shadow: 0 4px 24px rgba(46,66,54,0.08), inset 0 1px 0 rgba(255,255,255,0.90);
}
.pnl-row {
  display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid rgba(111,142,82,0.08); font-size: 15px;
}
.pnl-row:last-child { border-bottom: none; }
.pnl-label { color: rgba(29,40,33,0.65); display: flex; align-items: center; gap: 8px; }
.pnl-income  { color: #58713e; font-weight: 700; }
.pnl-expense { color: #8b3a22; font-weight: 700; }
.pnl-profit  { color: #2e4236; font-weight: 800; font-size: 22px; }

/* ═══════════════════════════════════════════════════════════
   AVAILABILITY
   ═══════════════════════════════════════════════════════════ */
.avail-card {
  background: rgba(255,255,255,0.88); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.90); border-radius: 18px;
  padding: 16px; margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(46,66,54,0.05);
}
.avail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: rgba(111,142,82,0.05); border-radius: 10px; margin-bottom: 6px;
  border: 1px solid rgba(111,142,82,0.08);
}
.toggle-pair { display: flex; gap: 6px; }
.toggle-btn {
  width: 42px; height: 34px; border-radius: 9px; border: 1.5px solid;
  font-size: 14px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; background: #fff; transition: all 0.18s;
}
.toggle-yes { border-color: rgba(0,168,68,0.30); color: #00a844; }
.toggle-yes:hover { border-color: #00a844; background: rgba(0,168,68,0.06); }
.toggle-yes.active { background: rgba(0,168,68,0.12); border-color: #00a844; }
.toggle-no  { border-color: rgba(220,50,0,0.30);  color: #cc2200; }
.toggle-no:hover  { border-color: #cc2200; background: rgba(220,50,0,0.06); }
.toggle-no.active  { background: rgba(220,50,0,0.10);  border-color: #cc2200; }

/* ═══════════════════════════════════════════════════════════
   ITEM ROWS (order form)
   ═══════════════════════════════════════════════════════════ */
.item-row {
  background: rgba(255,255,255,0.80); backdrop-filter: blur(12px);
  border: 1px solid rgba(111,142,82,0.14); border-radius: 16px;
  padding: 16px; margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(46,66,54,0.05);
}

/* ═══════════════════════════════════════════════════════════
   STOP CARDS (routes)
   ═══════════════════════════════════════════════════════════ */
.stop-card {
  background: rgba(255,255,255,0.80); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.90); border-radius: 18px;
  padding: 16px; margin-bottom: 10px;
  box-shadow: 0 2px 12px rgba(46,66,54,0.05);
  display: flex; gap: 14px;
}
.stop-num {
  width: 36px; height: 36px; min-width: 36px;
  background: linear-gradient(145deg, #2e4236, #6f8e52);
  color: #fff; border-radius: 11px; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 15px;
  box-shadow: 0 3px 10px rgba(46,66,54,0.22);
}

/* ═══════════════════════════════════════════════════════════
   FAB
   ═══════════════════════════════════════════════════════════ */
.fab {
  position: fixed; right: 20px; bottom: 84px; z-index: 400;
  width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(145deg, #2e4236, #6f8e52);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(46,66,54,0.28), 0 2px 6px rgba(46,66,54,0.18), inset 0 1px 0 rgba(255,255,255,0.25);
  text-decoration: none; cursor: pointer;
  transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
}
.fab:hover { transform: scale(1.08); box-shadow: 0 10px 32px rgba(46,66,54,0.34); }
.fab:active { transform: scale(0.92); }
@media (min-width: 768px) { .fab { bottom: 24px; } }

/* ═══════════════════════════════════════════════════════════
   MODAL SHEET
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(29,40,33,0.28);
  backdrop-filter: blur(8px); z-index: 600;
  display: none; align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal-sheet {
  width: 100%; max-width: 680px;
  background: rgba(255,255,255,0.98);
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(255,255,255,0.95); border-bottom: none;
  padding: 6px 22px max(32px, env(safe-area-inset-bottom));
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(46,66,54,0.14);
  animation: sheetUp 0.38s cubic-bezier(0.34,1.56,0.64,1) both;
}
.sheet-handle { width: 38px; height: 4px; background: rgba(111,142,82,0.22); border-radius: 2px; margin: 10px auto 18px; }
.sheet-title { font-size: 18px; font-weight: 800; color: #1d2821; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }

@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px;
  color: rgba(29,40,33,0.55); padding: 10px 14px; text-align: left;
  border-bottom: 1.5px solid rgba(111,142,82,0.12);
}
.data-table td {
  padding: 13px 14px; font-size: 14px; border-bottom: 1px solid rgba(111,142,82,0.06);
  vertical-align: middle; color: #1d2821;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(111,142,82,0.03); }

/* ═══════════════════════════════════════════════════════════
   FISH TAGS
   ═══════════════════════════════════════════════════════════ */
.fish-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.fish-tag {
  font-size: 11px; padding: 3px 10px; font-weight: 500;
  background: rgba(111,142,82,0.08); border: 1px solid rgba(111,142,82,0.16);
  border-radius: 20px; color: rgba(46,66,54,0.72);
}

/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 20px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #e6f0ff 0%, #f0f6ff 50%, #e8f4ff 100%);
}

.login-bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.55;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.orb1 { width: 400px; height: 400px; top: -100px; left: -100px; background: radial-gradient(circle, rgba(111,142,82,0.28), transparent 70%); }
.orb2 { width: 300px; height: 300px; bottom: -80px; right: -60px; background: radial-gradient(circle, rgba(46,66,54,0.20), transparent 70%); animation-delay: -4s; }
.orb3 { width: 200px; height: 200px; top: 40%; left: 60%; background: radial-gradient(circle, rgba(135,168,108,0.18), transparent 70%); animation-delay: -2s; }

@keyframes orbFloat { from { transform: translate(0,0) scale(1); } to { transform: translate(20px,30px) scale(1.1); } }

.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(200%) blur(32px);
  -webkit-backdrop-filter: saturate(200%) blur(32px);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 28px; padding: 40px 32px 36px;
  box-shadow:
    0 30px 80px rgba(46,66,54,0.14),
    0 8px 24px rgba(46,66,54,0.08),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.login-logo-wrap { text-align: center; margin-bottom: 36px; }

.login-logo-image {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 6px;
  object-fit: contain;
}

.login-brand-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #2e4236;
  text-align: center;
  margin-bottom: 6px;
}

.login-input-wrap { position: relative; }
.login-input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: rgba(111,142,82,0.42); pointer-events: none; }
.login-input {
  width: 100%; padding: 14px 44px 14px 44px;
  background: rgba(255,255,255,0.94); border: 1.5px solid rgba(111,142,82,0.18);
  border-radius: 14px; font-size: 16px; font-family: inherit; color: #1d2821; outline: none;
  box-shadow: inset 0 1px 4px rgba(46,66,54,0.05);
  transition: all 0.18s;
}
.login-input::placeholder { color: rgba(29,40,33,0.28); }
.login-input:focus { border-color: #6f8e52; background: #fff; box-shadow: 0 0 0 4px rgba(111,142,82,0.12); }
.login-input-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(111,142,82,0.44); cursor: pointer; padding: 4px; }
.login-input-toggle:hover { color: #58713e; }

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-icon-wrap {
  width: 80px; height: 80px; border-radius: 24px; margin: 0 auto 18px;
  background: linear-gradient(145deg, rgba(111,142,82,0.10), rgba(234,240,229,0.84));
  border: 1px solid rgba(111,142,82,0.14);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(46,66,54,0.06);
}
.empty-icon-wrap svg { color: #6f8e52; opacity: 0.7; }
.empty-title { font-size: 18px; font-weight: 700; color: #1d2821; margin-bottom: 6px; }
.empty-sub   { font-size: 14px; color: rgba(29,40,33,0.55); margin-bottom: 22px; }

/* ═══════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════ */
.text-blue   { color: #2e4236; }
.text-green  { color: #58713e; }
.text-red    { color: #cc2200; }
.text-muted  { color: rgba(29,40,33,0.55); }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.flex    { display: flex; } .flex-1 { flex: 1; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.mt-8  { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-0  { margin-bottom: 0; }
.divider { border: none; border-top: 1px solid rgba(111,142,82,0.10); margin: 16px 0; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.fade-in  { animation: fadeUp 0.4s ease both; }
.fade-in-2 { animation: fadeUp 0.4s 0.07s ease both; }
.fade-in-3 { animation: fadeUp 0.4s 0.14s ease both; }
.fade-in-4 { animation: fadeUp 0.4s 0.21s ease both; }
@keyframes fadeUp { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: none; } }


/* ═══════════════════════════════════════════════════════════
   CUSTOM CHECKBOXES
   ═══════════════════════════════════════════════════════════ */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font: inherit;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(111, 142, 82, 0.4);
  border-radius: 6px;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(46, 66, 54, 0.05);
}

input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: 120ms transform cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked {
  background-color: #6f8e52;
  border-color: #6f8e52;
  box-shadow: 0 2px 6px rgba(111, 142, 82, 0.3);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* Indeterminate state */
input[type="checkbox"]:indeterminate {
  background-color: #6f8e52;
  border-color: #6f8e52;
}

input[type="checkbox"]:indeterminate::before {
  content: "";
  width: 10px;
  height: 2px;
  transform: scale(1);
  background-color: #ffffff;
  clip-path: none;
  box-shadow: none;
  border-radius: 1px;
}

input[type="checkbox"]:hover {
  border-color: #6f8e52;
  box-shadow: 0 2px 8px rgba(111, 142, 82, 0.2);
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(111, 142, 82, 0.5);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════ */
@media print {
  .navbar, .bottom-tabs, .fab, .modal-overlay, .app-bg { display: none !important; }
  body { background: #fff !important; }
  .card, .list-group { background: #fff !important; box-shadow: none !important; border: 1px solid #e0e0e0 !important; }
}

