@font-face {
  font-family: "Jameel Noori Nastaleeq";
  src: url("../fonts/JameelNooriNastaleeq.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --cng-navy: #0b1e3d;
  --cng-gold: #e8a020;
  --cng-gold-soft: #fff3dc;
}

.page { background: #eef3f8; overflow-x: hidden; }
.page-wrapper { min-height: 100vh; background: #eef3f8; min-width: 0; }
.page-body > .container-xl { min-width: 0; }

.navbar-vertical[data-bs-theme="dark"] {
  background: linear-gradient(180deg, #0b1e3d 0%, #12284f 100%) !important;
}
.navbar-vertical .container-fluid {
  padding-inline: .85rem;
}
.navbar-vertical .navbar-brand {
  padding: .85rem .15rem .75rem;
  margin: 0;
  justify-content: flex-start;
}
.navbar-vertical .navbar-collapse {
  padding-top: .15rem;
}
.navbar-vertical .navbar-nav {
  padding-top: .35rem !important;
  gap: .15rem;
}

.navbar-brand-autodark .brand-text {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  letter-spacing: .01em;
  font-size: 1.22rem;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}
.brand-accent { color: var(--cng-gold); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cng-gold); color: var(--cng-navy);
  font-size: 1.3rem; flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(232, 160, 32, .28);
}
.auth-body .brand-mark { width: 48px; height: 48px; font-size: 1.5rem; border-radius: 14px; }
.auth-body .navbar-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--cng-navy); }
.auth-body {
  background: #eef3f8;
  min-height: 100vh;
}
.auth-body.auth-illustration {
  background: #fff;
  margin: 0;
  padding: 0;
}
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.auth-aside {
  background: linear-gradient(160deg, #0b1e3d 0%, #16325f 45%, #1f5f9a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.auth-aside::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(232,160,32,.28), transparent 70%);
}
.auth-aside::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  left: -80px; bottom: -100px;
  background: rgba(255,255,255,.06);
}
.auth-aside-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.2rem 1.5rem;
  width: 100%;
}
.auth-aside-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  font-size: 1.2rem;
}
.auth-aside-name { color: #fff; }
.auth-aside-name .brand-accent { color: var(--cng-gold); }
.auth-aside-kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--cng-gold); font-weight: 700; margin-bottom: .55rem;
}
.auth-aside-title {
  margin: 0 0 .55rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}
.auth-aside-blurb {
  margin: 0;
  color: rgba(255,255,255,.75);
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.55;
}
.auth-aside-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: auto;
}
.auth-illust-img {
  width: min(100%, 560px);
  max-height: 48vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0,0,0,.22);
  background: rgba(255,255,255,.08);
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(232,160,32,.08), transparent 40%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}
.auth-main-inner {
  width: 100%;
  max-width: 420px;
}
.auth-main .card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(11,30,61,.08);
}
.auth-main .card-title {
  font-weight: 800;
  color: var(--cng-navy);
}
html[dir="rtl"] .auth-split { direction: rtl; }
@media (max-width: 991.98px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-body.auth-illustration {
    background: linear-gradient(160deg, #0b1e3d 0%, #1c4a8a 55%, #e8a020 160%);
  }
  .auth-main {
    min-height: 100vh;
    background: transparent;
  }
  .auth-main-top .navbar-brand { color: #fff; }
  .auth-main-top .brand-accent { color: var(--cng-gold); }
}

.cng-topbar {
  background: #fff !important;
  border-bottom: 1px solid rgba(11, 30, 61, .08);
  min-height: 3.75rem;
  padding: .55rem 0;
  box-shadow: 0 4px 18px rgba(11, 30, 61, .04);
  flex-wrap: nowrap;
}
.cng-topbar > .container-xl,
.cng-topbar-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  flex-wrap: nowrap;
}
.cng-topbar-actions {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
}

.navbar-station {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  flex: 1 1 auto;
}
.navbar-station-icon { display: none; }
.navbar-station-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.navbar-station-name {
  font-weight: 800;
  color: var(--cng-navy);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar-station-role {
  font-size: .78rem;
  color: #6b7c93;
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #f2f5f9;
  border: 1px solid #dce5ef;
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  color: #5b6b7f;
  text-decoration: none;
  font-weight: 600;
  font-size: .85rem;
  line-height: 1.2;
  white-space: nowrap;
}
.lang-btn:hover { color: var(--cng-navy); }
.lang-btn.active {
  background: #fff;
  color: var(--cng-navy);
  box-shadow: 0 1px 4px rgba(11, 30, 61, .1);
}

.cng-user-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .25rem .55rem .25rem .45rem;
  border-radius: 999px;
  border: 1px solid #dce5ef;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.cng-user-chip:hover { background: #f7f9fc; color: inherit; }
.cng-user-meta {
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}
.cng-user-name { font-weight: 700; font-size: .9rem; color: var(--cng-navy); }
.cng-user-role { font-size: .72rem; color: #6b7c93; font-weight: 600; }
.cng-user-chip .ti-chevron-down { color: #8a99ab; font-size: .85rem; }

html[dir="rtl"] .cng-user-chip { padding: .25rem .45rem .25rem .55rem; }
html[dir="rtl"] .cng-user-meta { align-items: flex-end; }

.status-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .7rem; border-radius: 50px; font-weight: 600; font-size: .8rem;
}
.status-online, .status-filling { background: #d4f3e5; color: #148a58; }
.status-call { background: #fff3cd; color: #9a6700; }
.status-idle { background: #e8eef6; color: #3d5a80; }
.status-offline, .status-error { background: #fdeaea; color: #c0392b; }

.kpi-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.nozzle-card.is-filling { border-color: #e8a020; box-shadow: 0 0 0 1px rgba(232,160,32,.35); }

.num, .kpi-value, .mgr-stat-value,
input[type="date"], input[type="time"], input[type="number"], input[type="month"] {
  font-variant-numeric: lining-nums tabular-nums;
  font-family: Inter, "Segoe UI", system-ui, sans-serif !important;
  unicode-bidi: isolate;
  direction: ltr;
}
input[type="date"],
input[type="month"] {
  position: relative;
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}
/* Never set display on table cells — it breaks column alignment */
.num:not(td):not(th), .kpi-value, .mgr-stat-value { display: inline-block; }
td.num, th.num {
  font-variant-numeric: lining-nums tabular-nums;
  font-family: Inter, "Segoe UI", system-ui, sans-serif !important;
  unicode-bidi: isolate;
  direction: ltr;
  text-align: end;
  white-space: nowrap;
}

.ti, html[dir="rtl"] .ti, html[dir="rtl"] .btn .ti {
  font-family: "tabler-icons" !important;
  font-style: normal !important;
  line-height: 1;
  speak: none;
}

html[dir="rtl"] body,
body.theme-urdu {
  font-family: "Jameel Noori Nastaleeq", serif !important;
  font-size: 1.18rem;
  line-height: 1.7;
}
html[dir="rtl"] .navbar-brand,
html[dir="rtl"] .page-title,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .nav-link-title,
html[dir="rtl"] .card-title,
html[dir="rtl"] .subheader,
html[dir="rtl"] .btn,
html[dir="rtl"] .form-label,
html[dir="rtl"] .dropdown-item,
html[dir="rtl"] .alert {
  font-family: "Jameel Noori Nastaleeq", serif !important;
}
html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select,
html[dir="rtl"] .btn {
  font-size: 1.08rem;
}
html[dir="rtl"] .cng-notice {
  font-size: 1.2rem;
  line-height: 1.8;
}
html[dir="rtl"] .navbar-vertical .nav-link {
  font-size: 1.18rem;
}

.cng-notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 0;
  border-radius: 12px;
  padding: .9rem 2.4rem .9rem 1rem;
  box-shadow: 0 8px 24px rgba(11,30,61,.08);
}
.cng-notice-icon { font-size: 1.35rem; margin-top: .1rem; }
.cng-notice-text { flex: 1; }
html[dir="rtl"] .cng-notice { padding: .9rem 1rem .9rem 2.4rem; }

.live-toast-stack {
  position: fixed;
  top: 4.6rem;
  inset-inline-end: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  width: min(22.5rem, calc(100vw - 1.5rem));
  pointer-events: none;
}
.live-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .8rem .85rem .8rem .9rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e4ebf3;
  box-shadow: 0 16px 40px rgba(11, 30, 61, .16);
  animation: live-toast-in .22s ease;
}
.live-toast.is-danger {
  background: #fff5f5;
  border-color: #f0c4c4;
}
.live-toast.is-warning {
  background: #fff8e8;
  border-color: #f0d59a;
}
.live-toast-ico {
  flex-shrink: 0;
  font-size: 1.25rem;
  margin-top: .08rem;
  color: #c48912;
}
.live-toast.is-danger .live-toast-ico { color: #c24646; }
.live-toast-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  color: var(--cng-navy);
  font-size: .86rem;
  line-height: 1.35;
}
.live-toast-copy strong { font-weight: 800; }
.live-toast-copy span { color: #5c6d82; font-weight: 600; }
.live-toast-close {
  flex-shrink: 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: #8a99ab;
  padding: .1rem;
  margin: -.15rem -.1rem 0 0;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.live-toast-close:hover { color: var(--cng-navy); background: rgba(11,30,61,.06); }
html[dir="rtl"] .live-toast-close { margin: -.15rem 0 0 -.1rem; }
@keyframes live-toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.live-toast.is-out {
  animation: live-toast-out .2s ease forwards;
}
@keyframes live-toast-out {
  to { opacity: 0; transform: translateY(-8px); }
}
@media (max-width: 768px) {
  .live-toast-stack {
    top: auto;
    bottom: 1rem;
    inset-inline: .75rem;
    width: auto;
  }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-kicker {
  color: #c48912;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .75rem;
  margin-bottom: .2rem;
  display: flex; align-items: center; gap: .35rem;
}
html[dir="rtl"] .page-kicker { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.page-title { display: flex; align-items: center; gap: .5rem; }
.page-title .ti { color: var(--cng-gold); font-size: 1.35rem; }

.card {
  border: 0;
  box-shadow: 0 10px 30px rgba(11,30,61,.06);
  border-radius: 16px;
}

.mgr-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #0b1e3d 0%, #1a3560 55%, #1c4a8a 100%);
  color: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.7rem;
  position: relative;
  overflow: hidden;
}
.mgr-hero::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -40px; top: -60px;
  border-radius: 50%;
  background: rgba(232,160,32,.18);
}
html[dir="rtl"] .mgr-hero::after { right: auto; left: -40px; }
.mgr-hero-copy { position: relative; z-index: 1; }
.mgr-hero-kicker {
  color: var(--cng-gold);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .35rem;
  display: flex; align-items: center; gap: .4rem;
}
html[dir="rtl"] .mgr-hero-kicker { letter-spacing: 0; text-transform: none; font-size: 1.05rem; }
.mgr-hero-title { color: #fff; font-size: 1.7rem; margin: 0 0 .35rem; font-weight: 800; }
.mgr-hero-sub { color: rgba(255,255,255,.7); margin: 0 0 .7rem; max-width: 36rem; }
.mgr-hero-meta { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.78); font-size: .92rem; flex-wrap: wrap; }
.mgr-hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cng-gold); }
.mgr-hero-meta .ti { color: var(--cng-gold); }

.btn-gold {
  position: relative; z-index: 1;
  background: var(--cng-gold);
  color: var(--cng-navy);
  font-weight: 700;
  border: 0;
  padding: .65rem 1.1rem;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-gold:hover { background: #f0b33a; color: var(--cng-navy); }
.btn .ti { font-size: 1.05em; }

.cng-filter-bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(11, 30, 61, .05);
  overflow: hidden;
  min-height: 3.15rem;
}
.cng-filter-dates {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}
.cng-filter-field {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .08rem;
  margin: 0;
  padding: .4rem .75rem .42rem;
  cursor: pointer;
}
.cng-filter-field span {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #8a99ab;
  line-height: 1;
}
html[dir="rtl"] .cng-filter-field span {
  letter-spacing: 0;
  text-transform: none;
  font-size: .78rem;
}
.cng-filter-field input {
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  width: 100%;
  min-width: 0;
  height: 1.45rem;
  padding: 0 1.55rem 0 0;
  font-size: .92rem;
  font-weight: 700;
  color: var(--cng-navy);
  display: block;
}
.cng-filter-field input:focus {
  box-shadow: none;
}
/* Visible icon on the right only — do not inherit full-bleed overlay */
.cng-filter-field input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: auto 0 auto auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: .5;
  scale: 1;
}
html[dir="rtl"] .cng-filter-field input {
  padding: 0 0 0 1.55rem;
}
html[dir="rtl"] .cng-filter-field input::-webkit-calendar-picker-indicator {
  inset: auto auto auto 0;
}
.cng-filter-sep {
  flex-shrink: 0;
  align-self: center;
  color: #c5d0de;
  font-size: 1.05rem;
}
html[dir="rtl"] .cng-filter-sep { transform: scaleX(-1); }
.cng-filter-go {
  position: relative;
  flex: 0 0 auto;
  border-radius: 0 !important;
  padding: 0 1.05rem;
  min-width: 3.1rem;
  justify-content: center;
}
@media (max-width: 480px) {
  .cng-filter-field { padding: .38rem .55rem .4rem; }
  .cng-filter-field input { font-size: .82rem; }
  .cng-filter-go { padding: 0 .75rem; }
  .cng-filter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .page-head { align-items: flex-start; gap: .65rem; }
  .page-head .data-btn {
    padding: .4rem .65rem;
    font-size: .78rem;
  }
}

.mgr-stat .card-body { display: flex; gap: .9rem; align-items: flex-start; position: relative; z-index: 1; }
.mgr-stat-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(11,30,61,.08);
}
.mgr-stat-value { font-size: 1.25rem; font-weight: 800; color: var(--cng-navy); line-height: 1.25; }
html[dir="rtl"] .mgr-stat-value { font-size: 1.35rem; }

.mgr-shift-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.mgr-shift-dot.is-done { background: #1db87a; }
.mgr-shift-dot.is-now { background: var(--cng-gold); box-shadow: 0 0 0 4px rgba(232,160,32,.25); }
.mgr-shift-dot.is-wait { background: #c5d0de; }

.mgr-action {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .85rem;
  border: 1px solid #d8e4f0;
  border-radius: 12px;
  color: inherit; text-decoration: none;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.mgr-action i { font-size: 1.2rem; color: var(--cng-gold); }
.mgr-action:hover { background: #f4f7fb; border-color: var(--cng-gold); color: inherit; }

.mgr-stat,
.mgr-stat-link {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(11,30,61,.07);
  background: #fff;
}
.mgr-stat-link { text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; display: block; }
.mgr-stat-link:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11,30,61,.12); color: inherit; }
.mgr-stat.tone-gold { background: linear-gradient(145deg, #fffaf0 0%, #ffffff 55%); }
.mgr-stat.tone-green { background: linear-gradient(145deg, #f0fbf5 0%, #ffffff 55%); }
.mgr-stat.tone-blue { background: linear-gradient(145deg, #f0f6fd 0%, #ffffff 55%); }
.mgr-stat.tone-purple { background: linear-gradient(145deg, #f6f2fc 0%, #ffffff 55%); }
.mgr-stat-icon.tone-gold { background: linear-gradient(135deg, #e8a020, #f0b33a); color:#0b1e3d; }
.mgr-stat-icon.tone-green { background: linear-gradient(135deg, #148a58, #2dd4a8); color:#fff; }
.mgr-stat-icon.tone-blue { background: linear-gradient(135deg, #2170c4, #5aa2f0); color:#fff; }
.mgr-stat-icon.tone-purple { background: linear-gradient(135deg, #7b52d4, #a78bfa); color:#fff; }

.card-illust {
  position: absolute;
  inset-inline-end: -8px;
  bottom: -18px;
  font-size: 7rem;
  line-height: 1;
  opacity: .08;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-8deg);
}
html[dir="rtl"] .card-illust { transform: rotate(8deg); }

/* SVG illustrations */
.cng-illust {
  position: absolute;
  inset-inline-end: -6px;
  bottom: -10px;
  width: 132px;
  height: 132px;
  opacity: .22;
  pointer-events: none;
  z-index: 0;
  line-height: 0;
  transform: rotate(-6deg);
}
html[dir="rtl"] .cng-illust { transform: rotate(6deg); }
.cng-illust svg { width: 100%; height: 100%; display: block; }
.mgr-stat .cng-illust,
.live-kpi .cng-illust,
.live-bank .cng-illust,
.live-fill-card .cng-illust,
.live-nozzle .cng-illust,
.super-station-card .cng-illust { opacity: .2; }
.super-station-card .cng-illust { width: 150px; height: 150px; opacity: .16; }
.cng-illust-hero {
  position: relative;
  inset: auto;
  width: min(280px, 42vw);
  height: auto;
  opacity: .95;
  transform: none;
  margin-bottom: .35rem;
}
html[dir="rtl"] .cng-illust-hero { transform: none; }
.cng-illust-empty {
  position: relative;
  inset: auto;
  width: 180px;
  height: auto;
  opacity: 1;
  transform: none;
  margin: 0 auto .75rem;
  display: block;
}
.cng-illust-tile {
  width: 96px;
  height: 96px;
  opacity: .18;
  bottom: -12px;
  inset-inline-end: -10px;
}
.mgr-tile .cng-illust-tile { z-index: 0; }
.cng-illust-inline {
  position: relative;
  inset: auto;
  width: 72px;
  height: 72px;
  opacity: 1;
  transform: none;
  flex-shrink: 0;
}
.cng-illust-trial {
  position: relative;
  inset: auto;
  width: min(260px, 70vw);
  height: auto;
  opacity: 1;
  transform: none;
  margin: 0 auto 1rem;
  display: block;
}
.super-hero-aside,
.live-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .55rem;
  position: relative;
  z-index: 1;
}
.mgr-hero { align-items: center; }
.live-hero { align-items: center; }
.settings-plan-card { position: relative; overflow: hidden; }
.settings-plan-card .cng-illust-inline { margin-inline-end: .25rem; }
.settings-lang-illust .cng-illust-inline { width: 88px; height: 88px; }
.trial-svg-wrap { display: flex; justify-content: center; }

@media (max-width: 768px) {
  .super-hero-aside,
  .live-hero-aside {
    width: 100%;
    align-items: flex-start;
  }
  .cng-illust-hero {
    width: min(220px, 70vw);
  }
}
.mgr-stat.tone-gold .card-illust,
.live-kpi.tone-gold .card-illust,
.live-bank.tone-gold .card-illust { color: #c48912; }
.mgr-stat.tone-green .card-illust,
.live-kpi.tone-green .card-illust,
.live-bank.tone-green .card-illust { color: #148a58; }
.mgr-stat.tone-blue .card-illust,
.live-kpi.tone-blue .card-illust,
.live-bank.tone-blue .card-illust { color: #2170c4; }
.mgr-stat.tone-purple .card-illust,
.live-kpi.tone-purple .card-illust { color: #7b52d4; }
.live-nozzle .card-illust { color: #1a3560; font-size: 6rem; opacity: .06; }

.mgr-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .85rem;
}
.mgr-tile-grid-reports {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.mgr-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: 1rem .95rem;
  border-radius: 18px;
  border: 1px solid #dce5ef;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 132px;
  position: relative;
  overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.mgr-tile:hover {
  transform: translateY(-3px);
  border-color: var(--cng-gold);
  box-shadow: 0 12px 28px rgba(11,30,61,.1);
  color: inherit;
}
.mgr-tile-sm { min-height: 110px; }
.mgr-tile-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.45rem;
  background: var(--cng-gold-soft); color: #c48912;
  position: relative; z-index: 1;
  box-shadow: 0 8px 16px rgba(11,30,61,.08);
}
.mgr-tile.tone-gold .mgr-tile-icon { background: linear-gradient(135deg, #e8a020, #f0b33a); color:#0b1e3d; }
.mgr-tile.tone-green .mgr-tile-icon { background: linear-gradient(135deg, #148a58, #2dd4a8); color:#fff; }
.mgr-tile.tone-blue .mgr-tile-icon { background: linear-gradient(135deg, #2170c4, #5aa2f0); color:#fff; }
.mgr-tile.tone-purple .mgr-tile-icon { background: linear-gradient(135deg, #7b52d4, #a78bfa); color:#fff; }
.mgr-tile.tone-teal .mgr-tile-icon { background: linear-gradient(135deg, #1a9a86, #3dd6be); color:#fff; }
.mgr-tile.tone-navy .mgr-tile-icon { background: linear-gradient(135deg, #0b1e3d, #2a5a9a); color:#fff; }
.mgr-tile-rich {
  background: linear-gradient(160deg, #ffffff 0%, #f7fafc 100%);
  min-height: 148px;
}
.mgr-tile-blob {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  inset-inline-end: -36px; top: -40px;
  opacity: .18;
  pointer-events: none;
}
.mgr-tile.tone-gold .mgr-tile-blob { background: #e8a020; }
.mgr-tile.tone-green .mgr-tile-blob { background: #1db87a; }
.mgr-tile.tone-blue .mgr-tile-blob { background: #2170c4; }
.mgr-tile.tone-purple .mgr-tile-blob { background: #7b52d4; }
.mgr-tile.tone-teal .mgr-tile-blob { background: #1a9a86; }
.mgr-tile.tone-navy .mgr-tile-blob { background: #1a3560; }
.mgr-tile-label { font-weight: 800; color: var(--cng-navy); line-height: 1.25; position: relative; z-index: 1; }
.mgr-tile-hint { font-size: .8rem; color: #6b7c93; position: relative; z-index: 1; }
.mgr-tile-arrow {
  margin-top: auto;
  color: #a0b0c2;
  font-size: 1rem;
  position: relative; z-index: 1;
}
.mgr-tile:hover .mgr-tile-arrow { color: var(--cng-gold); }
html[dir="rtl"] .mgr-tile { align-items: flex-end; text-align: right; }
html[dir="rtl"] .mgr-tile-label { font-size: 1.1rem; }
html[dir="rtl"] .mgr-tile-arrow .ti { display: inline-block; transform: scaleX(-1); }

.empty-state {
  text-align: center;
  padding: 2.2rem 1rem;
  color: #7a8aa0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.empty-state .ti {
  font-size: 2.6rem;
  display: block;
  margin-bottom: .6rem;
  color: #c5d0de;
}
.empty-state-inline {
  display: flex; align-items: center; gap: .5rem; color: #7a8aa0;
}
.empty-state-inline .ti { font-size: 1.4rem; color: #c5d0de; }

.form-label .ti { color: var(--cng-gold); margin-inline-end: .3rem; }
.card-title .ti { color: var(--cng-gold); margin-inline-end: .35rem; }
.dropdown-item .ti { margin-inline-end: .45rem; color: var(--cng-gold); }
.section-icon-title { display: flex; align-items: center; gap: .45rem; }
.section-icon-title .ti { color: var(--cng-gold); }

.navbar-vertical .nav-item {
  margin: 0;
}
.navbar-vertical .nav-link {
  min-height: 2.65rem;
  padding: .55rem .7rem;
  margin: 0;
  border-radius: 11px;
  color: rgba(255, 255, 255, .86);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.25;
  gap: .7rem;
  align-items: center;
}
.navbar-vertical .nav-link-title {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.navbar-vertical .nav-link-icon {
  width: 2.05rem;
  height: 2.05rem;
  margin: 0;
  border-radius: 9px;
  background: rgba(232, 160, 32, .12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.navbar-vertical .nav-link-icon .ti {
  font-size: 1.22rem;
  color: var(--cng-gold);
}
.navbar-vertical .nav-link:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
.navbar-vertical .nav-link.active {
  background: rgba(232, 160, 32, .18);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--cng-gold);
}
html[dir="rtl"] .navbar-vertical .nav-link.active {
  box-shadow: inset -3px 0 0 var(--cng-gold);
}
.navbar-vertical .nav-link.active .nav-link-icon {
  background: rgba(232, 160, 32, .28);
}
.navbar-vertical .nav-link.active .nav-link-icon .ti {
  color: var(--cng-gold);
}
.navbar-vertical .dropdown-toggle::after {
  opacity: .7;
  margin-inline-start: auto;
}
.navbar-vertical .dropdown-menu {
  background: rgba(8, 20, 40, .55);
  border: 0;
  box-shadow: none;
  padding: .2rem 0 .35rem .55rem;
  margin: 0;
}
.navbar-vertical .dropdown-menu .dropdown-item {
  gap: .5rem;
  border-radius: 9px;
  margin: .12rem 0;
  padding: .48rem .7rem;
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
  font-weight: 600;
}
.navbar-vertical .dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
.navbar-vertical .dropdown-menu .dropdown-item.active,
.navbar-vertical .dropdown-menu .dropdown-item:active {
  background: rgba(232, 160, 32, .2) !important;
  color: #fff !important;
  font-weight: 700;
}
.navbar-vertical .dropdown-menu .dropdown-item.active .ti {
  color: var(--cng-gold);
}
.navbar-vertical .nav-reports > .dropdown-toggle::after {
  display: none;
}
/* Keep Reports submenu always expanded */
.navbar-vertical.navbar-expand-lg .navbar-collapse .nav-item.nav-reports > .dropdown-menu,
.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu.show {
  display: block;
}

/* —— Shared data tables (Employee-style) —— */
.data-card,
.users-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(11, 30, 61, .06);
  overflow: hidden;
  background: #fff;
}
.data-card.is-form {
  overflow: visible;
}
.form-select-tall {
  min-height: 11rem;
  padding-block: .35rem;
}
.expense-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.expense-cat-list .tag-pill {
  margin: 0;
}
.data-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}
.data-search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}
.data-search .ti {
  position: absolute;
  inset-inline-start: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9aabbc;
}
.data-search input {
  padding-inline-start: 2.2rem;
  border-radius: 12px;
  border: 1px solid #d7e0ea;
  background: #f7f9fc;
}
.data-table,
.users-table {
  margin: 0;
}
.data-table thead th,
.users-table thead th {
  background: #f7f9fc;
  color: #7a8aa0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid #e8eef5;
  padding: .95rem 1.15rem;
  white-space: nowrap;
}
html[dir="rtl"] .data-table thead th,
html[dir="rtl"] .users-table thead th {
  letter-spacing: 0;
  text-transform: none;
  font-size: .95rem;
}
.data-table tbody td,
.users-table tbody td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
  color: #2c3a4d;
  display: table-cell;
}
.data-table tbody tr:last-child > td,
.users-table tbody tr:last-child > td { border-bottom: 0; }
.data-table tbody tr:hover > td,
.users-table tbody tr:hover > td { background: #fafbfd; }
.users-table tr.is-disabled .user-name,
.users-table tr.is-disabled .user-email { opacity: .55; }
.user-cell, .person-cell { display: flex; align-items: center; gap: .85rem; }
.user-avatar, .person-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, #1a3560, #2a5a9a);
}
.user-avatar.tone-owner { background: linear-gradient(135deg, #e8a020, #f0b33a); color: #0b1e3d; border-radius: 12px; }
.user-avatar.tone-manager { background: linear-gradient(135deg, #1a3560, #2a5a9a); border-radius: 12px; }
.person-avatar.tone-active { background: linear-gradient(135deg, #148a58, #2dd4a8); }
.person-avatar.tone-left { background: linear-gradient(135deg, #9aa8b8, #c5d0de); color: #3d4f66; }
.person-avatar .ti { font-size: 1.1rem; }
.user-meta, .person-meta { min-width: 0; }
.user-name, .person-name { font-weight: 800; color: var(--cng-navy); line-height: 1.2; }
.user-email, .person-sub { color: #8a99ab; font-size: .86rem; margin-top: .15rem; word-break: break-all; }
.user-role {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 700; color: #5b6b7f;
}
.user-role.role-owner { color: #c48912; }
.user-role.role-manager { color: #2a5a9a; }
.tag-pill {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .55rem; border-radius: 8px;
  background: #f1f4f8; color: #5b6b7f;
  font-size: .78rem; font-weight: 700; margin: .1rem;
}
.users-btn, .data-btn {
  background: #fff;
  border: 1px solid #d7e0ea;
  color: #3d4f66;
  font-weight: 600;
  border-radius: 10px;
  padding: .35rem .7rem;
}
.users-btn:hover, .data-btn:hover { background: #f7f9fc; color: var(--cng-navy); }
.user-edit-panel {
  background: #f7f9fc;
  border-top: 1px solid #e8eef5;
  padding: 1.1rem 1.15rem 1.25rem;
}
.collapse-row > td { background: transparent; }
.page-head-sub { color: #8a99ab; font-size: .92rem; margin-top: .2rem; }

/* —— Live dashboard (owner) —— */
.live-dash .card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(11, 30, 61, .06);
}
.live-hero {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: .55rem;
  flex-wrap: wrap;
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  color: var(--cng-navy);
  border: 0;
  border-radius: 0;
  padding: 0 0 .35rem;
  position: relative;
  overflow: visible;
  min-height: 0;
  box-shadow: none;
}
.live-hero::before,
.live-hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
html[dir="rtl"] .live-hero::before { right: auto; left: -40px; }
.live-hero-copy, .live-hero-status, .live-hero-links { position: relative; z-index: 1; }
.live-hero-copy {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  flex-wrap: wrap;
  min-width: 0;
}
.live-hero-kicker { display: none; }
.live-hero-title { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--cng-navy); line-height: 1.2; }
.live-hero-sub { margin: 0; color: #6b7c93; font-size: .82rem; }
.live-hero-links {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: stretch;
  gap: .55rem;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none;
  padding: 0;
}
.live-hero-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  min-width: 0;
  min-height: 5.75rem;
  padding: .7rem .35rem .55rem;
  border-radius: 14px;
  border: 1px solid #e4ebf3;
  background: #fff;
  color: var(--cng-navy);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  box-shadow: 0 8px 22px rgba(11,30,61,.05);
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-underline-offset: 0;
  -webkit-text-decoration: none !important;
}
.live-hero-link span {
  display: block;
  max-width: 100%;
}
a.live-hero-link,
a.live-hero-link:link,
a.live-hero-link:visited,
a.live-hero-link:hover,
a.live-hero-link:focus,
a.live-hero-link:focus-visible,
a.live-hero-link:active,
.live-hero-links a.live-hero-link:hover,
.live-dash a.live-hero-link:hover,
a.live-hero-link span,
a.live-hero-link:link span,
a.live-hero-link:visited span,
a.live-hero-link:hover span,
a.live-hero-link:focus span,
a.live-hero-link:focus-visible span,
a.live-hero-link:active span,
a.live-hero-link .ti,
a.live-hero-link:hover .ti {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-underline-offset: 0;
  -webkit-text-decoration: none !important;
}
.live-hero-link:hover, .live-hero-link:focus, .live-hero-link:focus-visible {
  color: var(--cng-navy);
  background: #fff8e8;
  border-color: #f0d59a;
}
.live-hero-link:hover span, .live-hero-link:focus span {
  color: var(--cng-navy);
}
button.live-hero-link { appearance: none; cursor: pointer; font-family: inherit; }
.live-hero-link .ti { font-size: 1.8rem; color: #e8a020; line-height: 1; }
.live-hero-link:hover .ti, .live-hero-link:focus .ti { color: #c48912; }
.live-hero-reports { position: relative; }
.live-reports-menu {
  min-width: 260px;
  padding: .45rem;
  border: 0;
  border-radius: 16px;
  background: #102544;
  box-shadow: 0 18px 40px rgba(11,30,61,.28);
  margin-top: .45rem !important;
}
.live-reports-head {
  padding: .45rem .7rem .35rem;
  color: #f0b33a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html[dir="rtl"] .live-reports-head { letter-spacing: 0; text-transform: none; }
.live-reports-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .65rem;
  border-radius: 11px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 650;
  font-size: .88rem;
}
.live-reports-item:hover {
  background: rgba(232,160,32,.16);
  color: #fff;
}
.live-reports-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(232,160,32,.16);
  color: #f0b33a;
  flex-shrink: 0;
}
.live-hero-status { display: flex; flex-direction: row; align-items: center; gap: .45rem; flex-wrap: wrap; margin-inline-start: auto; }
html[dir="rtl"] .live-hero-status { align-items: center; }
.live-online {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .22rem .7rem;
  font-weight: 700;
  font-size: .82rem;
}
.live-online-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #f07167;
  box-shadow: 0 0 0 4px rgba(240,113,103,.25);
}
.live-online.is-on .live-online-dot {
  background: #2dd4a8;
  box-shadow: 0 0 0 4px rgba(45,212,168,.28);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(45,212,168,.45); }
  70% { box-shadow: 0 0 0 10px rgba(45,212,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,212,168,0); }
}
.live-nozzle-pills { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
html[dir="rtl"] .live-nozzle-pills { justify-content: flex-start; }

.live-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: .25rem 0 .85rem;
}
.live-section-head h3 {
  margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--cng-navy);
  display: inline-flex; align-items: center; gap: .4rem;
}
.live-section-head .ti { color: var(--cng-gold); }

.live-fold {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .95fr);
  gap: 1.15rem 1.4rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.live-fold .live-section-head {
  margin: 0;
}
.live-fold-nozzles,
.live-fold-kpis {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.live-fold-kpis {
  position: sticky;
  top: .75rem;
}
.live-fold-kpis-align {
  visibility: hidden;
  pointer-events: none;
}
.live-nozzle-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.live-nozzle-wrap { min-width: 0; }
.live-nozzle-stack .live-nozzle {
  height: 100%;
  border: 1px solid #e4ebf3;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(11,30,61,.05);
}
.live-lastfill {
  margin-top: .55rem;
  border-radius: 10px;
  box-shadow: none;
  padding: .45rem .65rem .5rem;
  background: #f7f5fb;
  border: 1px solid #eee8f7;
}
.live-lastfill-head {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .2rem;
}
.live-lastfill-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ebe4f7;
  color: #8b7aa8;
  font-size: .75rem;
}
.live-lastfill .live-kpi-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: #9a8db0;
}
.live-lastfill-time {
  font-size: .72rem;
  font-weight: 400;
  color: #8a7a9e;
  line-height: 1.3;
  margin-bottom: .15rem;
}
.live-lastfill-grid {
  display: grid;
  gap: .12rem;
  margin-top: .1rem;
}
.live-lastfill-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
}
.live-lastfill-row span {
  color: #9a8db0;
  font-size: .7rem;
  font-weight: 400;
  min-width: 0;
}
.live-lastfill-row .num {
  color: #6f6288;
  font-size: .72rem;
  font-weight: 400;
  text-align: end;
  word-break: break-word;
}
.live-metric-now strong { font-size: 1.22rem; }
.live-metric-now small { color: #7a8aa0; font-weight: 700; font-size: .8rem; }
.live-metric-muted {
  color: #9aa8b8;
  font-size: .8rem;
  padding: .28rem 0;
}
.live-metric-muted strong {
  color: #8a99ab;
  font-size: .82rem;
  font-weight: 650;
}

@media (max-width: 992px) {
  .live-fold { grid-template-columns: 1fr; }
  .live-fold-kpis { position: static; }
  .live-fold-kpis-align { display: none; }
}
@media (max-width: 640px) {
  .live-nozzle-stack { grid-template-columns: 1fr; }
}

.live-kpi { position: relative; overflow: hidden; }
.live-kpi .card-body { padding: 1.15rem 1.2rem 1rem; position: relative; z-index: 1; }
.live-kpi.tone-green { background: linear-gradient(145deg, #eefbf4 0%, #ffffff 58%); }
.live-kpi.tone-gold { background: linear-gradient(145deg, #fff8e8 0%, #ffffff 58%); }
.live-kpi.tone-blue { background: linear-gradient(145deg, #eef5fd 0%, #ffffff 58%); }
.live-kpi.tone-purple { background: linear-gradient(145deg, #f5f0fc 0%, #ffffff 58%); }
.live-kpi-top {
  display: flex; align-items: center; gap: .65rem; margin-bottom: .7rem;
}
.live-kpi-icon {
  width: 46px; height: 46px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 8px 16px rgba(11,30,61,.08);
}
.live-kpi.tone-green .live-kpi-icon { background: linear-gradient(135deg, #148a58, #2dd4a8); color:#fff; }
.live-kpi.tone-gold .live-kpi-icon { background: linear-gradient(135deg, #e8a020, #f0b33a); color:#0b1e3d; }
.live-shift-nav {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem .75rem 0;
  position: relative;
  z-index: 1;
}
.live-shift-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .08rem;
  padding: .15rem .35rem;
}
.live-shift-title-name {
  font-size: .95rem;
  font-weight: 800;
  color: var(--cng-navy);
  line-height: 1.2;
  max-width: 100%;
}
.live-shift-title-meta {
  font-size: .72rem;
  font-weight: 600;
  color: #8a6b20;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-kpi.tone-green .live-shift-title-meta { color: #1a6b45; }
.live-shift-arrow {
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border: 1px solid #f0d59a;
  background: #fff;
  color: var(--cng-navy);
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.live-shift-arrow:hover { background: #fff8e8; }
.live-kpi.tone-green .live-shift-arrow { border-color: #b7e4cc; }
.live-kpi.tone-green .live-shift-arrow:hover { background: #eefbf4; }
.live-kpi.tone-green .live-kpi-hours { color: #1a6b45; }
html[dir="rtl"] .live-shift-arrow .ti { transform: scaleX(-1); }
@media (max-width: 640px) {
  .live-shift-title-name { font-size: .86rem; }
  .live-shift-title-meta { font-size: .66rem; }
  .live-shift-arrow { width: 2rem; height: 2rem; }
}
.live-kpi.tone-blue .live-kpi-icon { background: linear-gradient(135deg, #2170c4, #5aa2f0); color:#fff; }
.live-kpi.tone-purple .live-kpi-icon { background: linear-gradient(135deg, #7b52d4, #a78bfa); color:#fff; }
.live-kpi-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #6b7c93;
}
.live-kpi-label.is-sentence {
  text-transform: none;
  letter-spacing: 0;
  font-size: .92rem;
  font-weight: 800;
  color: var(--cng-navy);
  line-height: 1.25;
}
.live-kpi-hours {
  display: inline-block;
  margin-inline-start: .4rem;
  color: #8a6b20;
  font-weight: 600;
}
.live-fills {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
}
.live-fills thead th,
.live-fills tbody td {
  display: table-cell !important;
  padding: .8rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f7;
  box-sizing: border-box;
}
.live-fills thead th {
  background: #f7f9fc;
  color: #6b7c93;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: start;
  position: sticky;
  top: 0;
  z-index: 1;
}
.live-fills tbody td {
  color: #2c3a4d;
  text-align: start;
}
.live-fills .live-fills-num {
  text-align: end;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
.live-fills-when { white-space: nowrap; }
.live-fills-clock {
  margin-inline-start: .4rem;
  color: #8a99ab;
  font-size: .86em;
  font-weight: 600;
}
.live-fills .is-hi {
  font-weight: 800;
  color: var(--cng-navy);
}
.live-fills-card,
.live-fills-card .table-responsive {
  overflow: hidden;
  border-radius: 18px;
}
.live-fills tbody tr:last-child > td { border-bottom: 0; }
.live-fills tbody tr:hover > td { background: #fafbfd; }
.live-fills tbody tr:last-child > td:first-child {
  border-end-start-radius: 18px;
}
.live-fills tbody tr:last-child > td:last-child {
  border-end-end-radius: 18px;
}
@media (max-width: 768px) {
  .live-section-head {
    gap: .5rem;
    margin-inline: 0;
  }
  .live-section-head h3 { font-size: .98rem; }
  .live-section-head .data-btn {
    flex-shrink: 0;
    padding: .32rem .6rem;
    font-size: .78rem;
  }
  .live-fills-card,
  .live-fills-card .table-responsive {
    overflow: visible;
  }
  .live-fills thead { display: none !important; }
  .live-fills,
  .live-fills tbody {
    display: block !important;
    width: 100%;
  }
  .live-fills tbody tr {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: .2rem .75rem;
    padding: .85rem .9rem .7rem;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
  }
  .live-fills tbody tr:hover > td { background: transparent; }
  .live-fills tbody tr:last-child { border-bottom: 0; }
  .live-fills tbody td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: .65rem;
    width: auto;
    padding: .22rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: end !important;
    white-space: nowrap;
  }
  .live-fills tbody td::before {
    content: attr(data-label);
    color: #6b7c93;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-align: start;
    flex: 1 1 auto;
    white-space: normal;
  }
  .live-fills tbody td:nth-child(1) {
    grid-column: 1;
    display: block !important;
    text-align: start !important;
    padding: 0 !important;
  }
  .live-fills tbody td:nth-child(1)::before { content: none; }
  .live-fills tbody td:nth-child(2) {
    grid-column: 2;
    justify-self: end;
    padding: 0 !important;
  }
  .live-fills tbody td:nth-child(2)::before { content: none; }
  .live-fills tbody td:nth-child(n+3) {
    grid-column: 1 / -1;
  }
  .live-fills-when { white-space: normal; }
  .live-fills-date { display: block; font-weight: 800; color: var(--cng-navy); }
  .live-fills-clock {
    display: block;
    margin: .1rem 0 0;
    font-size: .78rem;
  }
  .live-fills tbody td[colspan] {
    display: block !important;
    grid-column: 1 / -1;
    text-align: center !important;
  }
  .live-fills tbody td[colspan]::before { content: none; }
}

html[dir="rtl"] .live-kpi-label { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.live-kpi .kpi-value { font-size: 1.7rem; color: var(--cng-navy); margin-bottom: .25rem; }
.live-kpi .kpi-value small { font-size: .85rem; color: #7a8aa0; font-weight: 700; }
.live-kpi-time { font-size: 1.05rem !important; line-height: 1.35; }
.live-kpi-meta {
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
  color: #6b7c93; font-size: .88rem; font-weight: 600;
}
.live-kpi-meta .ti { color: #9aabbc; }
.live-kpi-bar {
  margin-top: .85rem; height: 6px; border-radius: 999px; background: #eef2f7; overflow: hidden;
}
.live-kpi-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #1db87a, #6ee7b7);
}
.live-kpi.tone-gold .live-kpi-bar span { background: linear-gradient(90deg, #e8a020, #f6d27a); }
.live-kpi.tone-blue .live-kpi-bar span { background: linear-gradient(90deg, #2170c4, #7eb6f5); }
.live-kpi.tone-purple .live-kpi-bar span { background: linear-gradient(90deg, #7b52d4, #c4a8ff); }

.live-fill-card {
  background: linear-gradient(160deg, #fff8e8 0%, #fff 55%);
  border: 1px solid rgba(232,160,32,.35) !important;
  box-shadow: 0 12px 28px rgba(232,160,32,.12) !important;
  position: relative; overflow: hidden;
}
.live-fill-card .card-body { position: relative; z-index: 1; }
.live-fill-card .card-illust { color: #e8a020; opacity: .12; }
.live-fill-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.live-fill-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: #fff3dc; color: #c48912;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.live-fill-name { font-weight: 800; color: var(--cng-navy); margin-bottom: .2rem; }
.live-fill-money { color: #6b7c93; font-weight: 600; margin-top: .25rem; }
.live-empty {
  background: #fff; border-radius: 16px; padding: 1.2rem;
  color: #8a99ab; display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 8px 22px rgba(11,30,61,.04);
}

.live-nozzle { transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; background: linear-gradient(160deg, #f7f9fc 0%, #fff 50%); }
.live-nozzle .card-body { position: relative; z-index: 1; }
.live-nozzle:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11,30,61,.1); }
.live-nozzle.is-filling {
  border: 1px solid rgba(232,160,32,.45) !important;
  box-shadow: 0 0 0 3px rgba(232,160,32,.12), 0 14px 32px rgba(232,160,32,.12) !important;
  background: linear-gradient(160deg, #fff8e8 0%, #fff 55%);
}
.live-nozzle-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: .75rem; margin-bottom: .9rem;
}
.live-nozzle-title { display: flex; gap: .65rem; align-items: center; }
.live-nozzle-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, #0b1e3d, #2a5a9a); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 8px 16px rgba(11,30,61,.12);
}
.live-nozzle.is-filling .live-nozzle-icon { background: linear-gradient(135deg, #e8a020, #f0b33a); color: #0b1e3d; }
.live-nozzle-code { font-size: .75rem; color: #8a99ab; font-weight: 700; }
.live-metric {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem 0; border-top: 1px dashed #e4ebf3;
  color: #6b7c93; font-size: .9rem;
}
.live-metric strong { color: var(--cng-navy); font-size: 1rem; }
.live-metric .ti { margin-inline-end: .25rem; color: #a0b0c2; }
.live-nozzle-last {
  margin-top: .65rem; font-size: .8rem; color: #8a99ab;
  display: flex; align-items: center; gap: .35rem;
}

.live-bank { position: relative; overflow: hidden; }
.live-bank .card-body { padding: 1.2rem; position: relative; z-index: 1; }
.live-bank.tone-gold { background: linear-gradient(145deg, #fff8e8 0%, #ffffff 58%); }
.live-bank.tone-blue { background: linear-gradient(145deg, #eef5fd 0%, #ffffff 58%); }
.live-bank.tone-green { background: linear-gradient(145deg, #eefbf4 0%, #ffffff 58%); }
.live-bank-top { display: flex; gap: .7rem; align-items: center; margin-bottom: .75rem; }
.live-bank-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem;
  box-shadow: 0 8px 16px rgba(11,30,61,.08);
}
.live-bank.tone-gold .live-bank-icon { background: linear-gradient(135deg, #e8a020, #f0b33a); color:#0b1e3d; }
.live-bank.tone-blue .live-bank-icon { background: linear-gradient(135deg, #2170c4, #5aa2f0); color:#fff; }
.live-bank.tone-green .live-bank-icon { background: linear-gradient(135deg, #148a58, #2dd4a8); color:#fff; }
.live-bank-name { font-weight: 800; color: var(--cng-navy); }
.live-bank-code { font-size: .75rem; color: #8a99ab; font-weight: 700; }
.live-bank .kpi-value { font-size: 2rem; margin-bottom: .2rem; }
.live-bank-min { color: #6b7c93; font-size: .86rem; font-weight: 600; margin-bottom: .75rem; }
.live-bank-bar {
  height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden;
}
.live-bank-bar span {
  display: block; height: 100%; border-radius: 999px;
  transition: width .4s ease;
}
.live-bank.tone-gold .live-bank-bar span { background: linear-gradient(90deg, #e8a020, #f6d27a); }
.live-bank.tone-blue .live-bank-bar span { background: linear-gradient(90deg, #2170c4, #7eb6f5); }
.live-bank.tone-green .live-bank-bar span { background: linear-gradient(90deg, #1db87a, #6ee7b7); }

@media (max-width: 991px) {
  .live-hero { align-items: stretch; }
  .live-hero-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
  }
  .live-hero-link {
    min-height: 5.1rem;
    font-size: .7rem;
    padding: .55rem .3rem .45rem;
  }
  .live-hero-link .ti { font-size: 1.55rem; }
}

/* —— Trial ended / billing lock —— */
.trial-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(232,160,32,.16), transparent 40%),
    linear-gradient(160deg, #0b1e3d 0%, #16325f 50%, #1f5f9a 100%);
}
.trial-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.trial-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  text-align: center;
}
.trial-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  color: var(--cng-navy);
  margin-bottom: 1rem;
}
.trial-illust {
  width: min(100%, 420px);
  border-radius: 16px;
  margin: 0 auto 1rem;
  display: block;
}
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #fdeaea;
  color: #c0392b;
  font-weight: 800;
  border-radius: 999px;
  padding: .35rem .8rem;
  margin-bottom: .7rem;
}
.trial-title {
  margin: 0 0 .55rem;
  color: var(--cng-navy);
  font-size: 1.55rem;
  font-weight: 800;
}
.trial-text {
  color: #5b6b7f;
  margin: 0 0 .75rem;
  line-height: 1.55;
}
.trial-due {
  color: #6b7c93;
  font-weight: 600;
  margin: 0 0 1rem;
}
.trial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: .85rem;
}
.trial-note {
  color: #8a99ab;
  font-size: .88rem;
  margin: 0;
}

/* —— Settings (Tabler account-style) —— */
.settings-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  min-height: 70vh;
  min-width: 0;
}
.settings-side {
  background: #f3f5f8;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: .85rem .55rem;
  position: sticky;
  top: 1rem;
}
.settings-side-group + .settings-side-group {
  margin-top: 1.1rem;
  padding-top: .85rem;
  border-top: 1px solid #e4eaf2;
}
.settings-side-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a99ab;
  padding: .35rem .75rem .55rem;
}
.settings-side-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .75rem;
  border-radius: 10px;
  color: #3b4a5c;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.settings-side-link i { color: #7b8b9e; font-size: 1.05rem; }
.settings-side-link:hover {
  background: rgba(255,255,255,.7);
  color: var(--cng-navy);
}
.settings-side-link.active {
  background: #fff;
  color: var(--cng-navy);
  box-shadow: 0 1px 2px rgba(15, 35, 70, .06);
}
.settings-side-link.active i { color: var(--cng-gold); }
.settings-panel[hidden] { display: none !important; }
.settings-main {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 1.5rem 1.65rem 1.75rem;
  min-height: 520px;
  min-width: 0;
}
.settings-shift-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
  margin-top: 1rem;
}
.btn-shift-remove {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ead7d7;
  background: #fff;
  color: #c24141;
  border-radius: 8px;
}
.btn-shift-remove:hover {
  background: #fdecec;
  color: #9b1c1c;
}
.settings-shift-table th:last-child,
.settings-shift-table td.settings-shift-actions {
  width: 3rem;
  text-align: center;
  vertical-align: middle;
}
.settings-shift-table [data-shift-end] {
  pointer-events: none;
  background: #f4f6f9;
  color: #3b4a5c;
}
.settings-title {
  margin: 0 0 1.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--cng-navy);
}
.settings-block {
  padding: 1.15rem 0 1.35rem;
  border-bottom: 1px solid #edf1f6;
}
.settings-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.settings-block-title {
  margin: 0 0 .55rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2d3d;
}
.settings-help {
  color: #7b8b9e;
  font-size: .9rem;
  margin: 0 0 .85rem;
  max-width: 52rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.settings-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.settings-profile .cng-illust-inline {
  margin-inline-start: auto;
}
.settings-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0b1e3d, #1f5f9a);
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.settings-profile-name {
  font-weight: 800;
  color: var(--cng-navy);
  font-size: 1.05rem;
}
.settings-profile-sub {
  color: #8a99ab;
  font-size: .9rem;
}
.settings-inline {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  max-width: 560px;
}
.settings-inline .form-control { flex: 1 1 220px; }
.settings-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 1rem 1.15rem;
}
.settings-plan-name {
  font-weight: 800;
  color: var(--cng-navy);
  margin-bottom: .35rem;
}
.settings-plan-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #c48912;
  margin-bottom: .55rem;
}
.settings-plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}
.settings-plan-remain {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  color: var(--cng-navy);
}
.settings-plan-remain .ti { color: var(--cng-gold); }
.settings-lang-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: .75rem;
}
.settings-lang-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1rem;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  text-decoration: none;
  color: #3b4a5c;
  font-weight: 700;
  background: #fff;
}
.settings-lang-card i { font-size: 1.2rem; color: #7b8b9e; }
.settings-lang-card em {
  margin-inline-start: auto;
  font-style: normal;
  font-size: .75rem;
  font-weight: 800;
  color: #2fb344;
  text-transform: uppercase;
}
.settings-lang-card.active {
  border-color: #e8a020;
  background: #fff8eb;
  color: var(--cng-navy);
  box-shadow: 0 0 0 1px rgba(232,160,32,.25);
}
.settings-lang-card.active i { color: var(--cng-gold); }
.theme-urdu .settings-side-label { letter-spacing: 0; }
@media (max-width: 900px) {
  .settings-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .settings-side {
    position: static;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: .65rem;
    min-width: 0;
  }
  .settings-side-group {
    width: 100%;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
  }
  .settings-side-label {
    grid-column: 1 / -1;
    width: auto;
    padding: .15rem .15rem .1rem;
  }
  .settings-side-link {
    background: #fff;
    border: 1px solid #e6ebf2;
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
    padding: .55rem .6rem;
    font-size: .86rem;
  }
  .settings-main {
    padding: 1.15rem .95rem 1.25rem;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
  }
  .settings-title { font-size: 1.28rem; }
  .settings-lang-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cng-topbar-actions { gap: .4rem; }
  .lang-btn { padding: .25rem .48rem; font-size: .75rem; }
  .lang-btn .ti { display: none; }
  .navbar-station-role { display: none; }
  .settings-shift-table thead { display: none; }
  .settings-shift-table,
  .settings-shift-table tbody {
    display: block;
    width: 100%;
  }
  .js-shift-editor .table-responsive {
    overflow: visible;
  }
  .settings-shift-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.35rem;
    gap: .4rem .45rem;
    padding: .7rem 0 .75rem;
    border-bottom: 1px solid #edf1f6;
    align-items: start;
  }
  .settings-shift-table tbody tr:last-child { border-bottom: 0; }
  .settings-shift-table td {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 0 !important;
    border: 0 !important;
    width: auto;
    min-width: 0;
  }
  .settings-shift-table td:first-child { grid-column: 1 / 3; }
  .settings-shift-table td.settings-shift-actions {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    align-self: end;
    align-items: center;
    justify-content: flex-end;
  }
  .settings-shift-table td.settings-shift-actions::before { display: none; }
  .settings-shift-table td.settings-shift-active {
    flex-direction: row;
    align-items: center;
    gap: .45rem;
    min-height: 2.35rem;
  }
  .settings-shift-table td.settings-shift-active input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    flex-shrink: 0;
  }
  .settings-shift-table .form-hint { display: none; }
  .settings-shift-table td::before {
    content: attr(data-label);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a99ab;
    line-height: 1.1;
  }
  html[dir="rtl"] .settings-shift-table td::before {
    letter-spacing: 0;
    text-transform: none;
  }
  .settings-shift-table .form-control {
    width: 100%;
    min-width: 0;
    display: block;
  }
  .settings-shift-actions-bar {
    margin-top: .75rem;
    gap: .5rem;
  }
  .settings-shift-actions-bar .btn {
    flex: 1 1 0;
  }
  .settings-stack-table thead { display: none; }
  .settings-stack-table,
  .settings-stack-table tbody {
    display: block;
    width: 100%;
  }
  .settings-stack-table tbody tr {
    display: block;
    padding: .95rem 0;
    border-bottom: 1px solid #edf1f6;
  }
  .settings-stack-table tbody tr:last-child { border-bottom: 0; }
  .settings-stack-table tbody td {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: .7rem;
    padding: .28rem 0 !important;
    border: 0 !important;
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: end;
  }
  .settings-stack-table tbody td::before {
    content: attr(data-label);
    flex: 0 1 7.5rem;
    text-align: start;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a99ab;
  }
  html[dir="rtl"] .settings-stack-table tbody td::before {
    letter-spacing: 0;
    text-transform: none;
  }
  .settings-stack-table tbody td[colspan] {
    display: block !important;
    text-align: center;
  }
  .settings-stack-table tbody td[colspan]::before { content: none; }
  .settings-salary-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem .7rem;
  }
  .settings-salary-table tbody td:first-child,
  .settings-salary-table tbody td:last-child {
    grid-column: 1 / -1;
  }
  .settings-salary-table tbody td:first-child {
    display: block !important;
    text-align: start;
    padding-bottom: .15rem !important;
  }
  .settings-salary-table tbody td:first-child::before { content: none; }
  .settings-salary-table tbody td:last-child {
    display: block !important;
    text-align: start;
  }
  .person-cell { min-width: 0; }
  .person-name, .person-sub { overflow-wrap: anywhere; }
  .data-toolbar { width: 100%; min-width: 0; }
  .data-search { width: 100%; }
  .data-search input { width: 100%; }
  .settings-inline { max-width: 100%; }
  .settings-inline .form-control { flex: 1 1 auto; max-width: 100%; min-width: 0; }
  .settings-plan-card { align-items: flex-start; }
  .settings-plan-card .btn { width: 100%; justify-content: center; }
}
}

/* —— Super fleet dashboard —— */
.super-hero .mgr-hero-sub { max-width: 40rem; }
.super-station-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(11,30,61,.07);
  height: 100%;
  background: #fff;
}
.super-station-card.tone-green { background: linear-gradient(145deg, #f0fbf5 0%, #ffffff 55%); }
.super-station-card.tone-blue { background: linear-gradient(145deg, #f0f6fd 0%, #ffffff 55%); }
.super-station-card.tone-gold { background: linear-gradient(145deg, #fffaf0 0%, #ffffff 55%); }
.super-station-card.tone-purple { background: linear-gradient(145deg, #f6f2fc 0%, #ffffff 55%); }
.super-station-card .card-body { position: relative; z-index: 1; padding: 1.15rem 1.2rem 1.05rem; }
.super-station-card .card-illust { font-size: 6.5rem; opacity: .07; }
.super-station-top {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .95rem;
}
.super-station-name {
  font-weight: 800;
  color: var(--cng-navy);
  font-size: 1.08rem;
}
.super-station-code {
  color: #8a99ab;
  font-size: .88rem;
  margin-top: .15rem;
}
.super-station-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem .75rem;
  margin-bottom: .85rem;
}
.super-station-kpis .label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8a99ab;
  font-weight: 700;
  margin-bottom: .1rem;
}
html[dir="rtl"] .super-station-kpis .label { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.super-station-kpis strong {
  color: var(--cng-navy);
  font-size: .98rem;
}
.super-station-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  color: #6b7c93;
  font-size: .88rem;
  margin-bottom: .95rem;
}
.super-station-meta .ti { color: var(--cng-gold); }
.super-station-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.chart-card {
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(11,30,61,.05);
  overflow: hidden;
}
.chart-card .card-header {
  background: #fff;
  border-bottom: 1px solid #edf1f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .85rem 1.1rem;
}
.chart-card .card-title {
  margin: 0;
  font-size: .98rem;
  font-weight: 700;
  color: var(--cng-navy);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.chart-card .card-body { padding: .5rem .75rem .85rem; }

/* —— Punch form sections —— */
.punch-section {
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(11,30,61,.05);
}
.punch-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  padding: 1rem 1.2rem .85rem;
  background: #f7f9fc;
  border-bottom: 1px solid #edf1f6;
}
.punch-section-head > div:first-child {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.punch-section-head.tone-gold { background: linear-gradient(90deg, #fff8eb, #f7f9fc); }
.punch-section-head.tone-green { background: linear-gradient(90deg, #eefbf4, #f7f9fc); }
.punch-section-head.tone-blue { background: linear-gradient(90deg, #eef5fd, #f7f9fc); }
.punch-step {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cng-navy); color: #fff;
  font-size: .82rem; font-weight: 800; flex-shrink: 0;
}
.punch-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cng-navy);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.punch-section-title .ti { color: var(--cng-gold); }
.punch-section-help {
  margin: 0;
  color: #7b8b9e;
  font-size: .9rem;
  max-width: 28rem;
}
.punch-reading-grid { display: flex; flex-direction: column; gap: .85rem; }
.punch-reading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, .8fr);
  gap: .85rem 1rem;
  align-items: center;
  padding: .75rem .85rem;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  background: #fff;
}
.punch-reading-name { font-weight: 700; color: var(--cng-navy); }
.punch-reading-live {
  margin-top: .25rem;
  color: #7b8b9e;
  font-size: .86rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
}
.punch-actions {
  position: sticky;
  bottom: .75rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.94);
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(11,30,61,.12);
  backdrop-filter: blur(8px);
}
.punch-actions-main { display: flex; flex-wrap: wrap; gap: .55rem; }
@media (max-width: 768px) {
  .punch-reading-row { grid-template-columns: 1fr; }
  .punch-actions { position: static; }
  .punch-actions-main { width: 100%; }
  .punch-actions-main .btn { flex: 1 1 auto; }
}
.change-log-table .log-old {
  color: #8a99ab;
  text-decoration: line-through;
}
.change-log-table .log-new {
  font-weight: 700;
  color: var(--cng-navy);
}
.audit-feed-table .log-old {
  color: #8a99ab;
  text-decoration: line-through;
}
.audit-feed-table .log-new {
  font-weight: 700;
  color: var(--cng-navy);
}
.audit-kind {
  font-weight: 600;
}
.table-tracker .tracker-ua,
.table-tracker .tracker-path {
  max-width: 14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .78rem;
  color: #5b6b7c;
}
.emp-images-block {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e6edf5;
}
.emp-images-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cng-navy);
  margin: 0 0 .35rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.emp-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .85rem;
  margin: .85rem 0 1rem;
}
.emp-image-card {
  border: 1px solid #dce5ef;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.emp-image-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f3f6fa;
}
.emp-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.emp-image-meta {
  padding: .55rem .65rem .7rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.emp-image-remove {
  font-size: .8rem;
  color: #6b7c93;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
}
.emp-image-rows {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: .85rem;
}
.emp-image-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: .75rem;
  align-items: end;
  padding: .85rem;
  border: 1px dashed #cfd9e6;
  border-radius: 12px;
  background: #f9fbfd;
}
.emp-image-row .form-label { margin-bottom: .3rem; }
.emp-image-row-remove { height: 38px; }
@media (max-width: 768px) {
  .emp-image-row { grid-template-columns: 1fr; }
  .emp-image-row-remove { width: 100%; }
}

