/*
 * VOOPS Rental Operations UI
 * Tasarım katmanı: mevcut PHP/SQL işleyişine dokunmadan yönetim arayüzünü modernleştirir.
 * 2026-09-28 / v29 - fixed topbar left lock
 */
:root {
  --voops-primary: #2563eb;
  --voops-primary-dark: #1d4ed8;
  --voops-primary-soft: rgba(37, 99, 235, .10);
  --voops-accent: #0f766e;
  --voops-sidebar: #0b1220;
  --voops-sidebar-2: #101a2e;
  --voops-bg: #f5f7fb;
  --voops-surface: #ffffff;
  --voops-surface-2: #f8fafc;
  --voops-border: #e5eaf1;
  --voops-border-strong: #d6dde8;
  --voops-text: #172033;
  --voops-muted: #6b778c;
  --voops-success: #16835d;
  --voops-warning: #b7791f;
  --voops-danger: #c53b45;
  --voops-info: #1677a5;
  --voops-radius: 16px;
  --voops-radius-sm: 11px;
  --voops-shadow: 0 8px 28px rgba(21, 35, 58, .07);
  --voops-shadow-sm: 0 3px 14px rgba(21, 35, 58, .055);
}

html,
body {
  min-height: 100%;
  background: var(--voops-bg) !important;
  color: var(--voops-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

a {
  text-underline-offset: 2px;
}

.min-w-0 { min-width: 0 !important; }

/* ---------- Layout ---------- */
.layout-wrapper,
.layout-container,
.layout-page,
.content-wrapper {
  min-width: 0;
}

.layout-page {
  background: var(--voops-bg);
}

.container-xxl,
.container-fluid {
  --bs-gutter-x: 1.75rem;
}

.container-p-y {
  padding-top: 1.4rem !important;
  padding-bottom: 1.75rem !important;
}

.content-wrapper > .d-flex,
.content-wrapper > .d-flex > main,
.content-wrapper > main {
  width: 100%;
  min-width: 0;
}

/* Tüm yönetim ekranlarında aynı geniş çalışma alanı. Bootstrap container-xxl sınırı kaldırılır. */
.layout-page .content-wrapper > .container-xxl,
.layout-page .content-wrapper > .container-xl,
.layout-page .content-wrapper > .container-lg,
.layout-page .content-wrapper > .container-md,
.layout-page .content-wrapper > .container-sm,
.layout-page .content-wrapper > .container-fluid,
.content-footer > .container-xxl {
  width: 100% !important;
  max-width: none !important;
  max-inline-size: none !important;
}

.layout-page .content-wrapper > .container-xxl,
.layout-page .content-wrapper > .container-xl,
.layout-page .content-wrapper > .container-lg,
.layout-page .content-wrapper > .container-md,
.layout-page .content-wrapper > .container-sm,
.layout-page .content-wrapper > .container-fluid {
  --bs-gutter-x: 2rem;
}

.content-wrapper main.p-4 {
  padding: 1rem !important;
}

/* Eski ekranlarda ana container içine eklenen ikinci dar container'ı da tam genişlikte tutar. */
.layout-page .content-wrapper > .container-xxl > .container,
.layout-page .content-wrapper > .container-fluid > .container,
.layout-page .content-wrapper > .container-xl > .container {
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* KGM vb. eski ekranlarda bulunan dar ana kart sınırlamasını panel içinde kaldırır. */
.layout-page .content-wrapper .main-card {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Yeni navbar yüksekliği, eski template'in 64px sabit ofsetinden daha büyük. */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 90px !important;
}

/* Header ve sayfa içerikleri büyük ekranlarda 1440px ile sınırlandırılmaz. */
.voops-topbar.layout-navbar.container-xxl {
  max-width: none !important;
  max-inline-size: none !important;
}

/* Header ile ilk içerik bloğu arasında her sayfada aynı güvenli boşluk. */
.layout-page .content-wrapper > .container-p-y {
  padding-top: 1.1rem !important;
  padding-bottom: 1.5rem !important;
}

.row > * {
  min-width: 0;
}

/* ---------- Sidebar ---------- */
.voops-sidebar.layout-menu {
  background:
    radial-gradient(circle at 15% -10%, rgba(37, 99, 235, .22), transparent 32%),
    linear-gradient(180deg, var(--voops-sidebar-2) 0%, var(--voops-sidebar) 100%) !important;
  color: rgba(255,255,255,.78);
  border-right: 0 !important;
  box-shadow: 8px 0 30px rgba(5, 11, 22, .12);
}

.voops-brand {
  height: 78px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.voops-brand-link {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #fff !important;
}

.voops-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(37,99,235,.28);
}

.voops-brand-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  margin-left: 11px;
  line-height: 1.1;
  overflow: hidden;
}

.voops-brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: .045em;
  color: #fff;
}

.voops-brand-copy small {
  margin-top: 5px;
  color: rgba(255,255,255,.48);
  font-size: .68rem;
  letter-spacing: .025em;
  white-space: nowrap;
}

.voops-menu-collapse {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  flex: 0 0 34px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  color: rgba(255,255,255,.48) !important;
}

/* Template scroll gölgesi açık temanın beyaz bandını menünün üzerine taşımamalı. */
.voops-sidebar .menu-inner-shadow {
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.voops-sidebar-status {
  margin: 14px 14px 8px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.045);
  border-radius: 12px;
}

.voops-sidebar-status > div,
.voops-sidebar-footer > div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.voops-sidebar-status strong,
.voops-sidebar-footer strong {
  color: rgba(255,255,255,.86);
  font-size: .74rem;
  font-weight: 650;
}

.voops-sidebar-status small,
.voops-sidebar-footer small {
  color: rgba(255,255,255,.42);
  font-size: .68rem;
  margin-top: 2px;
}

.voops-live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52,211,153,.11);
}

.voops-sidebar .menu-inner {
  padding-left: 10px !important;
  padding-right: 10px !important;
  padding-bottom: 98px !important;
}

.voops-sidebar .menu-header {
  margin: 20px 9px 7px !important;
  padding: 0 !important;
}

.voops-sidebar .menu-header-text {
  color: rgba(255,255,255,.29) !important;
  font-size: .61rem !important;
  font-weight: 750 !important;
  letter-spacing: .105em;
}

.voops-sidebar .menu-item {
  margin: 2px 0;
}

.voops-sidebar .menu-inner .menu-link {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px !important;
  color: rgba(255,255,255,.67) !important;
  font-weight: 520;
  font-size: .86rem;
  line-height: 1.28;
  white-space: normal;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.voops-sidebar .menu-inner .menu-link > div {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.28;
}

.voops-sidebar .menu-inner .menu-link.menu-toggle::after {
  margin-left: auto;
  flex: 0 0 auto;
  color: rgba(255,255,255,.38);
}

.voops-sidebar .menu-inner .menu-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.065) !important;
  transform: translateX(1px);
}

.voops-sidebar .menu-icon,
.voops-sidebar .menu-link > svg {
  width: 20px !important;
  height: 20px !important;
  margin-right: 11px !important;
  flex: 0 0 20px;
  color: rgba(255,255,255,.56);
}

.voops-sidebar .menu-item.active > .menu-link,
.voops-sidebar .menu-item.active.open > .menu-link {
  background: linear-gradient(90deg, rgba(37,99,235,.28), rgba(37,99,235,.10)) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 #60a5fa;
}

.voops-sidebar .menu-item.active > .menu-link .menu-icon,
.voops-sidebar .menu-item.active.open > .menu-link .menu-icon {
  color: #8bb7ff !important;
}

.voops-sidebar .menu-sub {
  margin-top: 4px;
  margin-left: 10px;
  padding-left: 14px !important;
  border-left: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

.voops-sidebar .menu-sub > .menu-item > .menu-link::before,
.voops-sidebar .menu-sub .menu-sub > .menu-item > .menu-link::before {
  display: none !important;
  content: none !important;
}

.voops-sidebar .menu-sub .menu-link {
  min-height: 38px;
  padding: 8px 10px !important;
  padding-inline-start: 10px !important;
  font-size: .79rem;
  color: rgba(255,255,255,.52) !important;
}

.voops-sidebar .menu-sub .menu-item.active > .menu-link {
  background: transparent !important;
  box-shadow: none !important;
  color: #8bb7ff !important;
  font-weight: 650;
}

.voops-sidebar .menu-inner .menu-item.open > .menu-link.menu-toggle::after,
.voops-sidebar .menu-inner .menu-item.active > .menu-link.menu-toggle::after {
  color: #8bb7ff;
}

.voops-sidebar-footer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  min-height: 64px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(8px);
  border-radius: 12px;
}

.voops-sidebar-footer-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(96,165,250,.12);
  color: #8bb7ff;
}

.layout-menu-collapsed .voops-brand-copy,
.layout-menu-collapsed .voops-sidebar-status,
.layout-menu-collapsed .voops-sidebar-footer {
  display: none !important;
}

.voops-mobile-menu-button {
  width: 46px;
  height: 46px;
  display: grid !important;
  place-items: center;
  border-radius: 14px !important;
  color: #fff !important;
  background: var(--voops-sidebar) !important;
  box-shadow: 0 8px 20px rgba(11,18,32,.22);
}

/* ---------- Topbar ---------- */
.voops-topbar.layout-navbar {
  min-height: 76px;
  margin-top: 14px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(218, 225, 235, .86) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: var(--voops-shadow-sm) !important;
  backdrop-filter: blur(14px);
}

.voops-page-heading {
  min-width: 210px;
  line-height: 1.1;
}

.voops-page-kicker {
  margin-bottom: 4px;
  color: #94a0b3;
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .12em;
}

.voops-page-heading h5 {
  color: var(--voops-text);
  font-size: .96rem;
  font-weight: 700;
}

.voops-page-heading small {
  display: block;
  margin-top: 4px;
  max-width: 320px;
  color: var(--voops-muted);
  font-size: .7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voops-system-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid #dcebe4;
  border-radius: 999px;
  background: #f2fbf6;
  color: #17734f;
  font-size: .58rem;
  font-weight: 700;
}

.voops-system-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22a06b;
}

.voops-global-search {
  position: relative;
  width: min(390px, 32vw);
  height: 42px;
  padding: 0 10px 0 13px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--voops-border);
  border-radius: 11px;
  background: #f8fafc;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.voops-global-search:focus-within {
  border-color: #9bb9f8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.voops-global-search > i {
  color: #8994a6;
}

.voops-global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--voops-text);
  font-size: .79rem;
}

.voops-global-search input::placeholder { color: #a0a9b8; }

.voops-search-shortcut {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
  background: #fff;
  color: #8c97a8;
  font-size: .7rem;
}

.voops-search-results {
  position: absolute;
  z-index: 1095;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--voops-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(21,35,58,.14);
}

.voops-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--voops-text);
}

.voops-search-item:hover,
.voops-search-item.is-active {
  background: #f2f6fd;
  color: var(--voops-primary);
}

.voops-search-item i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--voops-primary-soft);
  color: var(--voops-primary);
}

.voops-search-item span { display: flex; flex-direction: column; min-width: 0; }
.voops-search-item strong { font-size: .76rem; }
.voops-search-item small { color: var(--voops-muted); font-size: .65rem; }
.voops-search-empty { padding: 12px; color: var(--voops-muted); font-size: .76rem; text-align: center; }

.voops-icon-btn {
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--voops-border) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #566277 !important;
}

.voops-icon-btn:hover {
  border-color: #cdd7e5 !important;
  background: #f8fafc !important;
  color: var(--voops-primary) !important;
}

.voops-quick-create {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: var(--voops-primary);
  color: #fff;
  font-size: .76rem;
  font-weight: 650;
  box-shadow: 0 5px 13px rgba(37,99,235,.18);
}

.voops-quick-create:hover,
.voops-quick-create:focus {
  background: var(--voops-primary-dark);
  color: #fff;
}

.voops-action-menu {
  min-width: 270px !important;
}

.voops-action-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.voops-action-menu .dropdown-item > span:last-child {
  display: flex;
  flex-direction: column;
}

.voops-action-menu .dropdown-item strong { font-size: .77rem; font-weight: 650; }
.voops-action-menu .dropdown-item small { color: var(--voops-muted); font-size: .68rem; margin-top: 1px; }
.voops-action-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px; }

.voops-notification-count {
  position: absolute;
  top: -8px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: .55rem;
  font-weight: 750;
}

.voops-notification-menu {
  width: min(390px, calc(100vw - 24px)) !important;
  overflow: hidden;
}

.voops-notification-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--voops-primary-soft);
  color: var(--voops-primary);
}

.voops-notification-icon.is-warning {
  background: rgba(183,121,31,.11);
  color: var(--voops-warning);
}

.voops-notification-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.voops-user-trigger {
  min-height: 42px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 2px 7px 2px 3px !important;
  border: 1px solid transparent;
  border-radius: 12px;
}

.voops-user-trigger:hover { background: #f7f9fc; border-color: var(--voops-border); }

.voops-user-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
  font-size: .82rem;
  font-weight: 800;
}

.voops-user-avatar.sm { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
.voops-user-meta { flex-direction: column; line-height: 1.05; min-width: 70px; }
.voops-user-meta strong { color: var(--voops-text); font-size: .72rem; font-weight: 650; max-width: 95px; overflow: hidden; text-overflow: ellipsis; }
.voops-user-meta small { margin-top: 4px; color: var(--voops-muted); font-size: .62rem; }
.voops-user-menu { min-width: 225px !important; }

/* ---------- Content typography ---------- */
.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
  color: var(--voops-text);
  letter-spacing: -.01em;
}

.content-wrapper h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 730;
}

.content-wrapper h4 { font-weight: 700; }
.content-wrapper h5 { font-weight: 680; }
.text-muted,
.text-body-secondary,
.compact-muted { color: var(--voops-muted) !important; }

/* ---------- Cards ---------- */
.card,
.page-hero,
.detail-box {
  border-color: var(--voops-border) !important;
  border-radius: var(--voops-radius) !important;
  background: var(--voops-surface);
  box-shadow: var(--voops-shadow-sm);
}

.card {
  border: 1px solid var(--voops-border);
  overflow: visible;
}

.card-header {
  min-height: 58px;
  padding: 1rem 1.15rem;
  border-bottom-color: #edf0f5 !important;
  background: transparent !important;
}

.card-body { padding: 1.15rem; }
.card-footer { border-top-color: #edf0f5 !important; background: transparent; }

.card.border,
.card.border-0 {
  border: 1px solid var(--voops-border) !important;
}

.page-hero {
  padding: 1.15rem !important;
  border: 1px solid var(--voops-border) !important;
}

.kpi-card,
.metric-card,
.section-card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.kpi-card:hover,
.metric-card:hover {
  transform: translateY(-1px);
  border-color: #d8e1ed !important;
  box-shadow: var(--voops-shadow);
}

.kpi-value,
.display-6,
.fs-3.fw-bold,
.fs-4.fw-bold {
  letter-spacing: -.035em;
}

/* Dashboard legacy classes restyled */
.dashboard-hero {
  position: relative;
  overflow: hidden !important;
  border: 1px solid #dce6f4 !important;
  background:
    radial-gradient(circle at 100% 0, rgba(37,99,235,.10), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 100%) !important;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -85px;
  top: -110px;
  border: 32px solid rgba(37,99,235,.035);
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-hero .hero-stat {
  border: 1px solid #e3e9f1 !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: none !important;
}

.quick-link {
  border: 1px solid var(--voops-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.quick-link:hover {
  border-color: #bdd0f7 !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}

.metric-card,
.section-card { box-shadow: var(--voops-shadow-sm) !important; }
.metric-icon { border-radius: 12px !important; }

/* ---------- Forms ---------- */
.form-label {
  margin-bottom: .42rem;
  color: #48556a;
  font-size: .75rem;
  font-weight: 650;
}

.form-control,
.form-select,
.input-group-text,
.form-check-input {
  border-color: var(--voops-border-strong);
}

.form-control,
.form-select {
  min-height: 43px;
  border-radius: var(--voops-radius-sm) !important;
  background-color: #fff;
  color: var(--voops-text);
  font-size: .82rem;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #8eb0f6 !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.08) !important;
}

textarea.form-control { min-height: 110px; }
.input-group > .form-control,
.input-group > .form-select,
.input-group > .input-group-text { border-radius: 0 !important; }
.input-group > :first-child { border-top-left-radius: var(--voops-radius-sm) !important; border-bottom-left-radius: var(--voops-radius-sm) !important; }
.input-group > :last-child { border-top-right-radius: var(--voops-radius-sm) !important; border-bottom-right-radius: var(--voops-radius-sm) !important; }
.form-floating > .form-control,
.form-floating > .form-select { min-height: 54px; }
.form-floating > label,
.form-floating-outline > label {
  max-width: calc(100% - 1.25rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.input-group.input-group-merge {
  flex-wrap: nowrap;
}
.form-text { color: #8490a3; }

.card-body .d-flex.align-items-start.align-items-sm-center.gap-6 {
  flex-wrap: wrap;
}

.card-body .d-flex.align-items-start.align-items-sm-center.gap-6 .button-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.card-body .d-flex.align-items-start.align-items-sm-center.gap-6 .button-wrapper > div {
  flex: 1 1 100%;
  color: var(--voops-muted);
  font-size: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  min-height: 38px;
  border-radius: 10px !important;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: -.005em;
  box-shadow: none !important;
}

.btn-sm { min-height: 32px; border-radius: 8px !important; font-size: .71rem; }
.btn-lg { min-height: 46px; border-radius: 12px !important; }
.btn-primary { background: var(--voops-primary) !important; border-color: var(--voops-primary) !important; }
.btn-primary:hover { background: var(--voops-primary-dark) !important; border-color: var(--voops-primary-dark) !important; }
.btn-success { background: #17835d !important; border-color: #17835d !important; }
.btn-danger { background: #c84650 !important; border-color: #c84650 !important; }
.btn-warning { background: #d7962d !important; border-color: #d7962d !important; color: #fff !important; }
.btn-info { background: #247da5 !important; border-color: #247da5 !important; }
.btn-outline-primary { color: var(--voops-primary) !important; border-color: #a9c0f2 !important; }
.btn-outline-primary:hover { color: #fff !important; background: var(--voops-primary) !important; border-color: var(--voops-primary) !important; }
.btn-outline-secondary { border-color: #d1d8e3 !important; color: #5e6a7d !important; }

/* ---------- Tables ---------- */
.table-responsive {
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: #c8d0dc transparent;
}

.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
  color: #334056;
  font-size: .79rem;
}

.table > :not(caption) > * > * {
  padding: .86rem .9rem;
  border-bottom-color: #edf0f4;
  vertical-align: middle;
}

.table thead,
.table thead.table-dark,
.table thead.table-light,
.table-dark,
.table-light {
  --bs-table-bg: #f8fafc !important;
  --bs-table-color: #68758a !important;
  color: #68758a !important;
}

.table thead th,
.table-dark th,
.table-light th {
  border-top: 0;
  border-bottom: 1px solid #e7ebf1 !important;
  background: #f8fafc !important;
  color: #68758a !important;
  font-size: .66rem !important;
  font-weight: 760 !important;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(248,250,252,.72);
  color: inherit;
}

.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: #f7f9fc;
  color: inherit;
}

.table-bordered > :not(caption) > * { border-width: 0; }
.table-bordered > :not(caption) > * > * { border-width: 0 0 1px 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table img { border-radius: 9px; object-fit: cover; }

/* ---------- Badges / alerts ---------- */
.badge,
.status-pill,
.dashboard-chip,
.chip {
  border-radius: 999px !important;
  font-weight: 650 !important;
  letter-spacing: 0;
}

.badge { padding: .38rem .55rem; font-size: .64rem; }
.bg-label-primary { background: rgba(37,99,235,.10) !important; color: #275ecb !important; }
.bg-label-success { background: rgba(22,131,93,.10) !important; color: #167454 !important; }
.bg-label-warning { background: rgba(183,121,31,.12) !important; color: #9a671e !important; }
.bg-label-danger { background: rgba(197,59,69,.10) !important; color: #b23842 !important; }
.bg-label-info { background: rgba(22,119,165,.10) !important; color: #146b96 !important; }
.bg-label-secondary { background: #eef1f5 !important; color: #657185 !important; }

.alert {
  border: 1px solid transparent;
  border-radius: 12px !important;
  font-size: .79rem;
  box-shadow: none;
}
.alert-success { background: #f1faf6 !important; border-color: #d9eee5 !important; color: #176849 !important; }
.alert-warning { background: #fff8ec !important; border-color: #f3e5c6 !important; color: #8c611f !important; }
.alert-danger { background: #fff4f5 !important; border-color: #efd8db !important; color: #a33b44 !important; }
.alert-info { background: #f1f8fb !important; border-color: #d7eaf2 !important; color: #216a89 !important; }
.alert-secondary { background: #f7f8fa !important; border-color: #e6e9ee !important; color: #5f6978 !important; }

/* ---------- Dropdowns / modal ---------- */
.dropdown-menu {
  padding: 6px;
  border: 1px solid var(--voops-border) !important;
  border-radius: 12px !important;
  background: #fff;
  box-shadow: 0 16px 36px rgba(24,37,58,.13) !important;
}

.dropdown-item {
  padding: .56rem .65rem;
  border-radius: 8px;
  font-size: .78rem;
}
.dropdown-item:hover,
.dropdown-item:focus { background: #f3f6fa; color: var(--voops-text); }
.dropdown-header { color: #8792a5; font-size: .65rem; font-weight: 760; letter-spacing: .055em; text-transform: uppercase; }

.modal-content {
  overflow: hidden;
  border: 1px solid var(--voops-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(16,27,45,.22) !important;
}
.modal-header { padding: 1rem 1.15rem; border-bottom-color: #edf0f4; }
.modal-body { padding: 1.15rem; }
.modal-footer { padding: .9rem 1.15rem; border-top-color: #edf0f4; }

/* ---------- Pagination / tabs ---------- */
.pagination { gap: 4px; }
.page-link {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--voops-border) !important;
  border-radius: 8px !important;
  color: #59677a;
  font-size: .73rem;
}
.page-item.active .page-link { background: var(--voops-primary) !important; border-color: var(--voops-primary) !important; }
.nav-tabs { border-bottom-color: var(--voops-border); }
.nav-tabs .nav-link { border-radius: 9px 9px 0 0 !important; font-weight: 600; }

/* ---------- Footer / floating ---------- */
.content-footer {
  margin-top: 8px;
  background: transparent !important;
  color: #8a95a7;
  font-size: .71rem;
}
.content-footer .footer-container {
  border-top: 1px solid #e5e9f0;
}
.footer-link { color: #64748b !important; }

.buy-now {
  right: 20px !important;
  bottom: 18px !important;
}
.buy-now .btn-buy-now {
  min-height: 40px;
  border-radius: 12px !important;
  background: #152238 !important;
  border-color: #152238 !important;
  font-size: .72rem;
  box-shadow: 0 10px 26px rgba(21,34,56,.18) !important;
}

/* ---------- Login ---------- */
.voops-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(37,99,235,.12), transparent 30%),
    linear-gradient(145deg, #eef3fa 0%, #f8fafc 46%, #edf3fa 100%) !important;
}

.voops-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}

.voops-login-visual {
  position: relative;
  overflow: hidden;
  padding: 54px clamp(36px, 6vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(155deg, rgba(10,18,32,.96), rgba(15,30,56,.96)),
    var(--voops-sidebar);
  color: #fff;
}

.voops-login-visual::before,
.voops-login-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.voops-login-visual::before { width: 460px; height: 460px; right: -210px; top: -210px; border: 72px solid rgba(96,165,250,.06); }
.voops-login-visual::after { width: 330px; height: 330px; left: -165px; bottom: -165px; border: 52px solid rgba(45,212,191,.04); }

.voops-login-brand,
.voops-login-copy,
.voops-login-features { position: relative; z-index: 1; }
.voops-login-brand { display: flex; align-items: center; gap: 12px; }
.voops-login-brand .voops-brand-mark { width: 46px; height: 46px; flex-basis: 46px; }
.voops-login-brand strong { display: block; color: #fff; font-size: 1.05rem; letter-spacing: .04em; }
.voops-login-brand small { display: block; margin-top: 3px; color: rgba(255,255,255,.45); font-size: .7rem; }
.voops-login-copy { max-width: 650px; margin: auto 0; }
.voops-login-copy .eyebrow { margin-bottom: 16px; color: #86b2ff; font-size: .69rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.voops-login-copy h1 { max-width: 640px; margin: 0; color: #fff; font-size: clamp(2.1rem, 4vw, 4.1rem); line-height: 1.03; letter-spacing: -.055em; font-weight: 720; }
.voops-login-copy p { max-width: 560px; margin: 22px 0 0; color: rgba(255,255,255,.58); font-size: .93rem; line-height: 1.7; }
.voops-login-features { display: flex; flex-wrap: wrap; gap: 10px; }
.voops-login-feature { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.65); font-size: .7rem; }
.voops-login-feature i { color: #7dd3fc; }

.voops-login-form-wrap {
  padding: 48px clamp(28px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.voops-login-form {
  width: min(100%, 430px);
}

.voops-login-mobile-brand { display: none; margin-bottom: 28px; align-items: center; gap: 10px; }
.voops-login-form .login-kicker { color: var(--voops-primary); font-size: .68rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.voops-login-form h2 { margin: 8px 0 8px; font-size: 1.75rem; font-weight: 740; letter-spacing: -.035em; }
.voops-login-form .login-copy { margin-bottom: 28px; color: var(--voops-muted); font-size: .8rem; line-height: 1.6; }
.voops-login-card { padding: 24px; border: 1px solid var(--voops-border); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: var(--voops-shadow); backdrop-filter: blur(10px); }
.voops-login-card .form-control { min-height: 50px; background: #fff; }
.voops-login-card .input-group-text { background: #fff; }
.voops-login-security { margin-top: 16px; display: flex; align-items: center; gap: 8px; color: #8290a3; font-size: .67rem; }
.voops-login-security i { color: #16835d; }
.voops-login-error { margin-bottom: 16px; padding: 10px 12px; border: 1px solid #efd7da; border-radius: 10px; background: #fff4f5; color: #a43f48; font-size: .75rem; }

/* ---------- Dark mode ---------- */
[data-bs-theme="dark"] {
  --voops-bg: #0e1625;
  --voops-surface: #121c2d;
  --voops-surface-2: #162235;
  --voops-border: #243249;
  --voops-border-strong: #304058;
  --voops-text: #e8edf6;
  --voops-muted: #93a0b4;
}

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] .layout-page { background: var(--voops-bg) !important; }
[data-bs-theme="dark"] .voops-topbar.layout-navbar { background: rgba(18,28,45,.94) !important; border-color: var(--voops-border) !important; }
[data-bs-theme="dark"] .voops-page-heading h5,
[data-bs-theme="dark"] .voops-user-meta strong { color: var(--voops-text); }
[data-bs-theme="dark"] .voops-global-search,
[data-bs-theme="dark"] .voops-icon-btn,
[data-bs-theme="dark"] .voops-search-shortcut,
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text { background: #101a2a !important; color: var(--voops-text) !important; border-color: var(--voops-border) !important; }
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .page-hero,
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .voops-search-results { background: var(--voops-surface) !important; border-color: var(--voops-border) !important; }
[data-bs-theme="dark"] .table thead th,
[data-bs-theme="dark"] .table-dark th,
[data-bs-theme="dark"] .table-light th { background: #162235 !important; color: #9eabc0 !important; border-color: #27354b !important; }
[data-bs-theme="dark"] .table > :not(caption) > * > * { border-bottom-color: #223047; }
[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * { --bs-table-accent-bg: #162235; }
[data-bs-theme="dark"] .dashboard-hero { background: linear-gradient(145deg, #121c2d, #152237) !important; border-color: #263651 !important; }
[data-bs-theme="dark"] .dashboard-hero .hero-stat,
[data-bs-theme="dark"] .quick-link { background: #162235 !important; border-color: #2a3a53 !important; }
[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus,
[data-bs-theme="dark"] .voops-user-trigger:hover,
[data-bs-theme="dark"] .voops-search-item:hover { background: #19263a; }

/* Eski <main class="p-4"> sayfalarında da navbar altı boşluğu container sayfalarıyla eşitlenir. */
.layout-navbar-fixed .content-wrapper > .d-flex > main.voops-page-main,
.layout-navbar-fixed .content-wrapper > main.voops-page-main {
  padding-top: 1.1rem !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1399.98px) {
  .voops-global-search { width: min(320px, 27vw); }
  .voops-page-heading small { max-width: 240px; }
}

@media (max-width: 1199.98px) {
  .voops-sidebar.layout-menu {
    box-shadow: 16px 0 46px rgba(4,10,20,.26) !important;
  }
  .voops-topbar.layout-navbar {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
  .layout-page .content-wrapper > .container-xxl,
  .layout-page .content-wrapper > .container-fluid {
    --bs-gutter-x: 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .container-xxl,
  .container-fluid { --bs-gutter-x: 1.1rem; }
  .container-p-y { padding-top: 1rem !important; padding-bottom: 1.25rem !important; }
  .content-wrapper main.p-4 { padding: 1rem !important; }
  .card-header { padding: .9rem 1rem; }
  .card-body { padding: 1rem; }
  .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-responsive > .table { min-width: 720px; }
  .voops-auto-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
  .voops-auto-table-wrap > .table { min-width: 720px; }
  .dashboard-hero .hero-stat { min-height: auto !important; }
}

@media (max-width: 767.98px) {
  .layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 70px !important;
  }
  .voops-topbar.layout-navbar {
    min-height: 62px;
    margin-top: 8px !important;
    padding: 8px 10px !important;
    border-radius: 13px !important;
  }
  .voops-sidebar .menu-sub {
    margin-left: 6px;
    padding-left: 10px !important;
  }
  .content-wrapper h2 { font-size: 1.15rem; }
  .content-wrapper h4 { font-size: 1.05rem; }
  .page-hero { padding: 1rem !important; }
  .buy-now { right: 12px !important; bottom: 12px !important; }
  .buy-now .btn-buy-now { min-height: 36px; padding: .45rem .65rem; }
  .voops-login-shell { grid-template-columns: 1fr; }
  .voops-login-visual { display: none; }
  .voops-login-form-wrap { min-height: 100vh; padding: 28px 20px; }
  .voops-login-mobile-brand { display: flex; }
  .voops-login-card { padding: 20px; }
}

@media (max-width: 575.98px) {
  .container-xxl,
  .container-fluid { --bs-gutter-x: .85rem; }
  .layout-page .content-wrapper > .container-p-y { padding-top: .85rem !important; padding-bottom: 1rem !important; }
  .content-wrapper main.p-4 { padding: .75rem !important; }
  .card,
  .page-hero,
  .detail-box { border-radius: 13px !important; }
  .card-header { min-height: 52px; padding: .8rem .85rem; }
  .card-body { padding: .85rem; }
  .form-control,
  .form-select { font-size: 16px; /* iOS otomatik zoom'u engeller */ }
  .btn { min-height: 40px; }
  .table > :not(caption) > * > * { padding: .75rem .78rem; }
  .modal-dialog { margin: .55rem; }
  .modal-content { border-radius: 14px !important; }
  .voops-user-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .voops-notification-menu { width: calc(100vw - 18px) !important; }
  .dashboard-hero .card-body { padding: 1rem !important; }
  .dashboard-hero .row.g-4 { --bs-gutter-y: .85rem; --bs-gutter-x: .85rem; }
  .row.g-4 { --bs-gutter-y: .9rem; --bs-gutter-x: .9rem; }
  .row.g-3 { --bs-gutter-y: .75rem; --bs-gutter-x: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Dashboard operation center ---------- */
.voops-dashboard-welcome {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.35rem;
  border: 1px solid #dbe4f0;
  border-radius: 17px;
  background:
    radial-gradient(circle at 92% 20%, rgba(37,99,235,.09), transparent 27%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--voops-shadow-sm);
}
.voops-dashboard-eyebrow {
  margin-bottom: 6px;
  color: #4774ce;
  font-size: .63rem;
  font-weight: 780;
  letter-spacing: .11em;
}
.voops-dashboard-welcome h3 {
  font-size: 1.35rem;
  font-weight: 740;
  letter-spacing: -.035em;
}
.voops-dashboard-welcome p { font-size: .78rem; }
.voops-dashboard-date {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--voops-border);
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  color: #667389;
  font-size: .71rem;
  font-weight: 600;
}
.voops-kpi-tile {
  height: 100%;
  min-height: 108px;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--voops-border);
  border-radius: 14px;
  background: var(--voops-surface);
  color: var(--voops-text);
  box-shadow: var(--voops-shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.voops-kpi-tile:hover {
  color: var(--voops-text);
  transform: translateY(-2px);
  border-color: #ced9e8;
  box-shadow: var(--voops-shadow);
}
.voops-kpi-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eef4ff;
  color: var(--voops-primary);
  font-size: 1.05rem;
}
.voops-kpi-copy { min-width: 0; display: flex; flex-direction: column; }
.voops-kpi-copy small { color: var(--voops-muted); font-size: .66rem; font-weight: 650; white-space: nowrap; }
.voops-kpi-copy strong { margin-top: 2px; color: var(--voops-text); font-size: 1.55rem; line-height: 1; font-weight: 760; letter-spacing: -.04em; }
.voops-kpi-copy em { margin-top: 6px; color: #8b96a7; font-size: .61rem; font-style: normal; white-space: nowrap; }
.voops-kpi-tile.is-danger .voops-kpi-icon { background: rgba(197,59,69,.09); color: var(--voops-danger); }
.voops-kpi-tile.is-warning .voops-kpi-icon { background: rgba(183,121,31,.10); color: var(--voops-warning); }
.voops-kpi-tile.is-success .voops-kpi-icon { background: rgba(22,131,93,.09); color: var(--voops-success); }
.voops-kpi-tile.is-info .voops-kpi-icon { background: rgba(22,119,165,.09); color: var(--voops-info); }
[data-bs-theme="dark"] .voops-dashboard-welcome { background: linear-gradient(135deg, #121c2d, #152237); border-color: var(--voops-border); }
[data-bs-theme="dark"] .voops-dashboard-date { background: #101a2a; }
@media (max-width: 575.98px) {
  .voops-dashboard-welcome { padding: 1rem; border-radius: 14px; }
  .voops-dashboard-welcome h3 { font-size: 1.15rem; }
  .voops-dashboard-date { width: 100%; justify-content: center; }
  .voops-dashboard-welcome .btn { flex: 1 1 auto; }
  .voops-kpi-tile { min-height: 98px; padding: .8rem; gap: 8px; }
  .voops-kpi-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .voops-kpi-copy small, .voops-kpi-copy em { white-space: normal; }
  .voops-kpi-copy strong { font-size: 1.35rem; }
}

/* ---------- 2026-09-28 / Menü hizalama ve ikon stabilizasyonu ----------
   Template CSS/JS yüklendikten sonra menü metninin sağa kaymasını önler.
   İkon boşluğu yalnız gap ile yönetilir; çift margin kaldırıldı. */
.voops-sidebar.layout-menu {
  direction: ltr !important;
  text-align: left !important;
}

.voops-sidebar .menu-inner,
.voops-sidebar .menu-item {
  direction: ltr !important;
  text-align: left !important;
}

.voops-sidebar .menu-inner .menu-link {
  justify-content: flex-start !important;
  text-align: left !important;
  direction: ltr !important;
  column-gap: 10px !important;
}

.voops-sidebar .menu-inner .menu-link > div {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  direction: ltr !important;
}

.voops-sidebar .menu-icon,
.voops-sidebar .menu-link > svg {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  flex: 0 0 20px !important;
  text-align: center !important;
}

.voops-sidebar .menu-inner .menu-link.menu-toggle::after {
  margin-left: auto !important;
  margin-right: 0 !important;
  flex: 0 0 auto !important;
}

.voops-sidebar .menu-header,
.voops-sidebar .menu-header-text {
  text-align: left !important;
  direction: ltr !important;
}

.voops-sidebar .menu-sub {
  direction: ltr !important;
}

.voops-sidebar .menu-sub .menu-link {
  justify-content: flex-start !important;
  text-align: left !important;
}

/* ========================================================================== */
/* v28 - Content left lock / no post-load centering                           */
/* ========================================================================== */
/*
 * Core template containers use margin-inline:auto and the layout engine may
 * animate padding during initialization. VOOPS desktop pages must stay pinned
 * to the left edge of the available workspace from the first paint onward.
 * Navbar/topbar is intentionally excluded from all selectors below.
 */
@media (min-width: 1200px) {
  html[dir="ltr"] .layout-menu-fixed:not(.layout-menu-collapsed) .layout-page,
  html[dir="ltr"] .layout-menu-fixed-offcanvas:not(.layout-menu-collapsed) .layout-page {
    padding-left: var(--bs-menu-width) !important;
    padding-right: 0 !important;
  }

  html[dir="ltr"].layout-menu-fixed.layout-menu-collapsed .layout-page,
  html[dir="ltr"].layout-menu-fixed-offcanvas.layout-menu-collapsed .layout-page {
    padding-left: var(--bs-menu-collapsed-width) !important;
    padding-right: 0 !important;
  }

  /* Never animate the page horizontally during template/bootstrap startup. */
  html.layout-transitioning .layout-page,
  .layout-page {
    transition-property: none !important;
    transition-duration: 0s !important;
  }

  /* Direct page content containers: full width and permanently left pinned. */
  .layout-page .content-wrapper > .container,
  .layout-page .content-wrapper > .container-sm,
  .layout-page .content-wrapper > .container-md,
  .layout-page .content-wrapper > .container-lg,
  .layout-page .content-wrapper > .container-xl,
  .layout-page .content-wrapper > .container-xxl,
  .layout-page .content-wrapper > .container-fluid {
    width: 100% !important;
    max-width: none !important;
    max-inline-size: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;
    text-align: left;
  }

  /* Legacy pages where a main/d-flex shell exists before the Bootstrap container. */
  .layout-page .content-wrapper > main > .container,
  .layout-page .content-wrapper > main > .container-sm,
  .layout-page .content-wrapper > main > .container-md,
  .layout-page .content-wrapper > main > .container-lg,
  .layout-page .content-wrapper > main > .container-xl,
  .layout-page .content-wrapper > main > .container-xxl,
  .layout-page .content-wrapper > main > .container-fluid,
  .layout-page .content-wrapper > .d-flex > main > .container,
  .layout-page .content-wrapper > .d-flex > main > .container-sm,
  .layout-page .content-wrapper > .d-flex > main > .container-md,
  .layout-page .content-wrapper > .d-flex > main > .container-lg,
  .layout-page .content-wrapper > .d-flex > main > .container-xl,
  .layout-page .content-wrapper > .d-flex > main > .container-xxl,
  .layout-page .content-wrapper > .d-flex > main > .container-fluid {
    width: 100% !important;
    max-width: none !important;
    max-inline-size: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;
    text-align: left;
  }

  /* Dashboard hero copy must remain at the left edge; action group stays right. */
  .voops-dashboard-welcome,
  .voops-dashboard-welcome > .d-flex,
  .voops-dashboard-welcome > .d-flex > div:first-child {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }

  .voops-dashboard-welcome > .d-flex {
    width: 100% !important;
    max-width: none !important;
  }
}


/* ========================================================================== */
/* v29 - Fixed desktop topbar left lock / zero post-load horizontal shift     */
/* ========================================================================== */
/*
 * Sneat core positions .navbar-detached with inset-inline:0 and Bootstrap
 * container auto margins. Once the fixed-navbar width is resolved this can
 * visually re-center the header after first paint. VOOPS pins the header to
 * the actual menu edge instead. Only desktop fixed-navbar geometry is touched.
 */
@media (min-width: 1200px) {
  html[dir="ltr"].layout-navbar-fixed:not(.layout-menu-collapsed) .voops-topbar.layout-navbar.navbar-detached {
    left: calc(var(--bs-menu-width) + 1.5rem) !important;
    right: auto !important;
    inset-inline-start: calc(var(--bs-menu-width) + 1.5rem) !important;
    inset-inline-end: auto !important;
    width: calc(100vw - var(--bs-menu-width) - 3rem) !important;
    inline-size: calc(100vw - var(--bs-menu-width) - 3rem) !important;
    max-width: none !important;
    max-inline-size: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;
    transform: none !important;
    transition: none !important;
  }

  html[dir="ltr"].layout-navbar-fixed.layout-menu-collapsed .voops-topbar.layout-navbar.navbar-detached {
    left: calc(var(--bs-menu-collapsed-width) + 1.5rem) !important;
    right: auto !important;
    inset-inline-start: calc(var(--bs-menu-collapsed-width) + 1.5rem) !important;
    inset-inline-end: auto !important;
    width: calc(100vw - var(--bs-menu-collapsed-width) - 3rem) !important;
    inline-size: calc(100vw - var(--bs-menu-collapsed-width) - 3rem) !important;
    max-width: none !important;
    max-inline-size: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;
    transform: none !important;
    transition: none !important;
  }
}
