:root {
  --ui-bg: #f4f1ea;
  --ui-surface: #fbf9f5;
  --ui-surface-2: #ffffff;
  --ui-surface-3: #f6f3ee;
  --ui-border: #dfd7cc;
  --ui-border-strong: #c9beb0;
  --ui-text: #1b2430;
  --ui-muted: #5e6a79;
  --ui-muted-soft: #768396;
  --ui-primary: #0f6cbd;
  --ui-primary-rgb: 15, 108, 189;
  --ui-primary-2: #128a7a;
  --ui-danger: #b4233c;
  --ui-warning: #b76a00;
  --ui-success: #1a7f4f;
  --ui-radius-lg: 16px;
  --ui-radius-md: 12px;
  --ui-radius-sm: 10px;
  --ui-shadow: 0 16px 38px rgba(19, 33, 53, 0.08);
  --ui-shadow-soft: 0 10px 28px rgba(19, 33, 53, 0.06);
  --ui-fs-kicker: 0.72rem;
  --ui-fs-summary: 0.98rem;
  --ui-fs-label: 0.81rem;
  --ui-fs-table-cell: 0.89rem;
  --ui-fs-table-head: 0.74rem;
  
  /* Typography Scale */
  --font-size-h1:     2.2rem;
  --font-size-h2:     1.8rem;
  --font-size-h3:     1.5rem;
  --font-size-h4:     1.25rem;
  --font-size-h5:     1.1rem;
  --font-size-h6:     1rem;
  --font-size-body:   0.95rem;
  --font-size-small:  0.85rem;
  --font-size-xs:     0.75rem;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Spacing Scale (Mobile first) */
  --spacing-xs:    0.25rem;  /* 4px */
  --spacing-sm:    0.5rem;   /* 8px */
  --spacing-md:    1rem;     /* 16px */
  --spacing-lg:    1.5rem;   /* 24px */
  --spacing-xl:    2rem;     /* 32px */
  --spacing-2xl:   3rem;     /* 48px */
  
  /* Gap Scale (for Grid & Flexbox) */
  --gap-xs:   0.25rem;       /* 4px */
  --gap-sm:   0.5rem;        /* 8px */
  --gap-md:   1rem;          /* 16px */
  --gap-lg:   1.5rem;        /* 24px */
  --gap-xl:   2rem;          /* 32px */
  
  /* Fixed layout variables */
  --top-band-max: 1296px;
  --top-band-gutter: 12px;
  --top-band-edge: max(var(--top-band-gutter), calc((100vw - var(--top-band-max)) / 2));
  --menu-top: 8px;
  --menu-h: 88px;
  --menu-gap: 14px;
  --stack-total: calc(var(--menu-top) + var(--menu-h) + var(--menu-gap));
  --sidebar-w: 220px;
  --sidebar-w-collapsed: 84px;
  --sidebar-bg: #eef4fc;
  --sidebar-border: rgba(15,108,189,.08);
}

html[data-theme="dark"] {
  --sidebar-bg: #0d1117;
  --sidebar-border: rgba(255,255,255,.06);
}

html[data-theme="dark"] {
  --ui-bg: #0f1725;
  --ui-surface: #141f31;
  --ui-surface-2: #18253a;
  --ui-surface-3: #1d2a40;
  --ui-border: #2b3a55;
  --ui-border-strong: #46597a;
  --ui-text: #eef4ff;
  --ui-muted: #b5c4dc;
  --ui-muted-soft: #93a7c4;
  --ui-primary: #7cb8ff;
  --ui-primary-2: #5ce5cf;
  --ui-danger: #ff8ea3;
  --ui-warning: #ffd07f;
  --ui-success: #4ade80;
  --ui-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--ui-primary-rgb), 0.1), transparent 36%),
    radial-gradient(circle at 90% 88%, rgba(18, 138, 122, 0.09), transparent 40%),
    var(--ui-bg);
  color: var(--ui-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.016em;
  line-height: var(--line-height-tight);
  font-weight: 750;
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

h6 {
  font-size: var(--font-size-h6);
}

h2, .panel-hero h2 {
  font-weight: 750;
}

.form-label, label {
  font-weight: 650;
}

html[data-theme="light"] .text-muted,
html[data-theme="light"] .small.text-muted,
html[data-theme="light"] .form-text {
  color: var(--ui-muted, #5a6678) !important;
}

html[data-theme="light"] h1, html[data-theme="light"] h2,
html[data-theme="light"] h3, html[data-theme="light"] h4,
html[data-theme="light"] h5, html[data-theme="light"] h6,
html[data-theme="light"] .card-title,
html[data-theme="light"] .card-title-soft,
html[data-theme="light"] .corp-list-title,
html[data-theme="light"] .emp-list-title,
html[data-theme="light"] .service-subtitle {
  color: var(--ui-text, #1f2b3a) !important;
}

html[data-theme="light"] .form-label,
html[data-theme="light"] label,
html[data-theme="light"] .fw-semibold,
html[data-theme="light"] .fw-bold,
html[data-theme="light"] .fw-600 {
  color: var(--ui-text, #243041);
}

html[data-theme="light"] .panel-hero .opacity-75,
html[data-theme="light"] .selector-sub,
html[data-theme="light"] .selector-wifi-box,
html[data-theme="light"] .selector-wifi-value.text-muted {
  color: var(--ui-muted, #566274) !important;
  opacity: 1 !important;
}

html[data-theme="light"] .panel-surface,
html[data-theme="light"] .glass-card {
  color: var(--ui-text);
}

html[data-theme="light"] .card,
html[data-theme="light"] .card-body,
html[data-theme="light"] .card-header,
html[data-theme="light"] .list-group-item,
html[data-theme="light"] .nav-link,
html[data-theme="light"] .tab-pane,
html[data-theme="light"] .accordion-button,
html[data-theme="light"] .accordion-body {
  color: var(--ui-text, #243041);
}

html[data-theme="light"] .table-modern tbody td,
html[data-theme="light"] .table-modern thead th,
html[data-theme="light"] .corp-list-title,
html[data-theme="light"] .emp-list-title {
  color: var(--ui-text, #243041);
}

html[data-theme="light"] .table tbody td,
html[data-theme="light"] .table tbody th,
html[data-theme="light"] .detail-table td,
html[data-theme="light"] .detail-table th,
html[data-theme="light"] .empty-row td {
  color: #243041;
}

html[data-theme="light"] .metric-pill {
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .badge.bg-light,
html[data-theme="light"] .badge.text-bg-light,
html[data-theme="light"] .badge.text-bg-secondary,
html[data-theme="light"] .badge.text-bg-dark {
  color: #243041 !important;
}

html[data-theme="light"] .btn-outline-primary,
html[data-theme="light"] .btn-outline-success,
html[data-theme="light"] .btn-outline-danger {
  font-weight: 600;
}

.panel-surface {
  background: linear-gradient(145deg, var(--ui-surface), var(--ui-surface-2));
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-soft);
}

.panel-soft-card {
  border-radius: var(--ui-radius-lg);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.1);
  background: var(--ui-surface-2);
  box-shadow: var(--ui-shadow-soft);
}

.panel-soft-card.is-active {
  border-color: rgba(var(--ui-primary-rgb), 0.24);
  box-shadow: 0 14px 32px rgba(20, 39, 80, 0.1);
  background: linear-gradient(155deg, rgba(var(--ui-primary-rgb), 0.08), rgba(var(--ui-primary-rgb), 0.02));
}

.panel-summary-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.panel-focus-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel-focus-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 164px;
  padding: 1rem 1.05rem;
  color: inherit;
  text-decoration: none;
}

.panel-focus-card:hover,
.panel-focus-card:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
}

.panel-focus-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--ui-primary-rgb), 0.11);
  color: var(--ui-primary);
  font-size: 1.1rem;
}

.panel-focus-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ui-text);
}

.panel-focus-meta {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ui-muted);
}

.panel-focus-stat {
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ui-primary);
}

.panel-summary-pill {
  padding: 0.95rem 1rem;
}

.panel-summary-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ui-muted);
}

.panel-summary-value {
  margin-top: 0.15rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ui-text);
}

.panel-stack-tight > * + * {
  margin-top: 0.85rem;
}

.app-icon, .bi {
  line-height: 1;
}

.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
}

.icon-label .bi, .app-icon {
  font-size: 0.92em;
}

.section-title, .card-title, .corp-list-title,
.emp-list-title, .filter-title {
  letter-spacing: -0.015em;
}

.form-shell { border: 0; }
.form-shell .card-body { padding: 1.25rem; }
.form-shell h6 { color: var(--ui-text, #243041); font-weight: 700; letter-spacing: 0.01em; }
.form-shell hr { border-color: rgba(95, 112, 138, 0.18); }

.form-shell .field-floating {
  position: relative;
  justify-content: flex-start;
}

.form-shell .field-floating > .form-label {
  position: absolute;
  top: 0.72rem;
  left: 0.8rem;
  z-index: 2;
  margin: 0;
  padding: 0 0.24rem;
  border-radius: 999px;
  background: var(--ui-surface);
  color: var(--ui-muted-soft);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
  transition: color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.form-shell .field-floating:focus-within > .form-label {
  color: var(--ui-primary);
  transform: translateY(-0.08rem);
}

.form-shell .field-floating > .form-control,
.form-shell .field-floating > .form-select,
.form-shell .field-floating > textarea,
.form-shell .field-floating > .pw-wrap,
.form-shell .field-floating > .input-group {
  width: 100%;
}

.form-shell .field-floating > .form-control,
.form-shell .field-floating > .form-select,
.form-shell .field-floating > textarea,
.form-shell .field-floating > .pw-wrap .form-control,
.form-shell .field-floating > .input-group > .form-control,
.form-shell .field-floating > .input-group > .form-select {
  padding-top: 1.45rem;
  padding-bottom: 0.55rem;
}

.form-shell .field-floating > .form-select,
.form-shell .field-floating > .input-group > .form-select {
  padding-top: 1.2rem;
}

.form-shell .field-floating textarea.form-control {
  min-height: 108px;
}

.form-shell .field-floating select.form-select option[disabled][selected] {
  color: var(--ui-muted-soft);
}

.form-page .form-control,
.form-page .form-select,
.form-page textarea { min-height: 42px; }
.form-page .btn-outline-secondary { font-weight: 600; }

.btn-soft-add {
  color: var(--ui-primary);
  background: rgba(var(--ui-primary-rgb), 0.08);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.22);
  box-shadow: none;
}

.btn-soft-add:hover,
.btn-soft-add:focus-visible {
  color: #fff;
  background: var(--ui-primary);
  border-color: var(--ui-primary);
}

.btn-soft-add i {
  opacity: 0.88;
}

.empty-state-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.25rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  color: var(--ui-primary);
  background: rgba(var(--ui-primary-rgb), 0.08);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.18);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.empty-state-link:hover,
.empty-state-link:focus-visible {
  color: #fff;
  background: var(--ui-primary);
  border-color: var(--ui-primary);
  text-decoration: none;
}

.btn-filter-reset {
  font-weight: 700;
  border-color: rgba(var(--ui-primary-rgb), 0.16);
  color: var(--ui-muted);
  background: transparent;
}

.btn-filter-reset:hover,
.btn-filter-reset:focus-visible {
  color: var(--ui-text-inverse, #fff);
  background: var(--ui-muted);
  border-color: var(--ui-muted);
}

.btn-filter-apply {
  font-weight: 700;
  color: var(--ui-primary);
  background: rgba(var(--ui-primary-rgb), 0.1);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.2);
  box-shadow: none;
}

.btn-filter-apply:hover,
.btn-filter-apply:focus-visible {
  color: #fff;
  background: var(--ui-primary);
  border-color: var(--ui-primary);
}

.btn-export-soft {
  font-weight: 700;
  color: var(--ui-text);
  background: rgba(var(--ui-primary-rgb), 0.05);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.14);
  box-shadow: none;
}

.btn-export-soft:hover,
.btn-export-soft:focus-visible {
  color: var(--ui-primary);
  background: rgba(var(--ui-primary-rgb), 0.12);
  border-color: rgba(var(--ui-primary-rgb), 0.24);
}

.btn-export-soft i {
  opacity: 0.82;
}

.btn-nav-soft {
  font-weight: 700;
  color: var(--ui-text);
  background: rgba(var(--ui-primary-rgb), 0.04);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.12);
  box-shadow: none;
}

.btn-nav-soft:hover,
.btn-nav-soft:focus-visible {
  color: var(--ui-text);
  background: rgba(var(--ui-primary-rgb), 0.1);
  border-color: rgba(var(--ui-primary-rgb), 0.22);
}

.hero-copy { display: flex; flex-direction: column; gap: 0.22rem; }

.page-kicker {
  font-size: var(--ui-fs-kicker);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ui-muted-soft);
}

.page-summary {
  margin: 0;
  color: var(--ui-muted);
  font-size: var(--ui-fs-summary);
  line-height: 1.58;
  max-width: 64ch;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-hero-compact {
  padding: .85rem 1rem;
}

.hero-copy-main {
  flex: 1 1 520px;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: .65rem;
  min-width: min(100%, 360px);
}

.hero-mini-stat {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .65rem .8rem;
  border-radius: 14px;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(var(--ui-primary-rgb), .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.hero-mini-label {
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ui-muted-soft);
}

.hero-mini-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ui-text);
  line-height: 1.15;
}

.dashboard-quickbar {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.dashboard-quicklink {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--ui-primary-rgb), .14);
  background: rgba(255,255,255,.72);
  color: var(--ui-text);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(17,35,58,.06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.dashboard-quicklink:hover,
.dashboard-quicklink:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--ui-primary-rgb), .24);
  box-shadow: 0 12px 24px rgba(17,35,58,.1);
  color: var(--ui-primary);
}

.dashboard-quicklink .bi {
  font-size: .95rem;
  color: var(--ui-primary);
}

.panel-tour-bridge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--ui-primary-rgb), .14);
  background: linear-gradient(140deg, rgba(var(--ui-primary-rgb), .08), rgba(var(--ui-primary-rgb), .02) 58%, rgba(255,255,255,.94));
  box-shadow: 0 10px 24px rgba(17,35,58,.06);
}

.panel-tour-bridge-copy {
  display: grid;
  gap: 0.25rem;
}

.panel-tour-bridge-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ui-primary);
}

.panel-tour-bridge-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ui-text);
}

.panel-tour-bridge-meta {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ui-muted);
}

.panel-tour-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.panel-tour-bridge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--ui-primary-rgb), .14);
  background: rgba(255,255,255,.74);
  color: var(--ui-text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.panel-tour-bridge-pill:hover {
  color: var(--ui-primary);
  border-color: rgba(var(--ui-primary-rgb), .22);
}

.filter-shell { border: 0; }
.filter-shell .card-body { padding: 1rem 1rem 1.05rem; }

.corp-filter-card {
  border: 1px solid rgba(var(--ui-primary-rgb), 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 12%, rgba(var(--ui-primary-rgb), 0.08), transparent 34%),
    radial-gradient(circle at 92% 85%, rgba(20, 184, 166, 0.06), transparent 36%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 45%, #f9fbff 100%);
  box-shadow: 0 8px 24px rgba(20, 39, 80, 0.04);
}

html[data-theme="dark"] .corp-filter-card {
  border-color: rgba(110, 168, 254, 0.18);
  background:
    radial-gradient(circle at 8% 12%, rgba(110, 168, 254, 0.12), transparent 34%),
    radial-gradient(circle at 92% 85%, rgba(45, 212, 191, 0.1), transparent 36%),
    linear-gradient(135deg, #121d2f 0%, #101a2a 45%, #132139 100%);
}

.corp-list-section {
  border-radius: 16px;
  background: var(--ui-surface-2);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.1);
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(20, 39, 80, 0.06);
}

.corp-list-section > :first-child {
  margin-top: 0;
}

html[data-theme="dark"] .corp-list-section {
  border-color: rgba(110, 168, 254, 0.16);
  box-shadow: none;
}

.corp-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.corp-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.corp-list-actions .btn {
  min-width: 9rem;
  font-weight: 700;
}

.filter-button-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.filter-button-row .btn {
  min-width: 7rem;
}

.corp-list-section .action-cluster .btn:not(.icon-btn) {
  padding: 0.15rem 0.3rem;
  font-size: 0.65rem;
  line-height: 1;
}

.filter-shell .form-label.fw-600 {
  font-size: 0.81rem;
  letter-spacing: 0.01em;
}

.filter-shell .form-select,
.filter-shell .form-control {
  font-size: 0.82rem;
}

.filter-shell select[name="customer_id"],
.filter-shell select[name="customer_id"] option {
  font-size: 0.8rem;
}

.filter-shell form .btn:not(.btn-sm) {
  font-size: 0.78rem;
  padding: 0.48rem 0.72rem;
  line-height: 1.2;
}

.emp-filter-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.emp-filter-toggle:hover {
  background: rgba(var(--ui-primary-rgb), 0.04);
}

html[data-theme="dark"] .emp-filter-toggle:hover {
  background: rgba(110, 168, 254, 0.07);
}

.emp-filter-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.emp-filter-ico {
  font-size: 1rem;
  color: var(--ui-primary);
  flex-shrink: 0;
}

.emp-filter-chevron {
  font-size: 0.82rem;
  color: #63758a;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

html[data-theme="dark"] .emp-filter-chevron {
  color: #98a8bf;
}

.emp-filter-toggle[aria-expanded="true"] .emp-filter-chevron {
  transform: rotate(180deg);
}

.emp-filter-active-badge {
  display: inline-block;
  background: rgba(var(--ui-primary-rgb), 0.12);
  color: var(--ui-primary);
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.07rem 0.42rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.emp-filter-body {
  padding: 0 1.1rem 1rem;
}

.panel-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.panel-nav-tabs .nav-link {
  font-weight: 600;
  color: var(--ui-text);
}

.panel-nav-tabs .nav-link.active {
  color: var(--ui-primary);
}

.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.filter-title { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--ui-text); }
.filter-summary { margin: 0.2rem 0 0; color: var(--ui-muted); font-size: 0.875rem; line-height: 1.45; }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.filter-shell .form-label { font-size: var(--ui-fs-label); letter-spacing: 0.01em; }
.filter-shell .btn { font-weight: 600; }

.row.g-2 > [class*="col-"] { display: flex; flex-direction: column; justify-content: flex-end; }
.row.g-2 .form-label { margin-bottom: 0.3rem; }

.detail-general-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 1rem;
  align-items: start;
}

.detail-side-stack { display: grid; gap: 1rem; }
.detail-card-stack { display: grid; gap: 1rem; }

.detail-section-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ui-primary);
}

.section-meta { margin-bottom: 0.9rem; }
.section-meta .mini-note { display: block; margin-top: 0.18rem; }
.detail-side-stack > .row { margin: 0; }

.panel-hero {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.1rem;
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-border);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--ui-primary-rgb), 0.14), transparent 30%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2));
}

html[data-theme="dark"] .panel-hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 184, 255, 0.2), transparent 34%),
    linear-gradient(120deg, rgba(24, 37, 58, 0.85), rgba(20, 31, 49, 0.85));
}

html[data-theme="dark"] .hero-mini-stat {
  background: rgba(15, 27, 45, 0.72);
  border-color: rgba(var(--ui-primary-rgb), .18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

html[data-theme="dark"] .hero-mini-value {
  color: #eef4ff;
}

html[data-theme="dark"] .dashboard-quicklink {
  background: rgba(15,27,45,.82);
  border-color: rgba(var(--ui-primary-rgb), .18);
  box-shadow: 0 10px 22px rgba(0,0,0,.2);
  color: #eef4ff;
}

html[data-theme="dark"] .dashboard-quicklink:hover,
html[data-theme="dark"] .dashboard-quicklink:focus-visible {
  border-color: rgba(var(--ui-primary-rgb), .3);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
  color: #9ecbff;
}

html[data-theme="dark"] .form-shell h6 { color: #dce7f7; }
html[data-theme="dark"] .form-shell hr { border-color: rgba(148, 163, 184, 0.22); }
html[data-theme="dark"] .form-shell .field-floating > .form-label { background: var(--ui-surface); }
html[data-theme="light"] .page-summary { color: #5b697d; }

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--ui-border);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ui-text);
}

html[data-theme="dark"] .metric-pill { background: rgba(24, 37, 58, 0.82); }

.metric-pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ui-primary); }
.metric-pill.ok .dot { background: var(--ui-primary-2); }
.metric-pill.warn .dot { background: var(--ui-warning); }
.metric-pill.danger .dot { background: var(--ui-danger); }

.table-modern { border-collapse: separate; border-spacing: 0; }

.table-modern thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.35rem 0.5rem;
  background: var(--ui-bg);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--ui-muted-soft);
  border-bottom: 2px solid var(--ui-border-strong);
  font-size: var(--ui-fs-table-head);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.5;
}

.table-modern tbody td { padding: 0.35rem 0.5rem; vertical-align: middle; font-size: var(--ui-fs-table-cell); background: var(--ui-surface-3); color: var(--ui-muted); line-height: 1.5; }
.table-modern tbody tr { transition: background-color 0.18s ease, box-shadow 0.18s ease; }
.table-modern tbody tr:hover { background: rgba(var(--ui-primary-rgb), 0.12); }

.table-modern thead th:last-child { text-align: center; }
.table-modern tbody td:last-child { text-align: center; }

.soft-enter { animation: softEnter 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }

@keyframes softEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.action-cluster { display: inline-flex; align-items: center; gap: 0.2rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0 !important;
  border-radius: 0.5rem;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface-2);
  color: var(--ui-text);
  line-height: 1 !important;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .14);
}

.icon-btn:active { transform: translateY(0); }
.icon-btn .bi { font-size: .82rem; line-height: 1; }
.icon-btn.btn-sm { width: 1.75rem; height: 1.75rem; }

/* Ikon tipine gore anlamli ve tema uyumlu renkler */
.icon-btn .bi-pencil,
.icon-btn .bi-download,
.icon-btn .bi-box-arrow-up-right,
.icon-btn .bi-check2 {
  color: var(--ui-primary);
}

.icon-btn .bi-trash3 {
  color: var(--ui-danger, #dc3545);
}

.icon-btn .bi-eye {
  color: var(--ui-warning, #f59e0b);
}

html[data-theme="dark"] .icon-btn {
  background: var(--ui-surface);
  border-color: rgba(255, 255, 255, .18);
}

.btn-soft-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--ui-border);
  color: var(--ui-text);
}

html[data-theme="dark"] .btn-soft-secondary {
  background: rgba(29, 42, 64, 0.9);
  border-color: var(--ui-border-strong);
  color: var(--ui-text);
}

.sortable-th { cursor: pointer; -webkit-user-select: none; user-select: none; transition: background-color 0.15s ease; white-space: nowrap; }
.sortable-th:hover { background: rgba(var(--ui-primary-rgb), 0.15) !important; }
.sortable-th.sort-asc::after { content: ' \25B2'; font-size: 0.7em; opacity: 0.75; margin-left: 0.2em; }
.sortable-th.sort-desc::after { content: ' \25BC'; font-size: 0.7em; opacity: 0.75; margin-left: 0.2em; }

.trend-period-btn-group .btn { font-size: 0.73rem; padding: 0.2rem 0.55rem; border-radius: 999px; }
.trend-period-btn-group .btn.active { background: var(--ui-primary); color: #fff; border-color: var(--ui-primary); }

html[data-theme="light"] .trend-period-btn-group .btn:not(.active),
html[data-theme="light"] .btn-outline-secondary { color: #2f3c4f; border-color: #b9c3d0; }

html[data-theme="light"] .trend-period-btn-group .btn:not(.active):hover,
html[data-theme="light"] .btn-outline-secondary:hover { color: #1f2a37; border-color: #97a7bb; }

html[data-theme="light"] .nav-tabs .nav-link { color: #465366; }
html[data-theme="light"] .nav-tabs .nav-link.active,
html[data-theme="light"] .nav-pills .nav-link.active { color: #1f2b3a; font-weight: 700; }
html[data-theme="light"] .opacity-75 { opacity: 1 !important; }

@media (max-width: 992px) {
  .detail-general-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .panel-hero { padding: 0.8rem; }
  .page-kicker { font-size: 0.68rem; }
  .page-summary { font-size: 0.92rem; line-height: 1.52; }
  .table-modern thead th { font-size: 0.68rem; padding: 0.66rem 0.58rem; }
  .table-modern tbody td { font-size: 0.82rem; padding: 0.62rem 0.58rem; }
  .metric-pill { margin-bottom: 0.4rem; }
  
  /* Touch target optimization for mobile accessibility */
  .form-control,
  .form-select,
  .btn,
  .icon-btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  .icon-btn {
    width: 48px;
    height: 48px;
  }
}

/* ============================================================
   FIXED LAYOUT POSITIONING
   ============================================================ */

.top-menu-spacer { height: 0; display: none; }

.left-sidebar-wrap {
  position: sticky;
  top: var(--menu-gap);
}

/* Row layout: mobile full-width, desktop sidebar+content */
.row > .col-md-3.pt-3 { flex: 0 0 100%; max-width: 100%; }
.row > .col-md-9.pt-3 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
  .container.soft-enter { padding-top: var(--menu-gap) !important; }
  .container.soft-enter { min-height: calc(100vh - var(--menu-h)); }

  /* Sidebar should keep full viewport height and scroll internally when long */
  .left-sidebar-wrap {
    height: calc(100vh - (var(--menu-h) + var(--menu-gap) * 2));
    min-height: calc(100vh - (var(--menu-h) + var(--menu-gap) * 2));
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
  }

  .left-sidebar-wrap::-webkit-scrollbar {
    width: 8px;
  }

  .left-sidebar-wrap::-webkit-scrollbar-thumb {
    background: rgba(var(--ui-primary-rgb), .28);
    border-radius: 8px;
  }

  .left-sidebar-wrap::-webkit-scrollbar-track {
    background: transparent;
  }

  .row > .col-md-3.pt-3 { flex: 0 0 280px !important; max-width: 280px !important; }
  .row > .col-md-9.pt-3 { flex: 1 1 calc(100% - 280px) !important; max-width: calc(100% - 280px) !important; }
}

@media (max-width: 1399.98px) { :root { --top-band-max: 1116px; } }
@media (max-width: 1199.98px) { :root { --top-band-max: 936px; } }
@media (max-width: 991.98px)  { :root { --top-band-max: 696px; } }

@media (max-width: 767.98px) {
  :root {
    --top-band-max: 516px;
    --top-band-gutter: 8px;
    --menu-h: 68px;
  }
  .container.soft-enter { padding-top: var(--menu-gap) !important; }
  .left-sidebar-wrap { position: static; top: auto; }
  /* Hide desktop sidebar on mobile — use off-canvas instead */
  .col-md-3.pt-3 { display: none !important; }
}

/* ============================================================
   TOP MENU CARD
   ============================================================ */

.top-menu-card {
  position: fixed !important;
  top: var(--menu-top);
  left: var(--top-band-edge);
  right: var(--top-band-edge);
  transform: none;
  width: auto;
  z-index: 1080;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--ui-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(var(--ui-primary-rgb), 0.18);
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--ui-primary, #4f7cff) 10%, var(--ui-surface, #fff)) 0%,
    var(--ui-surface, #fff) 100%
  );
  box-shadow: 0 8px 24px rgba(20, 39, 80, 0.08), 0 0 1px rgba(var(--ui-primary-rgb), 0.1);
}

html[data-theme="dark"] .top-menu-card {
  border-color: rgba(110, 168, 254, 0.22);
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--ui-primary, #4f7cff) 12%, #23262e) 0%,
    #23262e 100%
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 1px rgba(110, 168, 254, 0.15);
}

html[data-theme="light"] .top-menu-card {
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--ui-primary, #4f7cff) 10%, var(--ui-surface, #fff)) 0%,
    var(--ui-surface, #fff) 100%
  ) !important;
  border-color: rgba(var(--ui-primary-rgb), 0.18) !important;
}

.top-menu-card .card-body {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.6rem 1rem;
}

/* ── Top bar greeting block ──────────────────────────────────── */
.top-menu-greeting {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.top-menu-greeting .av-circle {
  flex-shrink: 0;
}
.top-menu-greeting-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  overflow: hidden;
}
.top-menu-greeting-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ui-text-muted, #6b7280);
  line-height: 1.2;
  white-space: nowrap;
}
.top-menu-greeting-user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  overflow: hidden;
}
.top-menu-greeting-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ui-text, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-theme="dark"] .top-menu-greeting-name {
  color: #e2e8f0;
}
.top-menu-greeting-role {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  background: rgba(var(--ui-primary-rgb, 15, 108, 189), 0.12);
  color: var(--ui-primary, #0f6cbd);
  flex-shrink: 0;
}
html[data-theme="dark"] .top-menu-greeting-role {
  background: rgba(110, 168, 254, 0.15);
  color: #93c5fd;
}
.top-menu-greeting-date {
  font-size: 0.67rem;
  color: var(--ui-text-muted, #6b7280);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .top-menu-greeting-date { display: none; }
}
@media (max-width: 640px) {
  .top-menu-greeting-role { display: none; }
  .top-menu-greeting-title { display: none; }
}

/* ── Dashboard chips bar (index.php özet satırı) ─────────────── */
.dash-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.top-menu-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  text-decoration: none;
  flex: 0 0 auto;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.top-menu-brand:hover {
  background: rgba(var(--ui-primary-rgb, 15, 108, 189), 0.1);
  transform: translateY(-1px);
}
html[data-theme="dark"] .top-menu-brand:hover {
  background: rgba(110, 168, 254, 0.15);
}
.top-menu-brand-main {
  font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f6cbd;
  white-space: nowrap;
}
html[data-theme="light"] .top-menu-brand-main {
  color: var(--ui-primary, #0f6cbd);
}
html[data-theme="dark"] .top-menu-brand-main {
  color: #93c5fd;
}
.top-menu-brand-version {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f6cbd;
  text-transform: uppercase;
  white-space: nowrap;
}
html[data-theme="dark"] .top-menu-brand-version {
  color: #93c5fd;
}
.top-menu-brand img { display: none; }

.top-menu-user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.35rem;
  padding: 0.28rem 0.55rem 0.28rem 0.28rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--ui-primary-rgb), 0.16);
  background: rgba(var(--ui-primary-rgb), 0.05);
  min-width: 0;
}

.top-menu-user-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-menu-user-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ui-text);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
}

.top-menu-user-role {
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--ui-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
}

html[data-theme="dark"] .top-menu-user {
  background: rgba(86,156,255,.08);
  border-color: rgba(86,156,255,.22);
}

html[data-theme="dark"] .top-menu-user-name {
  color: #e9f2ff;
}

html[data-theme="dark"] .top-menu-user-role {
  color: #93c5fd;
}

.guest-badge {
  border: 1px solid rgba(25, 135, 84, 0.35);
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

html[data-theme="dark"] .guest-badge {
  border-color: rgba(104, 211, 145, 0.45);
  background: rgba(45, 115, 76, 0.35);
  color: #8ef0b6;
}

.top-menu-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.24rem;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
}

.top-menu-links .btn,
.top-menu-actions .btn {
  transition: all 0.2s ease;
  font-size: 0.71rem;
  padding: 0.14rem 0.30rem;
  line-height: 1.2;
  flex: 0 0 auto;
}

.top-menu-links .btn .icon-label,
.top-menu-actions .btn .icon-label { gap: 0.64rem; }

.sidebar-link .icon-label { gap: 0.72rem; }

.top-menu-links .btn .bi,
.top-menu-actions .btn .bi { font-size: 0.80rem; }
.sidebar-link .bi { font-size: 0.86rem; }

.sidebar-link .bi { min-width: 1.02rem; text-align: center; }

.top-menu-links .btn.btn-outline-secondary,
.top-menu-actions .btn.btn-outline-secondary {
  background: #ffffff;
  border-color: #8ca7c9;
  color: #18324f !important;
  font-weight: 700;
}

.top-menu-links .btn.btn-outline-secondary:hover,
.top-menu-actions .btn.btn-outline-secondary:hover {
  background: #eaf3ff;
  border-color: #5f86bb;
  color: #10263d !important;
}

html[data-theme="dark"] .top-menu-links .btn.btn-outline-secondary,
html[data-theme="dark"] .top-menu-actions .btn.btn-outline-secondary {
  background: #253349 !important;
  border-color: #4f6788 !important;
  color: #ecf3ff !important;
}

html[data-theme="dark"] .top-menu-links .btn.btn-outline-secondary:hover,
html[data-theme="dark"] .top-menu-actions .btn.btn-outline-secondary:hover {
  background: #314562 !important;
  border-color: #7592bc !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .panel-soft-card {
  border-color: rgba(110, 168, 254, 0.16);
  background: var(--ui-surface, #141f31);
  box-shadow: none;
}

html[data-theme="dark"] .panel-soft-card.is-active {
  background: linear-gradient(155deg, rgba(110, 168, 254, 0.12), rgba(110, 168, 254, 0.04));
}

.top-menu-actions {
  display: flex;
  gap: 0.24rem;
  flex: 0 0 auto;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-menu-actions-tools {
  gap: 0.28rem;
}

.top-menu-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
}

.top-menu-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.top-menu-auth-name {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.top-menu-card.login-top-menu .card-body {
  justify-content: center;
  padding: 0.46rem 0.72rem;
}

.top-menu-card.login-top-menu .top-menu-brand,
.top-menu-card.login-top-menu .top-menu-user,
.top-menu-card.login-top-menu .top-menu-links,
.top-menu-card.login-top-menu .mobile-nav-hamburger,
.top-menu-card.login-top-menu .guest-badge {
  display: none !important;
}

@media (max-width: 991.98px) {
  .top-menu-user-copy {
    display: none;
  }

  .top-menu-user {
    padding-right: 0.28rem;
  }

  .top-menu-auth-name {
    display: none;
  }
}

.top-menu-card.login-top-menu .top-menu-actions {
  margin: 0 auto;
  justify-content: center;
}

.menu-search-under { margin-top: -6px; border: 1px solid rgba(0, 0, 0, 0.08); }
html[data-theme="dark"] .menu-search-under { border-color: #2f3440; }
html[data-theme="light"] .menu-search-under { background: #f5f3ef !important; border-color: #ddd7ce !important; }

.network-tools-btn {
  position: relative;
  border-color: var(--ui-primary) !important;
  box-shadow: 0 0 0 0.12rem rgba(var(--ui-primary-rgb), 0.2);
}

.top-menu-links .btn.active-glow,
.top-menu-actions .btn.active-glow {
  animation: menuPulse 1.35s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 0 0.2rem rgba(var(--ui-primary-rgb), 0.34), 0 10px 22px rgba(var(--ui-primary-rgb), 0.34);
  transform: translateY(-1px);
}

.network-tools-btn.active-glow {
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2)) !important;
  color: #fff !important;
  border-color: var(--ui-primary) !important;
}

@keyframes menuPulse {
  0%   { box-shadow: 0 0 0 0.16rem rgba(var(--ui-primary-rgb), 0.32), 0 0 0 0 rgba(var(--ui-primary-rgb), 0.36); }
  65%  { box-shadow: 0 0 0 0.24rem rgba(var(--ui-primary-rgb), 0.38), 0 0 0 14px rgba(var(--ui-primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0.16rem rgba(var(--ui-primary-rgb), 0.32), 0 0 0 0 rgba(var(--ui-primary-rgb), 0); }
}

html[data-theme="dark"] .top-menu-links .btn.active-glow,
html[data-theme="dark"] .top-menu-actions .btn.active-glow {
  box-shadow: 0 0 0 0.22rem rgba(86, 156, 255, 0.45), 0 12px 24px rgba(20, 80, 180, 0.52);
}

/* ============================================================
   DARK MODE BASE OVERRIDES
   ============================================================ */

html[data-theme="dark"] body { background: #121212; color: #f1f1f1; }

html[data-theme="dark"] .navbar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .table,
html[data-theme="dark"] .modal-content {
  background: #1d1f23 !important;
  color: #f1f1f1 !important;
  border-color: #2c2c2c !important;
}

html[data-theme="dark"] .table { color: #f1f1f1 !important; border-color: #444 !important; }
html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td { border-color: #363636 !important; }
html[data-theme="dark"] .table thead th { background: #282c34 !important; color: #f8f9fa !important; }
html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) { background: #2a2f37; }
html[data-theme="dark"] .table-hover tbody tr:hover { background: #374049; }

html[data-theme="dark"] .table .btn-outline-primary,
html[data-theme="dark"] .table .btn-outline-danger,
html[data-theme="dark"] .table .btn-outline-secondary {
  color: #fff !important; border-color: #4d5570 !important; background: #2f3240 !important;
}

html[data-theme="dark"] .table .btn-outline-primary:hover,
html[data-theme="dark"] .table .btn-outline-danger:hover,
html[data-theme="dark"] .table .btn-outline-secondary:hover {
  background: #3d4155 !important; color: #fff !important;
}

html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .navbar-brand,
html[data-theme="dark"] .btn,
html[data-theme="dark"] .form-label,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select { color: #f1f1f1 !important; }

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select { background: #2b2b2b !important; border-color: #444 !important; }

html[data-theme="dark"] .form-control::placeholder { color: #f1f1f1 !important; }

html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select {
  color: #212529 !important; background: #fff !important; border-color: #ced4da !important;
}

html[data-theme="dark"] .text-muted { color: #b8c7df !important; }
html[data-theme="dark"] .small.text-muted { color: #b8c7df !important; }
html[data-theme="dark"] .form-text { color: #b8c7df !important; }
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .badge.bg-light { background: #2a3446 !important; color: #e6efff !important; border-color: #425476 !important; }
html[data-theme="dark"] .text-dark { color: #e6efff !important; }
html[data-theme="dark"] .alert { border-width: 1px; }
html[data-theme="dark"] .alert-info    { background: #1f3248 !important; color: #d6ebff !important; border-color: #33567c !important; }
html[data-theme="dark"] .alert-warning { background: #3b341f !important; color: #ffe8a6 !important; border-color: #6a5a2a !important; }
html[data-theme="dark"] .alert-success { background: #1e3a2c !important; color: #c8f5dc !important; border-color: #2f6a4b !important; }
html[data-theme="dark"] .alert-danger  { background: #3b2226 !important; color: #ffd5dd !important; border-color: #70404a !important; }
html[data-theme="dark"] .btn-outline-secondary { color: #dce7fb !important; border-color: #52617f !important; background: #2b3445 !important; }
html[data-theme="dark"] .btn-outline-secondary:hover { background: #384861 !important; color: #ffffff !important; border-color: #6b7fa6 !important; }
html[data-theme="dark"] .btn-outline-primary  { color: #b9d4ff !important; border-color: #4e79bc !important; }
html[data-theme="dark"] .btn-outline-success  { color: #b8f0d0 !important; border-color: #3f7f61 !important; }
html[data-theme="dark"] .btn-outline-danger   { color: #ffb4c3 !important; border-color: #8e4c58 !important; }
html[data-theme="dark"] .nav-tabs { border-bottom-color: #3b4963 !important; }
html[data-theme="dark"] .nav-tabs .nav-link { background: #232a36 !important; color: #d6e2f7 !important; border-color: #37404f !important; }
html[data-theme="dark"] .nav-tabs .nav-link.active { background: #2e3b50 !important; color: #ffffff !important; border-color: #4a607f #4a607f #2e3b50 !important; }
html[data-theme="dark"] .list-group-item { background: #1d2430 !important; color: #e6efff !important; border-color: #2f3c54 !important; }
html[data-theme="dark"] #globalFooterText,
html[data-theme="dark"] footer { color: #f8f9fa !important; opacity: 1 !important; }

/* ============================================================
   LIGHT MODE BASE OVERRIDES
   ============================================================ */

html[data-theme="light"] body  { background: #f2f0ec !important; color: #1f2937 !important; }
html[data-theme="light"] .card { background: #faf9f6 !important; border-color: #e5dfd7 !important; color: #243041 !important; }
html[data-theme="light"] .card-header,
html[data-theme="light"] .card-body,
html[data-theme="light"] .modal-title,
html[data-theme="light"] .offcanvas-title { color: #243041 !important; }
html[data-theme="light"] .table thead th { background: #edeae4 !important; color: #374151 !important; }
html[data-theme="light"] .table td,
html[data-theme="light"] .table th { color: #243041 !important; }
html[data-theme="light"] .table-striped > tbody > tr:nth-of-type(odd) > * { background: #f7f5f1 !important; }
html[data-theme="light"] .table-hover > tbody > tr:hover > * { background: #ece8e2 !important; }
html[data-theme="light"] .list-group-item { background: #faf9f6 !important; border-color: #e5dfd7 !important; color: #243041 !important; }
html[data-theme="light"] .form-label,
html[data-theme="light"] label { color: #243041 !important; }
html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select,
html[data-theme="light"] textarea { background: #fdfcfa !important; border-color: #d6cfc5 !important; color: #2e2e2e !important; }
html[data-theme="light"] .form-control::placeholder,
html[data-theme="light"] textarea::placeholder { color: #6b7280 !important; opacity: 1 !important; }
html[data-theme="light"] .input-group-text { background: #ede9e3 !important; border-color: #d6cfc5 !important; color: #4a4a4a !important; }
html[data-theme="light"] .modal-content { background: #faf9f6 !important; border-color: #e5dfd7 !important; color: #243041 !important; }

/* Reusable modal skin for page-level standardization */
.modal-content.panel-modal {
  border-radius: 16px !important;
  border-width: 1px !important;
  box-shadow: 0 22px 52px rgba(18, 32, 54, 0.24) !important;
}

.modal-content.panel-modal .modal-header,
.modal-content.panel-modal .modal-footer {
  border-color: rgba(var(--ui-primary-rgb), 0.2) !important;
}

.modal-content.panel-modal .modal-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

html[data-theme="light"] .modal-content.panel-modal {
  background: linear-gradient(160deg, #fbfaf7, #f3efe8) !important;
  border-color: #d9d1c6 !important;
  color: #243041 !important;
}

html[data-theme="dark"] .modal-content.panel-modal {
  background: linear-gradient(160deg, #1a2435, #151f2f) !important;
  border-color: #344867 !important;
  color: #e8f0ff !important;
}
html[data-theme="light"] .btn-outline-secondary { background: #efece7 !important; border-color: #bcc6d2 !important; color: #2f3c4f !important; }
html[data-theme="light"] .btn-outline-secondary:hover { background: #e6e1da !important; border-color: #9faebe !important; color: #1f2a37 !important; }
html[data-theme="light"] .nav-tabs .nav-link { color: #465366 !important; }
html[data-theme="light"] .nav-tabs .nav-link.active,
html[data-theme="light"] .nav-pills .nav-link.active { color: #1f2b3a !important; }
html[data-theme="light"] .alert-info    { background: #edf4ff !important; border-color: #b8d4f0 !important; color: #214766 !important; }
html[data-theme="light"] .alert-warning { background: #fdf7ec !important; border-color: #f0d88a !important; color: #6b4e16 !important; }
html[data-theme="light"] .alert-success { background: #edfaf3 !important; border-color: #9ddbb9 !important; color: #1f5d40 !important; }
html[data-theme="light"] .alert-danger  { background: #fdf0f2 !important; border-color: #f0b8c3 !important; color: #7a2536 !important; }
html[data-theme="light"] .badge.text-bg-warning { color: #4c3700 !important; }
html[data-theme="light"] .badge.text-bg-info    { color: #16384f !important; }
html[data-theme="light"] .badge.text-bg-secondary,
html[data-theme="light"] .badge.text-bg-dark { color: #243041 !important; }
html[data-theme="light"] code,
html[data-theme="light"] pre,
html[data-theme="light"] .bg-light { background: #ede9e3 !important; }

/* ============================================================
   LIGHT MODE — SPECIFIC ELEMENT CORRECTIONS
   (These come after the broad .card / .btn rules above so they
    properly override the generic !important declarations)
   ============================================================ */

/* Top menu card & tech news card: match dash-greeting-strip frame style */
html[data-theme="light"] .top-menu-card {
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--ui-primary, #4f7cff) 10%, var(--ui-surface, #fff)) 0%,
    var(--ui-surface, #fff) 100%
  ) !important;
  border-color: rgba(var(--ui-primary-rgb), 0.18) !important;
}

/* tech-news-card is now inline — these overrides are no longer needed */

/* Left sidebar card: match greeting-strip frame style */
html[data-theme="light"] .left-sidebar-card {
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--ui-primary, #4f7cff) 8%, var(--ui-surface, #fff)) 0%,
    var(--ui-surface, #fff) 100%
  ) !important;
  border-color: rgba(var(--ui-primary-rgb), 0.18) !important;
}

/* Sidebar head inside the sidebar card */
html[data-theme="light"] .sidebar-head {
  background: color-mix(in srgb, var(--ui-primary, #4f7cff) 8%, var(--ui-surface, #fff)) !important;
  border-bottom-color: rgba(var(--ui-primary-rgb), 0.14) !important;
}

/* Top menu nav buttons: restore white background (not the beige #efece7) */
html[data-theme="light"] .top-menu-links .btn.btn-outline-secondary,
html[data-theme="light"] .top-menu-actions .btn.btn-outline-secondary {
  background: #ffffff !important;
  border-color: #8ca7c9 !important;
  color: #18324f !important;
}
html[data-theme="light"] .top-menu-links .btn.btn-outline-secondary:hover,
html[data-theme="light"] .top-menu-actions .btn.btn-outline-secondary:hover {
  background: #eaf3ff !important;
  border-color: #5f86bb !important;
  color: #10263d !important;
}

/* Sidebar toggle mini button — light mode */
html[data-theme="light"] .sidebar-toggle-mini {
  background: rgba(var(--ui-primary-rgb), 0.06) !important;
  border-color: rgba(var(--ui-primary-rgb), 0.22) !important;
  color: #1f446f !important;
}

/* Sidebar submenu links — light mode */
html[data-theme="light"] .sidebar-submenu a {
  background: rgba(var(--ui-primary-rgb), 0.05) !important;
  border-color: rgba(var(--ui-primary-rgb), 0.18) !important;
  color: #214063 !important;
}
html[data-theme="light"] .sidebar-submenu a:hover {
  background: rgba(var(--ui-primary-rgb), 0.12) !important;
  border-color: rgba(var(--ui-primary-rgb), 0.32) !important;
  color: var(--ui-primary) !important;
}

/* "Daha fazla" dropdown — light mode */
html[data-theme="light"] .top-menu-more-dropdown .dropdown-menu {
  background: #ffffff !important;
  border-color: rgba(var(--ui-primary-rgb), 0.18) !important;
}
html[data-theme="light"] .top-menu-more-dropdown .dropdown-item {
  color: #1f2f45 !important;
}
html[data-theme="light"] .top-menu-more-dropdown .dropdown-item:hover {
  background: rgba(var(--ui-primary-rgb), 0.08) !important;
  color: var(--ui-primary) !important;
}

/* Sidebar user card — explicit light mode colors */
html[data-theme="light"] .sidebar-user-card {
  background: rgba(var(--ui-primary-rgb), 0.05) !important;
  border-color: rgba(var(--ui-primary-rgb), 0.16) !important;
}
html[data-theme="light"] .sidebar-user-name { color: #1a3050 !important; }
html[data-theme="light"] .sidebar-user-role { color: #3d6da4 !important; }

/* ============================================================
   LEFT SIDEBAR
   ============================================================ */

.left-sidebar-card {
  border: 1px solid rgba(var(--ui-primary-rgb), 0.18);
  border-radius: 14px;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--ui-primary, #4f7cff) 8%, var(--ui-surface, #fff)) 0%,
    var(--ui-surface, #fff) 100%
  );
  box-shadow: 0 14px 30px rgba(12,34,68,.10), inset 0 1px 0 rgba(255,255,255,.7);
  overflow: hidden;
}

.sidebar-head {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(var(--ui-primary-rgb), 0.14);
  background: color-mix(in srgb, var(--ui-primary, #4f7cff) 8%, var(--ui-surface, #fff));
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sidebar-logo-head {
  padding: 0;
  background: transparent;
  border-bottom: 1px solid rgba(var(--ui-primary-rgb), 0.14);
}

.sidebar-logo-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 72px;
  padding: 14px 18px 10px;
  border-radius: 13px 13px 0 0;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
}

/* Tema bazlı logo göster/gizle */
.sidebar-logo-dark  { display: none; }
.sidebar-logo-light { display: block; }

html[data-theme="dark"] .sidebar-logo-light { display: none; }
html[data-theme="dark"] .sidebar-logo-dark  { display: block; }

.sidebar-logo-fallback { display: none; }

.sidebar-head-icon {
  font-size: 1.1rem;
  color: var(--ui-primary);
  opacity: 0.85;
  flex-shrink: 0;
}

.sidebar-kicker { display: none; }
.sidebar-title  { font-size: 0.88rem; font-weight: 800; color: var(--ui-text, #173a63); line-height: 1.2; }
.sidebar-group-title {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.09em;
  color: var(--ui-muted, #6b7280);
  margin: 0.7rem 0.15rem 0.3rem; text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.52rem 0.62rem;
  border-radius: 0.62rem;
  text-decoration: none;
  color: #1f2f45;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.sidebar-link:hover {
  background: color-mix(in srgb, var(--ui-primary, #4f7cff) 9%, transparent);
  color: var(--ui-primary);
  border-color: rgba(var(--ui-primary-rgb), 0.22);
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--ui-primary, #4f7cff) 55%, transparent);
  transform: translateX(1px);
}

.sidebar-link.active {
  background: color-mix(in srgb, var(--ui-primary, #4f7cff) 13%, transparent);
  color: var(--ui-primary);
  font-weight: 700;
  border-color: rgba(var(--ui-primary-rgb), 0.25);
  box-shadow: inset 3px 0 0 var(--ui-primary);
}

.sidebar-link .meta { opacity: 0.85; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em; }

html[data-theme="dark"] .left-sidebar-card {
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--ui-primary, #4f7cff) 10%, #23262e) 0%,
    #23262e 100%
  );
  border-color: rgba(110, 168, 254, 0.22);
  box-shadow: 0 16px 34px rgba(0,0,0,.45), inset 0 1px 0 rgba(120,156,216,.08);
}

html[data-theme="dark"] .sidebar-head {
  background: color-mix(in srgb, var(--ui-primary, #4f7cff) 10%, #23262e);
  border-bottom-color: rgba(110, 168, 254, 0.22);
}

html[data-theme="dark"] .sidebar-head-icon { color: #93c5fd; opacity: 1; }
html[data-theme="dark"] .sidebar-title  { color: #e6f0ff; }
html[data-theme="dark"] .sidebar-group-title { color: rgba(148,176,210,.75); }
html[data-theme="dark"] .sidebar-link { color: #e8f0ff; }
html[data-theme="dark"] .sidebar-link:hover {
  background: rgba(86,156,255,.13);
  color: #93c5fd;
  border-color: rgba(86,156,255,.28);
  box-shadow: inset 2px 0 0 rgba(86,156,255,.5);
}
html[data-theme="dark"] .sidebar-link.active {
  background: rgba(86,156,255,.16);
  color: #93c5fd;
  border-color: rgba(86,156,255,.3);
  box-shadow: inset 3px 0 0 #93c5fd;
}

/* Sidebar submenu */
.sidebar-entry { margin-bottom: 0.25rem; }
.sidebar-main { display: flex; align-items: center; gap: 0.35rem; }
.sidebar-main-link { flex: 1; }

.sidebar-toggle-mini {
  border: 1px solid rgba(var(--ui-primary-rgb), 0.2);
  background: rgba(var(--ui-primary-rgb), 0.05);
  color: #1f446f;
  min-width: 30px;
  height: 30px;
  border-radius: 0.5rem;
  cursor: pointer;
}

.sidebar-toggle-mini .chev { font-size: 0.78rem; opacity: 0.8; transition: transform 0.2s ease; }
.sidebar-entry.open .sidebar-toggle-mini .chev { transform: rotate(180deg); }

/* ── Section separator ─────────────────────────────────────── */
.sidebar-section-sep {
  height: 1px;
  background: color-mix(in srgb, var(--ui-primary, #4f7cff) 12%, var(--ui-border, #e5e7eb));
  margin: 0.5rem 0.25rem 0.1rem;
}
html[data-theme="dark"] .sidebar-section-sep {
  background: color-mix(in srgb, var(--ui-primary, #4f7cff) 15%, #3a3f4b);
}

/* ── Sidebar footer (alt aksiyonlar + build notu) ──────────── */
.sidebar-footer {
  border-top: 1px solid rgba(var(--ui-primary-rgb), 0.12);
  margin-top: 0.4rem;
  padding-top: 0.25rem;
}
html[data-theme="dark"] .sidebar-footer {
  border-top-color: rgba(110, 168, 254, 0.15);
}

.sidebar-build-note {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ui-muted, #9ca3af);
  text-align: center;
  padding: 0.3rem 0.62rem 0.4rem;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Submenu ───────────────────────────────────────────────── */
.sidebar-submenu { display: none; padding: 0.1rem 0.15rem 0.35rem 1.8rem; }
.sidebar-entry.open .sidebar-submenu { display: block; }

.sidebar-submenu a {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(var(--ui-primary-rgb), 0.2);
  background: rgba(var(--ui-primary-rgb), 0.05);
  color: #214063;
  padding: 0.36rem 0.52rem;
  border-radius: 0.48rem;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 0.28rem;
  transition: all 0.18s ease;
}

.sidebar-submenu a:hover {
  background: rgba(var(--ui-primary-rgb), 0.13);
  color: var(--ui-primary);
  border-color: rgba(var(--ui-primary-rgb), 0.34);
}

html[data-theme="dark"] .sidebar-toggle-mini { background: rgba(86,156,255,.12); border-color: rgba(86,156,255,.3); color: #d9e7ff; }
html[data-theme="dark"] .sidebar-submenu a { background: rgba(86,156,255,.12); border-color: rgba(86,156,255,.3); color: #d9e7ff; }
html[data-theme="dark"] .sidebar-submenu a:hover { background: rgba(86,156,255,.2); color: #ffffff; border-color: rgba(139,185,255,.5); }

/* ============================================================
   "DAHA FAZLA" DROPDOWN (ÜST MENÜ)
   ============================================================ */

.top-menu-more-dropdown .dropdown-menu {
  min-width: 180px;
  border-radius: var(--ui-radius-md);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.18);
  box-shadow: 0 10px 24px rgba(15, 40, 80, 0.15);
  padding: 0.35rem;
}

.top-menu-more-dropdown .dropdown-item {
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 0.4rem;
  padding: 0.38rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f2f45;
}

.top-menu-more-dropdown .dropdown-item:hover {
  background: rgba(var(--ui-primary-rgb), 0.1);
  color: var(--ui-primary);
}

.top-menu-more-dropdown .dropdown-item.active-page {
  background: var(--ui-primary);
  color: #fff;
}

html[data-theme="dark"] .top-menu-more-dropdown .dropdown-menu {
  background: #1d2738;
  border-color: rgba(86, 156, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .top-menu-more-dropdown .dropdown-item { color: #d6e4ff; }
html[data-theme="dark"] .top-menu-more-dropdown .dropdown-item:hover { background: rgba(86, 156, 255, 0.15); color: #8bb9ff; }

/* ============================================================
   MOBİL HAMBURGER + OFF-CANVAS NAV
   ============================================================ */

.mobile-nav-hamburger { display: none; }

@media (max-width: 767.98px) {
  .mobile-nav-hamburger { display: inline-flex; }

  /* Mobilde ticker inline gösterilmez — offcanvas menüde yer yoktur */
  /* Mobilde haber bandını gizle — ekran dar */
  .dash-news-bar { display: none !important; }

  /* Mobilde logo küçült */
  .top-menu-brand-text { font-size: 0.85rem !important; }

  /* Mobilde link aksiyon butonları ve dil butonunu gizle — bunlar offcanvas'ta */
  .top-menu-actions a.btn,
  #langToggleBtn { display: none !important; }

  /* top-menu-links gizle (zaten offcanvas'ta var) */
  .top-menu-links { display: none !important; }
}

#mobileNavOffcanvas .offcanvas-header {
  background:
    radial-gradient(circle at 10% 15%, rgba(var(--ui-primary-rgb), 0.18), transparent 40%),
    linear-gradient(135deg, #eef6ff, #f4f9ff);
  border-bottom: 1px solid rgba(var(--ui-primary-rgb), 0.15);
  padding: 0.85rem 1rem;
}

html[data-theme="dark"] #mobileNavOffcanvas .offcanvas-header {
  background:
    radial-gradient(circle at 10% 15%, rgba(86, 156, 255, 0.2), transparent 38%),
    linear-gradient(135deg, #131e30, #1a2a40);
  border-bottom-color: rgba(86, 156, 255, 0.25);
}

html[data-theme="dark"] #mobileNavOffcanvas { background: #111827; }
#mobileNavOffcanvas .offcanvas-body { padding: 0.75rem; }

/* ============================================================
   INDEX PAGE — GLASS CARD, HERO, METRİK KARTLAR
   ============================================================ */

.glass-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(17, 35, 58, 0.08);
  color: var(--ui-text);
}

html[data-theme="dark"] .glass-card {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .glass-card,
html[data-theme="light"] .ai-support-card { color: var(--ui-text, #243041); }
html[data-theme="light"] .glass-card .text-muted,
html[data-theme="light"] .glass-card .small.text-muted { color: var(--ui-muted, #5b697d) !important; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(125deg, var(--ui-primary), var(--ui-primary-2));
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -40px -45px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
}

.metric-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  color: #fff;
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(17, 35, 58, 0.17);
}

.metric-card::after {
  content: '';
  position: absolute;
  right: -28px;
  top: -32px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.metric-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; margin-bottom: 0.85rem; }
.metric-label { display: flex; flex-direction: column; gap: 0.2rem; }
.metric-overline { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; opacity: 0.84; }
.metric-card .metric-title { font-size: 0.98rem; font-weight: 700; line-height: 1.2; }

.metric-icon-badge {
  width: 2.65rem; height: 2.65rem; border-radius: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.metric-card i { font-size: 1.2rem; opacity: 0.95; }
.metric-card .metric-value { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; position: relative; z-index: 1; }
.metric-card .metric-sub { font-size: 0.86rem; opacity: 0.92; position: relative; z-index: 1; }

.metric-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.75rem; margin-top: 0.75rem;
  font-size: 0.84rem; font-weight: 700; position: relative; z-index: 1;
}

.metric-card .progress { height: 0.42rem; background: rgba(255,255,255,.2); border-radius: 999px; position: relative; z-index: 1; }

.metric-workplace { background: linear-gradient(145deg, var(--ui-primary), var(--ui-primary-2)); }
.metric-employee  { background: linear-gradient(145deg, #1f9d61, #38b67b); }
.metric-hardware  { background: linear-gradient(145deg, #cf7d00, #f19c17); }
.metric-server    { background: linear-gradient(145deg, #7352ff, #4b7cff); }

html[data-theme="light"] .metric-card .metric-sub { opacity: 1; color: rgba(255,255,255,.92); }

/* ============================================================
   CHART WRAPPER — Oransal yükseklik (aspect-ratio)
   ============================================================ */

.chart-wrap {
  aspect-ratio: 16 / 5;
  min-height: 200px;
  max-height: 380px;
  width: 100%;
  position: relative;
}

.chart-wrap canvas { width: 100% !important; height: 100% !important; }

@media (max-width: 991px) {
  .chart-wrap { aspect-ratio: 16 / 6; min-height: 180px; }
}

@media (max-width: 767px) {
  .top-menu-actions {
    justify-content: center;
  }
  .panel-summary-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .dashboard-hero-compact {
    padding: .8rem .85rem;
  }

  .dashboard-quickbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }

  .dashboard-quicklink {
    width: 100%;
    justify-content: flex-start;
    padding: .62rem .68rem;
    border-radius: 12px;
    font-size: .77rem;
    min-height: 48px;
  }

  .hero-mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 100%;
  }

  .hero-mini-stat {
    padding: .55rem .6rem;
    border-radius: 12px;
  }

  .hero-mini-value {
    font-size: .92rem;
  }

  .panel-tour-bridge {
    flex-direction: column;
    align-items: stretch;
    padding: .85rem .9rem;
  }

  .panel-tour-bridge-actions {
    justify-content: stretch;
  }

  .panel-tour-bridge-pill {
    flex: 1 1 calc(50% - .55rem);
    justify-content: center;
  }

  .support-quick-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .support-guides-head {
    gap: 0.7rem;
  }

  .support-guides-meta,
  .support-triage-meta,
  .support-solution-meta,
  .panel-guide-meta,
  .panel-guide-lead {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .support-triage-step,
  .support-solution-card,
  .support-quick-card,
  .panel-guide-hero,
  .panel-guide-summary,
  .panel-guide-box {
    padding: 0.85rem 0.9rem;
  }

  .panel-guide-box-head,
  .panel-signal-header,
  .corp-list-header,
  .news-page-shell .panel-card-head {
    gap: 0.55rem;
  }

  .news-page-shell {
    gap: 0.85rem;
  }

  .news-page-shell .panel-card-head,
  .panel-related-card {
    padding: 0.9rem;
  }

  .news-list .list-group-item {
    padding: 0.78rem 0.9rem;
  }

  .news-reader-title {
    font-size: 1.16rem;
  }

  .news-reader-body {
    padding: 0.9rem;
    gap: 0.8rem;
  }

  .news-content {
    padding: 0.85rem 0.9rem;
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .news-layout > .news-reader-card {
    order: 1;
  }

  .news-layout > .news-list-card {
    order: 2;
  }

  .news-layout > .panel-related-card {
    order: 3;
  }

  .service-search-shell {
    width: 100%;
  }

  .service-search-input {
    min-height: 42px;
  }

  .service-search-meta {
    width: 100%;
    text-align: left;
    font-size: 0.78rem;
  }

  .service-list-shell .table-responsive {
    overflow: visible;
  }

  .service-list-shell {
    padding: 0.95rem 0.9rem;
  }

  .service-list-shell .table-card-mobile tr {
    margin-bottom: 0.7rem;
  }

  .service-list-shell .table-card-mobile td {
    align-items: flex-start;
    padding: 0.55rem 0.7rem;
  }

  .service-list-shell .table-card-mobile td::before {
    flex-basis: 34%;
  }

  .service-list-shell .action-cluster {
    width: 100%;
    justify-content: flex-end;
  }

  .service-list-shell .corp-list-actions {
    width: 100%;
  }

  .service-list-shell .corp-list-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .service-list-shell .corp-list-header {
    gap: 0.7rem;
  }

  .tbl-critical thead,
  .tbl-payments thead,
  .tbl-payments tfoot {
    display: none;
  }

  .tbl-critical,
  .tbl-payments,
  .tbl-critical tbody,
  .tbl-payments tbody {
    display: block;
  }

  .tbl-critical tbody tr,
  .tbl-payments tbody tr {
    display: block;
    margin: 0 0 .85rem;
    padding: .4rem;
    border-radius: 14px;
    background: var(--ui-surface);
    box-shadow: 0 8px 18px rgba(17,35,58,.08);
  }

  .tbl-critical tbody td,
  .tbl-payments tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    width: 100%;
    text-align: right !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(17,35,58,.08) !important;
    padding: .58rem .45rem !important;
    background: transparent;
  }

  .tbl-critical tbody td::before,
  .tbl-payments tbody td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    text-align: left;
    color: var(--ui-muted-soft);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .tbl-critical tbody td:last-child,
  .tbl-payments tbody td:last-child {
    border-bottom: 0 !important;
  }

  .tbl-critical tbody td > .d-flex {
    justify-content: flex-end;
    width: 100%;
  }

  .tbl-critical .btn-icon,
  .tbl-payments .btn-icon {
    margin-left: auto;
  }

  html[data-theme="dark"] .tbl-critical tbody tr,
  html[data-theme="dark"] .tbl-payments tbody tr {
    background: rgba(15,27,45,.92);
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
  }

  html[data-theme="dark"] .tbl-critical tbody td,
  html[data-theme="dark"] .tbl-payments tbody td {
    border-bottom-color: rgba(122,162,204,.14) !important;
  }

  .dashboard-mobile-compact {
    padding: .9rem .85rem !important;
  }

  .dashboard-mobile-compact .row.g-2.mb-3 {
    --bs-gutter-x: .45rem;
    --bs-gutter-y: .45rem;
  }

  .dashboard-mobile-compact .mail-kpi {
    min-height: 0;
    padding: .55rem .65rem;
  }

  .dashboard-mobile-compact .mail-kpi-label {
    font-size: .65rem;
    margin-bottom: .15rem;
  }

  .dashboard-mobile-compact .mail-kpi-value {
    font-size: 1.05rem;
  }

  .dashboard-mobile-compact .mail-row {
    padding: .5rem .58rem;
    border-radius: 10px;
    margin-bottom: .4rem;
  }

  .dashboard-mobile-compact .mail-row .subject {
    font-size: .82rem;
  }

  .dashboard-mobile-compact .mail-row .meta,
  .dashboard-mobile-compact .small.text-muted {
    font-size: .72rem;
  }

  .dashboard-mobile-compact .btn,
  .dashboard-chart-row .btn {
    min-height: 40px;
  }

  .dashboard-mobile-compact .d-flex.gap-2.flex-wrap .btn,
  .dashboard-mobile-compact .d-flex.flex-wrap.gap-2 .btn {
    flex: 1 1 calc(50% - .35rem);
  }

  .dashboard-chart-row > [class*="col-"] .glass-card {
    padding: .9rem .85rem !important;
    border-radius: 14px;
  }

  .dashboard-chart-row .card-title-soft {
    margin-bottom: .35rem;
    font-size: .72rem;
  }

  .dashboard-chart-row .chart-wrap {
    min-height: 160px;
    aspect-ratio: 16 / 8;
  }

  .dashboard-chart-row .badge {
    font-size: .66rem;
  }

  .dashboard-chart-row .trend-period-btn-group {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-chart-row .trend-period-btn-group .btn {
    flex: 1 1 0;
    padding-left: .35rem;
    padding-right: .35rem;
  }
}

/* ============================================================
   MAIL CARD
   ============================================================ */

.mail-card {
  border: 1px solid rgba(17,35,58,.12);
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(255,255,255,.92), rgba(236,246,255,.9));
  box-shadow: 0 10px 24px rgba(17,35,58,.08);
}

.mail-kpi { border: 1px solid rgba(17,35,58,.12); border-radius: 12px; padding: .65rem .75rem; background: #fff; min-height: 76px; }
.mail-kpi-label { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #64748b; font-weight: 700; margin-bottom: .2rem; }
.mail-kpi-value { font-size: 1.25rem; line-height: 1; font-weight: 800; color: #0f172a; }
.mail-row { border: 1px solid rgba(17,35,58,.08); border-radius: 12px; background: #fff; padding: .55rem .7rem; margin-bottom: .5rem; }
.mail-row .subject { font-weight: 700; color: #13263f; font-size: .9rem; line-height: 1.35; }
.mail-row .meta { font-size: .78rem; color: #64748b; margin-top: .2rem; }

html[data-theme="dark"] .mail-card  { background: linear-gradient(140deg, rgba(16,29,48,.96), rgba(16,34,56,.92)); border-color: rgba(122,162,204,.25); box-shadow: 0 12px 28px rgba(0,0,0,.32); }
html[data-theme="dark"] .mail-kpi  { background: rgba(15,27,45,.95); border-color: rgba(122,162,204,.2); }
html[data-theme="dark"] .mail-kpi-label,
html[data-theme="dark"] .mail-row .meta  { color: #9cb4cf; }
html[data-theme="dark"] .mail-kpi-value,
html[data-theme="dark"] .mail-row .subject { color: #e4eefb; }
html[data-theme="dark"] .mail-row  { background: rgba(15,27,45,.95); border-color: rgba(122,162,204,.2); }

/* ============================================================
   SELECTOR / WİFİ KARTLARI
   ============================================================ */

.card-title-soft { color: #5f748d; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; font-weight: 700; margin-bottom: .5rem; }
html[data-theme="light"] .card-title-soft { color: #526176; }

.selector-card {
  background: linear-gradient(130deg, #f4f6f9 0%, #eef1f6 45%, #edf7f2 100%);
  border: 1px solid #d0d9e5;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.selector-title { color: #1a2535; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .75rem; margin-bottom: .2rem; }
.selector-sub { color: #4b5768; font-size: .85rem; }

html[data-theme="light"] .wifi-stack-note,
html[data-theme="light"] .ai-support-card .text-muted { color: #5b697d !important; }
html[data-theme="light"] .btn-outline-dark { color: #243041; border-color: #aeb8c5; }
html[data-theme="light"] .btn-outline-dark:hover { color: #111827; border-color: #8f9cac; background: #e9edf2; }
html[data-theme="light"] .btn-group .btn-outline-secondary.active,
html[data-theme="light"] #customerTimelineFilters .btn-outline-secondary.active { color: #ffffff; background: #355c8a; border-color: #355c8a; }

.selector-wifi-box { border: 1px solid #b7d5ee; background: rgba(255,255,255,.9); border-radius: 12px; padding: .55rem .65rem; }
.selector-wifi-label { color: #2f5d86; font-size: .73rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.selector-wifi-value { color: #09355f; font-weight: 700; font-size: .92rem; word-break: break-word; }

/* WiFi grid — responsive auto-fit */
.wifi-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.wifi-stack-card {
  border: 1px solid #b7d5ee;
  background: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wifi-stack-card.is-empty { border-style: dashed; background: rgba(255,255,255,.65); justify-content: center; }
.wifi-stack-ssid { width: 100%; border: 1px solid var(--ui-border); background: var(--ui-surface-2, var(--ui-surface)); border-radius: 10px; padding: .45rem .55rem; margin-bottom: .65rem; }
.wifi-stack-qr { width: 180px; max-width: 100%; border-radius: 12px; border: 1px solid var(--ui-border); padding: .35rem; background: var(--ui-surface); }
.wifi-stack-note { margin-top: .5rem; font-size: .78rem; color: var(--ui-muted); line-height: 1.35; }

.selector-card .form-select { border-color: rgba(var(--ui-primary-rgb), .4); background-color: var(--ui-surface); color: var(--ui-text); font-weight: 600; }
.selector-card .btn-outline-primary { border-color: var(--ui-primary); color: var(--ui-primary); background: var(--ui-surface-2, var(--ui-surface)); font-weight: 700; }
.selector-card .btn-outline-primary:hover { background: var(--ui-primary); color: var(--ui-surface); border-color: var(--ui-primary); }

html[data-theme="dark"] .selector-card  { background: linear-gradient(135deg, #1e2330 0%, #232838 55%, #1e2b2e 100%); border-color: #3a4255; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
html[data-theme="dark"] .selector-title { color: #dde3ec; }
html[data-theme="dark"] .selector-sub   { color: #8e97a6; }
html[data-theme="dark"] .selector-wifi-box   { border-color: #3c77aa; background: rgba(7,21,38,.7); }
html[data-theme="dark"] .selector-wifi-label { color: #94c6ef; }
html[data-theme="dark"] .selector-wifi-value { color: #edf6ff; }
html[data-theme="dark"] .wifi-stack-card      { border-color: #3c77aa; background: rgba(7,21,38,.74); }
html[data-theme="dark"] .wifi-stack-card.is-empty { background: rgba(8,19,34,.48); }
html[data-theme="dark"] .wifi-stack-ssid      { border-color: #355f86; background: #10283f; }
html[data-theme="dark"] .wifi-stack-qr        { border-color: #355f86; background: #0d2135; }
html[data-theme="dark"] .wifi-stack-note      { color: #afcce8; }
html[data-theme="dark"] .selector-card .form-select { border-color: #4b86bb; background: #0f2742; color: #ecf6ff; }
html[data-theme="dark"] .selector-card .btn-outline-primary { border-color: #77b4ff; color: #a9d0ff; background: rgba(17,44,74,.55); }
html[data-theme="dark"] .selector-card .btn-outline-primary:hover { border-color: #77b4ff; background: #2f7fdb; color: #fff; }

.table thead th { background: #e7f0f7; color: #284562; border-bottom: 0; font-weight: 600; }

/* ============================================================
   AI DESTEK KARTI
   ============================================================ */

.ai-support-card {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--ui-primary-rgb),.11), rgba(31,157,97,.11));
  border: 1px solid rgba(17,35,58,.12);
  box-shadow: 0 10px 24px rgba(17,35,58,.08);
}

.ai-support-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid rgba(var(--ui-primary-rgb),.25); border-radius: 999px;
  padding: .3rem .62rem; background: #fff; text-decoration: none;
  color: #1f2a44; font-size: .82rem; margin: .2rem .25rem .2rem 0; cursor: pointer;
}

.ai-support-chip:hover { border-color: var(--ui-primary); color: var(--ui-primary); }

html[data-theme="dark"] .ai-support-card { background: linear-gradient(135deg, rgba(43,58,83,.72), rgba(31,54,50,.72)); border-color: #314158; }
html[data-theme="dark"] .ai-support-chip { background: #1d1f23; color: #e5eefc; border-color: #3a4866; }
html[data-theme="dark"] .ai-support-chip:hover { color: #8bb9ff; border-color: #6a9eff; }

.dashboard-priority-card {
  border-width: 1px;
  border-color: rgba(var(--ui-primary-rgb), 0.18);
  box-shadow: 0 14px 32px rgba(17,35,58,.1), 0 0 0 1px rgba(var(--ui-primary-rgb), 0.06);
  position: relative;
  overflow: hidden;
}

.dashboard-priority-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ui-primary), var(--ui-primary-2));
}

.dashboard-secondary-card {
  border-color: rgba(17,35,58,.09);
  box-shadow: 0 10px 20px rgba(17,35,58,.06);
}

.customer-list-hero,
.employee-list-hero,
.hardware-list-hero,
.license-list-hero,
.service-list-hero,
.payment-list-hero {
  margin-bottom: 1rem;
}

.list-stat-card,
.customer-stat-card,
.payment-stat-card,
.service-stat-card,
.license-stat-card,
.hardware-stat-card,
.employee-stat-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(var(--ui-primary-rgb), 0.12);
}

.list-stat-label,
.customer-stat-label,
.payment-stat-label,
.service-stat-label,
.license-stat-label,
.hardware-stat-label,
.employee-stat-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ui-muted);
  margin-bottom: 0.45rem;
}

.list-stat-value,
.customer-stat-value,
.payment-stat-value,
.service-stat-value,
.license-stat-value,
.hardware-stat-value,
.employee-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ui-text);
  line-height: 1;
}

.list-stat-meta,
.customer-stat-meta,
.payment-stat-meta,
.service-stat-meta,
.license-stat-meta,
.hardware-stat-meta,
.employee-stat-meta {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--ui-muted);
  line-height: 1.45;
}

.customer-stat-card-warning {
  border-color: rgba(229, 138, 0, 0.22);
  background: linear-gradient(160deg, rgba(229, 138, 0, 0.08), rgba(255,255,255,0.75));
}

.customer-list-shell,
.payment-list-shell,
.payment-suggestion-shell,
.service-list-shell,
.license-list-shell,
.hardware-list-shell,
.employee-list-shell {
  overflow: hidden;
}

.customer-list-head {
  margin-bottom: 0 !important;
}

.customer-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.customer-search-shell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: min(100%, 320px);
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--ui-primary-rgb), 0.12);
  background: rgba(var(--ui-primary-rgb), 0.05);
}

.customer-search-shell .bi {
  color: var(--ui-primary);
  font-size: 0.95rem;
}

.customer-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ui-text);
  font-size: 0.84rem;
  font-weight: 600;
}

.customer-search-input::placeholder {
  color: var(--ui-muted);
  font-weight: 500;
}

.customer-search-meta {
  font-size: 0.8rem;
  color: var(--ui-muted);
}

.list-search-shell,
.customer-search-shell,
.payment-search-shell,
.service-search-shell,
.license-search-shell,
.hardware-search-shell,
.employee-search-shell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: min(100%, 320px);
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--ui-primary-rgb), 0.12);
  background: rgba(var(--ui-primary-rgb), 0.05);
}

.list-search-shell .bi,
.customer-search-shell .bi,
.payment-search-shell .bi,
.service-search-shell .bi,
.license-search-shell .bi,
.hardware-search-shell .bi,
.employee-search-shell .bi {
  color: var(--ui-primary);
  font-size: 0.95rem;
}

.customer-search-input,
.payment-search-input,
.service-search-input,
.license-search-input,
.hardware-search-input,
.employee-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ui-text);
  font-size: 0.84rem;
  font-weight: 600;
}

.customer-search-input::placeholder,
.payment-search-input::placeholder,
.service-search-input::placeholder,
.license-search-input::placeholder,
.hardware-search-input::placeholder,
.employee-search-input::placeholder {
  color: var(--ui-muted);
  font-weight: 500;
}

.customer-search-meta,
.payment-search-meta,
.service-search-meta,
.license-search-meta,
.hardware-search-meta,
.employee-search-meta {
  font-size: 0.8rem;
  color: var(--ui-muted);
}

.customer-list-table tbody td,
.payment-list-table tbody td,
.payment-suggestion-table tbody td,
.service-list-table tbody td,
.license-list-table tbody td,
.hardware-list-table tbody td,
.employee-list-table tbody td {
  vertical-align: top;
}

.list-id-pill,
.customer-id-pill,
.payment-id-pill,
.service-id-pill,
.license-id-pill,
.hardware-id-pill,
.employee-id-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--ui-primary-rgb), 0.08);
  color: var(--ui-primary);
  font-size: 0.73rem;
  font-weight: 800;
}

.customer-name-cell,
.customer-contact-stack,
.customer-tax-stack,
.payment-name-cell,
.payment-stack,
.service-name-cell,
.service-stack,
.service-access-cell,
.license-name-cell,
.license-stack,
.hardware-name-cell,
.hardware-stack,
.employee-name-cell,
.employee-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.customer-name-main,
.customer-primary-line,
.payment-name-main,
.payment-primary-line,
.service-name-main,
.service-primary-line,
.license-name-main,
.license-primary-line,
.hardware-name-main,
.hardware-primary-line,
.employee-name-main,
.employee-primary-line {
  color: var(--ui-text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-name-sub,
.customer-muted-line,
.payment-name-sub,
.payment-muted-line,
.service-name-sub,
.service-muted-line,
.license-name-sub,
.license-muted-line,
.hardware-name-sub,
.hardware-muted-line,
.employee-name-sub,
.employee-muted-line,
.payment-amount-line {
  color: var(--ui-muted);
  font-size: 0.74rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-amount-line {
  color: var(--ui-text);
  font-weight: 700;
}

.payment-source-pill,
.payment-amount-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
}

.payment-source-pill.is-license {
  background: rgba(var(--ui-primary-rgb), 0.12);
  color: var(--ui-primary);
}

.payment-source-pill.is-service {
  background: rgba(14, 165, 233, 0.12);
  color: #0c6a8b;
}

.payment-amount-pill {
  background: rgba(var(--ui-primary-rgb), 0.12);
  color: var(--ui-primary);
}

.payment-amount-pill.is-empty {
  background: rgba(148, 163, 184, 0.14);
  color: var(--ui-muted);
}

.license-fee-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--ui-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.license-fee-pill.is-paid {
  background: rgba(var(--ui-primary-rgb), 0.12);
  color: var(--ui-primary);
}

.employee-security-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

html[data-theme="dark"] .customer-search-shell,
html[data-theme="dark"] .employee-search-shell {
  background: rgba(255,255,255,0.04);
  border-color: rgba(122,162,204,.16);
}

html[data-theme="dark"] .hardware-search-shell,
html[data-theme="dark"] .license-search-shell,
html[data-theme="dark"] .service-search-shell,
html[data-theme="dark"] .payment-search-shell {
  background: rgba(255,255,255,0.04);
  border-color: rgba(122,162,204,.16);
}

html[data-theme="dark"] .payment-source-pill.is-service {
  color: #8bdcff;
  background: rgba(14, 165, 233, 0.18);
}

@media (max-width: 767px) {
  .panel-focus-grid {
    grid-template-columns: 1fr;
  }

  .filter-shell form .btn:not(.btn-sm) {
    font-size: 0.72rem;
    padding: 0.42rem 0.62rem;
  }

  .filter-shell .form-select,
  .filter-shell .form-control {
    font-size: 0.76rem;
    min-height: 2.1rem;
    padding: 0.38rem 0.62rem;
  }

  .corp-list-header {
    flex-direction: column;
    align-items: stretch;
  }

  .corp-list-actions .btn,
  .panel-list-toolbar > * {
    width: 100%;
    min-width: 0;
  }

  .payment-search-shell,
  .payment-list-actions .btn,
  .service-search-shell,
  .service-list-actions .btn,
  .license-search-shell,
  .license-list-actions .btn,
  .hardware-search-shell,
  .hw-list-actions .btn,
  .employee-search-shell,
  .emp-list-actions .btn {
    width: 100%;
  }
}

.customer-list-table tbody td {
  vertical-align: top;
}

.customer-id-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--ui-primary-rgb), 0.08);
  color: var(--ui-primary);
  font-size: 0.73rem;
  font-weight: 800;
}

.customer-name-cell,
.customer-contact-stack,
.customer-tax-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.customer-name-main,
.customer-primary-line {
  color: var(--ui-text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-name-sub,
.customer-muted-line {
  color: var(--ui-muted);
  font-size: 0.74rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .customer-stat-card-warning {
  background: linear-gradient(160deg, rgba(229, 138, 0, 0.12), rgba(16,23,35,0.88));
  border-color: rgba(229, 138, 0, 0.26);
}

html[data-theme="dark"] .customer-search-shell {
  background: rgba(255,255,255,0.04);
  border-color: rgba(122,162,204,.16);
}

@media (max-width: 767px) {
  .customer-list-actions {
    width: 100%;
  }

  .customer-search-shell,
  .customer-list-actions .btn {
    width: 100%;
  }

  .customer-stat-value {
    font-size: 1.45rem;
  }
}

.section-card-head {
  border-bottom: 1px solid rgba(var(--ui-primary-rgb), 0.08);
  padding-bottom: 0.72rem;
  margin-bottom: 0.9rem;
}

.section-card-head.section-card-head-tight {
  padding-bottom: 0.55rem;
  margin-bottom: 0.72rem;
}

.section-card-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ui-primary);
  margin-bottom: 0.24rem;
}

.section-card-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ui-text);
  line-height: 1.2;
}

.section-card-title.section-card-title-sm {
  font-size: 0.95rem;
}

.section-card-meta {
  font-size: 0.79rem;
  color: var(--ui-muted);
  line-height: 1.5;
  max-width: 36rem;
}

.section-card-meta.section-card-meta-tight {
  margin-bottom: 0.4rem;
}

.panel-mini-summary {
  padding: 0.9rem 1rem;
}

.panel-mini-summary-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ui-muted);
  margin-bottom: 0.3rem;
}

.panel-mini-summary-value {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ui-text);
}

.panel-mini-summary-meta {
  margin-top: 0.24rem;
  font-size: 0.78rem;
  color: var(--ui-muted);
  line-height: 1.45;
}

.portal-summary-card {
  background: linear-gradient(145deg, rgba(var(--ui-primary-rgb), .08), rgba(18,138,122,.08)), var(--ui-surface);
  border-color: rgba(var(--ui-primary-rgb), .18);
}

.portal-contact-mini {
  display: grid;
  gap: .45rem;
  font-size: .82rem;
  color: var(--ui-muted);
  min-width: min(100%, 240px);
}

.portal-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.portal-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .75rem;
  border-radius: 999px;
  background: rgba(var(--ui-primary-rgb), .09);
  border: 1px solid rgba(var(--ui-primary-rgb), .15);
  color: var(--ui-text);
  font-size: .82rem;
  font-weight: 600;
}

.portal-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.portal-next-card {
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(248,250,252,.96));
}

.portal-next-item {
  padding: .75rem .85rem;
  border-radius: 14px;
  border: 1px solid rgba(17,35,58,.08);
  background: rgba(255,255,255,.72);
  margin-bottom: .75rem;
}

.portal-next-item.is-alert {
  border-color: rgba(220,53,69,.22);
  background: rgba(220,53,69,.06);
}

.portal-next-item.is-info {
  border-color: rgba(var(--ui-primary-rgb), .2);
  background: rgba(var(--ui-primary-rgb), .06);
}

.portal-next-label {
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ui-muted);
  margin-bottom: .2rem;
}

.portal-next-value {
  font-size: .92rem;
  font-weight: 700;
  color: var(--ui-text);
  line-height: 1.35;
}

.portal-compact-note {
  font-size: .8rem;
  color: var(--ui-muted);
  line-height: 1.5;
}

.portal-mini-tile {
  background: var(--ui-surface-2);
}

html[data-theme="dark"] .dashboard-priority-card {
  border-color: rgba(var(--ui-primary-rgb), 0.24);
  box-shadow: 0 16px 34px rgba(0,0,0,.28), 0 0 0 1px rgba(var(--ui-primary-rgb), 0.12);
}

html[data-theme="dark"] .dashboard-secondary-card {
  border-color: rgba(122,162,204,.18);
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

html[data-theme="dark"] .section-card-head {
  border-bottom-color: rgba(122,162,204,.14);
}

html[data-theme="dark"] .section-card-kicker {
  color: #8bb9ff;
}

html[data-theme="dark"] .portal-summary-card {
  background: linear-gradient(145deg, rgba(22,39,66,.92), rgba(21,55,52,.86));
  border-color: rgba(var(--ui-primary-rgb), .24);
}

html[data-theme="dark"] .portal-next-card,
html[data-theme="dark"] .portal-next-item,
html[data-theme="dark"] .portal-mini-tile {
  background: rgba(15,27,45,.9);
  border-color: rgba(122,162,204,.18);
}

html[data-theme="dark"] .portal-stat-chip {
  background: rgba(var(--ui-primary-rgb), .16);
  border-color: rgba(var(--ui-primary-rgb), .24);
  color: #eef4ff;
}

@media (max-width: 767px) {
  .portal-action-grid .btn {
    width: 100%;
  }

  .portal-contact-mini {
    min-width: 100%;
  }
}

/* ============================================================
   TABLO COMPACT
   ============================================================ */

.tbl-compact { font-size: .78rem; }

/* ============================================================
   DARK FIXED LEFT SIDEBAR LAYOUT  (min-width: 768px)
   ============================================================ */

/* ── Brand header içinde sidebar ── */
.sidebar-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 1.2rem 0.9rem 1rem;
  border-bottom: 1px solid var(--sidebar-border);
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--sidebar-bg);
  transition: all 0.2s ease;
}
html[data-theme="dark"] .sidebar-brand-wrap {
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.4) 0%, rgba(17, 24, 39, 0.2) 100%), var(--sidebar-bg);
}
html[data-theme="light"] .sidebar-brand-wrap {
  background: var(--sidebar-bg);
}
.sidebar-brand-copy {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}
.sidebar-brand-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
/* Clean Text-Based Brand */
.sidebar-brand-text-main-large {
  font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1;
}
html[data-theme="dark"] .sidebar-brand-text-main-large {
  color: #f0f4f9;
}
html[data-theme="light"] .sidebar-brand-text-main-large {
  color: #0f172a;
}
.sidebar-brand-version {
  font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f6cbd;
  text-transform: uppercase;
  line-height: 1;
}
html[data-theme="dark"] .sidebar-brand-version {
  color: #93c5fd;
}
html[data-theme="light"] .sidebar-brand-version {
  color: #0f6cbd;
}
.sidebar-brand-info { display: none; }
.sidebar-brand-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e6edf3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
html[data-theme="light"] .sidebar-brand-name {
  color: #0f172a;
}
.sidebar-brand-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 2px;
}
html[data-theme="light"] .sidebar-brand-sub {
  color: var(--ui-primary, #0f6cbd);
}

.sidebar-visibility-toggle {
  width: 100%;
  min-height: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.sidebar-visibility-toggle .bi {
  opacity: 0.85;
}

.sidebar-visibility-label {
  white-space: nowrap;
}

.sidebar-toggle-row {
  margin: 1px 0 0;
}

.sidebar-toggle-row .sidebar-visibility-toggle {
  min-height: 44px;
}

.sidebar-visibility-toggle:hover,
.sidebar-visibility-toggle:focus-visible {
  text-decoration: none;
}

html[data-theme="dark"] .sidebar-visibility-toggle {
  color: inherit;
}

html[data-theme="dark"] .sidebar-visibility-toggle:hover,
html[data-theme="dark"] .sidebar-visibility-toggle:focus-visible {
  color: inherit;
}

@media (min-width: 768px) {
  /* Container: tam genişlik, padding'siz */
  .container.soft-enter {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: calc(var(--menu-h) + 14px) !important;
  }
  .container.soft-enter > .row {
    --bs-gutter-x: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* col-md-3 → sabit sol sidebar */
  .container.soft-enter > .row > .col-md-3 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: var(--sidebar-w) !important;
    max-width: var(--sidebar-w) !important;
    flex: 0 0 var(--sidebar-w) !important;
    padding: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 901;
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--sidebar-border) !important;
  }

  /* col-md-9 → sol kenar boşluğu */
  .container.soft-enter > .row > .col-md-9 {
    margin-left: var(--sidebar-w) !important;
    max-width: calc(100% - var(--sidebar-w)) !important;
    flex: 0 0 calc(100% - var(--sidebar-w)) !important;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
    padding-top: 0.25rem !important;
  }

  /* Top bar: sidebar sonrasından başlar */
  .top-menu-card {
    left: var(--sidebar-w) !important;
    right: 0 !important;
    top: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
  }
  html[data-theme="light"] .top-menu-card {
    border-bottom-color: rgba(0,0,0,.07) !important;
  }

  html[data-sidebar-state="collapsed"] {
    --sidebar-w: var(--sidebar-w-collapsed);
  }

  html[data-sidebar-state="collapsed"] .sidebar-brand-wrap {
    justify-content: center;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  html[data-sidebar-state="collapsed"] .sidebar-brand-copy,
  html[data-sidebar-state="collapsed"] .sidebar-group-title,
  html[data-sidebar-state="collapsed"] .sidebar-user-card > div:last-child,
  html[data-sidebar-state="collapsed"] .sidebar-dash-edit-text,
  html[data-sidebar-state="collapsed"] .sidebar-toggle-hint,
  html[data-sidebar-state="collapsed"] .sidebar-visibility-label,
  html[data-sidebar-state="collapsed"] .sidebar-head-text,
  html[data-sidebar-state="collapsed"] .sidebar-section-sep,
  html[data-sidebar-state="collapsed"] .sidebar-build-note,
  html[data-sidebar-state="collapsed"] .sidebar-logo-light,
  html[data-sidebar-state="collapsed"] .sidebar-logo-dark,
  html[data-sidebar-state="collapsed"] .sidebar-link .icon-label > span:last-child {
    display: none !important;
  }

  html[data-sidebar-state="collapsed"] .sidebar-logo-fallback {
    display: flex !important;
    align-items: center;
    gap: 0;
    padding: 0.55rem 0.75rem;
  }

  html[data-sidebar-state="collapsed"] .sidebar-user-card,
  html[data-sidebar-state="collapsed"] .sidebar-dash-edit-btn,
  html[data-sidebar-state="collapsed"] .sidebar-link,
  html[data-sidebar-state="collapsed"] .sidebar-main {
    justify-content: center;
  }

  html[data-sidebar-state="collapsed"] .sidebar-user-card {
    padding: 0.55rem;
  }

  html[data-sidebar-state="collapsed"] .sidebar-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  html[data-sidebar-state="collapsed"] .sidebar-visibility-toggle {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  html[data-sidebar-state="collapsed"] .sidebar-toggle-row {
    margin-left: 0;
    margin-right: 0;
  }

  html[data-sidebar-state="collapsed"] .sidebar-link .icon-label,
  html[data-sidebar-state="collapsed"] .sidebar-dash-edit-btn {
    gap: 0;
  }

  html[data-sidebar-state="collapsed"] .sidebar-dash-edit-btn {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  html[data-sidebar-state="collapsed"] .sidebar-toggle-mini,
  html[data-sidebar-state="collapsed"] .sidebar-submenu {
    display: none !important;
  }

  /* Ticker is now inline in top-menu-card — no separate card positioning needed */

  /* Top-menu brand logosu sidebar olduğu için gizle */
  .top-menu-brand { display: none !important; }

  /* Hamburger masaüstünde gizle */
  .mobile-nav-hamburger { display: none !important; }
}

/* ── Sidebar kart: saydam, kenarsız ── */
.left-sidebar-wrap {
  min-height: 100%;
  background: transparent;
}
.left-sidebar-card {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.left-sidebar-card .card-body {
  padding: 0.4rem 0.6rem !important;
}

/* ============================================================
   AÇIK TEMA — MASAÜSTÜ SIDEBAR
   (Desktop layout bloğundan sonra geldiği için !important
    çakışmalarında bu kurallar galip gelir)
   ============================================================ */

/* Sidebar sütun arka planı: açık mavimsi */
html[data-theme="light"] {
  --sidebar-bg: #eef4fc;
  --sidebar-border: rgba(var(--ui-primary-rgb), 0.14);
}

/* Marka alanı: açık tema için açık arka plan */
html[data-theme="light"] .sidebar-brand-wrap {
  background: #eef4fc !important;
  border-bottom-color: rgba(var(--ui-primary-rgb), 0.14) !important;
}

/* Sağ kenar çizgisi (col-md-3) */
@media (min-width: 768px) {
  html[data-theme="light"] .container.soft-enter > .row > .col-md-3 {
    border-right-color: rgba(var(--ui-primary-rgb), 0.13) !important;
  }
  /* Top bar alt çizgisi */
  html[data-theme="light"] .top-menu-card {
    border-bottom-color: rgba(var(--ui-primary-rgb), 0.10) !important;
  }
}

/* Sidebar brand text renkler - açık mod */
html[data-theme="light"] .sidebar-brand-text-main-large {
  color: #0f172a !important;
}
html[data-theme="light"] .sidebar-brand-version {
  color: var(--ui-primary, #0f6cbd) !important;
}
html[data-theme="light"] .sidebar-brand-name {
  color: #0f172a !important;
}
html[data-theme="light"] .sidebar-brand-sub {
  color: var(--ui-primary, #0f6cbd) !important;
}

/* Grup başlık yazıları */
html[data-theme="light"] .sidebar-group-title {
  color: rgba(15, 80, 160, 0.48) !important;
}

/* Nav bağlantılar */
html[data-theme="light"] .sidebar-link {
  color: #253b55 !important;
}
html[data-theme="light"] .sidebar-link:hover {
  background: rgba(var(--ui-primary-rgb), 0.1) !important;
  color: var(--ui-primary) !important;
}
html[data-theme="light"] .sidebar-link.active {
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2)) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(var(--ui-primary-rgb), 0.3) !important;
}

/* Toggle mini buton */
html[data-theme="light"] .sidebar-toggle-mini {
  background: none !important;
  border: none !important;
  color: rgba(15, 80, 160, 0.38) !important;
}
html[data-theme="light"] .sidebar-toggle-mini:hover {
  color: rgba(15, 80, 160, 0.72) !important;
}

/* Alt menü bağlantılar */
html[data-theme="light"] .sidebar-submenu a {
  color: #3d6090 !important;
  background: none !important;
  border: none !important;
}
html[data-theme="light"] .sidebar-submenu a:hover {
  color: var(--ui-primary) !important;
  background: rgba(var(--ui-primary-rgb), 0.07) !important;
}

/* Kullanıcı kartı */
html[data-theme="light"] .sidebar-user-card {
  background: rgba(var(--ui-primary-rgb), 0.08) !important;
  border-color: rgba(var(--ui-primary-rgb), 0.18) !important;
}
html[data-theme="light"] .sidebar-avatar-edit-btn {
  color: #3d6090 !important;
}

/* Off-canvas mobil menü */
html[data-theme="light"] #mobileNavOffcanvas {
  background: #eef4fc !important;
  border-right-color: rgba(var(--ui-primary-rgb), 0.14) !important;
}
html[data-theme="light"] #mobileNavOffcanvas .offcanvas-header {
  border-bottom-color: rgba(var(--ui-primary-rgb), 0.14) !important;
}
html[data-theme="light"] #mobileNavOffcanvas .sidebar-kicker {
  color: rgba(15, 80, 160, 0.48) !important;
}
html[data-theme="light"] #mobileNavOffcanvas .sidebar-title {
  color: #1a3050 !important;
}
html[data-theme="light"] #mobileNavOffcanvas .btn-close {
  filter: none !important;
}

/* ── Sidebar grup başlıkları: açık koyu ── */
.sidebar-group-title {
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  color: rgba(255,255,255,.22) !important;
  margin: 0.85rem 0.35rem 0.25rem !important;
  text-transform: uppercase !important;
}

.sidebar-panel-build {
  font-size: 0.58rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  color: rgba(255,255,255,.42) !important;
  text-transform: none !important;
  white-space: normal;
  line-height: 1.4;
  margin-bottom: 0.45rem !important;
}

/* ── Sidebar bağlantılar: koyu tema ── */
.sidebar-link {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  min-height: 44px;
  padding: 0.48rem 0.65rem !important;
  border-radius: 7px !important;
  color: #8b949e !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease !important;
  margin-bottom: 1px;
}
.sidebar-link:hover {
  background: rgba(255,255,255,.07) !important;
  color: #c9d1d9 !important;
  transform: none !important;
  border: none !important;
}
.sidebar-link.active {
  background: rgba(255,255,255,.11) !important;
  color: #f0f6fc !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: none !important;
}
.sidebar-link .icon-label {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
}
.sidebar-link .icon-label i { font-size: 1rem; flex-shrink: 0; opacity: 0.85; }

/* ── Sidebar alt menü ── */
.sidebar-entry { margin-bottom: 1px; }
.sidebar-main { display: flex; align-items: stretch; gap: 0.25rem; }
.sidebar-main-link { flex: 1; }
.sidebar-toggle-mini {
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,.25) !important;
  min-width: 32px;
  min-height: 44px;
  padding: 0.3rem 0.4rem !important;
  cursor: pointer;
  border-radius: 5px;
  transition: color 0.15s;
}
.sidebar-toggle-mini:hover { color: rgba(255,255,255,.55) !important; }
.sidebar-submenu {
  padding: 0.1rem 0.15rem 0.2rem 2rem !important;
}
.sidebar-submenu a {
  display: block;
  color: rgba(255,255,255,.4) !important;
  font-size: 0.78rem;
  text-decoration: none;
  padding: 0.28rem 0.45rem;
  border-radius: 5px;
  transition: color 0.14s;
}
.sidebar-submenu a:hover { color: rgba(255,255,255,.75) !important; }

/* ── Off-canvas: koyu ── */
#mobileNavOffcanvas {
  background: var(--sidebar-bg) !important;
  border-right: 1px solid var(--sidebar-border) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
#mobileNavOffcanvas .offcanvas-header {
  border-bottom: 1px solid var(--sidebar-border) !important;
  padding: 1rem 1rem 0.9rem !important;
  background: linear-gradient(180deg, rgba(var(--ui-primary-rgb), 0.12), transparent 90%);
}
#mobileNavOffcanvas .sidebar-kicker { color: rgba(255,255,255,.35) !important; }
#mobileNavOffcanvas .sidebar-title  { color: #e6edf3 !important; }
#mobileNavOffcanvas .btn-close { filter: invert(1) !important; }
#mobileNavOffcanvas .offcanvas-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
#mobileNavOffcanvas .sidebar-group-title {
  margin-top: 0.8rem;
  margin-bottom: 0.35rem;
  padding-left: 0.2rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}
#mobileNavOffcanvas .sidebar-group-title:first-child {
  margin-top: 0;
}
#mobileNavOffcanvas .sidebar-link {
  min-height: 48px;
  margin-bottom: 0.38rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--ui-primary-rgb), 0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
#mobileNavOffcanvas .sidebar-link .icon-label {
  gap: 0.85rem;
}
#mobileNavOffcanvas .sidebar-link .bi {
  font-size: 1rem;
}
#mobileNavOffcanvas .sidebar-link.active {
  box-shadow: 0 10px 22px rgba(0,0,0,.18), 0 0 0 1px rgba(var(--ui-primary-rgb), 0.18);
}
#mobileNavOffcanvas .mobile-sidebar-note {
  margin-top: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px dashed rgba(var(--ui-primary-rgb), 0.2);
  background: rgba(var(--ui-primary-rgb), 0.06);
  color: var(--ui-muted);
  font-size: 0.77rem;
  line-height: 1.45;
}
html[data-theme="dark"] #mobileNavOffcanvas .sidebar-link {
  background: rgba(255,255,255,0.02);
  border-color: rgba(122,162,204,.12);
}
html[data-theme="dark"] #mobileNavOffcanvas .mobile-sidebar-note {
  color: #a8bdd8;
}
html[data-theme="light"] #mobileNavOffcanvas .offcanvas-header {
  background: linear-gradient(180deg, rgba(var(--ui-primary-rgb), 0.08), transparent 90%);
}

.tbl-compact th, .tbl-compact td { padding: .45rem .5rem; }

/* ============================================================
   #1 — GARANTİ TARİHİ BADGE (warranty_badge())
   ============================================================ */

.wb {
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  letter-spacing: 0.01em;
}
.wb-ok      { background: #d1fadf; color: #135e33; border: 1px solid #a3e6c0; }
.wb-warn    { background: #fff3cd; color: #7a4d00; border: 1px solid #ffd97a; }
.wb-expired { background: #fde8eb; color: #8b1a29; border: 1px solid #f0b8c3; }

html[data-theme="dark"] .wb-ok      { background: #1a3d2b; color: #5de89f; border-color: #2c6644; }
html[data-theme="dark"] .wb-warn    { background: #3b2f0d; color: #ffd07f; border-color: #6b5420; }
html[data-theme="dark"] .wb-expired { background: #3b1a22; color: #ff8ea3; border-color: #6e3046; }

/* ============================================================
   #2 — TABLO BİLGİ HİYERARŞİSİ
   ============================================================ */

.tbl-primary { font-weight: 600; color: var(--ui-text); }
.tbl-muted   { color: var(--ui-muted); font-size: 0.82rem; }

html[data-theme="dark"] .tbl-muted { color: var(--ui-muted-soft); }

/* ============================================================
   #3 — FORM BÖLÜM AYIRAÇLARI
   ============================================================ */

.form-section-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ui-primary);
}
.form-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(var(--ui-primary-rgb),0.3), transparent);
}
html[data-theme="dark"] .form-section-label { color: #7cb8ff; }
html[data-theme="dark"] .form-section-label::after { background: linear-gradient(to right, rgba(124,184,255,0.3), transparent); }

/* ============================================================
   #4 — DELTA BADGE (Dashboard)
   ============================================================ */

.delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.16rem 0.46rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.32);
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
}
.delta-badge.delta-zero { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.65); }

/* ============================================================
   #5 — BOŞ DURUM BİLEŞENİ (empty-state)
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
  text-align: center;
}
.empty-state-inline {
  min-height: 0;
  padding-left: 0;
  padding-right: 0;
}
.es-icon  { font-size: 2.2rem; color: var(--ui-muted-soft); opacity: 0.65; }
.es-title { font-size: 0.96rem; font-weight: 700; color: var(--ui-text); }
.es-sub   { font-size: 0.82rem; color: var(--ui-muted); }
.es-row td { border: none !important; background: transparent !important; }
html[data-theme="dark"] .es-row td { background: transparent !important; }

@media (max-width: 767px) {
  .section-card-head {
    padding-bottom: 0.85rem !important;
  }

  .section-card-meta {
    max-width: 100%;
  }
}

/* ============================================================
   #6 — SİDEBAR KULLANICI KARTI
   ============================================================ */

.sidebar-user-card {
  margin: 0.5rem 0.15rem 0.2rem;
  padding: 0.6rem 0.72rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(var(--ui-primary-rgb),0.18);
  background: rgba(var(--ui-primary-rgb),0.06);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}
.sidebar-user-name  { font-size: 0.8rem; font-weight: 700; color: #1a3050; line-height: 1.2; }
.sidebar-user-role  { font-size: 0.68rem; font-weight: 700; color: #3d6da4; letter-spacing: 0.04em; text-transform: uppercase; }

html[data-theme="dark"] .sidebar-user-card  { background: rgba(86,156,255,0.1); border-color: rgba(86,156,255,0.28); }
html[data-theme="dark"] .sidebar-user-name  { color: #dce9ff; }
html[data-theme="dark"] .sidebar-user-role  { color: #7cb8ff; }

/* ============================================================
   #7 — TOAST BİLDİRİMLERİ
   ============================================================ */

.td-toast-wrap {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 9999;
  animation: tdToastIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.td-toast-wrap.td-toast-out { animation: tdToastOut 0.38s ease forwards; }

.td-toast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem 0.75rem 0.9rem;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.1);
  min-width: 260px;
  max-width: 360px;
  font-size: 0.875rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.td-toast-success { background: #edfaf3; border: 1px solid #9ddbb9; color: #1f5d40; }
.td-toast-danger  { background: #fdf0f2; border: 1px solid #f0b8c3; color: #7a2536; }
.td-toast-warning { background: #fdf7ec; border: 1px solid #f0d88a; color: #6b4e16; }
.td-toast-info    { background: #edf4ff; border: 1px solid #b8d4f0; color: #214766; }

html[data-theme="dark"] .td-toast-success { background: #1a3a2a; border-color: #2e6644; color: #9de8c0; }
html[data-theme="dark"] .td-toast-danger  { background: #3b1e24; border-color: #6e3046; color: #ffaaba; }
html[data-theme="dark"] .td-toast-warning { background: #3a2e10; border-color: #6b5420; color: #ffd07f; }
html[data-theme="dark"] .td-toast-info    { background: #1a2f48; border-color: #335678; color: #9fd4ff; }

.td-toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.td-toast-msg  { flex: 1; line-height: 1.4; }
.td-toast-close {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 1.1rem; line-height: 1; opacity: 0.55;
  color: inherit; flex-shrink: 0;
  transition: opacity 0.15s;
}
.td-toast-close:hover { opacity: 1; }

@keyframes tdToastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes tdToastOut {
  to { opacity: 0; transform: translateY(12px) scale(0.95); }
}

/* ============================================================
   #8 — MOBİL TABLO KART GÖRÜNÜMÜ
   ============================================================ */

@media (max-width: 767.98px) {
  .table-card-mobile thead { display: none; }
  .table-card-mobile tbody, .table-card-mobile tr, .table-card-mobile td {
    display: block; width: 100%;
  }
  .table-card-mobile tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    overflow: hidden;
    background: var(--ui-surface);
    box-shadow: 0 2px 8px rgba(15,33,58,0.06);
  }
  .table-card-mobile td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.84rem;
    border-bottom: 1px solid var(--ui-border);
    text-align: right;
  }
  .table-card-mobile td:last-child { border-bottom: none; }
  .table-card-mobile td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ui-muted);
    white-space: nowrap;
    flex-shrink: 0;
    text-align: left;
  }
  /* Aksiyon sütunu tam genişlik, ortala */
  .table-card-mobile td[data-label="İşlemler"],
  .table-card-mobile td[data-label="Islemler"] {
    justify-content: center;
  }
  .table-card-mobile td[data-label="İşlemler"]::before,
  .table-card-mobile td[data-label="Islemler"]::before { display: none; }
}

/* ============================================================
   #9 — PANEL TOUR SHELL
   ============================================================ */

body.tour-page {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: var(--ui-bg);
  color: var(--ui-text);
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.tour-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(var(--ui-primary-rgb), 0.08), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(var(--ui-primary-rgb), 0.05), transparent 30%);
}

.tour-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.72));
  border-bottom: 1px solid rgba(var(--ui-primary-rgb), 0.12);
  flex-shrink: 0;
  gap: 1rem;
  position: relative;
  z-index: 3;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 24px rgba(17, 35, 58, 0.05);
}

.tour-topbar.compact-aux {
  padding: 0.58rem 1rem;
  gap: 0.75rem;
}

.tour-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ui-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tour-brand img {
  height: 22px;
  opacity: 0.85;
}

.tour-brand span {
  color: var(--ui-primary);
}

.tour-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tour-topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tour-tool-cluster {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.tour-topbar-badge,
.tour-slide-index,
.tour-mockup-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  background: rgba(var(--ui-primary-rgb), 0.08);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.16);
  color: var(--ui-primary);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.tour-counter {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ui-muted);
  white-space: nowrap;
}

.tour-btn,
.tour-tool-btn,
.tour-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.46rem 0.92rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-primary-rgb), 0.12);
  background: rgba(255,255,255,0.72);
  color: var(--ui-text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.tour-tool-btn {
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  flex-shrink: 0;
  border-color: rgba(var(--ui-primary-rgb), 0.12);
  background: rgba(255,255,255,0.72);
  color: var(--ui-text);
}

.tour-tool-btn i {
  font-size: 0.98rem;
}

.tour-tool-btn.tone-enter {
  background: var(--slide-color, var(--ui-primary));
  border-color: transparent;
}

.tour-btn:hover,
.tour-tool-btn:hover,
.tour-cta-secondary:hover {
  background: rgba(var(--ui-primary-rgb), 0.08);
  border-color: rgba(var(--ui-primary-rgb), 0.18);
  color: var(--ui-primary);
  transform: translateY(-1px);
}

.tour-btn.primary,
.tour-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1rem;
  background: var(--slide-color, var(--ui-primary));
  color: #fff;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}

.tour-btn.primary:hover,
.tour-cta:hover {
  opacity: 0.86;
  color: #fff;
  transform: translateY(-1px);
}

.tour-dots {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  justify-content: center;
}

.tour-dot {
  height: 4px;
  min-width: 20px;
  border: none;
  border-radius: 2px;
  background: var(--ui-border);
  cursor: pointer;
  transition: all 0.3s;
}

.tour-dot.active {
  background: var(--slide-color, var(--ui-primary));
  min-width: 32px;
}

.tour-dot:hover:not(.active) {
  background: var(--ui-muted);
}

.tour-progress-rail {
  height: 3px;
  background: var(--ui-border);
  flex-shrink: 0;
  overflow: hidden;
}

.tour-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--slide-color, var(--ui-primary)), var(--slide-color2, var(--ui-primary-2)));
  transition: width 0.1s linear, background 0.6s ease;
}

.tour-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  padding: 0.6rem 0;
}

.tour-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  opacity: 0;
  transform: translateX(50px) scale(0.98);
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  will-change: transform, opacity;
}

.tour-slide.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.tour-slide.exit {
  opacity: 0;
  transform: translateX(-50px) scale(0.98);
}

.tour-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  max-width: 1040px;
  width: 100%;
  align-items: start;
}

.tour-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tour-copy-card,
.tour-mockup {
  border-radius: 22px;
  border: 1px solid rgba(var(--ui-primary-rgb), 0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(251,249,245,0.86));
  box-shadow: 0 18px 36px rgba(17,35,58,0.06);
}

.tour-copy-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.05rem 1.1rem;
}

.tour-copy-card.compact-aux {
  gap: 0.78rem;
  padding: 0.9rem 0.95rem;
}

.tour-icon-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tour-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: var(--slide-icon-bg);
  color: var(--slide-color);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.tour-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slide-color);
  opacity: 0.9;
}

.tour-title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ui-text);
  letter-spacing: -0.03em;
}

.tour-desc {
  font-size: 0.9rem;
  color: var(--ui-muted);
  line-height: 1.7;
  border-left: 3px solid var(--slide-color);
  padding-left: 0.8rem;
  opacity: 0.9;
}

.tour-copy-card.compact-aux .tour-desc {
  font-size: 0.84rem;
  line-height: 1.58;
  padding-left: 0.7rem;
}

.tour-chip-row,
.tour-mini-pills,
.tour-shortcuts,
.tour-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.tour-chip-row {
  gap: 0.6rem;
}

.tour-mini-pills,
.tour-shortcuts {
  gap: 0.45rem;
}

.tour-mini-pills.compact-aux,
.tour-shortcuts.compact-aux {
  gap: 0.32rem;
}

.tour-cta-row {
  gap: 0.65rem;
}

.tour-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--slide-icon-bg);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.18);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slide-color);
}

.tour-stat-chip .num {
  font-size: 1rem;
  font-weight: 800;
}

.tour-mini-pill,
.tour-shortcut kbd {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  color: var(--ui-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.tour-mini-pills.compact-aux .tour-mini-pill,
.tour-shortcuts.compact-aux .tour-shortcut kbd {
  padding: 0.24rem 0.52rem;
  font-size: 0.68rem;
}

.tour-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: rgba(var(--ui-primary-rgb), 0.045);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.1);
  font-size: 0.78rem;
  color: var(--ui-muted);
  line-height: 1.55;
}

.tour-copy-card.compact-aux .tour-tip {
  padding: 0.48rem 0.68rem;
  font-size: 0.74rem;
}

.tour-tip i {
  color: var(--slide-color);
  margin-top: 1px;
  flex-shrink: 0;
}

.tour-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.tour-step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ui-muted);
}

.tour-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slide-icon-bg);
  border: 1.5px solid var(--slide-color);
  color: var(--slide-color);
  font-size: 0.62rem;
  font-weight: 800;
}

.tour-step-sep {
  margin: 0 0.3rem;
  font-size: 0.65rem;
  color: var(--ui-border);
}

.tour-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.71rem;
  color: var(--ui-muted);
  font-weight: 700;
}

.tour-shortcut kbd {
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ui-text);
  padding: 0.14rem 0.38rem;
  border-radius: 6px;
  box-shadow: inset 0 -1px 0 rgba(17,35,58,0.06);
}

.tour-mockup {
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(17,35,58,0.08);
}

.tour-mockup.compact-aux {
  box-shadow: 0 14px 28px rgba(17,35,58,0.06);
}

.tour-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(var(--ui-primary-rgb), 0.04), transparent 42%, rgba(var(--ui-primary-rgb),0.03));
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: var(--ui-surface-2);
  border-bottom: 1px solid var(--ui-border);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ui-muted);
}

.mockup-titlebar i {
  color: var(--slide-color);
}

.mockup-dots {
  display: flex;
  gap: 4px;
  margin-right: 4px;
}

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

.mockup-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tour-mockup.compact-aux .mockup-body {
  padding: 0.72rem;
  gap: 0.45rem;
}

.tour-mockup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem 0.9rem;
  border-top: 1px solid rgba(var(--ui-primary-rgb), 0.08);
  color: var(--ui-muted);
  font-size: 0.72rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.tour-mockup.compact-aux .tour-mockup-footer {
  padding: 0.62rem 0.78rem 0.76rem;
  font-size: 0.68rem;
}

.tour-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  color: var(--ui-text);
  cursor: pointer;
  font-size: 1rem;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.tour-arrow:hover {
  background: var(--ui-surface-3);
  transform: translateY(-50%) scale(1.1);
}

.tour-arrow.prev {
  left: 0.5rem;
}

.tour-arrow.next {
  right: 0.5rem;
}

.tour-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  pointer-events: none;
  transition: background 1s ease;
}

.tour-bg-orb.orb1 {
  width: 550px;
  height: 550px;
  top: -220px;
  left: -180px;
  animation: orbFloat 9s ease-in-out infinite;
}

.tour-bg-orb.orb2 {
  width: 380px;
  height: 380px;
  bottom: -120px;
  right: -100px;
  animation: orbFloat 11s ease-in-out infinite reverse;
}

.tour-pause-badge {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 100;
}

.tour-pause-badge.visible {
  opacity: 1;
}

.tour-info > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tour-slide.active .tour-info > * {
  opacity: 1;
  transform: none;
}

.tour-slide.active .tour-info > *:nth-child(1) { transition-delay: .05s; }
.tour-slide.active .tour-info > *:nth-child(2) { transition-delay: .12s; }
.tour-slide.active .tour-info > *:nth-child(3) { transition-delay: .19s; }
.tour-slide.active .tour-info > *:nth-child(4) { transition-delay: .26s; }
.tour-slide.active .tour-info > *:nth-child(5) { transition-delay: .33s; }
.tour-slide.active .tour-info > *:nth-child(6) { transition-delay: .40s; }
.tour-slide.active .tour-info > *:nth-child(7) { transition-delay: .47s; }

@keyframes orbFloat {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(18px,-18px); }
}

html[data-theme="dark"] .tour-bg-orb {
  opacity: 0.18;
}

html[data-theme="dark"] .tour-topbar {
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.9), rgba(16, 23, 35, 0.8));
  border-bottom-color: rgba(122,162,204,0.16);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

html[data-theme="dark"] .tour-copy-card,
html[data-theme="dark"] .tour-mockup {
  background: linear-gradient(180deg, rgba(20,31,49,0.92), rgba(15,24,40,0.88));
  border-color: rgba(122,162,204,0.16);
}

html[data-theme="dark"] .tour-mini-pill,
html[data-theme="dark"] .tour-btn,
html[data-theme="dark"] .tour-tool-btn,
html[data-theme="dark"] .tour-cta-secondary,
html[data-theme="dark"] .tour-shortcut kbd {
  background: rgba(255,255,255,0.04);
  border-color: rgba(122,162,204,0.16);
}

html[data-theme="dark"] .tour-mockup-footer {
  border-top-color: rgba(122,162,204,0.14);
}

@media (max-width: 980px) {
  .tour-topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tour-topbar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .tour-topbar-meta {
    justify-content: flex-start;
  }

  .tour-dots {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 740px) {
  .tour-topbar {
    padding: 0.7rem 0.85rem;
    gap: 0.7rem;
  }

  .tour-topbar-actions {
    gap: 0.5rem;
    justify-content: center;
  }

  .tour-topbar-meta,
  .tour-tool-cluster {
    width: 100%;
    justify-content: center;
  }

  .tour-topbar-badge,
  .tour-counter {
    text-align: center;
  }

  .tour-btn,
  .tour-cta-secondary {
    flex: 1 1 calc(50% - 0.4rem);
    justify-content: center;
  }

  .tour-btn.primary {
    flex-basis: 100%;
  }

  .tour-tool-btn,
  .tour-tool-btn.tone-enter {
    width: 42px;
    height: 42px;
  }

  .tour-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tour-slide {
    padding: 0.85rem;
  }

  .tour-copy-card {
    padding: 0.9rem 0.9rem;
  }

  .tour-shortcuts {
    gap: 0.35rem;
  }

  .tour-mockup {
    display: block;
    max-height: 260px;
  }

  .mockup-body {
    max-height: 205px;
    overflow: auto;
  }
}

html[data-theme="dark"] .panel-tour-bridge {
  background: linear-gradient(140deg, rgba(110,168,254,.12), rgba(20,31,49,.96) 60%);
  border-color: rgba(110,168,254,.18);
  box-shadow: none;
}

html[data-theme="dark"] .panel-tour-bridge-pill {
  background: rgba(255,255,255,.05);
  border-color: rgba(110,168,254,.16);
  color: #e5edf9;
}

.m-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  background: var(--ui-surface-2);
  border-radius: 8px;
  border: 1px solid var(--ui-border);
  font-size: 0.74rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tour-slide.active .m-row {
  opacity: 1;
  transform: none;
}

.m-row:nth-child(1) { transition-delay: .15s; }
.m-row:nth-child(2) { transition-delay: .25s; }
.m-row:nth-child(3) { transition-delay: .35s; }
.m-row:nth-child(4) { transition-delay: .45s; }

.m-label {
  flex: 1;
  font-weight: 600;
  color: var(--ui-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-val {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--slide-color);
  white-space: nowrap;
}

.m-badge {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.m-badge.ok { background: rgba(5,150,105,.14); color: #059669; }
.m-badge.warn { background: rgba(234,88,12,.14); color: #ea580c; }
.m-badge.danger { background: rgba(180,35,60,.14); color: #b4233c; }
.m-badge.neutral { background: var(--ui-surface-3); color: var(--ui-muted); }

.m-row-center { justify-content: center; gap: .6rem; }
.m-row-stack { flex-wrap: wrap; gap: .35rem; }
.m-row-spaced { margin-top: .2rem; }

.m-row-highlight {
  background: var(--slide-icon-bg);
  border-color: rgba(var(--ui-primary-rgb), 0.18);
}

.m-row-highlight .m-label {
  font-weight: 700;
  color: var(--slide-color);
}

.m-label-muted { opacity: .5; }

.m-label-faint {
  opacity: .4;
  font-size: .7rem;
}

.m-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--ui-border);
  border-radius: 3px;
  overflow: hidden;
}

.m-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.m-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.m-metric {
  padding: 0.55rem 0.65rem;
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s, transform 0.3s;
}

.tour-slide.active .m-metric,
.tour-slide.active .m-feat-item,
.tour-slide.active .m-bubble {
  opacity: 1;
  transform: none;
}

.m-metric:nth-child(1),
.m-feat-item:nth-child(1) { transition-delay: .1s; }
.m-metric:nth-child(2),
.m-feat-item:nth-child(2) { transition-delay: .2s; }
.m-metric:nth-child(3),
.m-feat-item:nth-child(3),
.m-bubble:nth-child(1) { transition-delay: .3s; }
.m-metric:nth-child(4),
.m-feat-item:nth-child(4),
.m-bubble:nth-child(2) { transition-delay: .4s; }
.m-feat-item:nth-child(5),
.m-bubble:nth-child(3) { transition-delay: .5s; }
.m-feat-item:nth-child(6) { transition-delay: .6s; }

.m-metric-num {
  font-size: 1.4rem;
  font-weight: 800;
}

.m-metric-lbl {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--ui-muted);
}

.m-chat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.m-bubble {
  max-width: 88%;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s, transform 0.35s;
}

.m-bubble.user {
  background: var(--slide-icon-bg);
  color: var(--ui-text);
  align-self: flex-end;
}

.m-bubble.ai {
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  color: var(--ui-text);
}

.m-bubble.ai::before {
  content: '🤖 ';
}

.m-terminal {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #0d1117;
  color: #7ee787;
  font-family: 'Consolas', monospace;
  font-size: 0.68rem;
  line-height: 1.7;
}

.m-terminal .t-line {
  opacity: 0;
  transition: opacity 0.3s;
}

.tour-slide.active .m-terminal .t-line {
  opacity: 1;
}

.m-terminal .t-line:nth-child(1) { transition-delay: .1s; }
.m-terminal .t-line:nth-child(2) { transition-delay: .3s; }
.m-terminal .t-line:nth-child(3) { transition-delay: .5s; }
.m-terminal .t-line:nth-child(4) { transition-delay: .7s; }
.m-terminal .t-line:nth-child(5) { transition-delay: .9s; }

.t-cmd { color: #58a6ff; }
.t-ok { color: #3fb950; }
.t-warn { color: #d29922; }

.m-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.m-feat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ui-text);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s, transform 0.3s;
}

.m-feat-item i {
  color: var(--slide-color);
  font-size: 1rem;
  flex-shrink: 0;
}

.panel-token-pill,
.panel-token-pill-strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--ui-primary-rgb), .18);
  font-size: 0.76rem;
  font-weight: 700;
}

.panel-token-pill-strong {
  background: rgba(var(--ui-primary-rgb), .08);
  color: var(--ui-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-token-pill {
  background: var(--ui-surface-2);
  color: var(--ui-text);
}

.panel-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-signal-ribbon,
.panel-bridge-card,
.panel-related-card,
.panel-insight-card {
  border-radius: 16px;
  border: 1px solid rgba(var(--ui-primary-rgb), .16);
  background: linear-gradient(160deg, rgba(var(--ui-primary-rgb), .06), rgba(var(--ui-primary-rgb), .015));
  box-shadow: 0 12px 28px rgba(17,35,58,0.06);
}

.panel-bridge-card,
.panel-insight-card,
.panel-guide-hero,
.panel-guide-summary,
.panel-guide-box {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.panel-bridge-card:hover,
.panel-guide-hero:hover,
.panel-guide-summary:hover,
.panel-guide-box:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--ui-primary-rgb), .22);
  box-shadow: 0 14px 28px rgba(17,35,58,0.08);
}

.panel-insight-card:hover {
  border-color: rgba(var(--ui-primary-rgb), .22);
  box-shadow: 0 14px 28px rgba(17,35,58,0.08);
}

.panel-signal-ribbon {
  padding: 0.85rem 0.95rem;
  overflow: hidden;
}

.panel-signal-header,
.panel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.panel-signal-header {
  margin-bottom: 0.7rem;
}

.panel-signal-meta,
.panel-bridge-meta,
.panel-related-meta,
.panel-card-copy .meta,
.panel-insight-meta {
  font-size: 0.82rem;
  color: var(--ui-muted);
}

.panel-signal-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.panel-signal-track {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  animation: panelSignalMove 30s linear infinite;
}

.panel-signal-marquee:hover .panel-signal-track {
  animation-play-state: paused;
}

.panel-signal-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.48rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--ui-primary-rgb), .14);
  background: var(--ui-surface);
  color: var(--ui-text);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
}

.panel-signal-item:hover {
  border-color: rgba(var(--ui-primary-rgb), .28);
  color: var(--ui-text);
}

.panel-bridge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.panel-bridge-card,
.panel-related-card {
  padding: 0.95rem 1rem;
}

.panel-bridge-icon,
.panel-insight-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(var(--ui-primary-rgb), .12);
  color: var(--ui-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.panel-bridge-title,
.panel-related-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ui-text);
  margin: 0.65rem 0 0.25rem;
}

.panel-bridge-link,
.panel-related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  color: var(--ui-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.panel-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.panel-insight-card {
  position: relative;
  overflow: hidden;
  padding: 0.9rem 0.95rem;
  background: linear-gradient(160deg, rgba(var(--ui-primary-rgb), .08), rgba(var(--ui-primary-rgb), .02));
}

.panel-insight-card::after {
  content: '';
  position: absolute;
  inset: auto -24px -28px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(var(--ui-primary-rgb), .08);
}

.panel-insight-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.panel-insight-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ui-muted);
}

.panel-insight-value {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ui-text);
  margin-top: 0.2rem;
}

.panel-insight-meta {
  position: relative;
  z-index: 1;
  margin-top: 0.42rem;
}

.panel-card-copy {
  display: grid;
  gap: 0.16rem;
}

.panel-card-copy .title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ui-text);
}

body.news-page {
  background: var(--ui-bg);
}

body.support-page,
body.services-page {
  background: var(--ui-bg);
}

.news-page-shell {
  display: grid;
  gap: 1rem;
}

.news-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .9fr);
  gap: 1rem;
  align-items: stretch;
}

.news-hero-copy {
  display: grid;
  gap: .85rem;
}

.news-page-shell .panel-card-head {
  align-items: flex-start;
  padding: 1rem 1rem .85rem;
  border-bottom: 1px solid var(--ui-border);
  background: linear-gradient(135deg, rgba(var(--ui-primary-rgb), .08), rgba(var(--ui-primary-rgb), .02));
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(260px, .84fr) minmax(0, 1.4fr) minmax(220px, .76fr);
  gap: 1rem;
  align-items: start;
}

.news-list-card,
.news-reader-card {
  overflow: hidden;
}

.news-list .list-group-item {
  border-left: 0;
  border-right: 0;
  padding: .85rem 1rem;
  background: var(--ui-surface);
}

.news-list .list-group-item:first-child {
  border-top: 0;
}

.news-list .list-group-item.active {
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
  border-color: var(--ui-primary);
}

.news-list-item {
  display: grid;
  gap: .18rem;
}

.news-list-item-title {
  font-weight: 700;
  color: inherit;
  line-height: 1.4;
}

.news-list-item-meta {
  font-size: .78rem;
  color: var(--ui-muted);
}

.news-list .list-group-item.active .news-list-item-meta {
  color: rgba(255, 255, 255, .82);
}

.news-reader-body {
  padding: 1rem 1rem 1.15rem;
  display: grid;
  gap: .95rem;
}

.news-reader-title {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ui-text);
}

.news-reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.news-content {
  white-space: pre-wrap;
  line-height: 1.85;
  font-size: .98rem;
  color: var(--ui-text);
  border: 1px solid rgba(var(--ui-primary-rgb), .1);
  border-radius: 16px;
  background: rgba(var(--ui-primary-rgb), .03);
  padding: 1rem 1.05rem;
}

.news-empty {
  border: 1px dashed rgba(var(--ui-primary-rgb), .22);
  border-radius: 16px;
  background: rgba(var(--ui-primary-rgb), .04);
  padding: 1.2rem 1rem;
  color: var(--ui-muted);
}

.news-empty-title {
  font-weight: 700;
  color: var(--ui-text);
  margin-bottom: .25rem;
}

.news-related-item {
  padding: .7rem .78rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--ui-primary-rgb), .12);
  background: var(--ui-surface);
}

.news-related-item-title {
  font-weight: 700;
  color: var(--ui-text);
  line-height: 1.45;
}

.support-hero {
  margin-bottom: 1.1rem;
}

.support-stat-card,
.support-quick-card,
.support-triage-step,
.support-solution-card,
.corp-list-section {
  border-radius: var(--ui-radius-lg, 16px);
  background: var(--cf, #fff);
  box-shadow: var(--ui-shadow-soft, 0 8px 24px rgba(20,39,80,.06));
}

.support-stat-card,
.support-quick-card,
.corp-list-section {
  border: 1px solid rgba(var(--ui-primary-rgb), .10);
  padding: .95rem 1rem;
}

.support-triage-step,
.support-solution-card {
  border: 1px solid rgba(var(--ui-primary-rgb), .12);
  padding: .95rem 1rem;
}

.support-stat-label {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--ui-primary-rgb), .18);
  background: rgba(var(--ui-primary-rgb), .08);
  color: var(--ui-primary);
  font-size: .76rem;
  font-weight: 700;
}

.support-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ui-text);
  line-height: 1;
  margin-top: .65rem;
}

.support-stat-meta,
.support-guides-meta,
.support-solution-meta,
.support-triage-meta {
  color: var(--ui-muted, #64748b);
}

.support-quick-grid,
.support-triage-grid,
.support-solution-grid {
  display: grid;
  gap: .85rem;
}

.support-quick-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.support-triage-grid,
.support-solution-grid {
  margin-bottom: .9rem;
}

.support-triage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-solution-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-triage-step.is-active,
.support-solution-card.is-active,
.support-quick-card.is-active,
.corp-list-section.is-active {
  border-color: rgba(var(--ui-primary-rgb), .26);
  box-shadow: 0 14px 32px rgba(20,39,80,.10);
  background: linear-gradient(155deg, rgba(var(--ui-primary-rgb), .09), rgba(var(--ui-primary-rgb), .02));
}

.support-step-index,
.support-solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(var(--ui-primary-rgb), .1);
  color: var(--ui-primary);
  font-weight: 800;
}

.support-triage-title,
.support-solution-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ui-text);
  margin: .7rem 0 .35rem;
}

.support-solution-meta,
.support-triage-meta {
  font-size: .88rem;
  line-height: 1.65;
}

.support-solution-link {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  margin-top: .9rem;
  color: var(--ui-primary);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.support-guides-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
  flex-wrap: wrap;
}

.support-guides-head-copy {
  display: grid;
  gap: .2rem;
}

.support-guides-meta {
  font-size: .88rem;
}

.guide-accordion .accordion-item {
  border: 1px solid rgba(15,23,42,.08);
  border-radius: .9rem;
  overflow: hidden;
  background: transparent;
}

.guide-accordion .accordion-button {
  font-weight: 700;
  padding: 1rem 1.1rem;
}

.guide-accordion .accordion-button:not(.collapsed) {
  background: rgba(var(--ui-primary-rgb), .08);
}

.service-list-table thead th {
  background: rgba(var(--ui-primary-rgb), .08);
  color: var(--ui-text);
  font-weight: 600;
  border-color: rgba(var(--ui-primary-rgb), .15);
}

.service-list-table tbody tr:hover {
  background: rgba(var(--ui-primary-rgb), .03) !important;
}

.tbl-compact {
  font-size: .78rem;
}

.tbl-compact th,
.tbl-compact td {
  padding: .45rem .5rem;
}

body.services-page .filter-shell .form-label.fw-600 {
  font-size: .81rem;
  letter-spacing: .01em;
}

body.services-page .filter-shell .form-select,
body.services-page .filter-shell .form-control {
  font-size: .82rem;
}

body.services-page .filter-shell select[name="customer_id"],
body.services-page .filter-shell select[name="customer_id"] option {
  font-size: .8rem;
}

body.services-page .filter-shell form .btn:not(.btn-sm) {
  font-size: .78rem;
  padding: .48rem .72rem;
  line-height: 1.2;
}

@media (max-width: 1199.98px) {
  .news-hero-grid,
  .news-layout,
  .panel-bridge-grid {
    grid-template-columns: 1fr;
  }
}

.panel-guide-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.panel-guide-hero,
.panel-guide-summary,
.panel-guide-box {
  border-radius: var(--ui-radius-lg, 16px);
  border: 1px solid rgba(var(--ui-primary-rgb), 0.12);
  padding: 0.95rem 1rem;
}

.panel-guide-hero,
.panel-guide-summary {
  background: linear-gradient(160deg, rgba(var(--ui-primary-rgb), 0.08), rgba(var(--ui-primary-rgb), 0.02) 58%, rgba(255,255,255,.94));
}

.panel-guide-hero {
  position: relative;
  overflow: hidden;
}

.panel-guide-hero::after {
  content: '';
  position: absolute;
  top: -62px;
  right: -62px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--ui-primary-rgb), .16), rgba(var(--ui-primary-rgb), 0));
}

.panel-guide-hero > *,
.panel-guide-summary > * {
  position: relative;
  z-index: 1;
}

.panel-guide-lead,
.panel-guide-list li,
.panel-guide-meta,
.panel-guide-summary-meta,
.panel-guide-example-label {
  color: var(--ui-muted);
}

.panel-guide-lead {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.panel-guide-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-guide-chip,
.panel-guide-pill,
.panel-guide-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--ui-primary-rgb), 0.16);
  background: rgba(var(--ui-primary-rgb), 0.07);
  color: var(--ui-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.panel-guide-chip {
  padding: 0.2rem 0.6rem;
  background: rgba(var(--ui-primary-rgb), 0.08);
  color: var(--ui-primary);
  font-size: 0.76rem;
}

.panel-guide-summary-stack,
.panel-guide-example-list {
  display: grid;
  gap: 0.55rem;
}

.panel-guide-summary-item {
  justify-content: space-between;
  border-radius: 14px;
  font-size: 0.82rem;
}

.panel-guide-summary-meta {
  font-size: 0.8rem;
}

.panel-guide-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-guide-box {
  background: linear-gradient(180deg, rgba(var(--ui-primary-rgb), 0.04), rgba(255,255,255,.98));
}

.panel-guide-box.soft-accent {
  background: linear-gradient(180deg, rgba(var(--ui-primary-rgb), 0.07), rgba(var(--ui-primary-rgb), 0.015));
}

.panel-guide-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.panel-guide-box-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ui-text);
}

.panel-guide-meta {
  font-size: 0.8rem;
}

.panel-guide-list {
  padding-left: 1rem;
  margin-bottom: 0;
}

.panel-guide-list li {
  margin-bottom: 0.55rem;
}

.panel-guide-example-item {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--ui-primary-rgb), 0.1);
  background: rgba(var(--ui-primary-rgb), 0.04);
}

.panel-guide-example-label {
  margin-bottom: 0.3rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel-guide-example-value {
  font-size: 0.84rem;
  color: var(--ui-text);
  line-height: 1.55;
  word-break: break-word;
}

html[data-theme="dark"] .panel-guide-hero,
html[data-theme="dark"] .panel-guide-summary,
html[data-theme="dark"] .panel-guide-box {
  background: linear-gradient(160deg, rgba(110,168,254,.10), rgba(20,31,49,.96) 68%);
  border-color: rgba(110,168,254,.16);
}

html[data-theme="dark"] .panel-bridge-card:hover,
html[data-theme="dark"] .panel-guide-hero:hover,
html[data-theme="dark"] .panel-guide-summary:hover,
html[data-theme="dark"] .panel-guide-box:hover,
html[data-theme="dark"] .panel-insight-card:hover {
  box-shadow: none;
  border-color: rgba(110,168,254,.24);
}

html[data-theme="dark"] .panel-guide-chip,
html[data-theme="dark"] .panel-guide-pill,
html[data-theme="dark"] .panel-guide-summary-item,
html[data-theme="dark"] .panel-guide-example-item {
  background: rgba(110,168,254,.10);
  border-color: rgba(110,168,254,.18);
  color: #e5edf9;
}

html[data-theme="dark"] .support-stat-card,
html[data-theme="dark"] .support-quick-card,
html[data-theme="dark"] .corp-list-section,
html[data-theme="dark"] .support-triage-step,
html[data-theme="dark"] .support-solution-card {
  border-color: rgba(110,168,254,.16);
  box-shadow: none;
  background: var(--ui-surface, #141f31);
}

html[data-theme="dark"] .support-stat-label {
  background: #203047;
  color: #dce8ff;
  border-color: #365277;
}

html[data-theme="dark"] .panel-signal-item {
  background: rgba(110,168,254,.10);
  border-color: rgba(110,168,254,.18);
  color: #e5edf9;
}

html[data-theme="dark"] .support-step-index,
html[data-theme="dark"] .support-solution-icon {
  background: rgba(110,168,254,.14);
  color: #dce8ff;
}

html[data-theme="dark"] .guide-accordion .accordion-item {
  border-color: #334155;
  background: #1b2330;
}

html[data-theme="dark"] .guide-accordion .accordion-button {
  background: #1b2330;
  color: #e5edf9;
}

html[data-theme="dark"] .guide-accordion .accordion-button:not(.collapsed) {
  background: #203047;
  color: #dce8ff;
}

html[data-theme="dark"] .guide-accordion .accordion-button::after {
  filter: invert(1);
}

html[data-theme="dark"] .guide-accordion .accordion-body {
  background: #162131;
}

html[data-theme="dark"] .service-list-table thead th {
  background: rgba(110,168,254,.10);
  border-color: rgba(110,168,254,.18);
}

html[data-theme="dark"] .service-list-table tbody tr:hover {
  background: rgba(110,168,254,.08) !important;
}

@media (max-width: 767px) {
  .support-action-group .btn {
    width: 100%;
  }

  .support-triage-grid,
  .support-solution-grid {
    grid-template-columns: 1fr;
  }

  .panel-guide-showcase,
  .panel-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.services-page .filter-shell form .btn:not(.btn-sm) {
    font-size: .72rem;
    padding: .42rem .62rem;
  }

  body.services-page .filter-shell .form-select,
  body.services-page .filter-shell .form-control {
    font-size: .76rem;
    min-height: 2.1rem;
    padding: .38rem .62rem;
  }
}

@keyframes panelSignalMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 1199.98px) {
  .panel-insight-grid {
    grid-template-columns: 1fr;
  }
}

.visual-tier-primary,
.visual-tier-secondary,
.visual-tier-tertiary {
  position: relative;
}

.visual-tier-primary {
  border-color: rgba(var(--ui-primary-rgb), .22) !important;
  box-shadow: 0 16px 32px rgba(17,35,58,.09) !important;
}

.visual-tier-secondary {
  border-color: rgba(var(--ui-primary-rgb), .14) !important;
  box-shadow: 0 10px 24px rgba(17,35,58,.05) !important;
}

.visual-tier-tertiary {
  border-color: rgba(var(--ui-primary-rgb), .10) !important;
  box-shadow: 0 6px 16px rgba(17,35,58,.03) !important;
}

.visual-tier-primary .section-card-title,
.visual-tier-primary .panel-card-copy .title,
.visual-tier-primary .panel-bridge-title,
.visual-tier-primary .panel-related-title {
  font-size: 1.03rem;
}

.visual-tier-primary .section-card-head {
  border-bottom-color: rgba(var(--ui-primary-rgb), 0.14);
}

.visual-tier-tertiary .section-card-head {
  border-bottom-color: rgba(var(--ui-primary-rgb), 0.05);
}

.visual-tier-tertiary .section-card-kicker,
.visual-tier-tertiary .panel-insight-label,
.visual-tier-tertiary .panel-tour-bridge-kicker {
  color: var(--ui-muted);
}

.visual-tier-tertiary .section-card-meta,
.visual-tier-tertiary .panel-bridge-meta,
.visual-tier-tertiary .panel-related-meta,
.visual-tier-tertiary .panel-signal-meta,
.visual-tier-tertiary .panel-card-copy .meta,
.visual-tier-tertiary .panel-insight-meta {
  color: color-mix(in srgb, var(--ui-muted) 88%, var(--ui-text) 12%);
}

.panel-tour-bridge.visual-tier-tertiary {
  background: linear-gradient(140deg, rgba(var(--ui-primary-rgb), .04), rgba(var(--ui-primary-rgb), .015) 58%, rgba(255,255,255,.94));
}

.visual-tier-tertiary .panel-tour-bridge-pill {
  background: rgba(var(--ui-primary-rgb), .04);
  color: color-mix(in srgb, var(--ui-text) 78%, var(--ui-primary) 22%);
}

.panel-signal-ribbon.visual-tier-tertiary,
.panel-bridge-card.visual-tier-tertiary,
.panel-related-card.visual-tier-tertiary,
.panel-insight-card.visual-tier-tertiary {
  background: linear-gradient(160deg, rgba(var(--ui-primary-rgb), .035), rgba(var(--ui-primary-rgb), .01));
}

.panel-insight-card.visual-tier-secondary {
  background: linear-gradient(160deg, rgba(var(--ui-primary-rgb), .06), rgba(var(--ui-primary-rgb), .015));
}

.news-reader-card.visual-tier-primary .news-reader-body {
  padding: 1.15rem 1.15rem 1.3rem;
}

.news-list-card.visual-tier-secondary .list-group-item.active {
  box-shadow: inset 4px 0 0 rgba(255,255,255,.32);
}

.panel-related-card.visual-tier-tertiary {
  background: linear-gradient(160deg, rgba(var(--ui-primary-rgb), .03), rgba(var(--ui-primary-rgb), .01));
}

.support-triage-step.visual-tier-primary,
.support-solution-card.visual-tier-primary {
  background: linear-gradient(160deg, rgba(var(--ui-primary-rgb), .08), rgba(var(--ui-primary-rgb), .02));
}

.support-quick-card.visual-tier-tertiary,
.corp-list-section.visual-tier-tertiary,
.support-stat-card.visual-tier-tertiary {
  background: linear-gradient(160deg, rgba(var(--ui-primary-rgb), .03), rgba(var(--ui-primary-rgb), .008));
}

.support-solution-card.visual-tier-primary .support-solution-link {
  margin-top: 1rem;
}

.support-hero.visual-tier-secondary .page-summary {
  max-width: 58ch;
}

.support-hero.visual-tier-secondary .page-actions .btn {
  opacity: .92;
}

.sidebar-group-title.sidebar-group-title-primary {
  color: color-mix(in srgb, var(--ui-primary) 68%, var(--ui-text) 32%);
}

.sidebar-group-title.sidebar-group-title-secondary {
  opacity: 0.82;
}

.sidebar-link.sidebar-link-aux {
  color: color-mix(in srgb, #1f2f45 82%, var(--ui-muted) 18%);
  background: rgba(var(--ui-primary-rgb), 0.025);
}

.sidebar-link.sidebar-link-aux:hover {
  background: color-mix(in srgb, var(--ui-primary, #4f7cff) 6%, transparent);
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--ui-primary, #4f7cff) 35%, transparent);
}

.sidebar-link.sidebar-link-utility {
  font-size: 0.8rem;
  color: color-mix(in srgb, #1f2f45 76%, var(--ui-muted) 24%);
}

html[data-theme="dark"] .panel-tour-bridge.visual-tier-tertiary {
  background: linear-gradient(140deg, rgba(110,168,254,.07), rgba(110,168,254,.02) 58%, rgba(11,18,32,.88));
}

html[data-theme="dark"] .visual-tier-primary {
  box-shadow: 0 16px 30px rgba(0,0,0,.28) !important;
}

html[data-theme="dark"] .visual-tier-secondary {
  box-shadow: 0 10px 22px rgba(0,0,0,.18) !important;
}

html[data-theme="dark"] .visual-tier-tertiary {
  box-shadow: 0 6px 14px rgba(0,0,0,.12) !important;
}

html[data-theme="dark"] .sidebar-group-title.sidebar-group-title-primary {
  color: #9ec5fe;
}

html[data-theme="dark"] .sidebar-link.sidebar-link-aux {
  color: rgba(232,240,255,.86);
  background: rgba(86,156,255,.05);
}

html[data-theme="dark"] .sidebar-link.sidebar-link-utility {
  color: rgba(232,240,255,.76);
}

.compact-aux {
  --compact-gap: 0.55rem;
}

.dashboard-quickbar.compact-aux {
  gap: 0.45rem;
}

.dashboard-quickbar.compact-aux .dashboard-quicklink {
  padding: 0.42rem 0.62rem;
  font-size: 0.77rem;
  border-radius: 0.78rem;
}

.panel-tour-bridge.compact-aux {
  padding: 0.78rem 0.88rem;
  gap: 0.8rem;
}

.panel-tour-bridge.compact-aux .panel-tour-bridge-title {
  font-size: 0.94rem;
}

.panel-tour-bridge.compact-aux .panel-tour-bridge-meta {
  font-size: 0.78rem;
  line-height: 1.45;
}

.panel-tour-bridge.compact-aux .panel-tour-bridge-pill {
  padding: 0.38rem 0.62rem;
  font-size: 0.74rem;
}

.support-quick-card.compact-aux,
.corp-list-section.compact-aux,
.panel-signal-ribbon.compact-aux,
.panel-bridge-card.compact-aux,
.panel-related-card.compact-aux {
  padding: 0.82rem 0.88rem;
}

.support-quick-card.compact-aux .section-card-head,
.corp-list-section.compact-aux .section-card-head {
  padding-bottom: 0.48rem;
  margin-bottom: 0.62rem;
}

.support-quick-card.compact-aux .section-card-meta,
.corp-list-section.compact-aux .section-card-meta,
.panel-signal-ribbon.compact-aux .panel-signal-meta,
.panel-bridge-card.compact-aux .panel-bridge-meta,
.panel-related-card.compact-aux .panel-bridge-meta,
.panel-related-card.compact-aux .panel-related-meta {
  font-size: 0.76rem;
  line-height: 1.45;
}

.support-quick-card.compact-aux .section-card-title,
.corp-list-section.compact-aux .section-card-title,
.panel-bridge-card.compact-aux .panel-bridge-title,
.panel-related-card.compact-aux .panel-related-title {
  font-size: 0.93rem;
}

.panel-bridge-grid.compact-aux {
  gap: 0.65rem;
}

.panel-signal-ribbon.compact-aux .panel-signal-item {
  padding: 0.4rem 0.62rem;
  font-size: 0.76rem;
}

.panel-focus-card.compact-aux,
.panel-summary-pill.compact-aux,
.corp-filter-card.compact-aux,
.customer-stat-card.compact-aux,
.employee-stat-card.compact-aux,
.hardware-stat-card.compact-aux,
.license-stat-card.compact-aux,
.payment-stat-card.compact-aux,
.payment-action-card.compact-aux,
.payment-vendor-card.compact-aux,
.payment-alert-ribbon.compact-aux {
  border-radius: 16px;
}

.panel-focus-card.compact-aux,
.payment-action-card.compact-aux,
.payment-vendor-card.compact-aux,
.payment-alert-ribbon.compact-aux {
  padding: 0.82rem 0.9rem;
}

.panel-summary-pill.compact-aux,
.customer-stat-card.compact-aux,
.employee-stat-card.compact-aux,
.hardware-stat-card.compact-aux,
.license-stat-card.compact-aux,
.payment-stat-card.compact-aux {
  padding: 0.84rem 0.9rem;
}

.corp-filter-card.compact-aux .filter-summary,
.panel-focus-card.compact-aux .panel-focus-meta,
.payment-action-card.compact-aux .payment-action-meta,
.payment-vendor-card.compact-aux .payment-vendor-meta,
.payment-alert-ribbon.compact-aux .payment-alert-meta,
.payment-stat-card.compact-aux .payment-stat-meta,
.customer-stat-card.compact-aux .customer-stat-meta,
.employee-stat-card.compact-aux .employee-stat-meta,
.hardware-stat-card.compact-aux .hardware-stat-meta,
.license-stat-card.compact-aux .license-stat-meta,
.panel-summary-pill.compact-aux .panel-summary-label {
  font-size: 0.76rem;
  line-height: 1.45;
}

.panel-focus-card.compact-aux .panel-focus-title,
.payment-action-card.compact-aux .payment-action-title,
.payment-vendor-card.compact-aux .section-card-title {
  font-size: 0.95rem;
}

.panel-summary-pill.compact-aux .panel-summary-value,
.customer-stat-card.compact-aux .customer-stat-value,
.employee-stat-card.compact-aux .employee-stat-value,
.hardware-stat-card.compact-aux .hardware-stat-value,
.license-stat-card.compact-aux .license-stat-value,
.payment-stat-card.compact-aux .payment-stat-value {
  font-size: 1.5rem;
}

.corp-filter-card.compact-aux .emp-filter-toggle {
  padding: 0.9rem 0.95rem;
}

.corp-filter-card.compact-aux .emp-filter-body {
  padding: 0.88rem 0.95rem;
}

.payment-action-card.compact-aux .payment-action-link,
.payment-vendor-card.compact-aux .payment-vendor-item {
  margin-top: 0.68rem;
}

.payment-vendor-card.compact-aux .payment-vendor-item,
.payment-alert-ribbon.compact-aux {
  padding: 0.72rem 0.8rem;
}

.portal-summary-card.compact-aux,
.portal-next-card.compact-aux,
.mail-card.compact-aux,
.ai-support-card.compact-aux,
#customerWifiPanel.compact-aux,
.dashboard-chart-row .compact-aux {
  padding: 0.88rem 0.94rem !important;
}

.portal-summary-card.compact-aux .small,
.portal-next-card.compact-aux .portal-compact-note,
#customerWifiPanel.compact-aux .small,
.mail-card.compact-aux .section-card-meta,
.mail-card.compact-aux .small,
.ai-support-card.compact-aux .text-muted,
.dashboard-chart-row .compact-aux .section-card-meta {
  font-size: 0.76rem;
  line-height: 1.45;
}

.portal-summary-card.compact-aux .portal-stat-chip,
.ai-support-card.compact-aux .ai-support-chip {
  padding: 0.36rem 0.64rem;
  font-size: 0.77rem;
}

.portal-next-card.compact-aux .portal-next-item,
#customerWifiPanel.compact-aux .portal-mini-tile,
.mail-card.compact-aux .mail-kpi,
.mail-card.compact-aux .mail-row {
  border-radius: 12px;
}

.portal-next-card.compact-aux .portal-next-item,
.mail-card.compact-aux .mail-row {
  padding: 0.62rem 0.72rem;
}

.mail-card.compact-aux .mail-kpi {
  padding: 0.58rem 0.7rem;
  min-height: 68px;
}

.mail-card.compact-aux .mail-kpi-label {
  font-size: 0.68rem;
}

.mail-card.compact-aux .mail-kpi-value {
  font-size: 1.12rem;
}

.dashboard-chart-row .compact-aux .section-card-title,
.mail-card.compact-aux .section-card-title,
.ai-support-card.compact-aux h5 {
  font-size: 0.96rem;
}

.dashboard-chart-row .compact-aux .chart-wrap {
  min-height: 168px;
  aspect-ratio: 16 / 7;
}

.ai-support-card.compact-aux textarea.form-control {
  min-height: 72px;
}

.ai-support-card.compact-aux .btn,
.mail-card.compact-aux .btn,
.portal-summary-card.compact-aux .btn,
.portal-next-card.compact-aux .btn {
  border-radius: 0.82rem;
}

.news-reader-card.visual-tier-primary .news-content {
  line-height: 1.78;
}

.news-list-card.visual-tier-secondary .news-list-item-meta,
.panel-related-card.compact-aux .panel-related-meta {
  font-size: 0.74rem;
}

@media (max-width: 767.98px) {
  .panel-hero.compact-aux,
  .panel-hero.visual-tier-secondary,
  .panel-hero.visual-tier-tertiary {
    padding: .88rem .92rem;
    border-radius: 18px;
  }

  .panel-hero .page-actions {
    width: 100%;
  }

  .panel-hero .page-actions .btn,
  .dashboard-quickbar.compact-aux .dashboard-quicklink,
  .panel-tour-bridge.compact-aux .panel-tour-bridge-pill {
    min-height: 38px;
  }

  .hero-mini-stats,
  .dash-chips-bar,
  .panel-summary-grid,
  .panel-focus-grid,
  .panel-bridge-grid,
  .backup-stat-grid,
  .catalog-stat-grid,
  .search-stat-grid,
  .nt-stat-grid,
  .logs-stat-grid {
    grid-template-columns: 1fr !important;
  }

  .dashboard-quickbar.compact-aux,
  .panel-tour-bridge.compact-aux,
  .support-quick-card.compact-aux,
  .corp-list-section.compact-aux,
  .panel-signal-ribbon.compact-aux,
  .panel-bridge-card.compact-aux,
  .panel-related-card.compact-aux,
  .panel-focus-card.compact-aux,
  .panel-summary-pill.compact-aux,
  .corp-filter-card.compact-aux,
  .customer-stat-card.compact-aux,
  .employee-stat-card.compact-aux,
  .hardware-stat-card.compact-aux,
  .license-stat-card.compact-aux,
  .payment-stat-card.compact-aux,
  .payment-action-card.compact-aux,
  .payment-vendor-card.compact-aux,
  .payment-alert-ribbon.compact-aux,
  .portal-summary-card.compact-aux,
  .portal-next-card.compact-aux,
  .mail-card.compact-aux,
  .ai-support-card.compact-aux,
  #customerWifiPanel.compact-aux,
  .dashboard-chart-row .compact-aux,
  .search-result-card.compact-aux,
  .catalog-card.compact-aux,
  .backup-panel.compact-aux,
  .backup-history-item,
  .nt-card.compact-aux,
  .logs-table-card.compact-aux {
    border-radius: 16px;
  }

  .panel-summary-pill.compact-aux,
  .customer-stat-card.compact-aux,
  .employee-stat-card.compact-aux,
  .hardware-stat-card.compact-aux,
  .license-stat-card.compact-aux,
  .payment-stat-card.compact-aux,
  .search-stat-card.compact-aux,
  .catalog-stat-card.compact-aux,
  .nt-stat-card.compact-aux,
  .logs-stat-card.compact-aux,
  .backup-stat-card.compact-aux {
    padding: .78rem .82rem;
  }

  .corp-filter-card.compact-aux .card-body,
  .search-result-card.compact-aux .card-header,
  .catalog-section.compact-aux,
  .backup-panel.compact-aux,
  .nt-card.compact-aux .nt-card-body,
  .nt-card.compact-aux .nt-card-header {
    padding-left: .88rem;
    padding-right: .88rem;
  }

  .table-card-mobile td[data-label]::before {
    font-size: .68rem;
    letter-spacing: .06em;
  }
}

@media (max-width: 575.98px) {
  .panel-hero.compact-aux,
  .panel-hero.visual-tier-secondary,
  .panel-hero.visual-tier-tertiary {
    padding: .8rem .84rem;
  }

  .panel-hero .page-summary,
  .compact-aux .page-summary {
    font-size: .82rem;
    line-height: 1.45;
  }

  .dashboard-quickbar.compact-aux,
  .panel-tour-bridge.compact-aux {
    gap: .45rem;
    padding: .72rem .76rem;
  }
}

@media (max-width: 767.98px) {
  .panel-signal-marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-signal-track {
    animation: none;
  }
}

/* ============================================================
   AVATAR BİLEŞENİ
   ============================================================ */

/* Genel avatar dairesi */
.av-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  object-fit: cover;
  line-height: 1;
}
img.av-circle {
  display: inline-block;
  object-fit: cover;
}
.av-circle-sm  { width: 30px; height: 30px; font-size: 0.78rem; }
.av-circle-md  { width: 36px; height: 36px; font-size: 0.92rem; }
.av-circle-lg  { width: 56px; height: 56px; font-size: 1.4rem; }

/* Avatar picker önizleme alanı */
.av-pick-preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

/* Preset ızgara */
.av-preset-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

/* Preset buton */
.av-preset-btn {
  position: relative;
  cursor: pointer;
  margin: 0;
}
.av-preset-btn .av-radio { display: none; }

.av-swatch {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.av-preset-btn:hover .av-swatch { transform: scale(1.15); }
.av-preset-btn .av-radio:checked + .av-swatch {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--ui-primary);
  transform: scale(1.1);
}
html[data-theme="dark"] .av-preset-btn .av-radio:checked + .av-swatch {
  box-shadow: 0 0 0 3px #7cb8ff;
}

/* Sidebar avatar düzenleme butonu */
.sidebar-avatar-edit-btn {
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.sidebar-avatar-edit-btn:hover { opacity: 1; color: var(--ui-primary); }

/* Avatar modal - fixed z-index and interactions */
#myAvatarModal {
  position: fixed !important;
  z-index: 1050 !important;
}
#myAvatarModal .modal-backdrop {
  z-index: 1040 !important;
}
#myAvatarModal .modal-dialog {
  pointer-events: auto !important;
  z-index: 1055 !important;
}
#myAvatarModal .modal-content {
  pointer-events: auto !important;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
}
#myAvatarModal .modal-header {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 0.75rem 1rem;
}
#myAvatarModal .modal-body {
  pointer-events: auto !important;
  padding: 1.5rem;
}
#myAvatarModal .btn-close {
  pointer-events: auto !important;
  cursor: pointer !important;
}
#myAvatarModal button,
#myAvatarModal input,
#myAvatarModal label {
  pointer-events: auto !important;
  cursor: pointer !important;
}
#myAvatarModal .av-preset-btn {
  cursor: pointer !important;
}
#myAvatarModal .av-preset-btn input {
  cursor: pointer !important;
}

/* Avatar modal dark mode */
html[data-theme="dark"] #myAvatarModal .modal-content {
  background: #1b2330;
  border-color: #33445d;
  color: #e8f0ff;
}
html[data-theme="dark"] #myAvatarModal .modal-header {
  border-bottom-color: #33445d;
}
html[data-theme="dark"] #myAvatarModal .modal-body {
  color: #e8f0ff;
}

/* ============================================================
   SÜTUN GÖRÜNÜRLÜKTEKİ TOGGLE (panel-cols.js)
   ============================================================ */

/* Inject wrapper — fallback when no h5 heading is found */
.td-colvis-inject {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.4rem;
}

/* Heading row with button on the right */
.td-colvis-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .8rem;
}
.td-colvis-title-row h5 { margin: 0; }

/* Ana buton */
.td-colvis-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  position: relative;
}

/* Kaç sütun gizli — badge */
.td-colvis-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ui-primary);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  margin-left: 2px;
}

/* ── Popup panel (fixed to viewport — never behind cards) ── */
.td-colvis-panel {
  display: none;
  position: fixed;
  z-index: 9999;
  min-width: 240px;
  max-width: 320px;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 13px;
  box-shadow: 0 8px 32px rgba(15, 33, 58, 0.18), 0 2px 8px rgba(15, 33, 58, 0.08);
  padding: 0.55rem;
  animation: colvis-pop .15s ease;
}
.td-colvis-panel.open { display: block; }

@keyframes colvis-pop {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* Header row inside panel */
.td-colvis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0.3rem 0.45rem;
  border-bottom: 1px solid #e8edf5;
  margin-bottom: 0.45rem;
}
.td-colvis-header-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6b7280;
}
.td-colvis-reset-inline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ui-primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.td-colvis-reset-inline:hover { color: #084e93; }

/* Chip grid */
.td-colvis-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.1rem 0.05rem;
}

/* Each column = a pill chip */
.td-colvis-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid #d1d9e6;
  background: #f0f4fa;
  color: #6b7a92;
  transition: background 0.13s, border-color 0.13s, color 0.13s;
  -webkit-user-select: none;
  user-select: none;
  line-height: 1.4;
  white-space: nowrap;
}
.td-colvis-chip::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #c0cad8;
  flex-shrink: 0;
  transition: background 0.13s;
}
.td-colvis-chip.active {
  background: rgba(var(--ui-primary-rgb), 0.10);
  border-color: rgba(var(--ui-primary-rgb), 0.45);
  color: #0f5fa0;
  font-weight: 600;
}
.td-colvis-chip.active::before { background: var(--ui-primary); }
.td-colvis-chip:hover:not(.fixed) {
  border-color: var(--ui-primary);
  background: rgba(var(--ui-primary-rgb), 0.06);
  color: #0a4f90;
}
.td-colvis-chip.fixed {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Koyu tema ── */
html[data-theme="dark"] .td-colvis-panel {
  background: #172032;
  border-color: #263650;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .td-colvis-header { border-bottom-color: #263650; }
html[data-theme="dark"] .td-colvis-header-title { color: #7a9bc4; }
html[data-theme="dark"] .td-colvis-reset-inline { color: #7cb8ff; }
html[data-theme="dark"] .td-colvis-reset-inline:hover { color: #aad4ff; }
html[data-theme="dark"] .td-colvis-chip {
  background: #1e2e45;
  border-color: #2d4260;
  color: #7a9bc4;
}
html[data-theme="dark"] .td-colvis-chip::before { background: #3a5272; }
html[data-theme="dark"] .td-colvis-chip.active {
  background: rgba(86, 156, 255, 0.15);
  border-color: rgba(86, 156, 255, 0.5);
  color: #9dc8ff;
}
html[data-theme="dark"] .td-colvis-chip.active::before { background: #5b9aee; }
html[data-theme="dark"] .td-colvis-chip:hover:not(.fixed) {
  background: rgba(86, 156, 255, 0.1);
  border-color: rgba(86, 156, 255, 0.4);
  color: #b8d8ff;
}

/* ── Eski .td-colvis-title / .td-colvis-list / .td-colvis-item / .td-colvis-reset şimdi kullanılmıyor ──
   Bırakılıyor; dashboard_settings.php hâlâ .td-colvis-title ve .td-colvis-list kullanıyor */
.td-colvis-title {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ui-muted, #6b7280);
  padding: 0.2rem 0.4rem 0.4rem;
  border-bottom: 1px solid var(--ui-border, #ddd); margin-bottom: 0.3rem;
}
.td-colvis-list { display: flex; flex-direction: column; gap: 1px; max-height: 280px; overflow-y: auto; }
.td-colvis-item {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.45rem;
  border-radius: 6px; cursor: pointer; font-size: 0.81rem; font-weight: 500;
  color: var(--ui-text, #1b2430); -webkit-user-select: none; user-select: none; transition: background 0.12s;
}
.td-colvis-item:hover { background: rgba(var(--ui-primary-rgb), 0.07); }
.td-colvis-item input[type="checkbox"] { width: 14px; height: 14px; flex-shrink: 0; cursor: pointer; accent-color: var(--ui-primary); }
.td-colvis-reset {
  display: block; width: 100%; margin-top: 0.4rem; padding: 0.28rem 0.5rem;
  font-size: 0.77rem; font-weight: 600; text-align: center;
  background: rgba(var(--ui-primary-rgb), 0.06); border: 1px solid rgba(var(--ui-primary-rgb), 0.2);
  border-radius: 6px; color: var(--ui-primary); cursor: pointer; transition: background 0.14s;
}
.td-colvis-reset:hover { background: rgba(var(--ui-primary-rgb), 0.13); }
html[data-theme="dark"] .td-colvis-title { color: #8ba8cc; border-bottom-color: #2d4060; }
html[data-theme="dark"] .td-colvis-item { color: #d8e8ff; }
html[data-theme="dark"] .td-colvis-item:hover { background: rgba(86, 156, 255, 0.1); }
html[data-theme="dark"] .td-colvis-item input[type="checkbox"] { accent-color: #7cb8ff; }
html[data-theme="dark"] .td-colvis-reset { color: #7cb8ff; background: rgba(86, 156, 255, 0.08); border-color: rgba(86, 156, 255, 0.22); }
html[data-theme="dark"] .td-colvis-reset:hover { background: rgba(86, 156, 255, 0.16); }

/* --- Dashboard Widget Toggle Panel --- */
.td-widget-wrap { position: relative; }
.td-widget-panel { display: none; position: absolute; right: 0; top: calc(100% + 5px); z-index: 1090; min-width: 220px; background: var(--ui-surface-2,#fff); border: 1px solid var(--ui-border,#ddd); border-radius: 10px; box-shadow: 0 10px 28px rgba(15,33,58,.14); padding: .45rem; }
.td-widget-panel.open { display: block; }
html[data-theme="dark"] .td-widget-panel { background:#1a2638; border-color:#2d4060; box-shadow:0 12px 32px rgba(0,0,0,.45); }

/* Sidebar içindeki Dashboard Düzenle butonu */
.sidebar-dash-edit-wrap {
  position: relative;
  margin: 1px 0 0;
}
.sidebar-dash-edit-btn {
  width: 100%;
  min-height: 44px;
  background: transparent;
  cursor: pointer;
}
.sidebar-dash-edit-btn .bi {
  opacity: 0.85;
}
.sidebar-dash-edit-btn { text-decoration: none; }
.sidebar-dash-edit-btn:hover {
  text-decoration: none;
}
html[data-theme="light"] .sidebar-dash-edit-btn { color: inherit; }
html[data-theme="dark"]  .sidebar-dash-edit-btn {
  background: transparent;
  color: inherit;
}
html[data-theme="dark"] .sidebar-dash-edit-btn:hover {
  color: inherit;
}

/* Panel: sidebar sağına sabit konumlanır */
.td-widget-panel-sidebar {
  position: fixed !important;
  left: calc(var(--sidebar-w) + 8px) !important;
  right: auto !important;
  top: auto !important;
  bottom: 56px !important;
}

@media (max-width: 767.98px) {
  .sidebar-dash-edit-wrap { display: none; }
}
