:root {
  /* Windows/Chromium native <select> açılır listesinin açık tema çizilmesini önler */
  color-scheme: dark;
  --bg: #0f1419;
  --surface: #151c28;
  --surface-elevated: #1a2332;
  --border: #2d3a4f;
  --text: #e8edf5;
  --muted: #8b9bb4;
  --accent: #3d8bfd;
  --accent-dim: #2563c4;
  /* Varlık tablosu CPU/RAM/Disk kullanım yüzdesi eşikleri */
  --metric-warn: #e8a034;
  --metric-critical: #e56464;
  --sidebar-bg: #0d1219;
  --radius: 8px;
  /* Kaydırma çubukları — arayüz tonlarıyla uyumlu */
  --scrollbar-width: 9px;
  --scrollbar-track: #121a24;
  --scrollbar-thumb: #3a4d6a;
  --scrollbar-thumb-hover: #4d6490;
  --scrollbar-thumb-active: #5a7aad;
  --focus-ring-width: 1px;
  --focus-ring-offset: 1px;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

[hidden] {
  display: none !important;
}

/* WebKit / Chromium / Safari — ince, yuvarlatılmış, tema ile uyumlu */
*::-webkit-scrollbar {
  width: var(--scrollbar-width);
  height: var(--scrollbar-width);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
  min-height: 40px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
}

*::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.admin-body {
  background: var(--bg);
}

/* Tam genişlik shell — yatay margin yok */
.app-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.sidebar-brand {
  box-sizing: border-box;
  height: 83px;
  padding: 0 0.65rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.sidebar-brand__logo {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-height: 58px;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
}

.sidebar-brand__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.sidebar-brand__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.2;
}

.sidebar-brand__product {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  line-height: 1.2;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0.5rem 0;
  gap: 2px;
}

.sidebar-account {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 0.75rem 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-account__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.sidebar-account__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.sidebar-account__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}

.sidebar-account__photo-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(61, 139, 253, 0.22);
  border: 1px solid var(--border);
}

.sidebar-account__photo-ph:empty {
  visibility: hidden;
  pointer-events: none;
}

.sidebar-account__meta {
  min-width: 0;
  flex: 1;
}

.sidebar-account__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account__email {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account__logout {
  align-self: stretch;
  justify-content: center;
}

.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1rem;
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(61, 139, 253, 0.06);
}

.nav-item.is-active {
  color: var(--text);
  background: rgba(61, 139, 253, 0.12);
  border-left-color: var(--accent);
  font-weight: 600;
}

.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.topbar {
  padding: 1rem 1rem 0.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #121a24 0%, var(--bg) 100%);
}

.topbar-title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  min-width: 0;
}

.topbar-heading-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.topbar-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.topbar-alarm-settings-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  line-height: 0;
}

.topbar-alarm-settings-btn:hover {
  color: var(--accent);
  background: rgba(61, 139, 253, 0.12);
}

.topbar-alarm-settings-btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.topbar-alarm-settings-btn svg {
  display: block;
}

/* Mobilde hamburger; masaüstünde gizli */
.mobile-menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  line-height: 0;
}

.mobile-menu-toggle:hover {
  color: var(--accent);
  background: rgba(61, 139, 253, 0.12);
}

.mobile-menu-toggle:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.mobile-menu-toggle svg {
  display: block;
}

.sidebar-scrim {
  display: none;
}

/* Masaüstünde yalnızca sidebar; mobilde üst şerit */
.mobile-app-header {
  display: none;
}

.mobile-app-header__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.mobile-app-header__logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.04);
}

.mobile-app-header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.15;
}

.mobile-app-header__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.mobile-app-header__product {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.mobile-app-header__user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  min-width: 0;
  max-width: 50%;
}

.mobile-app-header__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.mobile-app-header__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}

.mobile-app-header__photo-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(61, 139, 253, 0.22);
  border: 1px solid var(--border);
}

.mobile-app-header__photo-ph:empty {
  visibility: hidden;
  pointer-events: none;
}

.mobile-app-header__meta {
  min-width: 0;
  flex: 1;
}

.mobile-app-header__user-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-alarm-btn {
  flex-shrink: 0;
  margin-left: 0.25rem;
}

.topbar-alarm-btn {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  line-height: 0;
}

.topbar-alarm-btn:hover {
  color: var(--accent);
  background: rgba(61, 139, 253, 0.12);
}

.topbar-alarm-btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.topbar-alarm-btn svg {
  display: block;
}

.topbar-alarm-btn__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  color: #fff;
  background: #c94a4a;
  box-shadow: 0 0 0 1px var(--surface);
}

.topbar-refresh {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  line-height: 0;
}

.topbar-refresh:hover:not(:disabled) {
  color: var(--accent);
  background: rgba(61, 139, 253, 0.12);
}

.topbar-refresh:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.topbar-refresh:disabled {
  cursor: wait;
  opacity: 0.85;
}

.topbar-refresh.is-loading {
  color: var(--accent);
  background: rgba(61, 139, 253, 0.08);
}

.topbar-refresh.is-loading svg {
  animation: topbar-refresh-spin 0.65s linear infinite;
  transform-origin: center;
}

@keyframes topbar-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.topbar-refresh svg {
  display: block;
}

.topbar-desc {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.topbar-desc code {
  font-size: 0.85em;
  color: #93c5fd;
  background: rgba(61, 139, 253, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.view {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.view.is-visible {
  display: flex;
}

/* Varlıklar: gövde kaydırmayı kapat; kaydırma yalnızca tablo alanında (list-panel__table-scroll) */
.app-shell:has(#view-assets.view.is-visible),
html[data-persisted-view="assets"] .app-shell {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

.main-area:has(#view-assets.view.is-visible),
html[data-persisted-view="assets"] .main-area {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#view-assets.view.is-visible,
html[data-persisted-view="assets"] #view-assets.view {
  overflow: hidden;
}

/* İlk boyamada kayıtlı sekme (FOUC önleme); telemetry.adminUi.v1 view: assets ile uyumlu */
html[data-persisted-view="assets"] #view-customers.view {
  display: none !important;
}
html[data-persisted-view="assets"] #view-assets.view {
  display: flex !important;
}
html[data-persisted-view="assets"] #view-title {
  position: relative;
  color: transparent;
}
html[data-persisted-view="assets"] #view-title::after {
  content: 'Varlıklar';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text);
}
html[data-persisted-view="assets"] #asset-columns-btn[hidden] {
  display: inline-flex !important;
}
html[data-persisted-view="assets"] .nav-item[data-view="customers"].is-active {
  color: var(--muted);
  background: transparent;
  border-left-color: transparent;
  font-weight: 400;
}
html[data-persisted-view="assets"] .nav-item[data-view="assets"] {
  color: var(--text);
  background: rgba(61, 139, 253, 0.12);
  border-left-color: var(--accent);
  font-weight: 600;
}

html[data-persisted-view="alarms"] #view-customers.view,
html[data-persisted-view="alarms"] #view-assets.view {
  display: none !important;
}
html[data-persisted-view="alarms"] #view-alarms.view {
  display: flex !important;
}
html[data-persisted-view="alarms"] #view-title {
  position: relative;
  color: transparent;
}
html[data-persisted-view="alarms"] #view-title::after {
  content: 'Alarmlar';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text);
}
html[data-persisted-view="alarms"] .nav-item[data-view="customers"].is-active,
html[data-persisted-view="alarms"] .nav-item[data-view="assets"].is-active {
  color: var(--muted);
  background: transparent;
  border-left-color: transparent;
  font-weight: 400;
}
html[data-persisted-view="alarms"] .nav-item[data-view="alarms"] {
  color: var(--text);
  background: rgba(61, 139, 253, 0.12);
  border-left-color: var(--accent);
  font-weight: 600;
}

html[data-persisted-view="dashboard"] #view-customers.view,
html[data-persisted-view="dashboard"] #view-assets.view,
html[data-persisted-view="dashboard"] #view-alarms.view {
  display: none !important;
}
html[data-persisted-view="dashboard"] #view-dashboard.view {
  display: flex !important;
}
html[data-persisted-view="dashboard"] #view-title {
  position: relative;
  color: transparent;
}
html[data-persisted-view="dashboard"] #view-title::after {
  content: 'Giriş';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text);
}
html[data-persisted-view="dashboard"] .nav-item[data-view="customers"].is-active,
html[data-persisted-view="dashboard"] .nav-item[data-view="assets"].is-active,
html[data-persisted-view="dashboard"] .nav-item[data-view="alarms"].is-active {
  color: var(--muted);
  background: transparent;
  border-left-color: transparent;
  font-weight: 400;
}
html[data-persisted-view="dashboard"] .nav-item[data-view="dashboard"] {
  color: var(--text);
  background: rgba(61, 139, 253, 0.12);
  border-left-color: var(--accent);
  font-weight: 600;
}

.view-hint {
  margin: 0;
  padding: 0.75rem 1rem 0;
  font-size: 0.88rem;
}

.view-hint code {
  font-size: 0.85em;
  color: #93c5fd;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
  position: relative;
}

/* Masaüstü: mobil sheet sarmalayıcıları layout’tan çıkar */
.toolbar-mobile-compact {
  display: none;
}

.toolbar-sheet-backdrop {
  display: none;
}

.toolbar__sheet {
  display: contents;
}

.toolbar-sheet-header {
  display: none;
}

.toolbar-sheet-body {
  display: contents;
}

.toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toolbar--with-search {
  align-items: flex-end;
  justify-content: flex-start;
}

.toolbar--with-search .toolbar-actions {
  margin-left: auto;
}

.toolbar-status {
  flex: 1 1 auto;
  min-width: 0;
}

.toolbar-search {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 0 1 400px;
  min-width: min(100%, 200px);
  max-width: 400px;
}

.toolbar-search-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.toolbar-search-input {
  min-width: 0;
  width: 100%;
}

.toolbar--with-asset-filter {
  align-items: flex-end;
  justify-content: flex-start;
}

.toolbar--with-asset-filter .toolbar-actions {
  margin-left: auto;
}

.toolbar-asset-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 0 1 320px;
  min-width: min(100%, 200px);
  max-width: 360px;
}

.toolbar-asset-filter-select {
  width: 100%;
  min-width: 0;
}

.toolbar-asset-filter--compact {
  flex: 0 1 200px;
  min-width: min(100%, 160px);
  max-width: 260px;
}

/* Varlık filtresi: üç sütun aynı boy / kontroller aynı yükseklik */
.toolbar--with-asset-filter .toolbar-asset-filter,
.toolbar--with-asset-filter .toolbar-asset-filter--compact {
  flex: 1 1 200px;
  min-width: min(100%, 160px);
  max-width: 320px;
}

.toolbar--with-asset-filter .toolbar-asset-filter .input,
.toolbar--with-asset-filter .toolbar-asset-filter .select-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 2.5rem;
  padding: 0 0.65rem;
  line-height: 2.5rem;
  font-size: 0.95rem;
}

.toolbar--with-asset-filter .toolbar-asset-filter .select-input {
  padding-right: 1.85rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9bb4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  cursor: pointer;
}

.toolbar--with-asset-filter .toolbar-asset-filter .select-input:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.asset-filter-field {
  position: relative;
  min-width: 0;
}

.asset-filter-listbox {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 40;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: min(50vh, 280px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.asset-filter-listbox[hidden] {
  display: none !important;
}

.asset-filter-option {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.asset-filter-option:hover,
.asset-filter-option:focus-visible {
  background: rgba(61, 139, 253, 0.12);
  outline: none;
}

.asset-filter-option.is-active {
  background: rgba(61, 139, 253, 0.18);
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.btn {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-danger {
  background: #b83232;
  border-color: #b83232;
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.assets-detail-list,
.customers-detail-list {
  flex: 1;
  min-height: 0;
  padding: 0;
}

/* Filtreler tablo dışında; kaydırma yalnızca list-panel__table-scroll içinde (yaygın admin düzeni) */
.list-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.list-panel__filters {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  padding: 0.55rem 0.75rem;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.list-panel__table-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.data-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.4rem 0.5rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.list-panel__filters-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  justify-content: flex-start;
  width: 100%;
}

.list-panel__filters-inner--customers .toolbar-actions {
  margin-left: auto;
}

.list-panel__filters-inner .toolbar-status {
  flex: 1 1 120px;
  min-width: 0;
}

.list-panel__filters-inner .toolbar-search {
  flex: 0 1 400px;
  min-width: min(100%, 200px);
  max-width: 400px;
}

.list-panel__filters-inner .toolbar-search-input {
  user-select: text;
  -webkit-user-select: text;
}

.list-panel__filters-inner .toolbar-asset-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 0 1 320px;
  min-width: min(100%, 200px);
  max-width: 360px;
}

.list-panel__filters-inner .toolbar-asset-filter--compact {
  flex: 1 1 200px;
  min-width: min(100%, 160px);
  max-width: 320px;
}

.list-panel__filters-inner .toolbar-asset-filter .input,
.list-panel__filters-inner .toolbar-asset-filter .select-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 2.5rem;
  padding: 0 0.65rem;
  line-height: 2.5rem;
  font-size: 0.95rem;
}

.list-panel__filters-inner .toolbar-asset-filter .select-input {
  padding-right: 1.85rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9bb4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  cursor: pointer;
}

.list-panel__filters-inner .toolbar-asset-filter .select-input:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.data-table__placeholder-cell {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 720px) {
  .list-panel__filters-inner--assets {
    flex-direction: column;
    align-items: stretch;
  }

  .list-panel__filters-inner .toolbar-asset-filter,
  .list-panel__filters-inner .toolbar-asset-filter--compact,
  .list-panel__filters-inner .toolbar-search {
    max-width: none;
    flex: 1 1 auto;
  }

  .list-panel__filters-inner--customers .toolbar-actions {
    margin-left: 0;
    width: 100%;
  }

  .list-panel__filters-inner--customers .toolbar-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.data-table__th-sort {
  vertical-align: bottom;
  white-space: nowrap;
}

.data-table__sort-btn {
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  text-align: left;
  border-radius: 4px;
}

.data-table__sort-btn:hover {
  color: var(--text);
}

.data-table__sort-btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.data-table__sort-btn[aria-pressed='true'] {
  color: var(--accent);
}

.data-table__sort-indicator {
  font-size: 0.72em;
  opacity: 0.95;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 0.38rem 0.5rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.data-table__col-actions {
  white-space: nowrap;
  text-align: right;
}

.data-table__col-avatar {
  width: 3rem;
  padding-right: 0.35rem;
  vertical-align: middle;
}

.data-table__user-thumb {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.data-table__col-users-actions {
  white-space: nowrap;
  width: 1%;
}

.user-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.user-badge-row__meta {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.user-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.user-badge--admin {
  color: var(--accent);
  border: 1px solid rgba(61, 139, 253, 0.45);
  background: rgba(61, 139, 253, 0.12);
}

.user-badge--blocked {
  color: #f0a8a8;
  border: 1px solid rgba(229, 100, 100, 0.45);
  background: rgba(229, 100, 100, 0.12);
}

.data-table--users[data-admin-cols='0'] .data-table__col-users-actions,
.data-table--users[data-admin-cols='0'] tbody td:last-child {
  display: none;
}

.data-table__user-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
}

.customer-row,
.asset-row {
  cursor: pointer;
  background: var(--surface);
  transition: background 0.1s ease;
}

.customer-row:hover,
.asset-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.customer-row:focus-visible,
.asset-row:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: calc(-1 * var(--focus-ring-width));
}

.customer-row__name {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.customer-row__actions {
  text-align: right;
}

.customer-row-expand[hidden],
.asset-row-expand[hidden] {
  display: none !important;
}

.customer-row-expand td,
.asset-row-expand td {
  vertical-align: top;
  padding: 0.5rem 0.55rem;
  background: rgba(0, 0, 0, 0.14);
  border-bottom: 1px solid var(--border);
}

.asset-row-expand {
  cursor: default;
}

.asset-row-expand .asset-history-expand {
  min-width: 0;
}

.asset-history-expand-hdr {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.asset-history-table-scroll {
  max-height: min(55vh, 480px);
  overflow: auto;
  overflow-x: auto;
  margin: 0 -0.1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Telemetri geçmişi — varlık detayı modalı ile aynı: viewport yüksekliğini doldur */
.dialog-asset-history {
  --asset-history-dialog-inset-top: max(1.25rem, env(safe-area-inset-top));
  --asset-history-dialog-inset-bottom: 1rem;
  --asset-history-dialog-fill-height: calc(
    100vh - var(--asset-history-dialog-inset-top) - var(--asset-history-dialog-inset-bottom)
  );
  width: 95vw;
  max-width: 95vw;
  min-width: min(95vw, 20rem);
  overflow: hidden;
  position: fixed;
  top: var(--asset-history-dialog-inset-top);
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  flex-direction: column;
  height: var(--asset-history-dialog-fill-height);
  max-height: var(--asset-history-dialog-fill-height);
}

dialog.dialog-asset-history:not([open]) {
  display: none;
}

.dialog-asset-history .dialog-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.dialog-asset-history .dialog-form > header {
  flex-shrink: 0;
}

.dialog-asset-history .asset-history-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0 1.25rem 1rem;
}

.dialog-asset-history .dialog-form > footer {
  flex-shrink: 0;
}

.dialog-asset-history .asset-history-expand {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.dialog-asset-history .asset-history-expand-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dialog-asset-history .asset-history-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  overflow-x: auto;
}

/* Telemetri geçmişi — özet / tablo sekmeleri */
.dialog-asset-history .asset-history-tab-root {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.dialog-asset-history .asset-history-tabs {
  flex-shrink: 0;
}

.dialog-asset-history .asset-history-tab-panels {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dialog-asset-history .asset-history-tab-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dialog-asset-history .asset-history-tab-panel[hidden] {
  display: none !important;
}

.dialog-asset-history .asset-history-summary-inner {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-bottom: 0.35rem;
}

/* Özet: grafik + servis sürümleri yan yana */
.dialog-asset-history .asset-history-summary-split {
  display: flex;
  flex-direction: row;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
  align-items: stretch;
}

.dialog-asset-history .asset-history-summary-split[hidden] {
  display: none !important;
}

.dialog-asset-history .asset-history-summary-status {
  flex: 0 0 auto;
}

.dialog-asset-history .asset-history-summary-status:not(:last-child) {
  margin-bottom: 0;
}

/* Grafik sütunu (yan yana düzende ~%58); dikeyde özet paneliyle aynı yüksekliği doldurur */
.dialog-asset-history .asset-history-summary-split .asset-history-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 58%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  position: relative;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
}

.dialog-asset-history .asset-history-summary-split .asset-history-chart-wrap[hidden] {
  display: none !important;
}

.dialog-asset-history .asset-history-summary-split .asset-history-hc {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: 12rem;
  box-sizing: border-box;
}

.dialog-asset-history .asset-history-summary-split .asset-history-service-summary {
  flex: 1 1 42%;
  min-width: 12rem;
  max-width: 42%;
  min-height: 0;
  margin-top: 0;
  padding: 0 0 0 1rem;
  border-top: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 960px) {
  .dialog-asset-history .asset-history-summary-split {
    flex-direction: column;
  }

  .dialog-asset-history .asset-history-summary-split .asset-history-chart-wrap {
    flex: 0 1 auto;
    min-height: min(240px, 42vh);
    max-height: min(52vh, 520px);
    padding-right: 0;
    border-right: none;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .dialog-asset-history .asset-history-summary-split .asset-history-service-summary {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    padding: 1rem 0 0;
  }
}

.dialog-asset-history .asset-history-service-summary__box {
  font-size: 0.86rem;
}

.dialog-asset-history .asset-history-service-summary__hdr {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.dialog-asset-history .asset-history-service-summary__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.dialog-asset-history .asset-history-service-summary__item {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin: 0;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  line-height: 1.35;
}

.dialog-asset-history .asset-history-service-summary__item:last-child {
  border-bottom: none;
}

.dialog-asset-history .asset-history-service-summary__name {
  flex: 1 1 35%;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-asset-history .asset-history-service-summary__count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.dialog-asset-history .asset-history-service-summary__ver {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--muted);
  white-space: nowrap;
}

.dialog-asset-history .asset-history-service-summary__when {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.dialog-asset-history .asset-history-service-summary__empty {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
}

.data-table--asset-history {
  font-size: 0.88rem;
}

.data-table--asset-history thead th {
  position: static;
  box-shadow: none;
  z-index: 0;
}

.data-table--asset-history tbody tr.asset-history-data-row {
  cursor: default;
}

.data-table--asset-history tbody tr.asset-history-data-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.dialog-asset-history-raw .asset-history-raw-pre {
  max-height: min(65vh, 520px);
  overflow: auto;
  padding: 0.5rem 0.65rem;
  margin: 0.35rem 0 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

/* Düzenle ile aynı .btn / .btn-ghost padding; ikonu dikey ortala */
.asset-history-toggle-btn,
.asset-detail-modal-btn,
.asset-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.asset-history-toggle-icon,
.asset-row-action-icon {
  display: block;
  transition: color 0.15s ease;
}

.asset-history-toggle-btn.is-open .asset-history-toggle-icon {
  color: var(--accent);
}

.customer-row-expand .customer-expand-detail,
.expand-layer-panel .customer-expand-detail {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.expand-detail-root {
  min-width: 0;
}

.asset-detail-retmes-path-hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.asset-detail-retmes-path-hint .asset-retmes-path-code {
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
  font-size: 0.8em;
  background: rgba(0, 0, 0, 0.22);
  color: var(--accent-dim);
}

.expand-json-retmes-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.expand-json-retmes-hint code {
  font-size: 0.88em;
}

.expand-layer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0;
  border-bottom: 2px solid var(--border);
}

.expand-layer-tab {
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.expand-layer-tab:hover {
  color: var(--text);
  background: rgba(61, 139, 253, 0.1);
}

.expand-layer-tab.is-active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
  background: rgba(0, 0, 0, 0.18);
}

.expand-layer-tab:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.expand-layer-panel-wrap {
  min-height: 0;
}

.expand-layer-panel {
  max-height: min(50vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

.expand-layer-panel[hidden] {
  display: none !important;
}

.expand-json-pre {
  margin: 0;
  padding: 0.25rem 0;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: var(--text);
}

.customer-expand-detail {
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.customer-expand-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.customer-expand-tab {
  padding: 0.4rem 0.7rem;
  border: none;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.customer-expand-tab:hover {
  color: var(--text);
  background: rgba(61, 139, 253, 0.08);
}

.customer-expand-tab.is-active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
  background: rgba(0, 0, 0, 0.12);
}

.customer-expand-panel-wrap {
  min-height: 0;
}

.customer-expand-panel {
  max-height: min(50vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
}

.customer-expand-panel[hidden] {
  display: none !important;
}

.customer-expand-empty-msg {
  margin: 0;
  font-size: 0.88rem;
}

.customer-expand-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 0.45rem 1rem;
  align-items: start;
}

.customer-expand-dl dt {
  margin: 0;
  padding: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.customer-expand-dl dd {
  margin: 0;
  min-width: 0;
}

.customer-expand-value {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  color: var(--text);
  font-size: 0.86rem;
}

.customer-expand-value-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

.customer-expand-value-ssh-cmd {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 100%;
}

.customer-expand-value-ssh-cmd .table-cell-copy {
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  font-size: 0.82rem;
  text-align: left;
  word-break: break-all;
}

.customer-expand-value-ssh-cmd .ssh-cmd-hint {
  font-size: 0.75rem;
  line-height: 1.35;
}

.customer-expand-wa-link {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #25d366;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 211, 102, 0.45);
}

.customer-expand-wa-link:hover {
  color: #3de682;
  border-bottom-color: rgba(61, 230, 130, 0.65);
}

.customer-expand-contact-single {
  min-height: 0;
}

.customer-expand-contact-sub {
  min-height: 0;
}

.customer-expand-contact-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.customer-expand-contact-tab {
  padding: 0.3rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
}

.customer-expand-contact-tab:hover {
  color: var(--text);
  background: rgba(61, 139, 253, 0.1);
  border-color: rgba(61, 139, 253, 0.2);
}

.customer-expand-contact-tab.is-active {
  color: var(--text);
  font-weight: 600;
  background: rgba(61, 139, 253, 0.14);
  border-color: rgba(61, 139, 253, 0.4);
}

.customer-expand-contact-panels {
  min-height: 0;
}

.customer-expand-contact-panel[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .customer-expand-dl {
    grid-template-columns: 1fr;
  }

  .customer-expand-dl dt {
    padding-bottom: 0;
  }
}

.chip--dim {
  opacity: 0.72;
}

.chip--dim .chip-value {
  color: var(--muted);
}

.assets-placeholder {
  padding: 2rem 1rem;
  text-align: center;
}

.asset-expand-detail {
  max-height: min(46vh, 360px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
  font-size: 0.8rem;
}

.expand-layer-panel .asset-expand-detail {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.asset-expand-detail .customer-expand-dl {
  gap: 0.3rem 0.75rem;
}

.asset-expand-detail .customer-expand-dl dt {
  font-size: 0.74rem;
  padding-top: 0.08rem;
}

.asset-expand-detail .customer-expand-value {
  font-size: 0.8rem;
}

/* Kayıtsız varlık: nötr satır, sol şerit; dikkat rozeti ilk hücrede */
.asset-row--unregistered td {
  background: rgba(18, 16, 14, 0.65);
  border-bottom-color: rgba(251, 191, 36, 0.1);
}

.asset-row--unregistered td:first-child {
  box-shadow: inset 4px 0 0 0 rgba(245, 158, 11, 0.55);
}

.asset-row--unregistered:hover td {
  background: rgba(24, 22, 18, 0.75);
}

.asset-row--unregistered:hover td:first-child {
  box-shadow: inset 4px 0 0 0 rgba(251, 191, 36, 0.7);
}

button.asset-unregistered-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.2rem 0.65rem 0.2rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
  background: linear-gradient(
    155deg,
    rgba(251, 191, 36, 0.18) 0%,
    rgba(120, 53, 15, 0.35) 55%,
    rgba(69, 26, 3, 0.45) 100%
  );
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  max-width: 100%;
}

button.asset-unregistered-badge:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 3px 12px rgba(245, 158, 11, 0.18);
}

button.asset-unregistered-badge:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.asset-unregistered-badge__icon {
  flex-shrink: 0;
  opacity: 0.95;
}

/* İşlemler: flex doğrudan td üzerinde tablo + ColResize ile ara sıra kırılma; iç sarıcıda hizala */
td.asset-row__actions {
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

th.asset-row__actions {
  text-align: right;
}

.asset-row__actions-inner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.asset-row__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  height: 2rem;
  padding: 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1;
  border-radius: 6px;
}

.table-cell-copy {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  max-width: 100%;
  word-break: break-word;
  line-height: 1.35;
}

.table-cell-copy:hover {
  color: var(--accent-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.table-cell-copy:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
  border-radius: 3px;
}

.table-cell-copy--ok {
  color: var(--text);
}

/* IP + alarm kapalı göstergesi (çan üzerinde çizgi) */
.data-table--assets tbody td.asset-cell-ip > .asset-cell-ip__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

.data-table--assets tbody td.asset-cell-ip > .asset-cell-ip__inner > .table-cell-copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.asset-ip-alarm-off {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem 0.45rem;
  color: var(--muted);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  line-height: 0;
  vertical-align: middle;
}

.asset-ip-alarm-off__bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.asset-ip-alarm-off__icon {
  display: block;
}

/* Çan simgesi üzerinde çapraz çizgi */
.asset-ip-alarm-off__bell::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transform: rotate(-38deg);
  border-radius: 1px;
  pointer-events: none;
  box-shadow: 0 0 0 1px var(--surface-elevated);
}

/* IP hücreleri: dar sütunda harf harf kırılmasın */
.table-cell-copy.table-cell-copy--ip {
  white-space: nowrap;
  word-break: normal;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.86rem;
}

/* Varlıklar — Son Veri: 12 saatten eski telemetri (DataTables yalnızca td içeriğini basar; sınıf butonda) */
.data-table--assets .table-cell-copy.table-cell-copy--stale-last-data {
  color: var(--metric-critical);
  font-weight: 600;
}

/* Varlıklar ve geçmiş tabloları: link/hover görünümü yok; metin seçilerek kopyalanır */
.data-table--assets tbody .table-cell-copy,
.data-table--assets tbody .asset-unregistered-badge {
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
}

.data-table--assets tbody .table-cell-copy:hover {
  color: inherit;
  text-decoration: none;
  text-underline-offset: unset;
}

.data-table--assets tbody .table-cell-copy.table-cell-copy--ok:hover {
  color: var(--text);
}

.data-table--assets tbody .table-cell-copy.table-cell-copy--stale-last-data:hover {
  color: var(--metric-critical);
  text-decoration: none;
}

.data-table--assets tbody button.asset-unregistered-badge:hover {
  filter: none;
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
  .list-panel__table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
}

.asset-expand-services-wrap {
  min-width: 0;
}

.data-table--asset-services {
  width: 100%;
  font-size: 0.8rem;
}

.data-table--asset-services thead th {
  font-size: 0.72rem;
}

.data-table--asset-services .asset-services-table__cell {
  vertical-align: top;
}

.data-table--asset-services .customer-expand-value {
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.asset-pods-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.asset-pods-summary {
  font-size: 0.82rem;
  color: var(--muted);
}

.asset-pods-summary strong {
  color: var(--fg, inherit);
  font-variant-numeric: tabular-nums;
}

.data-table--asset-pods {
  width: 100%;
  font-size: 0.78rem;
}

.data-table--asset-pods thead th {
  font-size: 0.7rem;
  white-space: nowrap;
}

.data-table--asset-pods .asset-pods-table__cell {
  vertical-align: middle;
}

.data-table--asset-pods code.asset-pods-name-code {
  font-size: 0.76rem;
  word-break: break-all;
}

.asset-pod-health {
  display: inline-block;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

.asset-pod-health--healthy {
  background: rgba(72, 180, 130, 0.2);
  color: #9ee8c8;
  border: 1px solid rgba(72, 180, 130, 0.42);
}

.asset-pod-health--pending {
  background: rgba(232, 180, 72, 0.15);
  color: #f0cf8f;
  border: 1px solid rgba(232, 180, 72, 0.35);
}

.asset-pod-health--warn {
  background: rgba(232, 160, 52, 0.18);
  color: #f4c894;
  border: 1px solid rgba(232, 160, 52, 0.4);
}

.asset-pod-health--bad {
  background: rgba(229, 100, 100, 0.2);
  color: #f0b0b0;
  border: 1px solid rgba(229, 100, 100, 0.45);
}

.asset-pod-health--muted {
  background: rgba(128, 128, 148, 0.12);
  color: var(--muted);
  border: 1px solid rgba(128, 128, 148, 0.25);
}

.asset-pod-up {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.78rem;
}

.asset-pod-up--yes {
  color: #9ee8c8;
}

.asset-pod-up--no {
  color: #f0b0b0;
}

/* Varlıklar tablosu — CPU / RAM / Disk: % · detay; flex gap ile boşluk */
.asset-metric-cell-btn,
.asset-cpu-cell-btn {
  display: inline;
  text-align: left;
  white-space: nowrap;
  line-height: inherit;
  vertical-align: baseline;
}

.asset-metric__stack {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.45rem;
  white-space: nowrap;
}

.asset-metric__pct {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.asset-metric__pct--warn {
  color: var(--metric-warn);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(232, 160, 52, 0.35);
}

.asset-metric__pct--critical {
  color: var(--metric-critical);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(229, 100, 100, 0.4);
}

.asset-metric__sep {
  opacity: 0.65;
  padding: 0 0.12rem;
}

.asset-metric__rest {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: inherit;
}

/* Varlıklar tablosu — servis sütunu: imaj etiketine göre gruplanmış mini kartlar */
.asset-cell-services {
  vertical-align: top;
  min-width: 0;
  max-width: 22rem;
}

/* Retmes v2 — ayrı sütunlar: sağa hizalı sayı */
.data-table--assets .asset-cell-retmes-metric {
  vertical-align: middle;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 3.5rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.data-table--assets .asset-cell-retmes-metric.muted {
  cursor: help;
}

.data-table--assets .asset-cell-retmes-metric .asset-pods-count-legacy-muted {
  display: inline-block;
  max-width: 3.5rem;
  font-size: 0.69rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
  cursor: help;
  hyphens: none;
}

/* Başlıkta JSON yolu okunaklı; gövde sağa hizalı kalır */
.data-table--assets thead th.asset-cell-retmes-metric {
  text-align: left;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  hyphens: none;
  word-break: break-word;
}

.asset-services-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  align-items: flex-start;
  max-height: 7.5rem;
  overflow-y: auto;
  padding: 0.1rem 0;
}

.asset-services-mini-card {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.25;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.asset-services-mini-card__tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}

.asset-services-mini-card__count {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.68rem;
}

.asset-services-mini-card--single {
  align-items: flex-start;
}

.asset-services-mini-card__single {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}

.asset-services-mini-card__title {
  font-family: inherit;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 10rem;
}

.asset-services-mini-card__colon {
  color: var(--muted);
  font-weight: 400;
  flex-shrink: 0;
}

.asset-services-mini-card--single .asset-services-mini-card__tag {
  max-width: 12rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.8rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
}

.chip-label {
  color: var(--muted);
  font-weight: 500;
}

.chip-value {
  color: var(--text);
}

button.chip.chip--copyable {
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}

button.chip.chip--copyable:hover {
  filter: brightness(1.08);
}

button.chip.chip--copyable:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.asset-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

.meta-line {
  color: var(--muted);
}

.meta-line strong {
  color: var(--text);
  font-weight: 500;
}

.asset-card__section-title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.payload-grid {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

.payload-grid dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  word-break: break-word;
}

.payload-grid dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.78rem;
}

.payload-empty {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.paginator {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, var(--bg) 40%);
}

.paginator__summary {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  flex: 1 1 12rem;
  min-width: 0;
}

.paginator__controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.paginator__page-size {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding-right: 0.65rem;
  margin-right: 0.15rem;
  border-right: 1px solid var(--border);
}

.paginator__page-size-label {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.paginator__nav-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.paginator__page {
  font-size: 0.85rem;
  padding: 0 0.35rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  padding: 0;
  font-family: inherit;
}

/* Modal açıkken arka plan kaymasın (wheel / dokunma zinciri) */
html.modal-open,
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  color: var(--text);
  max-width: min(90vw, 720px);
  padding: 0;
  overscroll-behavior: contain;
}

/* `.dialog` genel max-width (720px) bu dosyada sonra geldiği için `.dialog-asset-history` üzerine yazıyordu */
dialog.dialog.dialog-asset-history {
  max-width: 95vw;
  width: 95vw;
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.dialog-form {
  padding: 0;
}

.dialog header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.dialog h2 {
  margin: 0;
  font-size: 1.1rem;
}

.detail-pre {
  margin: 0;
  padding: 1rem 1.25rem;
  max-height: 60vh;
  overflow: auto;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.dialog footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.dialog-wide {
  max-width: min(90vw, 480px);
}

.dialog-register-asset {
  max-width: min(94vw, 720px);
  width: 100%;
  overflow: visible;
}

/* Üstte sabit boşluk: sekme içeriği uzayıp kısalsa da başlık/sekme hizası kaymaz */
.dialog-asset-detail {
  --asset-detail-dialog-inset-top: max(1.25rem, env(safe-area-inset-top));
  --asset-detail-dialog-inset-bottom: 1rem;
  --asset-detail-dialog-fill-height: calc(
    100vh - var(--asset-detail-dialog-inset-top) - var(--asset-detail-dialog-inset-bottom)
  );
  max-width: min(96vw, 1200px);
  width: 100%;
  overflow: hidden;
  position: fixed;
  top: var(--asset-detail-dialog-inset-top);
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  flex-direction: column;
  height: var(--asset-detail-dialog-fill-height);
  max-height: var(--asset-detail-dialog-fill-height);
}

/* display:flex yukarıda dialog:not([open]) { display:none } ile çakışıyor; kapalıyken modal görünmesin */
dialog.dialog-asset-detail:not([open]) {
  display: none;
}

.dialog-asset-detail .dialog-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.dialog-asset-detail .asset-detail-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0.35rem 1.5rem 1.25rem;
}

.dialog-asset-detail .dialog-form > footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem 1.15rem;
}

/* Gövde dışında scroll yok; sekme satırı sabit, içerik alanı kalan yüksekliği doldurur */
.dialog-asset-detail .expand-detail-root {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.dialog-asset-detail .expand-layer-tabs {
  flex-shrink: 0;
}

.dialog-asset-detail .expand-layer-panel-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dialog-asset-detail .expand-layer-panel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.dialog-asset-detail .asset-detail-dialog-header {
  flex-shrink: 0;
  padding: 1rem 1.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  justify-content: flex-start;
  border-bottom: 1px solid var(--border);
}

.dialog-asset-detail .asset-detail-dialog-note-row {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0 0;
  margin-top: 0.15rem;
  border-top: 1px solid var(--border);
}

.dialog-asset-detail .asset-detail-dialog-note-row[hidden] {
  display: none !important;
}

.dialog-asset-detail .asset-detail-dialog-note-row-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem 0.85rem;
  align-items: start;
  max-width: 100%;
}

.dialog-asset-detail .asset-detail-dialog-note-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
  padding-top: 0.06rem;
  white-space: nowrap;
}

.dialog-asset-detail .asset-detail-dialog-note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.dialog-asset-detail .asset-detail-dialog-alarms-row {
  width: 100%;
  padding: 0.5rem 0 0;
}

.dialog-asset-detail .asset-detail-dialog-alarms-row[hidden] {
  display: none !important;
}

.dialog-asset-detail .asset-detail-dialog-alarms-badge {
  display: inline-block;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.28rem 0.55rem;
}

.dialog-asset-detail .asset-detail-dialog-header-row {
  display: inline-flex;
  align-items: stretch;
  gap: 0.65rem;
  width: max-content;
  max-width: 100%;
}

/* Müşteri expand .customer-expand-dl + .chip ile aynı liste mantığı: etiket | değer, kompakt */
.dialog-asset-detail .asset-detail-dialog-header-card {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-elevated);
}

.dialog-asset-detail .asset-detail-dialog-header-card-inner {
  display: grid;
  grid-template-columns: auto minmax(0, max-content);
  gap: 0.4rem 0.65rem;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 0.4rem 0.65rem;
  box-sizing: border-box;
}

.dialog-asset-detail .asset-detail-dialog-header-card-inner--ip .asset-detail-dialog-header-card-hdr {
  padding-top: 0;
  align-self: center;
}

.dialog-asset-detail .asset-detail-dialog-header-card-hdr {
  margin: 0;
  padding: 0.1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.dialog-asset-detail .asset-detail-dialog-header-card-value {
  margin: 0;
  min-width: 0;
  max-width: min(100%, 28rem);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-asset-detail .asset-detail-dialog-header-ip-row {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  max-width: min(100%, 28rem);
  flex-wrap: nowrap;
}

.dialog-asset-detail .asset-detail-dialog-header-card--ip .asset-detail-dialog-header-card-value {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 16rem);
  align-self: center;
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}

/* Sade ikon; .btn çerçevesi yok */
.dialog-asset-detail .asset-detail-dialog-ip-open {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0;
  padding: 0.12rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  line-height: 1;
  vertical-align: middle;
}

.dialog-asset-detail .asset-detail-dialog-ip-open:hover {
  color: var(--accent-dim);
  background: rgba(255, 255, 255, 0.06);
  filter: none;
}

.dialog-asset-detail .asset-detail-dialog-ip-open:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.dialog-asset-detail .asset-detail-dialog-ip-open__icon {
  display: block;
  flex-shrink: 0;
}

.dialog-asset-detail .asset-detail-dialog-header-card--ip .asset-detail-dialog-header-card-value:disabled {
  cursor: default;
  color: var(--muted);
  text-decoration: none;
}

.dialog-asset-detail .asset-detail-dialog-header-card--ip .asset-detail-dialog-header-card-value:disabled:hover {
  color: var(--muted);
  text-decoration: none;
}

.dialog-register-asset .dialog-edit-asset-title {
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

/* Varlığı düzenle: başlık ile form arasında nefes; etiket ↔ alan sıkı */
.dialog-edit-asset.dialog-register-asset header {
  padding: 1rem 1.4rem 1.05rem;
}

.dialog-edit-asset.dialog-register-asset .dialog-form {
  padding-top: 0.85rem;
}

.dialog-edit-asset.dialog-register-asset .form-label.block {
  margin-bottom: 0.65rem;
  padding-top: 0;
  gap: 0.3rem;
}

.dialog-edit-asset.dialog-register-asset .dialog-form > .form-label.block:first-of-type {
  padding-top: 1.2rem;
}

.dialog-edit-asset.dialog-register-asset .form-label.block:last-of-type {
  margin-bottom: 0.85rem;
}

.dialog-edit-asset.dialog-register-asset .form-label__head {
  display: block;
  line-height: 1.28;
  margin: 0;
}

.dialog-delete-asset .delete-asset-instruction code.delete-asset-phrase-inline {
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-all;
  user-select: all;
  padding: 0 0.15em;
  background: transparent;
  color: var(--text);
}

.dialog-edit-asset.dialog-register-asset .dialog-footer-row.dialog-edit-asset-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1rem 1.4rem 1.1rem;
  margin-top: 0;
}

.dialog-edit-asset-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.dialog-register-asset .dialog-form {
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding-bottom: 0.25rem;
}

.dialog-register-asset .dialog-muted {
  margin: 0;
  padding: 0.65rem 1.4rem 1.15rem;
  line-height: 1.5;
}

.dialog-register-asset .form-label.block {
  margin-bottom: 1.2rem;
  padding-top: 0.15rem;
  padding-bottom: 0;
  gap: 0.55rem;
}

.dialog-register-asset .form-label.block:last-of-type {
  margin-bottom: 1.5rem;
}

.dialog-register-asset .form-label__head--inline-opt .muted {
  font-weight: 400;
  white-space: nowrap;
}

.dialog-register-asset .dialog-readonly-value {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 2.35rem;
  word-break: break-word;
}

.dialog-register-asset .dialog-footer-row {
  padding: 1.05rem 1.4rem 1.25rem;
  margin-top: 0.15rem;
}

.register-customer-combobox .asset-filter-listbox {
  max-height: min(55vh, 400px);
}

.dialog-customer {
  max-width: min(98vw, 1200px);
  width: 100%;
  max-height: 98vh;
  margin: auto;
  /* Üst yuvarlak köşede başlık metninin kırpılmasını önlemek için */
  padding-top: 0.65rem;
  box-sizing: border-box;
}

.dialog-customer .dialog-muted--tight {
  padding-top: 0;
  margin-top: -0.25rem;
}

.customer-modal-form {
  display: flex;
  flex-direction: column;
  max-height: min(98vh, 1200px);
  min-height: 0;
}

.customer-modal-form > header {
  flex-shrink: 0;
  padding-top: 1.25rem;
  padding-bottom: 1.05rem;
  overflow: visible;
}

.dialog.dialog-customer header h2 {
  line-height: 1.35;
  padding-top: 0.2rem;
  font-size: 1.2rem;
}

.customer-modal-name-bar {
  flex-shrink: 0;
  padding: 0.75rem 1.4rem 0.95rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-elevated);
}

.customer-modal-name-hint {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.customer-modal-toolbar {
  flex-shrink: 0;
  padding: 0 0.65rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.customer-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 1rem 0;
  /* overflow-x: auto tek başına bazı tarayıcılarda overflow-y: auto tetikler → dikey çubuk hatası */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.customer-tab {
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.customer-tab:hover {
  color: var(--text);
  background: rgba(61, 139, 253, 0.08);
}

.customer-tab.is-active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
  background: var(--surface-elevated);
}

.customer-modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.customer-tab-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.9rem 1.4rem 1.15rem;
  display: none;
}

.customer-tab-panel.is-active {
  display: block;
}

.dialog-customer .customer-panel-inner {
  max-width: none;
  width: 100%;
}

/* Müşteri modalı — başlık / isim çubuğu: okunaklı iç boşluk */
.dialog-customer .customer-modal-form > header {
  padding-top: 1.05rem;
  padding-bottom: 0.85rem;
}

.dialog-customer .customer-modal-name-bar {
  padding: 0.7rem 1.35rem 0.85rem;
}

.dialog-customer .customer-modal-name-hint {
  margin-top: 0.3rem;
  font-size: 0.82rem;
}

.dialog-customer .customer-tab-panel {
  padding: 0.9rem 1.4rem 1.15rem;
}

.dialog-customer .form-grid {
  gap: 0.45rem 0.75rem;
}

.dialog-customer .customer-form-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
}

.dialog-customer .customer-cert-intro {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.dialog-customer .textarea-field {
  min-height: 2.25rem;
}

.dialog-customer .rich-notes-editor {
  min-height: 4.5rem;
  padding: 0.65rem 0.8rem;
  line-height: 1.45;
}

.dialog-customer .vpn-file-hint,
.dialog-customer .vpn-notes-hint {
  margin-bottom: 0.35rem;
}

.dialog-customer .vpn-config-files-list {
  margin-top: 0.35rem;
  gap: 0.28rem;
}

.dialog-customer .vpn-config-file-block {
  margin-top: 0.15rem;
}

.dialog-customer .customer-panel-actions {
  margin-bottom: 0.45rem;
}

/* Sertifika: dosya + bitiş tarihi — form-grid--2 ile karışmaması için ayrı grid */
.dialog-customer .customer-cert-grid {
  display: grid;
  gap: 0.65rem 1rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.dialog-customer .customer-cert-grid .customer-cert-files {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  min-width: 0;
  margin: 0;
}

.dialog-customer .customer-cert-grid .customer-cert-files .form-label__head {
  font-size: 0.85rem;
  color: var(--muted);
}

.dialog-customer .customer-cert-date {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  min-width: 0;
  margin: 0;
}

.dialog-customer .customer-cert-date .form-label__head {
  font-size: 0.85rem;
}

/* Global .input min-width:200px dar sütunu taşırır */
.dialog-customer .customer-cert-date .input {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.dialog-customer .customer-cert-grid .vpn-file-actions {
  margin-top: 0.15rem;
}

.dialog-customer .customer-cert-grid .vpn-file-actions .input[type='file'] {
  width: 100%;
  max-width: 100%;
}

.dialog-customer .cert-expiry-source-hint {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0;
}

@media (min-width: 640px) {
  .dialog-customer .customer-cert-grid {
    grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 13.5rem);
  }
}

/* İletişim sekmesi — kompakt */
.dialog-customer #panel-contacts .customer-panel-actions {
  margin-bottom: 0.35rem;
}

.dialog-customer #panel-contacts .contacts-list {
  gap: 0.4rem;
}

.dialog-customer #panel-contacts .contact-card {
  padding: 0.4rem 0.55rem;
}

.dialog-customer #panel-contacts .contact-card__toolbar {
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
}

.dialog-customer #panel-contacts .contact-card__label {
  font-size: 0.68rem;
}

.dialog-customer #panel-contacts .contact-card .form-grid {
  gap: 0.32rem 0.5rem;
}

.dialog-customer #panel-contacts .contact-card .form-label {
  gap: 0.22rem;
  font-size: 0.8rem;
}

.dialog-customer #panel-contacts .contact-card .input,
.dialog-customer #panel-contacts .contact-card textarea.input {
  min-width: 0;
  padding: 0.32rem 0.45rem;
  font-size: 0.86rem;
}

.dialog-customer #panel-contacts .contact-card .textarea-field {
  min-height: 1.85rem;
}

.customer-general-split {
  display: grid;
  gap: 1rem 1.5rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  .customer-general-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* Grid alt sütunlarında varsayılan min-width:auto yatay taşma yapmasın */
.customer-general-split > .customer-form-section {
  min-width: 0;
}

.customer-general-split .form-grid {
  min-width: 0;
}

.customer-form-section {
  margin: 0;
  padding: 0;
  border: none;
}

.customer-form-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.vpn-config-file-block {
  margin-top: 0.35rem;
}

.vpn-file-hint {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.vpn-file-pending {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
}

.vpn-config-files-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vpn-config-file-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

.vpn-config-files-empty {
  list-style: none;
  font-size: 0.88rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-button:hover {
  color: var(--text);
}

.vpn-config-files-expand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vpn-config-expand-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.vpn-notes-hint {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.rich-notes-editor {
  min-height: 5.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.12);
  color: var(--text);
  line-height: 1.45;
}

.rich-notes-editor:focus {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: 2px;
}

.rich-notes-editor img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.35rem 0;
}

.customer-expand-rich-notes img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.35rem 0;
}

.vpn-file-status {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.vpn-file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.vpn-file-actions .input[type="file"] {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.82rem;
}

.customer-expand-value-vpn-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.customer-expand-vpn-file-label {
  word-break: break-word;
}

.customer-panel-hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.customer-panel-actions {
  margin-bottom: 0.75rem;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.12);
}

.contact-card__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.contact-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-sm {
  padding: 0.3rem 0.55rem;
  font-size: 0.82rem;
}

.form-grid {
  display: grid;
  gap: 0.65rem 1rem;
  align-items: start;
}

.form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .form-grid--2,
  .form-grid--3 {
    grid-template-columns: 1fr;
  }
}

.form-label--full {
  grid-column: 1 / -1;
}

.form-label .req {
  color: #f87171;
  font-weight: 600;
}

/* Etiket metni + zorunlu yıldızı tek satırda (flex-column etikette ayrı satıra düşmesin) */
.form-label__head {
  display: inline-block;
  width: 100%;
  font-size: inherit;
  color: inherit;
  line-height: 1.35;
}

/* Ana etiket + (isteğe bağlı) yan yana */
.form-label__head--inline-opt {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  width: 100%;
}

.input-block {
  width: 100%;
  min-width: 0;
}

.textarea-field {
  resize: vertical;
  min-height: 2.5rem;
  line-height: 1.4;
}

.textarea-field.mono {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.82rem;
}

.form-label--inline {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
}

.form-label--inline input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.dialog-muted {
  margin: 0;
  padding: 0 1.4rem 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.dialog-footer-row {
  padding: 1rem 1.4rem 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  padding: 0 1rem 1rem;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-label.block {
  width: 100%;
  padding: 0 1.4rem;
}

.input {
  min-width: 200px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.input:focus-visible,
.select-input:focus-visible,
textarea.input:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

/* Izgara / dar sütunlarda .input min-width taşması önlenir */
.input.input-block {
  min-width: 0;
  max-width: 100%;
}

.select-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 0.6rem;
  font-size: 0.95rem;
  font-family: inherit;
  color-scheme: dark;
}

/* Desteklenen tarayıcılarda liste öğeleri (tam OS kontrolü değil) */
.select-input option {
  background-color: var(--surface-elevated);
  color: var(--text);
}

/* Paginator: btn-ghost btn-sm ile uyumlu; .select-input sonrasında tam override */
.select-input.paginator__select {
  min-width: 3.25rem;
  width: auto;
  max-width: 5.5rem;
  padding: 0.3rem 1.65rem 0.3rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.35;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9bb4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  box-sizing: border-box;
}

.select-input.paginator__select:hover {
  filter: brightness(1.06);
}

.select-input.paginator__select:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: var(--focus-ring-offset);
}

.customers-table-wrap {
  border-top: 1px solid var(--border);
  overflow: auto;
}

.table-customers {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table-customers th,
.table-customers td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-customers th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.table-customers tbody tr:hover td {
  background: rgba(61, 139, 253, 0.06);
}

.table-customers .mono {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

.table-customers .small-extra {
  font-size: 0.78rem;
  max-width: min(40vw, 420px);
}

.table-customers .table-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.chip--ok {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.chip--pending {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
}

.copy-toast {
  position: fixed;
  bottom: 1.1rem;
  left: 50%;
  z-index: 10000;
  max-width: min(90vw, 20rem);
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-toast.copy-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .copy-toast {
    transition: none;
  }
}

@media (max-width: 720px) {
  :root {
    --mobile-header-h: 52px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  /* Marka + oturum tek satır; çekmede yalnızca sekme düğmeleri */
  .mobile-app-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 max(0.75rem, env(safe-area-inset-right)) 0 max(0.5rem, env(safe-area-inset-left));
    height: var(--mobile-header-h, 52px);
    border-bottom: 1px solid var(--border);
    background: var(--sidebar-bg);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1001;
  }

  .sidebar .sidebar-brand {
    display: none !important;
  }

  .topbar {
    padding: 0.65rem max(0.75rem, env(safe-area-inset-left)) 0.35rem max(0.75rem, env(safe-area-inset-right));
  }

  .topbar-desc {
    display: none;
  }

  .main-area {
    min-height: 0;
    min-width: 0;
  }

  .app-shell {
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* Kenar çubuğu: tam opak karartma — arka plan içeriği görünmesin */
  .sidebar-scrim {
    display: block;
    position: fixed;
    top: var(--mobile-header-h, 52px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: #000000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  html.nav-drawer-open .sidebar-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Masaüstünde akışta genişlik 0 iken mobilde fixed drawer gerçek genişlik almalı — aksi halde width: 0 kazanır */
  .app-shell > .sidebar {
    flex: 0 0 auto;
    width: min(320px, 88vw);
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  /* Drawer: tek opak sütun; kaydırma yalnızca nav içinde; alt blok sabit */
  .sidebar {
    position: fixed;
    top: var(--mobile-header-h, 52px);
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    max-width: 100%;
    z-index: 1000;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--mobile-header-h));
    height: calc(100dvh - var(--mobile-header-h));
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
    box-shadow: 12px 0 48px rgba(0, 0, 0, 0.9);
    background-color: var(--sidebar-bg);
    background-image: none;
    overflow: hidden;
    isolation: isolate;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html:not(.nav-drawer-open) .sidebar {
    visibility: hidden;
    pointer-events: none;
  }

  html.nav-drawer-open .sidebar {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    background-color: var(--sidebar-bg);
  }

  .sidebar-nav {
    flex: 1 1 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0.75rem 0.65rem 1rem;
    gap: 0;
    background-color: var(--sidebar-bg);
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .sidebar-nav .nav-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    display: block;
    text-align: left;
    margin: 0;
    padding: 1rem 1rem 1rem 0.85rem;
    border: none;
    border-radius: 0;
    border-left: 4px solid transparent;
    border-bottom: 1px solid rgba(45, 58, 79, 0.6);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: #e8edf5;
    background-color: var(--sidebar-bg);
    cursor: pointer;
    touch-action: manipulation;
  }

  .sidebar-nav .nav-item:last-of-type {
    border-bottom: none;
  }

  .sidebar-nav .nav-item.is-active {
    border-left-color: var(--accent);
    background-color: #152030;
    color: #93c5fd;
    font-weight: 700;
  }

  .sidebar-nav .nav-item:hover:not(.is-active) {
    background-color: #121a24;
    color: var(--text);
  }

  html[data-persisted-view="assets"] .sidebar-nav .nav-item[data-view="customers"].is-active {
    border-left-color: transparent;
    background-color: var(--sidebar-bg);
    color: #e8edf5;
    font-weight: 600;
  }
  html[data-persisted-view="assets"] .sidebar-nav .nav-item[data-view="customers"].is-active:hover {
    background-color: #121a24;
    color: var(--text);
  }
  html[data-persisted-view="assets"] .sidebar-nav .nav-item[data-view="assets"] {
    border-left-color: var(--accent);
    background-color: #152030;
    color: #93c5fd;
    font-weight: 700;
  }

  html[data-persisted-view="alarms"] .sidebar-nav .nav-item[data-view="customers"].is-active,
  html[data-persisted-view="alarms"] .sidebar-nav .nav-item[data-view="assets"].is-active {
    border-left-color: transparent;
    background-color: var(--sidebar-bg);
    color: #e8edf5;
    font-weight: 600;
  }
  html[data-persisted-view="alarms"] .sidebar-nav .nav-item[data-view="alarms"] {
    border-left-color: var(--accent);
    background-color: #152030;
    color: #93c5fd;
    font-weight: 700;
  }

  html[data-persisted-view="dashboard"] .sidebar-nav .nav-item[data-view="customers"].is-active,
  html[data-persisted-view="dashboard"] .sidebar-nav .nav-item[data-view="assets"].is-active,
  html[data-persisted-view="dashboard"] .sidebar-nav .nav-item[data-view="alarms"].is-active {
    border-left-color: transparent;
    background-color: var(--sidebar-bg);
    color: #e8edf5;
    font-weight: 600;
  }
  html[data-persisted-view="dashboard"] .sidebar-nav .nav-item[data-view="dashboard"] {
    border-left-color: var(--accent);
    background-color: #152030;
    color: #93c5fd;
    font-weight: 700;
  }

  .sidebar .sidebar-account {
    display: flex;
    flex: 0 0 auto;
    margin-top: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
    gap: 0.75rem;
    background-color: #121a24;
    border-top: 1px solid var(--border);
    box-shadow: none;
  }

  .sidebar .sidebar-account__row {
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
  }

  .sidebar .sidebar-account__avatar-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .sidebar .sidebar-account__photo {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(61, 139, 253, 0.65);
  }

  .sidebar .sidebar-account__photo-ph {
    font-size: 1.05rem;
    font-weight: 700;
    border: 2px solid rgba(61, 139, 253, 0.65);
    background: rgba(61, 139, 253, 0.18);
  }

  .sidebar .sidebar-account__name {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
  }

  .sidebar .sidebar-account__email {
    font-size: 0.88rem;
    color: #a8b8d0;
    margin-top: 0.12rem;
    line-height: 1.35;
  }

  .sidebar .sidebar-account__logout {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text);
    background-color: #1a2332;
    align-self: stretch;
    margin-top: 0.15rem;
  }

  .sidebar .sidebar-account__logout:hover {
    border-color: var(--accent);
    background-color: #1e2d42;
    color: var(--text);
  }

  /* Araç çubuğu: tek satır tetikleyici; filtreler alttan sheet */
  .toolbar {
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0.45rem 0.75rem;
    gap: 0;
    min-height: 0;
  }

  .toolbar-mobile-compact {
    display: flex;
    align-items: stretch;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
  }

  .toolbar-sheet-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.65rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    touch-action: manipulation;
  }

  .toolbar-sheet-toggle svg {
    flex-shrink: 0;
    color: var(--accent);
  }

  .toolbar-sheet-toggle__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .toolbar-sheet-toggle:hover {
    border-color: rgba(61, 139, 253, 0.45);
    background: var(--surface-elevated);
  }

  .toolbar-sheet-toggle:focus-visible {
    outline: var(--focus-ring-width) solid var(--accent);
    outline-offset: var(--focus-ring-offset);
  }

  .toolbar-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  .toolbar.toolbar--sheet-open .toolbar-sheet-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .toolbar__sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1003;
    max-height: min(88vh, 560px);
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 12px 12px 0 0;
    background: var(--surface);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
    transform: translate3d(0, 105%, 0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
  }

  .toolbar.toolbar--sheet-open .toolbar__sheet {
    transform: translate3d(0, 0, 0);
  }

  /* Varlık filtreleri: ekranın büyük kısmını kaplasın; max-height tek başına içerik kısaysa sheet’i büyütmez — min-height şart */
  .toolbar--with-asset-filter .toolbar__sheet {
    max-height: min(96vh, 920px);
    min-height: min(88vh, 880px);
    height: auto;
  }

  .toolbar--with-asset-filter .toolbar-sheet-body {
    padding-bottom: max(2.75rem, calc(env(safe-area-inset-bottom) + 2rem));
  }

  /* Müşteri combobox: sheet içinde daha yüksek liste, gereksiz iç kaydırma azalsın */
  .toolbar--with-asset-filter .toolbar__sheet .asset-filter-listbox {
    max-height: min(62vh, 520px);
  }

  .toolbar-sheet-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-elevated);
  }

  .toolbar-sheet-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
  }

  .toolbar-sheet-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    line-height: 0;
  }

  .toolbar-sheet-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
  }

  .toolbar-sheet-close:focus-visible {
    outline: var(--focus-ring-width) solid var(--accent);
    outline-offset: var(--focus-ring-offset);
  }

  .toolbar-sheet-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 0.85rem max(1rem, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
  }

  .toolbar--with-search .toolbar-search,
  .toolbar--with-asset-filter .toolbar-asset-filter,
  .toolbar--with-asset-filter .toolbar-asset-filter--compact {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .toolbar--with-search .toolbar-actions {
    margin-left: 0;
    width: 100%;
  }

  .toolbar--with-search .toolbar-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .toolbar-status {
    flex: 0 0 auto;
    width: 100%;
  }

  .toolbar__sheet .asset-filter-listbox {
    z-index: 10050;
  }

  .paginator {
    flex-direction: column;
    align-items: stretch;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .paginator__controls {
    justify-content: center;
  }

  .paginator__page-size {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
    width: 100%;
  }

  .payload-grid {
    grid-template-columns: 1fr;
  }

  .payload-grid dt {
    margin-top: 0.35rem;
  }

  .payload-grid dt:first-child {
    margin-top: 0;
  }

  .dialog-asset-detail .asset-detail-dialog-header-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .dialog-asset-detail .asset-detail-dialog-header-card {
    width: 100%;
  }
}

@media (min-width: 721px) {
  .sidebar-scrim {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .dialog-footer-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .dialog-footer-row .btn {
    width: 100%;
    justify-content: center;
  }

  .topbar-desc {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

/* Login / kayıt / şifre sıfırlama */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.35rem;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.auth-card .auth-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.auth-field .input {
  width: 100%;
}

.auth-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.auth-error {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #f87171;
}

.auth-links {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-links a {
  color: var(--accent);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-google-wrap {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.auth-setup {
  margin-top: 0.75rem;
  padding: 1rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.auth-setup-title {
  margin: 0 0 0.65rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
}

.auth-setup-preface {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-setup-steps {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.auth-setup-steps li {
  margin-bottom: 0.5rem;
}

.auth-setup-steps a {
  color: var(--accent);
  text-decoration: none;
}

.auth-setup-steps a:hover {
  text-decoration: underline;
}

.auth-setup-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.82em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.auth-code--block {
  display: block;
  margin-top: 0.35rem;
  padding: 0.45rem 0.5rem;
  word-break: break-all;
}

/* ── Varlık kolon ayarları modalı ───────────────────────────────────────── */
.dialog-asset-columns {
  max-width: min(90vw, 340px);
  width: 100%;
}

.asset-columns-dialog-body {
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.asset-columns-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  user-select: none;
  transition: background 0.12s;
}

.asset-columns-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.asset-columns-toggle input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.asset-columns-dialog-footer {
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
}

.asset-columns-dialog-footer .btn {
  width: auto !important;
}

.asset-columns-dialog-footer-right {
  display: flex;
  gap: 0.5rem;
}

/* ── DataTables — Varlıklar ─────────────────────────────────────────────── */
.list-panel__table-scroll--assets-dt {
  overflow: auto;
  overscroll-behavior: contain;
  position: relative;
}

/* DataTables processing: mutlak konumlandırma (CDN varsayılanı) tablo alanı içinde kalsın,
   margin tabanlı ortalamayı transform ile değiştirerek küçük reflow’ları azalt */
.list-panel__table-scroll--assets-dt div.dt-processing {
  top: 50%;
  left: 50%;
  right: auto;
  width: auto;
  max-width: min(100%, 240px);
  margin: 0;
  padding: 0.35rem 0.65rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-sizing: border-box;
}

.dt-assets-table.dataTable {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.dt-assets-table.dataTable thead th {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  vertical-align: bottom;
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dt-assets-table.dataTable tbody td {
  padding: 0.45rem 0.5rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.asset-cell-project-product__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.asset-tip-product-chip {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0 0.12em;
  max-width: 100%;
  padding: 0.2rem 0.48rem;
  margin: 0;
  border-radius: 6px;
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: normal;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(157, 176, 201, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  vertical-align: middle;
  box-shadow: none;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.data-table--assets tbody .asset-tip-product-chip.table-cell-copy {
  cursor: pointer;
}

.asset-tip-product-chip:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(157, 176, 201, 0.28);
}

.asset-tip-product-chip:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: 2px;
}

.asset-tip-product-chip__sep {
  font-weight: 400;
  color: rgba(139, 155, 180, 0.55);
  margin: 0 0.04em;
}

/* MMS / PMS / OEE: koyu dolgu yerine ince sol şerit + çok düşük dolgu */
.asset-tip-product-chip--mms {
  border: 1px solid rgba(157, 176, 201, 0.14);
  border-left: 3px solid #bb1b8d;
  background: rgba(187, 27, 141, 0.07);
}

.asset-tip-product-chip--mms:hover {
  background: rgba(187, 27, 141, 0.1);
  border-color: rgba(187, 27, 141, 0.2);
  border-left-color: #bb1b8d;
}

.asset-tip-product-chip--pms {
  border: 1px solid rgba(157, 176, 201, 0.14);
  border-left: 3px solid #8dc63f;
  background: rgba(141, 198, 63, 0.08);
}

.asset-tip-product-chip--pms:hover {
  background: rgba(141, 198, 63, 0.11);
  border-color: rgba(141, 198, 63, 0.22);
  border-left-color: #8dc63f;
}

.asset-tip-product-chip--oee {
  border: 1px solid rgba(157, 176, 201, 0.14);
  border-left: 3px solid #0097c1;
  background: rgba(0, 151, 193, 0.08);
}

.asset-tip-product-chip--oee:hover {
  background: rgba(0, 151, 193, 0.11);
  border-color: rgba(0, 151, 193, 0.24);
  border-left-color: #0097c1;
}

.asset-tip-product-chip--mms .asset-tip-product-chip__sep,
.asset-tip-product-chip--pms .asset-tip-product-chip__sep,
.asset-tip-product-chip--oee .asset-tip-product-chip__sep {
  color: rgba(139, 155, 180, 0.5);
}

.asset-tip-product-chip--default {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(157, 176, 201, 0.15);
}

.asset-tip-product-chip--default .asset-tip-product-chip__tip,
.asset-tip-product-chip--default .asset-tip-product-chip__tip-only {
  color: var(--muted);
}

.asset-tip-product-chip--default .asset-tip-product-chip__product,
.asset-tip-product-chip--default .asset-tip-product-chip__product-only {
  color: var(--text);
}

.asset-tip-product-chip--default .asset-tip-product-chip__sep {
  color: rgba(139, 155, 180, 0.45);
}

/* Tip/ürün: etiket genişliği en fazla metin kadar (hücreyi yatayda doldurmaz) */
.data-table--assets tbody td.asset-cell-project-product .asset-cell-project-product__inner > .table-cell-copy.asset-tip-product-chip {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}

.asset-tip-product-chip--mms .asset-tip-product-chip__tip,
.asset-tip-product-chip--mms .asset-tip-product-chip__tip-only,
.asset-tip-product-chip--pms .asset-tip-product-chip__tip,
.asset-tip-product-chip--pms .asset-tip-product-chip__tip-only,
.asset-tip-product-chip--oee .asset-tip-product-chip__tip,
.asset-tip-product-chip--oee .asset-tip-product-chip__tip-only {
  color: var(--muted);
}

.asset-tip-product-chip--mms .asset-tip-product-chip__product,
.asset-tip-product-chip--mms .asset-tip-product-chip__product-only,
.asset-tip-product-chip--pms .asset-tip-product-chip__product,
.asset-tip-product-chip--pms .asset-tip-product-chip__product-only,
.asset-tip-product-chip--oee .asset-tip-product-chip__product,
.asset-tip-product-chip--oee .asset-tip-product-chip__product-only {
  color: var(--text);
}

.dt-assets-table .assets-dt-project-product-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

/* Kopyala kontrolleri hücreyi doldursun (ana liste + geçmiş); padding’e tıklanınca da kopya tetiklensin */
.data-table--assets tbody td:not(.asset-row__actions):not(.asset-cell-services) > .table-cell-copy,
.data-table--assets tbody td:not(.asset-row__actions):not(.asset-cell-services) > .asset-unregistered-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* İşlemler: sabit genişlik 150px */
.dt-assets-table.dataTable thead th.asset-row__actions,
.dt-assets-table.dataTable tbody td.asset-row__actions {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  box-sizing: border-box;
}

.dt-assets-table.dataTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dt-assets-table .assets-dt-filter-row th {
  padding-top: 0.35rem;
  padding-bottom: 0.4rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: text;
  -webkit-user-select: text;
}

.dt-assets-table .assets-dt-col-filter {
  width: 100%;
  min-width: 0;
  font-size: 0.78rem;
  padding: 0.25rem 0.35rem;
  user-select: text;
  -webkit-user-select: text;
}

.dt-assets-table .assets-dt-cpu-filter {
  display: flex;
  flex-direction: row;
  gap: 0.3rem;
  min-width: 0;
}

.dt-assets-table .assets-dt-cpu-filter__input {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.78rem;
  padding: 0.25rem 0.3rem;
}

.dt-assets-table .assets-dt-cpu-filter__input::-webkit-outer-spin-button,
.dt-assets-table .assets-dt-cpu-filter__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dt-assets-table .assets-dt-cpu-filter__input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.dt-assets-table .assets-dt-ram-filter,
.dt-assets-table .assets-dt-disk-filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.dt-assets-table .assets-dt-ram-filter__pair,
.dt-assets-table .assets-dt-disk-filter__pair {
  display: flex;
  flex-direction: row;
  gap: 0.3rem;
  min-width: 0;
}

.dt-assets-table .assets-dt-ram-filter__input,
.dt-assets-table .assets-dt-disk-filter__input {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.78rem;
  padding: 0.25rem 0.3rem;
}

.dt-assets-table .assets-dt-ram-filter__input::-webkit-outer-spin-button,
.dt-assets-table .assets-dt-ram-filter__input::-webkit-inner-spin-button,
.dt-assets-table .assets-dt-disk-filter__input::-webkit-outer-spin-button,
.dt-assets-table .assets-dt-disk-filter__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dt-assets-table .assets-dt-ram-filter__input[type='number'],
.dt-assets-table .assets-dt-disk-filter__input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.dt-assets-table .dt-ordering-asc,
.dt-assets-table .dt-ordering-desc {
  color: var(--accent);
}

.dt-assets-table .dt-orderable-none {
  cursor: default;
}

.dt-assets-table.dataTable > thead > tr:first-child > th.dt-orderable-asc,
.dt-assets-table.dataTable > thead > tr:first-child > th.dt-orderable-desc {
  cursor: pointer;
}

/*
 * ColResize CDN: table.dataTable thead th[data-is-resizable=true] — açık gri kesik çizgi.
 * CDN styles.css’ten sonra geldiği için body.admin-body ile özgüllük artırılır; thead ile aynı ton.
 */
body.admin-body table.dataTable thead th[data-is-resizable] {
  border-inline-start: 1px solid transparent;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-body table.dataTable thead th.dt-colresizable-hover {
  cursor: col-resize !important;
  background-color: rgba(61, 139, 253, 0.1) !important;
  color: var(--text) !important;
  border-inline-start: 1px solid rgba(61, 139, 253, 0.28);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
}

body.admin-body table.dataTable thead th.dt-colresizable-bound-min,
body.admin-body table.dataTable thead th.dt-colresizable-bound-max {
  opacity: 0.45;
  cursor: not-allowed !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: var(--muted) !important;
}

/* —— Alarmlar —— */
.dialog.dialog-alarm-settings {
  width: min(96vw, 560px);
  max-height: min(90vh, 720px);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-elevated);
  color: var(--text);
}

/*
  .dialog { display:flex } UA stylesheet’taki dialog:not([open]) { display:none } önceliğini ezer.
  Kapatınca open kalkar, ::backdrop gider ama kutu flex yüzünden ekranda kalırdı (asset-detail ile aynı düzeltme).
*/
dialog.dialog.dialog-alarm-settings:not([open]) {
  display: none !important;
}

.dialog-alarm-settings__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  max-height: inherit;
}

.dialog-alarm-settings__header {
  flex-shrink: 0;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.dialog-alarm-settings__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.dialog-alarm-settings__hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.dialog-alarm-settings__readonly-hint {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.dialog-alarm-settings__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.85rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.alarm-settings-section {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.alarm-settings-section:first-child {
  padding-top: 0.1rem;
}

.alarm-settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0.1rem;
}

.alarm-settings-section__title {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.alarm-settings-section__desc {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 40rem;
}

.alarm-settings-section .alarms-settings-form__grid {
  margin-bottom: 0;
}

.dialog-alarm-settings__footer {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: 0.65rem 1rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: var(--surface-elevated);
}

.dialog-alarm-settings__close {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.dialog-alarm-settings__footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.dialog.dialog-alarms {
  width: min(96vw, 520px);
  max-height: min(90vh, 640px);
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-elevated);
  color: var(--text);
}

dialog.dialog.dialog-alarms:not([open]) {
  display: none !important;
}

.dialog-alarms__header {
  flex-shrink: 0;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.dialog-alarms__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.dialog-alarms__hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.dialog-alarms__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.65rem 1rem 1rem;
}

.dialog-alarms__footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0.65rem 1rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  background: var(--surface-elevated);
}

.alarm-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: start;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.alarm-row--acked {
  opacity: 0.55;
  background: rgba(0, 0, 0, 0.08);
}

.alarm-row__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin: 0;
}

.alarm-row__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #f0a8a8;
}

.alarm-row__status-tag {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.alarm-row__status-tag--live {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}

.alarm-row--acked .alarm-row__title {
  color: var(--muted);
}

.alarm-row__meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.alarm-row__ack {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.alarm-row__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.dialog.dialog-alarm-ack {
  width: min(92vw, 420px);
  padding: 1.1rem 1.25rem 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}

.dialog-alarm-ack__title {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.dialog-alarm-ack__summary {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.45;
}

.dialog-alarm-ack__actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dialog-alarm-ack__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}

.alarm-toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-end;
  pointer-events: none;
}

.alarm-toast {
  pointer-events: auto;
  max-width: min(92vw, 360px);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 74, 74, 0.45);
  background: rgba(30, 22, 22, 0.95);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.4;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  animation: alarm-toast-in 0.35s ease-out;
}

@keyframes alarm-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alarm-toast__label {
  display: block;
  font-weight: 600;
  color: #f0a8a8;
  margin-bottom: 0.2rem;
}

.alarms-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem 1rem;
  overflow: auto;
}

.alarms-page__toolbar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.alarms-page-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.alarms-page-tab {
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.alarms-page-tab:hover {
  color: var(--text);
  background: rgba(61, 139, 253, 0.08);
}

.alarms-page-tab.is-active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
  background: rgba(0, 0, 0, 0.12);
}

.alarms-page-tab-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.alarms-page-tab-panels {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.alarms-page-tab-panel {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: auto;
}

.alarms-page-tab-panel.is-active {
  display: flex;
}

.alarms-page__section-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.alarms-settings-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.alarms-settings-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.alarms-page__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.alarms-page__list .alarm-row {
  margin-bottom: 0;
}

/* —— Özet (dashboard) —— */
.dashboard {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem clamp(0.75rem, 2.5vw, 1.75rem) 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.dashboard__section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard__section--kpi-compact {
  gap: 0;
}

.dashboard__kpi-strip--compact {
  display: block;
}

.dashboard__kpi-compact {
  display: block;
  padding: 0.4rem 0.65rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(45, 58, 79, 0.65);
  background: rgba(0, 0, 0, 0.2);
}

.dashboard__kpi-compact-sec {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  user-select: none;
}

.dashboard__kpi-compact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.45rem;
  margin: 0;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.dashboard__kpi-compact-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  max-width: 100%;
  min-width: 0;
}

.dashboard__kpi-compact-group--start {
  justify-self: start;
}

.dashboard__kpi-compact-group--mid {
  justify-self: center;
  text-align: center;
}

.dashboard__kpi-compact-group--end {
  justify-self: end;
  text-align: right;
}

.dashboard__kpi-compact-inner strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e8edf5;
}

.dashboard__kpi-compact-dot {
  opacity: 0.55;
  user-select: none;
}

.dashboard__kpi-compact-sub {
  font-size: 0.72rem;
  white-space: nowrap;
}

.dashboard__kpi-compact-error {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  min-width: 0;
}

@media (max-width: 720px) {
  .dashboard__kpi-compact-inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .dashboard__kpi-compact-group--start,
  .dashboard__kpi-compact-group--mid,
  .dashboard__kpi-compact-group--end {
    justify-self: stretch;
    text-align: start;
  }
}

/* —— Özet paneli (zengin görünüm) —— */
.dashboard--rich {
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  width: 100%;
  max-width: min(1720px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

.dashboard__bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

/* Geniş masaüstü / Full HD: üst satırda telemetri + kaynak oranı, müşteri sırası erken, altta üç sütun */
@media (min-width: 1280px) and (max-width: 1439px) {
  .dashboard__bento > .dashboard__panel:nth-child(1) {
    grid-column: span 5;
  }

  .dashboard__bento > .dashboard__panel:nth-child(2) {
    grid-column: span 7;
  }
}

@media (min-width: 1440px) {
  .dashboard--rich {
    gap: 1.35rem;
  }

  .dashboard__bento {
    gap: 1rem;
  }

  .dashboard__bento > .dashboard__panel:nth-child(1) {
    grid-column: span 5;
  }

  .dashboard__bento > .dashboard__panel:nth-child(2) {
    grid-column: span 7;
  }

  .dashboard__bento > .dashboard__panel:nth-child(3) {
    grid-column: span 12;
  }

  .dashboard__bento > .dashboard__panel:nth-child(4) {
    grid-column: span 4;
  }

  .dashboard__bento > .dashboard__panel:nth-child(5) {
    grid-column: span 4;
  }

  .dashboard__bento > .dashboard__panel:nth-child(6) {
    grid-column: span 4;
  }

  .dashboard__res-split {
    grid-template-columns: minmax(160px, 22%) minmax(0, 1fr);
    gap: 0.55rem 0.85rem;
  }
}

.dashboard__panel {
  grid-column: span 6;
  padding: 0.8rem 1rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(45, 58, 79, 0.88);
  background: linear-gradient(155deg, rgba(20, 28, 40, 0.94) 0%, rgba(11, 15, 22, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.035) inset,
    0 18px 40px -26px rgba(0, 0, 0, 0.75);
  min-width: 0;
}

/* Grafik kartları: grid satırında aynı yükseklik; grafik alanı kalan boşluğu doldurur */
.dashboard__bento > .dashboard__panel--chart {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dashboard__bento > .dashboard__panel--chart > .dashboard__panel-head {
  flex-shrink: 0;
}

.dashboard__bento > .dashboard__panel--chart > .dashboard__tel-meta {
  flex-shrink: 0;
}

.dashboard__bento > .dashboard__panel--chart > .dashboard__hc {
  flex: 1 1 auto;
  min-height: 112px;
  display: flex;
  flex-direction: column;
}

.dashboard__bento > .dashboard__panel--chart > .dashboard__res-split {
  flex: 1 1 auto;
  min-height: 0;
}

.dashboard__bento > .dashboard__panel--chart .dashboard__res-chart {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.dashboard__bento > .dashboard__panel--chart .dashboard__res-chart > .dashboard__hc {
  flex: 1 1 auto;
  min-height: 112px;
}

.dashboard__panel--wide {
  grid-column: span 12;
}

.dashboard__panel--split {
  grid-column: span 6;
}

.dashboard__panel--table .dashboard__panel-head {
  margin-bottom: 0.5rem;
}

.dashboard__panel-head {
  margin-bottom: 0.35rem;
}

.dashboard__panel-title {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.dashboard__panel-desc {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.28;
}

.dashboard__tel-meta {
  margin: 0 0 0.4rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(45, 58, 79, 0.65);
}

.dashboard__tel-updated {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  font-variant-numeric: tabular-nums;
}

.dashboard__tel-summary {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-word;
}

.dashboard__hc {
  min-height: 0;
}

.dashboard__hc--hist-combined {
  min-height: 0;
}

.dashboard__res-split {
  display: grid;
  grid-template-columns: minmax(148px, 28%) minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  align-items: stretch;
  min-width: 0;
}

.dashboard__res-ext {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard__res-sublabel {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard__res-ext .dashboard__extremes-bundle {
  grid-template-columns: 1fr;
}

.dashboard__res-ext .dashboard__ext-block {
  border-right: none;
  border-bottom: 1px solid rgba(45, 58, 79, 0.65);
}

.dashboard__res-ext .dashboard__ext-block:last-child {
  border-bottom: none;
}

.dashboard__res-chart {
  min-width: 0;
}

.dashboard__hc--bar {
  min-height: 0;
}

.dashboard__hc-empty {
  margin: 0;
  text-align: center;
}

.dashboard__extremes {
  margin: 0;
}

.dashboard__extremes-bundle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 14px;
  border: 1px solid rgba(45, 58, 79, 0.85);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.dashboard__ext-block {
  padding: 0.65rem 0.75rem;
  border-radius: 0;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(45, 58, 79, 0.65);
}

.dashboard__ext-block:last-child {
  border-right: none;
}

.dashboard__ext-block h4 {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard__ext-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.dashboard__ext-pair strong {
  color: #e8edf5;
  font-variant-numeric: tabular-nums;
}

.dashboard__cert-host {
  min-width: 0;
}

.dashboard__cert-bundle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-radius: 14px;
  border: 1px solid rgba(45, 58, 79, 0.9);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.dashboard__cert-seg {
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-right: 1px solid rgba(45, 58, 79, 0.75);
  background: rgba(61, 139, 253, 0.06);
}

.dashboard__cert-seg:last-child {
  border-right: none;
}

.dashboard__cert-seg--warn {
  background: rgba(251, 191, 36, 0.07);
}

.dashboard__cert-seg--danger {
  background: rgba(248, 113, 113, 0.08);
}

.dashboard__cert-num {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: #f1f5f9;
}

.dashboard__cert-label {
  font-size: 0.78rem;
}

.dashboard__cert-hint {
  font-size: 0.72rem;
}

.dashboard__table-scroll {
  overflow: auto;
  max-height: 260px;
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
  border-radius: 10px;
}

.dashboard__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.81rem;
}

.dashboard__table th,
.dashboard__table td {
  padding: 0.5rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid rgba(45, 58, 79, 0.55);
  vertical-align: top;
}

.dashboard__table th {
  position: sticky;
  top: 0;
  background: rgba(13, 18, 25, 0.97);
  z-index: 1;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.dashboard__table td {
  color: #e2e8f0;
}

.dashboard__table tbody tr:hover td {
  background: rgba(61, 139, 253, 0.07);
}

@media (max-width: 900px) {
  .dashboard__bento .dashboard__panel {
    grid-column: span 12;
  }

  .dashboard__res-split {
    grid-template-columns: 1fr;
  }

  .dashboard__res-ext {
    justify-content: flex-start;
  }

  .dashboard__res-ext .dashboard__extremes-bundle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard__res-ext .dashboard__ext-block {
    border-bottom: none;
    border-right: 1px solid rgba(45, 58, 79, 0.65);
  }

  .dashboard__res-ext .dashboard__ext-block:last-child {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .dashboard__cert-bundle {
    grid-template-columns: 1fr;
  }

  .dashboard__cert-seg {
    border-right: none;
    border-bottom: 1px solid rgba(45, 58, 79, 0.75);
  }

  .dashboard__cert-seg:last-child {
    border-bottom: none;
  }
  .dashboard__extremes-bundle {
    grid-template-columns: 1fr;
  }

  .dashboard__ext-block {
    border-right: none;
    border-bottom: 1px solid rgba(45, 58, 79, 0.65);
  }

  .dashboard__ext-block:last-child {
    border-bottom: none;
  }

  .dashboard__res-ext .dashboard__extremes-bundle {
    grid-template-columns: 1fr;
  }

  .dashboard__res-ext .dashboard__ext-block {
    border-right: none;
    border-bottom: 1px solid rgba(45, 58, 79, 0.65);
  }

  .dashboard__res-ext .dashboard__ext-block:last-child {
    border-bottom: none;
  }
}

/* ===== Asset detail: Versiyon tab ===== */
.asset-expand-detail--version {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}
.version-panel__branch-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.version-panel__branch-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.version-panel__branch-link-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.version-panel__branch-git-link {
  display: inline-flex;
  color: inherit;
  opacity: 0.55;
  line-height: 0;
  vertical-align: middle;
}
.version-panel__branch-git-link:hover {
  opacity: 1;
  color: var(--accent);
}
.version-panel__branch-git-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
  opacity: 1;
}
.version-panel__branch-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.version-panel__branch-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}
.version-panel__branch-hint {
  font-size: 11px;
}
.version-panel__status {
  font-size: 12px;
  min-height: 16px;
}
.version-panel-bundles {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.version-bundle {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}


.version-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #1f2a37);
  border-radius: 6px;
  overflow: hidden;
}
.version-table.version-table--selectable {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.version-table--selectable .version-row {
  min-width: 520px;
}
.version-row {
  display: grid;
  grid-template-columns: 32px 150px minmax(0, 1fr) minmax(0, 180px) 130px;
  gap: 6px;
  align-items: center;
  padding: 3px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 26px;
}
.version-row__check {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}
.version-row__check--head {
  align-items: flex-end;
  padding-bottom: 2px;
}
.version-row__check input[type='checkbox'] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent, #3d8bfd);
  cursor: pointer;
}
.version-row__tag--header-fill {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
}
.version-row--head .version-row__tag--header-fill {
  min-height: auto;
}
.version-row__head-fill-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.version-row__input--header-fill {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.version-row:last-child {
  border-bottom: none;
}
.version-row--global {
  background: rgba(72, 145, 220, 0.06);
}
.version-row--head {
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #8a99ad);
  padding: 4px 10px;
  min-height: 22px;
}
.version-row__name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  word-break: break-all;
  line-height: 1.25;
}
.version-row__image {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.version-row__tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.25;
}
.version-row__tag code {
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
}
.version-row__input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  width: 100%;
  padding: 2px 6px;
  height: 22px;
}
.version-row__actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}
.version-row__actions .btn {
  padding: 2px 8px;
  font-size: 11px;
  height: auto;
  min-height: 20px;
}
.version-row__hint {
  font-size: 10.5px;
}
@media (max-width: 720px) {
  .version-row--head {
    display: none;
  }
  .version-table--selectable .version-row--head {
    display: grid;
  }
  .version-table--selectable {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .version-table--selectable .version-row {
    grid-template-columns: 28px minmax(70px, 130px) minmax(140px, 1fr) minmax(96px, 160px) 88px;
    min-width: 500px;
  }
  .version-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .version-row__actions {
    justify-content: flex-start;
  }
}

.version-row__badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
  vertical-align: middle;
}
.version-row__badge--override {
  background: rgba(220, 138, 72, 0.22);
  color: #f3c89a;
  border: 1px solid rgba(220, 138, 72, 0.35);
}
.version-row__badge--global {
  background: rgba(72, 145, 220, 0.18);
  color: #cfe2f7;
  border: 1px solid rgba(72, 145, 220, 0.35);
}


/* ===== Versiyon paneli ===== */
.version-panel__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.version-panel__topbar-actions {
  display: flex;
  gap: 6px;
}

.btn[data-version-bulk-save].is-loading {
  cursor: wait;
  position: relative;
  padding-left: 2rem;
  opacity: 0.92;
}

.btn[data-version-bulk-save].is-loading::before {
  content: '';
  position: absolute;
  left: 0.62rem;
  top: 50%;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.4rem;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: version-bulk-save-spin 0.55s linear infinite;
}

@keyframes version-bulk-save-spin {
  to {
    transform: rotate(360deg);
  }
}

.version-table--edit-mode {
  outline: 1px dashed rgba(220, 138, 72, 0.4);
  outline-offset: -1px;
}
.version-row__input--invalid {
  outline: 1px solid rgba(255, 118, 118, 0.7);
}
