/* ========================================================
   TECH SOLUTION - TICKETING SERVICES PLATFORM
   THEME: ULTRA-CLEAN ENTERPRISE WHITE & OCEAN BLUE LIGHT MODE
   ======================================================== */

:root {
  --bg-dark: #f8fafc;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-card-subtle: #f8fafc;
  --border-line: #e2e8f0;
  --border-focus: #0284c7;

  --primary-blue: #0284c7;
  --primary-blue-hover: #0369a1;
  --primary-cyan: #0284c7;
  --accent-gold: #d97706;
  --accent-green: #059669;
  --primary-emerald: #059669;
  --accent-purple: #7c3aed;
  --accent-rose: #e11d48;

  --text-main: #0f172a;
  --text-dim: #475569;
  --text-muted: #64748b;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global SVG & Media Icon Resilience */
svg {
  flex-shrink: 0;
  vertical-align: middle;
}

body {
  font-family: var(--font-sans);
  background: #f4f6fa;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Helpers */
.site-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.flex-between {
  display: flex;
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

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

.text-right {
  text-align: right;
}

.text-dim {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.text-gold {
  color: var(--accent-gold);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.75);
}

/* Dark Modals & Components Scrollbar (hilangkan garis putih scrollbar track) */
#modalDevAddCompany,
#modalDevAddCompany *,
.modal-layer [style*="#0f172a"],
.modal-layer [style*="#0f172a"] * {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

#modalDevAddCompany ::-webkit-scrollbar-track,
#modalDevAddCompany::-webkit-scrollbar-track,
.modal-layer [style*="#0f172a"] ::-webkit-scrollbar-track,
.modal-layer [style*="#0f172a"]::-webkit-scrollbar-track {
  background: transparent !important;
}

#modalDevAddCompany ::-webkit-scrollbar-thumb,
#modalDevAddCompany::-webkit-scrollbar-thumb,
.modal-layer [style*="#0f172a"] ::-webkit-scrollbar-thumb,
.modal-layer [style*="#0f172a"]::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35) !important;
  border-radius: 9999px;
}

#modalDevAddCompany ::-webkit-scrollbar-thumb:hover,
#modalDevAddCompany::-webkit-scrollbar-thumb:hover,
.modal-layer [style*="#0f172a"] ::-webkit-scrollbar-thumb:hover,
.modal-layer [style*="#0f172a"]::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6) !important;
}

/* ================= TOP BAR ================= */
.enterprise-bar {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-line);
  font-size: 0.72rem;
  padding: 0.35rem 0;
  color: var(--text-dim);
}

.ent-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-pulse {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.ent-right {
  display: flex;
  gap: 0.5rem;
}

.tag-badge {
  background: #f8fafc;
  border: 1px solid var(--border-line);
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
}

/* Sembunyikan Header Bar Global Begitu Masuk Portal Perusahaan */
html.preload-company-portal body .enterprise-top-strip,
html.preload-company-portal body .global-navbar,
body.in-company-portal .enterprise-top-strip,
body.in-company-portal .global-navbar {
  display: none !important;
}

/* Sesuaikan Warna Header Bar Global Saat Masuk Mode Developer */
html.preload-dev-admin body,
body.in-dev-admin {
  background-color: #0f172a !important;
}

html.preload-dev-admin body .global-navbar,
body.in-dev-admin .global-navbar {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

body.in-dev-admin .global-navbar .brand-name {
  color: #f8fafc !important;
}

body.in-dev-admin .global-navbar .brand-sub {
  color: #94a3b8 !important;
}

body.in-dev-admin .global-navbar .brand-logo-wrap {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%) !important;
  border-color: rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.5) !important;
}

body.in-dev-admin .tenant-pill-badge {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

body.in-dev-admin #btnHeaderLogin,
body.in-dev-admin .btn-login-tenant,
body.in-dev-admin .header-tenant-box,
body.in-dev-admin #headerTenantBox {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.in-company-portal .dash-sidebar-nav {
  top: 20px !important;
}

/* ================= NAVBAR ================= */
.global-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
  border-bottom: 1px solid #f1f3f9;
  padding: 0.65rem 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.35);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  perspective: 600px;
  cursor: pointer;
  user-select: none;
}

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

/* Logo Styling - Clean tanpa efek glow */
.brand-logo-glow {
  display: none !important;
}

.brand-logo-shimmer {
  display: none !important;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  filter: none !important;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.brand-link:hover .brand-logo-wrap {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}

.brand-link:hover .brand-logo-glow {
  display: none !important;
}

.brand-link:hover .brand-logo-shimmer {
  display: none !important;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
  filter: none !important;
}

/* Typography Aesthetics */
.brand-title-wrap {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.brand-link:hover .brand-title-wrap {
  transform: translateX(2px);
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.1;
  display: block;
  color: #0f172a;
  transition: all 0.3s ease;
}

.brand-highlight {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.brand-link:hover .brand-highlight {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.4));
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 2.2px;
  color: #64748b;
  font-weight: 700;
  display: block;
  margin-top: 2px;
  transition: all 0.35s ease;
}

.brand-link:hover .brand-sub {
  color: #0284c7;
  letter-spacing: 2.8px;
}

/* Navigation Mode Switcher */
.nav-mode-switcher {
  display: flex;
  background: #f1f5f9;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-full);
  padding: 3px;
}

.mode-tab {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.mode-tab:hover {
  color: var(--text-main);
}

.mode-tab.active {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

/* Tenant Header Box */
.header-tenant-box {
  display: flex;
  align-items: center;
}

.btn-login-tenant {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  border: none;
  color: #ffffff;
  padding: 0.52rem 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  transition: all 0.2s ease;
}

.btn-login-tenant:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.tenant-pill-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.tenant-pill-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tenant-pill-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ================= VIEW CONTROLLER ================= */
.view-panel {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.view-panel.active {
  display: block;
}

/* Preload state to eliminate flash of initial unauthenticated screen */
html.preload-company-portal #viewWeatherHome,
html.preload-dev-admin #viewWeatherHome {
  display: none !important;
}

html.preload-company-portal #viewCompanyDashboard {
  display: block !important;
}

html.preload-dev-admin #viewDevAdminDashboard {
  display: block !important;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= VIEW 1: CUSTOMER VIEW ================= */
.hero-customer {
  padding: 3.5rem 1.5rem 2rem;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #bae6fd;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--primary-cyan);
  margin-bottom: 1.25rem;
}

.dot-green {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
}

.hero-heading {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-caption {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 1.8rem;
}

/* Operator Quick Filters */
.operator-quick-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.filter-lead {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.company-filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comp-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.comp-chip:hover,
.comp-chip.active {
  border-color: var(--primary-cyan);
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.12);
}

.comp-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Search Card */
.search-container-wrap {
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.customer-search-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
}

/* Exclusive Routes Selector Bar */
.exclusive-routes-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.route-category-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.route-cat-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.route-cat-badge.in-intl {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #0284c7;
  color: #38bdf8;
}

.route-cat-badge.in-dom {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
}

.route-btn-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-quick-route {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-quick-route:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  transform: translateY(-1px);
}

.customer-search-grid {
  display: grid;
  grid-template-columns: 2fr auto 2fr 1.5fr 1.5fr 1.5fr;
  gap: 1rem;
  align-items: flex-end;
}

.field-item {
  display: flex;
  flex-direction: column;
}

.field-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-input-lg {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: #0f172a;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.form-input-lg:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.swap-action-cell {
  padding-bottom: 0.35rem;
}

.btn-swap-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-swap-round:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: rotate(180deg);
}

.btn-search-primary {
  width: 100%;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.btn-search-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.6);
}

/* Results Area */
.results-area {
  margin-bottom: 5rem;
}

.results-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.results-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.results-pnr-check {
  display: flex;
  gap: 0.5rem;
}

.results-pnr-check input {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  outline: none;
}

.btn-pnr-lookup {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Schedules Cards */
.schedules-deck {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sched-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.sched-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.sched-header {
  padding: 0.85rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sched-company-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.comp-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.comp-badge-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.vessel-badge-name {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.sched-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding: 1.5rem;
  gap: 1.5rem;
  align-items: center;
}

.route-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-node {
  display: flex;
  flex-direction: column;
}

.track-node.right {
  text-align: right;
}

.node-time {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
}

.node-city {
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.track-progress {
  flex: 1;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.track-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  position: relative;
}

.track-duration {
  font-size: 0.75rem;
  color: var(--primary-cyan);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.sched-pricing-box {
  border-left: 1px solid var(--border-line);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

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

.price-tag-val {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.btn-book-sched {
  margin-top: 0.75rem;
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 9px !important;
  color: #ffffff !important;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-book-sched:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%) !important;
  box-shadow: 0 6px 20px -2px rgba(37, 99, 235, 0.5);
  transform: translateY(-1.5px);
}

.btn-book-sched:hover {
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

/* ================= VIEW 2: AUTH VIEW ================= */
.auth-wrapper {
  padding: 3.5rem 1.5rem 5rem;
}

.auth-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-lg);
}

.auth-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.auth-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(2, 132, 199, 0.15);
  color: var(--primary-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-icon-wrap.icon-purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.auth-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.auth-card-header p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Quick Demo Logins */
.quick-demo-logins {
  background: #f8fafc;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.demo-lead {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.65rem;
}

.demo-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.btn-demo-company {
  background: #ffffff;
  border: 1px solid var(--border-line);
  color: var(--text-main);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-align: left;
}

.btn-demo-company:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary-cyan);
}

.dot-comp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.divider-text {
  text-align: center;
  position: relative;
  margin: 1.5rem 0;
}

.divider-text::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-line);
}

.divider-text span {
  position: relative;
  background: var(--bg-card);
  padding: 0 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.input-block {
  margin-bottom: 0.85rem;
}

.input-block label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.form-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: #0f172a;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary-cyan);
}

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

.btn-primary-block {
  width: 100%;
  padding: 0.68rem;
  background: var(--primary-blue);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-primary-block:hover {
  background: #0369a1;
}

.btn-secondary-block {
  width: 100%;
  padding: 0.68rem;
  background: var(--accent-purple);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary-block:hover {
  background: #7c3aed;
}

/* ================= VIEW 3: COMPANY DASHBOARD (COMPACT ENTERPRISE DENSITY) ================= */
#viewCompanyDashboard {
  font-size: 0.82rem;
}

.tenant-banner {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tenant-info-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tenant-avatar {
  width: 38px;
  height: 38px;
  background: #0284c7;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.tenant-avatar svg {
  width: 20px;
  height: 20px;
}

.tenant-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tenant-name-row h2 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.badge-verified {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

.tenant-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.btn-tenant-logout {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-tenant-logout:hover {
  background: var(--accent-rose);
  color: #fff;
}

/* ========================================================
   DASHBOARD SIDEBAR NAVIGATION (PERSIS FOTO KEDUA - COMPACT DENSITY)
   ======================================================== */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.15rem;
  padding: 1.15rem 1.25rem 2.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
}

.dash-sidebar-nav {
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-line);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 15px;
  z-index: 20;
}

.dash-nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
  background: transparent;
  transition: all 0.2s ease;
  user-select: none;
}

.dash-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-nav-icon {
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-nav-icon svg {
  width: 16px;
  height: 16px;
}

.dash-nav-text {
  font-size: 12px;
  line-height: 1.3;
}

.dash-nav-pill:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.dash-nav-pill.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(14, 165, 233, 0.15) 100%) !important;
  color: #0284c7 !important;
  font-weight: 700;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.15);
}

.dash-nav-pill.active .dash-nav-icon svg {
  stroke: #0284c7 !important;
}

.dash-nav-section-title {
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 8px 4px 8px;
}

.dash-nav-chevron {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.dash-nav-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.dash-nav-group.open .dash-nav-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

.dash-sub-menu {
  display: none;
  flex-direction: column;
  padding: 3px 0 6px 26px;
  gap: 2px;
  animation: fadeInDown 0.2s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dash-nav-group.open .dash-sub-menu {
  display: flex;
}

.dash-sub-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dash-sub-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dash-sub-item.active {
  color: #38bdf8;
  font-weight: 700;
}

.sub-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.badge-new-pill {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 9999px;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
  flex-shrink: 0;
}

.dash-content-area {
  min-width: 0;
}

.dash-pane {
  display: none;
}

.dash-pane.active {
  display: block;
}

/* KPI Grid Compact Density */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kpi-icon-cell {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon-cell svg {
  width: 18px;
  height: 18px;
}

.icon-blue {
  background: rgba(2, 132, 199, 0.15);
  color: var(--primary-cyan);
}

.icon-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
}

.icon-purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.kpi-lbl {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0.05rem 0;
}

.kpi-trend {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.kpi-trend.positive {
  color: var(--accent-green);
  font-weight: 700;
}

/* Dashboard Tables & Panels Compact Density */
.dash-block-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-md);
}

.block-header {
  margin-bottom: 0.85rem;
}

.block-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
}

.block-header p.text-dim {
  font-size: 0.78rem;
}

.table-responsive {
  overflow-x: auto;
  scrollbar-width: thin;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  text-align: left;
}

.dash-table th {
  padding: 0.38rem 0.5rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  border-bottom: 1.5px solid #e2e8f0;
  letter-spacing: -0.2px;
}

.dash-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-main);
  vertical-align: middle;
}

.dash-table tr:hover td {
  background: #f8fafc;
}

/* Compact Density Manifest Table (No Horizontal Scroll) */
.compact-manifest-table {
  width: 100%;
  table-layout: auto;
  font-size: 0.71rem;
}

.compact-manifest-table th {
  padding: 0.32rem 0.35rem;
  font-size: 0.67rem;
  white-space: nowrap;
}

.compact-manifest-table td {
  padding: 0.32rem 0.35rem;
  font-size: 0.69rem;
}

/* Status Badges */
.status-pill {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

.status-pill.paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.status-pill.boarded {
  background: rgba(2, 132, 199, 0.2);
  color: var(--primary-cyan);
}

.status-pill.waiting {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
}

/* Table Action Buttons for Manifest & Ticket */
.btn-action-sm {
  padding: 2px 5px;
  font-size: 0.67rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.btn-action-sm:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-action-sm.btn-edit-manifest:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.btn-action-sm.btn-edit-ticket:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.btn-action-sm.btn-transfer-vessel:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
}

/* Buttons - Modern Royal Sapphire & Indigo Elevation */
.btn-primary-action {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 9px !important;
  color: #ffffff !important;
  padding: 0.62rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.35), 0 2px 4px rgba(15, 23, 42, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-action:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%) !important;
  box-shadow: 0 6px 20px -2px rgba(37, 99, 235, 0.5), 0 3px 6px rgba(15, 23, 42, 0.08);
  transform: translateY(-1.5px);
}

.btn-primary-action:active {
  transform: translateY(0.5px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Disabled Button Styling - Prevents Glitchy Colors on Disabled Primary Buttons */
.btn-primary-action:disabled,
.btn-primary-action[disabled],
.btn-primary-block:disabled,
.btn-primary-block[disabled],
.btn-submit-action:disabled,
.btn-submit-action[disabled],
.btn-book-sched:disabled,
.btn-book-sched[disabled] {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.75 !important;
}

.btn-primary-action:disabled svg,
.btn-primary-action[disabled] svg,
.btn-primary-block:disabled svg,
.btn-primary-block[disabled] svg,
.btn-submit-action:disabled svg,
.btn-submit-action[disabled] svg {
  stroke: #94a3b8 !important;
}

.btn-secondary-action {
  background: #f8fafc;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Gate Scanner Block */
.scanner-box-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.scanner-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.scanner-search-field {
  margin: 1.5rem 0;
}

.scanner-search-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.input-with-action {
  display: flex;
  gap: 0.6rem;
}

.input-with-action input {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: var(--text-main);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
}

.btn-scan-action {
  background: var(--accent-green);
  border: none;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 800;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-scan-action:hover {
  background: #34d399;
}

.quick-scan-hints {
  margin-top: 1rem;
}

.scan-chips {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.scan-chip {
  background: #f8fafc;
  border: 1px solid var(--border-line);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.scan-chip:hover {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.ticket-verification-card {
  background: #ffffff;
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scan-empty-state {
  text-align: center;
}

.scan-empty-state h4 {
  margin: 0.8rem 0 0.3rem;
  font-size: 1.1rem;
}

.scan-empty-state p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ================= MODALS ================= */
.modal-layer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-layer.show {
  display: flex;
}

.modal-window {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  max-height: 95vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-window.modal-wide {
  max-width: 760px;
}

.modal-top {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-top h4 {
  font-size: 1.1rem;
  font-weight: 800;
}

.btn-close-x {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.35rem;
  cursor: pointer;
}

.modal-content-form {
  padding: 1.15rem 1.4rem;
  overflow-y: auto;
}

.modal-content-form .modal-bottom-actions {
  padding: 0.9rem 0 0 0;
  margin-top: 0.5rem;
}

.modal-body-scroll {
  padding: 1.35rem 1.4rem;
  overflow-y: auto;
}

.modal-bottom-actions {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--border-line);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.btn-submit-action {
  background: var(--primary-blue);
  border: none;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.btn-submit-action.btn-green {
  background: var(--accent-green);
  color: #ffffff;
  font-weight: 800;
}

/* Route Compliance & Immigration Notice Banner */
.route-compliance-banner {
  background: #f0f9ff;
  border-left: 4px solid var(--accent-gold);
  color: #0369a1;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.route-compliance-banner.intl {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.route-compliance-banner.dom {
  border-left-color: var(--primary-cyan);
  background: rgba(56, 189, 248, 0.08);
}

/* Class Selection Options Grid */
.class-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.class-pill-card {
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.class-pill-card:hover {
  border-color: var(--primary-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.class-pill-card.active {
  border-color: var(--primary-cyan);
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.class-pill-card .cls-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.class-pill-card .cls-price {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--accent-gold);
  margin-top: 0.2rem;
}

.class-pill-card .cls-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Seat Selection inside Booking Modal */
.book-route-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1rem;
}

.subhead {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-cyan);
  margin-bottom: 0.65rem;
}

.seat-cells-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  background: #f8fafc;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-line);
  max-height: 320px;
  overflow-y: auto;
}

.seat-deck-header {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-align: center;
  border-bottom: 1px dashed var(--border-line);
  padding-bottom: 0.35rem;
  margin-bottom: 0.35rem;
}

.seat-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.seat-aisle-gap {
  width: 24px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.seat-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-focus);
  padding: 0.45rem 0.2rem;
  width: 44px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.seat-box:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--primary-cyan);
}

.seat-box.selected {
  background: var(--accent-green) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.seat-box.occupied {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  opacity: 0.45;
}

.seat-box.vip {
  border-color: var(--accent-gold);
}

.seat-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  background: #f8fafc;
  border: 1px solid var(--border-line);
  color: var(--text-main);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.passenger-inputs-block {
  margin-bottom: 1.25rem;
}

.pay-methods-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.pay-method-pill {
  background: #f8fafc;
  border: 1px solid var(--border-line);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.pay-method-pill input {
  accent-color: var(--primary-blue);
}

/* ================= BOARDING PASS PRINT CARD ================= */
.boarding-pass-print-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bp-top {
  background: #0f172a;
  color: #fff;
  padding: 1.25rem 1.8rem;
  border-bottom: 3px solid #0284c7;
}

.bp-op-name {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  display: block;
}

.bp-pass-title {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: #94a3b8;
}

.bp-pnr-lbl {
  font-size: 0.65rem;
  color: #94a3b8;
  display: block;
}

.bp-pnr-code {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: #38bdf8;
}

.bp-body {
  padding: 1.8rem;
}

.bp-route-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.8rem;
  margin-bottom: 1.5rem;
}

.bp-city-code {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: #0284c7;
  display: block;
  line-height: 1;
}

.bp-city-name {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  display: block;
}

.bp-time {
  font-size: 1.05rem;
  color: #0f172a;
}

.bp-arrow-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
}

.bp-grid-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bp-cell .lbl {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  display: block;
}

.bp-cell .val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
}

.bp-cell .sub {
  font-size: 0.75rem;
  color: #64748b;
}

.highlight-blue {
  color: #0284c7 !important;
  font-family: var(--font-mono);
}

.bp-perforated {
  position: relative;
  margin: 1.5rem -1.8rem;
}

.circle-c {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  position: absolute;
  top: -12px;
}

.c-left {
  left: -12px;
}

.c-right {
  right: -12px;
}

.dashes {
  width: 100%;
  border-top: 2px dashed #cbd5e1;
}

.barcode-graphic {
  display: flex;
  flex-direction: column;
}

.barcode-graphic .lines {
  display: flex;
  gap: 3px;
  height: 40px;
}

.barcode-graphic .lines span {
  width: 3px;
  background: #000;
  display: inline-block;
}

.barcode-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #475569;
  margin-top: 0.25rem;
}

.gate-status-pill {
  background: #10b981;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

/* ================= TOAST NOTIFICATION (COMPACT & NON-INTRUSIVE) ================= */
.toast-popup {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 310px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  border: 1px solid var(--border-line);
  border-radius: 10px;
  padding: 0.48rem 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  z-index: 2000;
  pointer-events: none;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-popup h5#toastTitle {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.toast-popup p#toastBody {
  margin: 1px 0 0 0;
  font-size: 0.69rem;
  line-height: 1.3;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toast-ic {
  width: 20px;
  height: 20px;
  min-width: 20px;
  font-size: 0.68rem;
  background: var(--accent-green);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ================= PRINT MEDIA ================= */
@media print {
  body * {
    visibility: hidden;
  }

  #ticketPrintArea,
  #ticketPrintArea *,
  #officialManifestDocumentArea,
  #officialManifestDocumentArea * {
    visibility: visible;
  }

  #ticketPrintArea,
  #officialManifestDocumentArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .circle-c {
    background: #fff !important;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .customer-search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .swap-action-cell {
    display: none;
  }

  .auth-box-grid {
    grid-template-columns: 1fr;
  }

  .scanner-box-layout {
    grid-template-columns: 1fr;
  }

  .sched-body-grid {
    grid-template-columns: 1fr;
  }

  .sched-pricing-box {
    border-left: none;
    border-top: 1px solid var(--border-line);
    padding-left: 0;
    padding-top: 1rem;
    align-items: flex-start;
  }
}

/* ========================================================
   BMKG MARITIME WEATHER STATION (HALAMAN AWAL)
   ======================================================== */
.weather-home-section {
  padding: 1.4rem 1.75rem 3rem;
}

.bmkg-hero-banner {
  background: #ffffff;
  border: 1px solid #f1f3f9;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.bmkg-hero-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.bmkg-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.bmkg-official-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f5f3ff;
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #7c3aed;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bmkg-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.bmkg-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.35rem 0 0.25rem;
  letter-spacing: -0.4px;
}

.bmkg-subtitle {
  color: var(--text-dim);
  font-size: 0.86rem;
  max-width: 800px;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.bmkg-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.weather-routes-deck {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.weather-route-card {
  background: #ffffff;
  border: 1px solid #f1f3f9;
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.weather-route-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.weather-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f3f9;
}

.route-geo-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.15rem 0;
}

.route-waters-name {
  color: #7c3aed;
  font-size: 0.78rem;
  font-weight: 600;
}

.safety-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

.safety-status-pill.safe {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.weather-card-hero-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #f1f3f9;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.wave-highlight {
  display: flex;
  flex-direction: column;
}

.wave-highlight .label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.wave-highlight .value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #7c3aed;
  margin: 0.1rem 0;
}

.wave-highlight .desc {
  font-size: 0.76rem;
  color: #10b981;
  font-weight: 600;
}

.condition-cell {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.condition-icon {
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.condition-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.condition-temp {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.weather-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.weather-sub-cell {
  background: #f8fafc;
  border: 1px solid #f1f3f9;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
}

.weather-sub-cell .lbl {
  font-size: 0.68rem;
  color: var(--text-dim);
  display: block;
}

.weather-sub-cell .val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.1rem;
}

.weather-advisory-note {
  background: #f5f3ff;
  border: 1px solid #e9d5ff;
  border-left: 4px solid #7c3aed;
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  font-size: 0.76rem;
  color: #6b21a8;
  line-height: 1.45;
  margin-top: auto;
}

.bmkg-forecast-block {
  background: #ffffff;
  border: 1px solid #f1f3f9;
  border-radius: 16px;
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.bmkg-forecast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

.bmkg-forecast-table th {
  background: #f8fafc;
  padding: 0.6rem 0.85rem;
  text-align: left;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid #f1f3f9;
}

.bmkg-forecast-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #f1f3f9;
  vertical-align: middle;
}

.bmkg-station-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f1f3f9;
  color: var(--text-dim);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .weather-routes-deck {
    grid-template-columns: 1fr;
  }
}

/* ================= SETTINGS & KSOP STYLES ================= */
.settings-card-box {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  transition: all 0.25s ease;
  position: relative;
}

.settings-card-box:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.12);
}

.settings-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-line);
}

.settings-card-head h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.settings-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ================= CONTEXTUAL COMPACT DENSITY FOR DASHBOARD ================= */
#viewCompanyDashboard .sched-card {
  border-radius: var(--radius-sm);
}

#viewCompanyDashboard .sched-header {
  padding: 0.55rem 0.95rem;
}

#viewCompanyDashboard .sched-body-grid {
  padding: 0.85rem 1rem;
  gap: 1rem;
}

#viewCompanyDashboard .node-time {
  font-family: var(--font-mono);
  font-size: 1.15rem;
}

#viewCompanyDashboard .node-city {
  font-size: 0.78rem;
}

#viewCompanyDashboard .node-pier {
  font-size: 0.7rem;
}

#viewCompanyDashboard .track-duration {
  font-size: 0.68rem;
}

#viewCompanyDashboard .price-tag-sub {
  font-size: 0.65rem;
}

#viewCompanyDashboard .price-tag-val {
  font-size: 1.12rem;
}

#viewCompanyDashboard .btn-book-sched {
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

#viewCompanyDashboard .form-input {
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
}

#viewCompanyDashboard .input-block {
  margin-bottom: 0.85rem;
}

#viewCompanyDashboard .input-block label {
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}

#viewCompanyDashboard .settings-card-box {
  padding: 0.95rem 1.1rem;
}

#viewCompanyDashboard .settings-card-head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
}

#viewCompanyDashboard .settings-card-head h5 {
  font-size: 0.88rem;
}

#viewCompanyDashboard .settings-ic {
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
}

#viewCompanyDashboard .btn-submit-action {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

/* ========================================================
   TICKY MODERN SAAS DASHBOARD DESIGN SYSTEM (PERSIS FOTO)
   Canvas: #f4f6fa | Cards: #ffffff | Accents: Violet/Purple
   ======================================================== */

.ticky-dashboard-canvas {
  background: #f4f6fa;
  min-height: 100vh;
  width: 100%;
}

.ticky-dashboard-window {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar */
.ticky-sidebar {
  width: 230px;
  min-width: 230px;
  background: #ffffff;
  border-right: 1px solid #f1f3f9;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.85rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: width 0.25s ease, padding 0.25s ease;
  z-index: 50;
}

.ticky-sidebar.collapsed {
  width: 68px;
  min-width: 68px;
  padding: 1.25rem 0.5rem;
  overflow-x: hidden;
}

.ticky-sidebar.collapsed .ticky-brand-title,
.ticky-sidebar.collapsed .ticky-nav-label,
.ticky-sidebar.collapsed .ticky-chevron,
.ticky-sidebar.collapsed .ticky-nav-section-title,
.ticky-sidebar.collapsed .ticky-sub-menu,
.ticky-sidebar.collapsed .ticky-profile-meta,
.ticky-sidebar.collapsed .ticky-switch-icon {
  display: none !important;
}

.ticky-sidebar.collapsed .ticky-nav-item,
.ticky-sidebar.collapsed .ticky-profile-card {
  justify-content: center;
  padding: 0.7rem 0;
}

.ticky-sidebar.collapsed .ticky-brand-row {
  justify-content: center;
  padding: 0.25rem 0 1.2rem;
}

.ticky-sidebar.collapsed .ticky-collapse-btn {
  display: none;
}

.ticky-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.45rem 1.4rem;
}

.ticky-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.ticky-brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.ticky-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
}

.ticky-collapse-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ticky-collapse-btn:hover {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
}

.ticky-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.ticky-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  text-decoration: none;
  user-select: none;
}

.ticky-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.ticky-nav-item.active {
  background: #f5f3ff !important;
  color: #7c3aed !important;
  font-weight: 700;
}

.ticky-nav-item.active .ticky-nav-icon svg {
  stroke: #7c3aed !important;
}

.ticky-nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ticky-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ticky-chevron {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.ticky-nav-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 0.85rem 0.75rem 0.3rem;
}

.ticky-nav-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ticky-nav-group.open .ticky-chevron {
  transform: rotate(90deg);
  color: #7c3aed;
}

.ticky-sub-menu {
  display: none;
  flex-direction: column;
  padding: 0.2rem 0 0.4rem 2rem;
  gap: 0.2rem;
}

.ticky-nav-group.open .ticky-sub-menu {
  display: flex;
}

.ticky-sub-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ticky-sub-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.ticky-sub-item.active {
  color: #7c3aed;
  font-weight: 700;
}

.ticky-sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.ticky-sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.btn-sidebar-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sidebar-logout:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #be123c;
  transform: translateY(-1px);
}

.ticky-sidebar.collapsed .sidebar-logout-text {
  display: none !important;
}

.ticky-sidebar.collapsed .btn-sidebar-logout {
  padding: 0.65rem 0;
  justify-content: center;
}

.ticky-profile-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ticky-profile-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
}

.ticky-profile-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.ticky-switch-icon {
  color: #94a3b8;
}

/* Workspace */
.ticky-workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f4f6fa;
}

.ticky-top-header {
  height: 60px;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f6fa;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 40;
}

.ticky-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

.ticky-breadcrumb svg {
  color: #334155;
}

.ticky-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Realtime Weather Header Widget (Collapsible Toggle) */
.header-realtime-weather-widget {
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-realtime-weather-widget:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
}

.header-realtime-weather-widget.is-collapsed {
  padding: 2px !important;
  gap: 0 !important;
}

.header-realtime-weather-widget.is-collapsed #headerWeatherInfoBox {
  display: none !important;
}

/* Developer Mode: Company Name Clickable Link */
.dev-comp-name-link {
  transition: all 0.2s ease;
}

.btn-dev-edit-company-trigger:hover .dev-comp-name-link {
  color: #38bdf8 !important;
  text-decoration-color: #38bdf8 !important;
}

.btn-dev-edit-company-trigger:hover {
  opacity: 0.92;
}

.ticky-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
}

.ticky-header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticky-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ticky-icon-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Header Action Dropdowns & Popovers */
.ticky-notif-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

.ticky-header-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  background: #ffffff !important;
  opacity: 1 !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.18), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  display: none;
  overflow: hidden;
  animation: fadeInTickyDd 0.15s ease-out;
}

.ticky-header-dropdown.active {
  display: block;
}

@keyframes fadeInTickyDd {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ticky-dd-header {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ticky-dd-avatar-lg {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #7c3aed;
  flex-shrink: 0;
}

.ticky-dd-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticky-dd-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0;
}

.ticky-dd-actions {
  display: flex;
  flex-direction: column;
}

.ticky-dd-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
}

.ticky-dd-item:hover {
  background: #f8fafc;
  color: #7c3aed;
}

.ticky-notif-list {
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow-y: auto;
}

.ticky-notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s;
}

.ticky-notif-item:hover {
  background: #f8fafc;
}

.ticky-notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ticky-content-area {
  padding: 1.4rem 1.75rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* 6 KPI Grid (Simetris 3x2) */
.ticky-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.ticky-kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  border: 1px solid #f1f3f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.18s ease;
}

.ticky-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.ticky-kpi-card:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ticky-kpi-card:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

.ticky-sq-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.ticky-sq-purple {
  background: #7c3aed;
}

.ticky-sq-lime {
  background: #84cc16;
}

.ticky-sq-red {
  background: #ef4444;
}

.ticky-sq-olive {
  background: #65a30d;
}

.ticky-sq-teal {
  background: #10b981;
}

.ticky-sq-indigo {
  background: #6366f1;
}

.ticky-sq-emerald {
  background: #059669;
}

.ticky-sq-violet {
  background: #4f46e5;
}

.ticky-kpi-info {
  display: flex;
  flex-direction: column;
}

.ticky-kpi-lbl {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.ticky-kpi-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* Middle Row */
.ticky-mid-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.1rem;
  align-items: stretch;
  margin-top: 1.1rem; } .ticky-mid-row .ticky-chart-card { margin-top: 0;
}

.ticky-white-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f1f3f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  padding: 1.25rem 1.4rem;
}

.ticky-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.ticky-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.ticky-btn-view-all {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #6366f1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ticky-btn-view-all:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.ticky-dropdown-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ticky-dropdown-btn:hover {
  border-color: #cbd5e1;
  color: #1e293b;
}

/* Recently Registered User List */
.ticky-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ticky-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.ticky-user-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ticky-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ticky-user-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2px 0;
}

.ticky-user-time {
  font-size: 0.73rem;
  color: #94a3b8;
  font-weight: 500;
}

.ticky-item-dots {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: #f8fafc;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.ticky-item-dots:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Charts */
.ticky-chart-card {
  margin-top: 1.1rem; } .ticky-mid-row .ticky-chart-card { margin-top: 0;
}

.ticky-chart-tooltip {
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f3f9;
  text-align: center;
  pointer-events: none;
  z-index: 10;
}

.ticky-tooltip-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
  display: block;
  line-height: 1.2;
}

.ticky-tooltip-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

/* Responsive queries */
@media (max-width: 1200px) {
  .ticky-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ticky-mid-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ticky-sidebar {
    position: fixed;
    left: -250px;
    z-index: 100;
  }

  .ticky-sidebar.mobile-open {
    left: 0;
  }

  .ticky-kpi-grid {
    grid-template-columns: 1fr;
  }

  .ticky-top-header {
    padding: 0 1rem;
  }

  .ticky-content-area {
    padding: 1rem;
  }
}

/* ========================================================
   LIVE SEAT MAP & SHIP DECK STYLES
   ======================================================== */
.ship-hull-frame {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: radial-gradient(circle at 50% 10%, #f0f9ff 0%, #ffffff 80%);
  border: 2px solid #bae6fd;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
}

.seat-class-filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.seat-class-filter-btn:hover {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #38bdf8;
}

.seat-class-filter-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.seat-box {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  color: #0369a1;
}

.seat-box:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.seat-box.seat-box-occupied {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
  cursor: pointer !important;
  opacity: 0.95 !important;
}

.seat-box.seat-box-occupied:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.seat-box.seat-box-selected {
  background: #059669 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(5, 150, 105, 0.4);
  transform: scale(1.06);
}


/* ========================================================
   KALENDER PELAYARAN ARMADA PERUSAHAAN (VOYAGE CALENDAR)
   ======================================================== */
.calendar-block-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-line);
}

.cal-nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cal-nav {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-cal-nav:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}

.cal-current-month-badge {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  min-width: 170px;
  text-align: center;
  display: inline-block;
}

.cal-filter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cal-view-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.btn-cal-toggle {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-cal-toggle.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* KPI Bar above Calendar */
.cal-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.cal-kpi-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
}

.cal-kpi-item .label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.cal-kpi-item .val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.15rem;
  font-family: var(--font-heading);
}

.cal-kpi-item .sub {
  font-size: 0.72rem;
  color: #0284c7;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Calendar Weekdays Row */
.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.cal-weekday-head {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem 0.25rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cal-weekday-head.weekend {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fecaca;
}

/* Calendar Month Grid */
.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-cell {
  min-height: 110px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.cal-day-cell:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.cal-day-cell.inactive-month {
  background: #f8fafc;
  opacity: 0.45;
  border-color: #f1f5f9;
}

.cal-day-cell.is-today {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 1px #0284c7;
}

.cal-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.cal-day-num {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e293b;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.cal-day-cell.is-today .cal-day-num {
  background: #0284c7;
  color: #ffffff;
}

.cal-day-voyages-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: #e0f2fe;
  color: #0369a1;
  padding: 1px 5px;
  border-radius: 10px;
}

/* Voyage Chip inside Day Cell */
.cal-voyages-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  max-height: 120px;
}

.voyage-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3.5px solid #0284c7;
  border-radius: 4px;
  padding: 0.3rem 0.45rem;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
}

.voyage-chip:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
}

.voyage-chip.intl {
  border-left-color: #f59e0b;
}

.voyage-chip.domestic {
  border-left-color: #10b981;
}

.voyage-chip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.voyage-chip-time {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #0f172a;
}

.voyage-chip-route {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
}

.voyage-chip-vessel {
  font-weight: 700;
  color: #0369a1;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.voyage-chip-pax {
  font-size: 0.65rem;
  color: #10b981;
  font-weight: 600;
}

/* Quick Add button inside Day Cell */
.btn-quick-add-voyage {
  display: none;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  padding: 2px 0;
  font-size: 0.68rem;
  color: #64748b;
  cursor: pointer;
  margin-top: 4px;
  width: 100%;
  transition: all 0.2s ease;
}

.cal-day-cell:hover .btn-quick-add-voyage {
  display: flex;
}

.btn-quick-add-voyage:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #0284c7;
}

/* Agenda / List View */
.cal-agenda-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.agenda-day-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.agenda-day-header {
  background: #f8fafc;
  padding: 0.65rem 1rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agenda-voyage-row {
  display: grid;
  grid-template-columns: 120px 1.5fr 1.2fr 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.agenda-voyage-row:last-child {
  border-bottom: none;
}

.agenda-voyage-row:hover {
  background: #f0f9ff;
}

@media (max-width: 992px) {
  .cal-kpi-bar {
    grid-template-columns: 1fr 1fr;
  }

  .cal-day-cell {
    min-height: 85px;
    padding: 0.25rem;
  }

  .agenda-voyage-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Transfer Vessel Modal Premium Styling */
#modalTransferVessel .modal-window {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}

#modalTransferVessel .modal-top {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

#modalTransferVessel .modal-content-form {
  background: #ffffff !important;
  color: #0f172a !important;
}

#modalTransferVessel .input-block label {
  color: #0f172a !important;
  font-weight: 700 !important;
}

#modalTransferVessel select.form-input,
#modalTransferVessel input.form-input {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

#modalTransferVessel select.form-input:focus,
#modalTransferVessel input.form-input:focus {
  border-color: #8b5cf6 !important;
  outline: 2px solid rgba(139, 92, 246, 0.2) !important;
}

#modalTransferVessel select.form-input optgroup {
  font-weight: 700;
  color: #1e293b;
  background: #f8fafc;
  padding: 6px 4px;
}

#modalTransferVessel select.form-input option {
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
  padding: 8px 12px;
}

.transfer-pax-checklist-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.transfer-pax-row {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease;
}

.transfer-pax-row:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* ================= BULK PASSENGER ENTRY MODAL STYLES ================= */
#modalBulkPassengerEntry .modal-window {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
  max-width: 980px;
}

#modalBulkPassengerEntry .modal-top {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.bulk-input-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1rem;
}

.bulk-tab-btn {
  padding: 0.65rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.bulk-tab-btn:hover {
  color: #0284c7;
}

.bulk-tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
  background: rgba(2, 132, 199, 0.06);
  border-radius: 6px 6px 0 0;
}

.bulk-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bulk-dropzone:hover,
.bulk-dropzone.dragover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.bulk-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.bulk-grid-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 0.6rem 0.65rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.bulk-grid-table td {
  padding: 0.3rem 0.45rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.bulk-grid-input {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.15s ease;
}

.bulk-grid-input:focus {
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.bulk-preview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.bulk-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ================= DIRECT TICKET PRINT MODAL & CARDS ================= */
#modalDirectTicketPrint .modal-window {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}

.direct-ticket-card {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
  position: relative;
}

.direct-ticket-card:hover {
  border-color: #0284c7;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.12);
}

.dt-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1.5px solid #e2e8f0;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dt-company-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dt-pass-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0284c7;
  margin-top: 1px;
}

.dt-pnr-box {
  text-align: right;
}

.dt-pnr-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  display: block;
}

.dt-pnr-code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #0284c7;
  font-weight: 800;
}

.dt-ticket-seq {
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 700;
  margin-left: 0.35rem;
}

.dt-body {
  padding: 1rem 1.25rem;
}

.dt-route-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.dt-city-code {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.dt-city-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  display: block;
  margin: 2px 0;
}

.dt-time {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0284c7;
}

.dt-arrow-cell {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dt-vessel-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

.dt-grid-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.dt-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dt-cell .lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.dt-cell .val {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
}

.dt-cell .sub {
  font-size: 0.72rem;
  color: #64748b;
}

.dt-seat-highlight {
  color: #d97706 !important;
  font-size: 1.15rem !important;
  font-family: var(--font-mono);
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.dt-perforated {
  position: relative;
  height: 18px;
  margin: 0 -1.25rem 0.85rem -1.25rem;
  display: flex;
  align-items: center;
}

.dt-perforated .circle-c {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  position: absolute;
  top: 0;
}

.dt-perforated .c-left {
  left: -9px;
  border-left-color: transparent;
}

.dt-perforated .c-right {
  right: -9px;
  border-right-color: transparent;
}

.dt-perforated .dashes {
  width: 100%;
  border-top: 1.5px dashed #cbd5e1;
  margin: 0 10px;
}

.dt-security-foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding-top: 0.35rem;
}

.dt-qr-wrap {
  width: 80px;
  height: 80px;
  background: #ffffff;
  padding: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dt-barcode-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dt-barcode-graphic {
  display: flex;
  gap: 2px;
  height: 28px;
  align-items: stretch;
}

.dt-barcode-graphic span {
  display: inline-block;
  background: #0f172a;
  width: 2px;
  border-radius: 1px;
}

.dt-barcode-graphic span:nth-child(2n) {
  width: 1px;
}

.dt-barcode-graphic span:nth-child(3n) {
  width: 3px;
}

.dt-barcode-graphic span:nth-child(5n) {
  background: transparent;
}

.dt-terms-notice {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= THERMAL POS 80MM RECEIPT FORMAT ================= */
.direct-ticket-thermal {
  max-width: 320px;
  margin: 0 auto 1.25rem auto;
  background: #ffffff;
  color: #000000;
  border: 1px dashed #94a3b8;
  padding: 1.2rem 1rem;
  font-family: 'Space Grotesk', monospace, sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  line-height: 1.35;
}

.th-center {
  text-align: center;
}

.th-divider {
  border-top: 1px dashed #000000;
  margin: 0.6rem 0;
}

.th-double-divider {
  border-top: 2px dashed #000000;
  margin: 0.6rem 0;
}

.th-header-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.th-sub {
  font-size: 0.72rem;
  color: #333333;
}

.th-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  margin: 2px 0;
}

.th-seat-box {
  background: #f1f5f9;
  border: 1.5px solid #000000;
  text-align: center;
  padding: 0.5rem;
  margin: 0.6rem 0;
}

.th-seat-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  display: block;
}

.th-seat-num {
  font-size: 1.4rem;
  font-weight: 900;
  display: block;
  letter-spacing: 1px;
}

/* ================= PRINT MEDIA OVERRIDES ================= */
@media print {
  body * {
    visibility: hidden !important;
  }

  #ticketPrintArea,
  #ticketPrintArea *,
  #officialManifestDocumentArea,
  #officialManifestDocumentArea *,
  #directBatchTicketPrintArea,
  #directBatchTicketPrintArea * {
    visibility: visible !important;
  }

  #directBatchTicketPrintArea {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    display: block !important;
    overflow: visible !important;
  }

  .direct-ticket-card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: always !important;
    break-after: page !important;
    box-shadow: none !important;
    border: 1px solid #475569 !important;
    margin: 0 0 25px 0 !important;
    background: #ffffff !important;
  }

  .direct-ticket-card:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .direct-ticket-thermal {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: always !important;
    break-after: page !important;
    box-shadow: none !important;
    border: 1px dashed #000000 !important;
    margin: 0 auto 20px auto !important;
    background: #ffffff !important;
  }

  .direct-ticket-thermal:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
}

/* ========================================================
   ENTERPRISE FEATURES: DWT CARGO, CURRENCY & MDAC
   ======================================================== */

/* 1. DWT & Cargo Overdraft Meter */
.dwt-meter-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.dwt-meter-bar {
  width: 100%;
  height: 18px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin: 0.75rem 0;
}

.dwt-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #0284c7 70%, #f59e0b 90%, #ef4444 100%);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dwt-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dc2626;
  z-index: 2;
}

/* 3. Currency Selector Switch */
.currency-switcher {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.currency-btn {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.currency-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 4. MDAC Border Notice & Fee Breakdown */
.mdac-notice-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.fee-breakdown-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  margin: 0.75rem 0;
}

.fee-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  color: #475569;
}

.fee-breakdown-row.total {
  border-top: 1px dashed #cbd5e1;
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}

/* 5. Offline Status Badge & Pulse */
.offline-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  animation: pulse-op 1.6s infinite ease-in-out;
}

@keyframes pulse-op {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}





/* ========================================================
   THEME: ENTERPRISE OPS / TELCO PORTAL (DESAIN ALTERNATIF)
   Inspirasi Layout & Visual Dashboard Operasional Telco
   ======================================================== */

/* 1. Default State (When Theme Default / Standar is Active) */
#opsPortalOverview {
  display: none;
}

#opsHeaderClockStrip {
  display: none;
}

#opsUserBadge {
  display: none;
}

/* 2. Active Ops Portal Theme State */
body.theme-ops-portal {
  background: #f0f2f5 !important;
}

body.theme-ops-portal #opsPortalOverview {
  display: block;
  animation: fadeInOps 0.25s ease;
}

body.theme-ops-portal #opsHeaderClockStrip {
  display: flex;
}

body.theme-ops-portal .ticky-header-avatar {
  width: auto !important;
  height: 36px !important;
  border-radius: 99px !important;
  padding: 2px 10px 2px 3px !important;
  display: flex !important;
  align-items: center !important;
}

body.theme-ops-portal .ticky-header-avatar .ticky-header-avatar-img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

body.theme-ops-portal #opsUserBadge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
  margin-left: 0.5rem;
}

body.theme-ops-portal .ticky-kpi-grid {
  display: none !important;
}

@keyframes fadeInOps {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Live Clock & Status Strip */
.ops-header-clock-strip {
  align-items: center;
  gap: 1.1rem;
  font-size: 0.85rem;
  margin-left: 1.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.ops-clock-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.ops-date-text {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}

.ops-sys-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ops-sys-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-insera,
.tag-ksop {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.tag-ibooster,
.tag-manifest {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.tag-gate {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* User Profile Badge in Header */
.ops-user-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #0f172a;
}

.ops-user-id {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

/* Sidebar Overrides under Ops Theme */
body.theme-ops-portal .ticky-sidebar {
  border-right: 1px solid #e2e8f0;
}

body.theme-ops-portal .ticky-brand-icon {
  background: transparent !important;
  box-shadow: none !important;
}

#tickyBrandLogoImg {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  filter: none !important;
}

.ticky-brand-logo:hover #tickyBrandLogoImg,
#tickyBrandLogoImg:hover {
  transform: scale(1.06);
  filter: none !important;
}

.ticky-brand-logo-glow {
  display: none !important;
}

.ticky-brand-logo:hover .ticky-brand-title {
  color: #0284c7;
  letter-spacing: -0.2px;
  transition: all 0.3s ease;
}

body.theme-ops-portal .ticky-nav-item {
  border-radius: 8px !important;
  font-size: 0.84rem;
  padding: 0.58rem 0.85rem;
}

body.theme-ops-portal .ticky-nav-item.active {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

body.theme-ops-portal .ticky-nav-item.active .ticky-nav-icon svg {
  stroke: #2563eb !important;
}

/* 3. Horizontal Filter Bar Card */
.ops-filter-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ops-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ops-filter-item {
  flex: 1;
  min-width: 120px;
}

.ops-filter-date-item {
  min-width: 140px;
}

.ops-filter-item label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.ops-select-wrap select,
.ops-filter-select,
.ops-filter-date {
  width: 100%;
  height: 35px;
  padding: 0.25rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ops-filter-select:focus,
.ops-filter-date:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.ops-filter-btn-item {
  flex-shrink: 0;
}

.ops-btn-submit {
  height: 35px;
  padding: 0 1.6rem;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.ops-btn-submit:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.ops-btn-submit:active {
  transform: translateY(0);
}

/* 4. Section Blocks & Capsule Badge */
.ops-section-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.35rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
}

.ops-section-pill-row {
  text-align: center;
  margin: -1.9rem 0 0.85rem 0;
}

.ops-section-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 4px 22px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #334155;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  display: inline-block;
}

/* 5. Metric Boxes Strip & Progress Widget */
.ops-metric-strip-row {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ops-metric-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
  gap: 0.5rem;
  flex: 1;
}

.ops-metric-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
}

.ops-mb-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.ops-mb-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

/* IBOOSTER / Boarding Status Widget */
.ops-ibooster-card {
  min-width: 270px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ops-ibooster-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.ops-ib-title {
  font-size: 0.67rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.4px;
}

.ops-ib-total {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e293b;
}

.ops-progress-bar-wrap {
  height: 12px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  background: #f1f5f9;
  margin-bottom: 6px;
}

.ops-prog-seg {
  height: 100%;
}

.ops-prog-purple {
  background: #a855f7;
}

.ops-prog-blue {
  background: #3b82f6;
}

.ops-prog-green {
  background: #10b981;
}

.ops-prog-cyan {
  background: #06b6d4;
}

.ops-prog-orange {
  background: #f97316;
}

.ops-ibooster-legend {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.67rem;
  color: #64748b;
  font-weight: 600;
}

.ops-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ops-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.ops-dot-cyan {
  background: #06b6d4;
}

.ops-dot-purple {
  background: #8b5cf6;
}

.ops-dot-green {
  background: #10b981;
}

.ops-dot-red {
  background: #ef4444;
}

.ops-dot-navy {
  background: #1e3a8a;
}

.ops-dot-blue {
  background: #3b82f6;
}

.ops-dot-orange {
  background: #f97316;
}

/* 6. Pastel Multi-Level Matrix Tables */
.ops-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.ops-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  text-align: center;
  color: #1e293b;
  white-space: nowrap;
}

.ops-matrix-table th,
.ops-matrix-table td {
  border: 1px solid #cbd5e1;
  padding: 5px 8px;
}

.ops-matrix-table th {
  font-weight: 700;
}

.ops-matrix-table td {
  font-weight: 500;
}

/* Tier 1 Pastel Header Groups */
.th-area {
  background: #f8fafc;
  font-weight: 800 !important;
  color: #334155;
  width: 120px;
  text-align: left !important;
  padding-left: 12px !important;
}

.th-diamond {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

.th-platinum {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.th-gold {
  background: #fef3c7 !important;
  color: #b45309 !important;
}

.th-reguler {
  background: #ffedd5 !important;
  color: #c2410c !important;
}

.th-indibiz {
  background: #ede9fe !important;
  color: #6d28d9 !important;
}

.th-b2b {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.th-open {
  background: #f8fafc !important;
  color: #334155 !important;
}

.th-closed {
  background: #f8fafc !important;
  color: #334155 !important;
}

.th-total {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.ops-th-tier2 th {
  background: #ffffff;
  font-size: 0.67rem;
  color: #64748b;
  padding: 3px 6px;
}

/* Manja Table Special Pastel Headers */
.th-manja {
  background: #f1f5f9 !important;
  font-weight: 800 !important;
}

.th-sub-red {
  color: #dc2626 !important;
  font-weight: 800 !important;
}

.th-sub-blue {
  color: #2563eb !important;
  font-weight: 800 !important;
}

.th-sub-green {
  color: #16a34a !important;
  font-weight: 800 !important;
}

.th-sub-orange {
  color: #ea580c !important;
  font-weight: 800 !important;
}

.th-critical {
  background: #fef3c7 !important;
  color: #b45309 !important;
  font-weight: 800 !important;
}

.th-prog-group {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  font-weight: 800 !important;
}

.th-ps {
  color: #16a34a !important;
  font-weight: 800 !important;
}

.th-tti {
  background: #f8fafc !important;
  font-weight: 800 !important;
}

/* Area Row Styling */
.td-areaname {
  text-align: left !important;
  padding-left: 10px !important;
  font-weight: 700;
  color: #0f172a;
}

.td-subarea {
  text-align: left !important;
  padding-left: 18px !important;
  color: #475569;
}

/* Total Summary Footer Row */
.ops-tr-total td {
  background: #f8fafc;
  font-weight: 800;
  color: #0f172a;
  border-top: 2px solid #94a3b8;
}

.td-total-lbl {
  text-align: left !important;
  padding-left: 10px !important;
  font-weight: 900 !important;
}

.ops-matrix-table tbody tr:hover {
  background-color: #f8fafc;
}


/* Scoped Dark Slate Theme for Admin Developer Portal and Modals */
.dev-dark-table,
#viewDevAdminDashboard .dev-dark-table,
.modal-layer .dev-dark-table,
table.dash-table.dev-dark-table {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  border-radius: 10px;
  overflow: hidden;
}
.dev-dark-table thead tr,
.dev-dark-table thead th,
.dev-dark-table th,
#viewDevAdminDashboard .dev-dark-table thead tr,
#viewDevAdminDashboard .dev-dark-table thead th,
.modal-layer .dev-dark-table thead tr,
.modal-layer .dev-dark-table thead th,
table.dash-table.dev-dark-table th {
  background: #090f1d !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid #334155 !important;
}
.dev-dark-table tbody tr,
#viewDevAdminDashboard .dev-dark-table tbody tr,
.modal-layer .dev-dark-table tbody tr,
table.dash-table.dev-dark-table tbody tr {
  background: #162032 !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.65) !important;
  color: #e2e8f0 !important;
}
.dev-dark-table tbody td,
.dev-dark-table td,
#viewDevAdminDashboard .dev-dark-table tbody td,
.modal-layer .dev-dark-table tbody td,
table.dash-table.dev-dark-table td {
  background: #162032 !important;
  color: #e2e8f0 !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55) !important;
}
.dev-dark-table tbody tr:hover,
.dev-dark-table tbody tr:hover td,
.dev-dark-table tr:hover td,
#viewDevAdminDashboard .dev-dark-table tbody tr:hover,
#viewDevAdminDashboard .dev-dark-table tbody tr:hover td,
.modal-layer .dev-dark-table tbody tr:hover,
.modal-layer .dev-dark-table tbody tr:hover td,
table.dash-table.dev-dark-table tbody tr:hover td {
  background: #1e293b !important;
  color: #f8fafc !important;
}
.dev-dark-table .form-input {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}
.dev-dark-table .form-input:focus {
  border-color: #38bdf8 !important;
  outline: none;
}


/* Exchange Rate Live Recheck Spinner */
@keyframes spinRate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Currency Exchange Pane Enhancements */
#worldCurrenciesTable tbody tr {
  transition: background-color 0.15s ease;
}
#worldCurrenciesTable tbody tr:hover {
  background-color: #f8fafc;
}
.btn-quick-amount:hover {
  background-color: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}
.btn-select-currency-calc:hover {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}
#btnSwapCurrencies:hover {
  background-color: #e0f2fe !important;
  border-color: #0284c7 !important;
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  #paneCurrencyExchange div[style*="grid-template-columns: 1fr auto 1fr"],
  #formCompanySettings > div {
    grid-template-columns: 1fr !important;
  }
}


/* ALL-IN-ONE ONE-PAGE TICKETING CONSOLE */
.tix-console-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 960px) {
  .tix-console-grid {
    grid-template-columns: 1fr !important;
  }
}

.tix-cal-day-cell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.35rem 0.2rem;
  min-height: 44px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.tix-cal-day-cell:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
}

.tix-cal-day-cell.active {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.tix-cal-day-cell.active .tix-cal-day-num,
.tix-cal-day-cell.active .tix-cal-day-dot {
  color: #ffffff !important;
  background: #ffffff !important;
}

.tix-cal-day-cell.is-today {
  border: 1.5px solid #0284c7;
  background: #f0f9ff;
}

.tix-cal-day-cell.other-month {
  opacity: 0.3;
  background: #f8fafc;
  cursor: default;
}

.tix-cal-day-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1e293b;
}

.tix-cal-day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0284c7;
  margin-top: 2px;
}

.tix-day-sched-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tix-day-sched-card:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
}

.tix-day-sched-card.active {
  border-color: #0284c7 !important;
  background: #f0f9ff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.18);
}


/* FULL-PAGE IN-PAGE BULK PASSENGER ENTRY CONSOLE */
#ticketingConsoleWorkspace.mode-bulk .tix-console-grid {
  display: block !important;
}

#ticketingConsoleWorkspace.mode-bulk #tixConsoleLeftCol {
  display: none !important;
}

#ticketingConsoleWorkspace.mode-bulk #tixConsoleRightCol {
  width: 100% !important;
  max-width: 100% !important;
}

#ticketingConsoleWorkspace.mode-bulk #tixConsoleSeatInfoCard {
  display: none !important;
}

#ticketingConsoleWorkspace.mode-bulk #tixConsolePassengerCard {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 14px !important;
  padding: 1.5rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

#ticketingConsoleWorkspace.mode-bulk .bulk-grid-table th {
  padding: 0.75rem 0.85rem !important;
  font-size: 0.82rem !important;
}

#ticketingConsoleWorkspace.mode-bulk .bulk-grid-table td {
  padding: 0.45rem 0.55rem !important;
}


/* PARALLEL 3-COLUMN POS TICKETING CONSOLE */
.tix-pos-top-grid {
  display: grid;
  grid-template-columns: 290px 380px 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

@media (max-width: 1280px) {
  .tix-pos-top-grid {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 860px) {
  .tix-pos-top-grid {
    grid-template-columns: 1fr;
  }
}

.tix-visual-seat-btn {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 36px;
  height: 36px;
  min-height: 28px;
  padding: 0;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.tix-visual-seat-btn.available {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
}

.tix-visual-seat-btn.available:hover {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0284c7;
  transform: translateY(-1px);
}

.tix-visual-seat-btn.occupied {
  background: #ffedd5;
  border: 1.5px solid #fed7aa;
  color: #ea580c;
  cursor: not-allowed;
  opacity: 0.85;
}

.tix-visual-seat-btn.selected {
  background: #16a34a !important;
  border-color: #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.4);
  transform: translateY(-1px);
}

.tix-time-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tix-time-card:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
}

.tix-time-card.active {
  border-color: #0284c7 !important;
  background: #f0f9ff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.18);
}

/* ========================================================
   TOP HORIZONTAL NAVBAR (PANEL SIDE DIUBAH KE ATAS)
   Halaman web terlihat lebar penuh (Full-Width)
   Semua item menu sejajar, font jelas & tanpa slider/scrollbar
   ======================================================== */
.ticky-dashboard-window {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  width: 100% !important;
}

.ticky-sidebar {
  width: 100% !important;
  min-width: 100% !important;
  height: auto !important;
  min-height: 52px !important;
  background: #ffffff !important;
  border-right: none !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.35rem 1.75rem !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 100 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  overflow: visible !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.ticky-sidebar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.ticky-brand-row {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.ticky-brand-title {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

.ticky-collapse-btn {
  display: none !important;
}

.ticky-nav-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.35rem 0.6rem !important;
  flex: 1 !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 0 !important;
  margin: 0 0 0 auto !important;
}

.ticky-breadcrumb {
  display: none !important;
}

.ticky-nav-list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.ticky-nav-section-title {
  display: none !important;
}

.ticky-nav-item {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  padding: 0.38rem 0.72rem !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.ticky-nav-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.ticky-nav-item.active {
  background: #ede9fe !important;
  color: #6d28d9 !important;
  border-color: #ddd6fe !important;
  font-weight: 700 !important;
}

.ticky-nav-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  color: inherit !important;
}

.ticky-nav-icon {
  width: 16px !important;
  height: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.ticky-nav-icon svg {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor !important;
}

.ticky-nav-label {
  display: inline-block !important;
  font-size: 0.78rem !important;
  font-weight: inherit !important;
  color: inherit !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ticky-sidebar.collapsed .ticky-brand-title,
.ticky-sidebar.collapsed .ticky-nav-label {
  display: inline-block !important;
  visibility: visible !important;
}

.ticky-sidebar-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.6rem !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.btn-sidebar-logout {
  width: auto !important;
  padding: 0.42rem 0.85rem !important;
  font-size: 0.78rem !important;
  white-space: nowrap !important;
}

.ticky-workspace {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 !important;
}

.ticky-top-header {
  position: static !important;
}

/* Posisikan widget cuaca & profil operator kembali ke kanan web */
.ticky-top-header {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.ticky-header-actions {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

/* ========================================================
   UNIVERSAL MOBILE & TABLET RESPONSIVE ENHANCEMENTS
   ======================================================== */
@media (max-width: 992px) {
  /* Ticky Portal Sidebar Navigation on Tablets/Mobile */
  .ticky-sidebar {
    padding: 0.5rem 1rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ticky-nav-list {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }

  .ticky-nav-list::-webkit-scrollbar {
    display: none !important;
  }

  /* Top Weather & Profile Widgets in Company Dashboard */
  .ticky-top-header {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }

  .ticky-header-actions {
    margin-left: 0 !important;
    width: 100% !important;
    justify-content: flex-end !important;
  }
}

@media (max-width: 768px) {
  /* Site Container & Layout */
  .site-container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  /* Global Top Navbar on Smartphones */
  .global-navbar {
    padding: 0.5rem 0 !important;
  }

  .brand-title-wrap .brand-sub {
    font-size: 0.62rem !important;
    letter-spacing: 0.5px !important;
  }

  .brand-name {
    font-size: 1.05rem !important;
  }

  .header-tenant-box .btn-login-tenant {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.76rem !important;
  }

  /* BMKG Weather Section on Mobile */
  .weather-home-section {
    padding: 0.85rem 0.5rem 2.5rem !important;
  }

  .bmkg-hero-banner {
    padding: 1rem !important;
    border-radius: 12px !important;
  }

  .bmkg-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .bmkg-grid-top,
  .bmkg-grid-stations {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  /* Search & Route Card Layouts */
  .customer-search-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .sched-card {
    padding: 0.85rem !important;
  }

  .sched-body-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  /* Dashboard Tabs & Action Buttons Bar */
  .dash-quick-actions-bar,
  .dash-tabs-bar {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px !important;
  }

  /* All Modals on Mobile Phones */
  .modal-layer {
    padding: 0.5rem !important;
    align-items: flex-end !important;
  }

  .modal-window,
  .modal-window.modal-wide {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 14px 14px 0 0 !important;
    margin: 0 !important;
  }

  /* Direct Ticket Print Modal on Mobile */
  #modalDirectTicketPrint .modal-window {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 95vh !important;
  }

  .modal-bottom-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .modal-bottom-actions > div,
  .modal-bottom-actions button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Tables: Horizontal scrollable for touch devices */
  .table-responsive,
  .manifest-table-wrap,
  .table-modern,
  .dev-dark-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Seating Chart / Deck Plan on Mobile */
  .deck-grid-interactive,
  .seat-map-scroll-area {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 480px) {
  /* Extra Small Devices (Phones < 480px) */
  .brand-title-wrap .brand-sub {
    display: none !important;
  }

  .btn-login-tenant span {
    font-size: 0.72rem !important;
  }

  .ticky-brand-title {
    font-size: 0.88rem !important;
  }

  .ticky-nav-item {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.74rem !important;
  }
}
