﻿/*
Theme Name: NOVA Stok Theme
Theme URI: https://nova.local
Author: NOVA Diagnostics
Description: NOVA Diagnostics demirbaÅŸ stok yÃ¶netim temasÄ±
Version: 1.0.3
Text Domain: nova-stok-theme
*/

:root {
  --nova-blue: #2A5BA3;
  --nova-cyan: #00B4FF;
  --nova-red: #e53935;
  --nova-orange: #fb8c00;
  --nova-green: #43a047;
  --font: "Montserrat", "Segoe UI", sans-serif;
  --nova-font-sm: 9pt;
  --nova-font-md: 10.8pt;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #0d0d0d;
  --bg-3: #161616;
  --bg-sidebar: #0a0a0a;
  --bg-panel: #121820;
  --text: #f2f4f7;
  --text-muted: #9aa3b2;
  --muted: #9aa3b2;
  --accent: #00B4FF;
  --border: #2a2a2a;
  --table-header: #111827;
  --table-row: #0d0d0d;
  --table-row-alt: #121212;
  --input-bg: #141414;
  --shadow: rgba(0, 180, 255, 0.12);
  --overlay: rgba(0, 0, 0, 0.7);
  --card-surface: rgba(10, 22, 40, 0.72);
  --card-heading: #e8f4ff;
  --card-body: #cfe0f0;
  --log-bg: #0a0a0a;
  --log-text: #e8eef5;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-2: #ffffff;
  --bg-3: #eef3f9;
  --bg-sidebar: #0b1f3a;
  --bg-panel: #ffffff;
  --text: #142033;
  --text-muted: #5b6b7c;
  --muted: #5b6b7c;
  --accent: #1e4f8c;
  --border: #d7e0ea;
  --table-header: #1e4f8c;
  --table-row: #ffffff;
  --table-row-alt: #f3f7fb;
  --input-bg: #ffffff;
  --shadow: rgba(42, 91, 163, 0.15);
  --overlay: rgba(10, 30, 60, 0.45);
  --card-surface: #ffffff;
  --card-heading: #142033;
  --card-body: #3d4f63;
  --log-bg: #f4f7fb;
  --log-text: #142033;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

/* TÃ¼m rem tabanlÄ± yazÄ±larÄ± ~1.2Ã— bÃ¼yÃ¼t */
html {
  font-size: 120%;
}

body.nova-app {
  overflow-x: clip;
}

a { color: var(--nova-cyan); text-decoration: none; }

.nova-hidden { display: none !important; }

.bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.12);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(42, 91, 163, 0.35), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 180, 255, 0.2), transparent 35%),
    var(--bg);
}

.login-card {
  width: min(420px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px var(--shadow);
}

.login-card img {
  display: block;
  width: 220px;
  max-width: 100%;
  margin: 0 auto 20px;
}

.login-card h1 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 1.35rem;
  color: var(--nova-cyan);
  font-weight: 700;
}

.login-card p {
  margin: 0 0 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea,
.nova-input,
.nova-select,
.combo-panel .combo-search,
.combo-panel .ss-search,
.cell-input,
.import-overlay-log {
  color-scheme: inherit;
}

.form-group input,
.form-group select,
.form-group textarea,
.nova-input,
.nova-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  outline: none;
  caret-color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.nova-input::placeholder,
.combo-search::placeholder,
.ss-search::placeholder,
.th-filter input::placeholder,
.cell-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.form-group select option,
.nova-select option,
select option {
  background: var(--input-bg);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.nova-input:focus,
.nova-select:focus {
  border-color: var(--nova-cyan);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.15);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  transition: background-color 9999s ease-out;
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.9;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-size: var(--nova-font-md);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--nova-blue), #1e4a8c);
  color: #fff;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-cyan {
  background: var(--nova-cyan);
  color: #001018;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-danger {
  background: var(--nova-red);
  color: #fff;
}

.btn-success {
  background: #1f8f4e;
  color: #fff;
  border: 1px solid #187a42;
}

.btn-success:hover { filter: brightness(1.08); }

.btn-edit {
  background: var(--bg-3, #1a2430);
  color: var(--nova-cyan);
  border: 1px solid color-mix(in srgb, var(--nova-cyan) 45%, transparent);
}

.btn-edit:hover {
  filter: brightness(1.08);
}

.btn-sm {
  padding: 6px 10px;
  font-size: var(--nova-font-sm);
  border-radius: 8px;
}

.btn-block { width: 100%; }

.login-error {
  margin-top: 12px;
  color: var(--nova-red);
  text-align: center;
  font-size: 0.88rem;
  min-height: 1.2em;
}

/* Shell */
.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 110;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 86vw);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(0, 180, 255, 0.15);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 0;
  overflow: hidden;
  touch-action: pan-y;
  /* MenÃ¼ yazÄ±sÄ±: kÃ¶k 120% iken tarayÄ±cÄ± varsayÄ±lanÄ±nÄ±n ~%90'Ä± (75% Ã— 120%) */
  font-size: 75%;
}

.sidebar.open { transform: translateX(0); }

body.nova-sidebar-open {
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sidebar-brand-btn {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  width: 100%;
  text-align: left;
}

.sidebar-brand-btn:focus-visible {
  outline: 2px solid var(--nova-cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

.sidebar-brand img {
  width: 150px;
  max-width: 100%;
  background: transparent;
  /* PNGâ€™de kalan siyah matte koyu menÃ¼de gÃ¶rÃ¼nmesin */
  mix-blend-mode: lighten;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-group-toggle .nav-caret {
  opacity: 0.75;
  font-size: 0.85em;
  transition: transform 0.15s ease;
}

.nav-group.open .nav-group-toggle .nav-caret {
  transform: rotate(-180deg);
}

.nav-group.open .nav-group-toggle {
  background: linear-gradient(90deg, rgba(42, 91, 163, 0.35), rgba(0, 180, 255, 0.1));
  color: #fff;
}

.nav-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 6px 10px;
  border-left: 2px solid rgba(0, 180, 255, 0.25);
  margin: 0 0 4px 8px;
}

.nav-sub[hidden] {
  display: none !important;
}

.nav-sub-item {
  padding: 9px 12px;
  font-size: 0.92em;
  font-weight: 550;
  color: #b7c9de;
}

.nav-sub-item.active {
  background: linear-gradient(90deg, rgba(42, 91, 163, 0.55), rgba(0, 180, 255, 0.18));
  color: #fff;
}

.nav-item {
  appearance: none;
  border: none;
  background: transparent;
  color: #d9e6f5;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: block;
  text-decoration: none;
  box-sizing: border-box;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(90deg, rgba(42, 91, 163, 0.55), rgba(0, 180, 255, 0.18));
  color: #fff;
}

.nav-item-danger {
  color: #f5a8a8;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.nav-item-danger:hover,
.nav-item-danger.active {
  background: rgba(220, 60, 60, 0.22);
  color: #ffd0d0;
}

.purge-panel {
  max-width: 720px;
}

.purge-title {
  margin: 0 0 10px;
  color: #e85a5a;
  font-size: 1.25rem;
}

.purge-warn {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.5;
}

.purge-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.purge-stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  background: var(--bg-1, var(--bg-2));
}

.purge-stat span {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.purge-stat small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

@media (max-width: 700px) {
  .purge-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sidebar-footer {
  margin-top: 0;
  flex-shrink: 0;
  padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
  background: var(--bg-sidebar);
  position: relative;
  z-index: 2;
}

.sidebar-footer #logoutBtn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hamburger {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--nova-cyan);
  margin: 3px 0;
  border-radius: 2px;
}

.page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.page-title span {
  color: var(--nova-cyan);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--nova-cyan);
  border-radius: 12px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--nova-cyan);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.15);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; color: var(--nova-blue); }

.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}

.stat-card:hover {
  border-color: var(--nova-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}

.stat-card .label {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nova-cyan);
  margin-top: 4px;
}

.status-quick.active-filter {
  border-color: var(--nova-cyan);
  color: var(--nova-cyan);
}

.ss-wrap,
.combo {
  position: relative;
  width: 100%;
}

.combo-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.combo-trigger:hover,
.combo.open .combo-trigger {
  border-color: var(--nova-cyan);
}

.combo-trigger .combo-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-trigger .combo-caret {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--nova-cyan);
  transition: transform 0.15s ease;
}

.combo.open .combo-caret {
  transform: rotate(180deg);
}

.combo-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  padding: 8px;
  max-height: 260px;
  overflow: hidden;
  flex-direction: column;
}

.combo.open .combo-panel {
  display: flex;
}

.combo-panel .ss-search,
.combo-panel .combo-search {
  margin-bottom: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
}

.combo-options {
  overflow: auto;
  max-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.combo-option {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.combo-option:hover,
.combo-option.active {
  background: linear-gradient(90deg, rgba(42, 91, 163, 0.55), rgba(0, 180, 255, 0.22));
  color: #fff;
}

.combo-option.hidden-opt {
  display: none;
}

.combo > select,
.combo select.nova-select,
.combo select.cell-input,
.ss-wrap > select.nova-select {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* cell-input still styles text/date inputs, not hidden selects in combo */
.combo .cell-input {
  display: none !important;
}

.combo.combo-sm .combo-trigger {
  padding: 6px 8px;
  font-size: 0.84rem;
  border-radius: 6px;
  min-width: 110px;
}

.modal .ss-wrap,
.modal .combo {
  margin-bottom: 0;
}

.cell-combo {
  min-width: 120px;
}


.panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.toolbar .field {
  min-width: 160px;
  flex: 1;
}

.toolbar .field label {
  display: block;
  font-size: var(--nova-font-sm);
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Transfer: etiket alanÄ± diÄŸer inputlarla aynÄ± hizada */
.toolbar-transfer {
  align-items: flex-end;
}

.toolbar-transfer .field-xfer-tags .xfer-tags-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  box-sizing: border-box;
}

.toolbar-transfer .field-xfer-tags .xfer-tags-control .btn {
  flex: 0 0 auto;
  min-height: 42px;
  margin: 0;
}

.toolbar-transfer .field-xfer-tags .dash-tag-filter-summary {
  margin-top: 0;
  min-height: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xfer-group-row td {
  background: rgba(15, 118, 110, 0.08);
  font-weight: 600;
  padding-top: 10px;
  padding-bottom: 10px;
}

.xfer-group-row .xfer-group-check {
  margin-right: 8px;
  vertical-align: middle;
}

.xfer-group-meta {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9em;
}

.badge-il-saglik {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

/* DemirbaÅŸ listesi: bilgisayarda tek satÄ±r */
.toolbar-assets {
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}

.toolbar-assets .field {
  flex: 1 1 0;
  min-width: 110px;
  max-width: 200px;
}

.toolbar-assets .toolbar-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  margin-left: auto;
}

.toolbar-assets .toolbar-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 10px;
  font-size: 0.78rem;
}

.toolbar-assets .ss-wrap,
.toolbar-assets .combo {
  min-width: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dash-filter-hint {
  margin: 8px 2px 0;
  font-size: var(--nova-font-sm);
  color: var(--text-muted);
}

.dash-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.dash-product-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.dash-product-chip:hover {
  border-color: rgba(0, 180, 255, 0.5);
  background: rgba(0, 180, 255, 0.12);
}

.dash-product-chip-name {
  font-weight: 650;
  color: var(--card-heading);
  word-break: break-word;
}

.dash-product-chip-total {
  color: var(--nova-cyan, #00b4ff);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.dash2-wh-block {
  padding: 8px 12px 10px;
  border: 1px solid rgba(0, 180, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 180, 255, 0.03);
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
}

.dash2-wh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 6px 0;
  cursor: pointer;
  text-align: left;
}

.dash2-wh-head:hover .dash2-product-name {
  color: var(--nova-cyan, #00b4ff);
}

.dash2-wh-products {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 12px;
  border-left: 2px solid rgba(0, 180, 255, 0.2);
}

.dash2-wh-products li { margin: 0 0 6px; }

.dash2-prod-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
  padding: 4px 0;
  cursor: pointer;
  text-align: left;
}

.dash2-prod-link:hover { color: var(--text); }

.dash2-prod-link strong {
  color: var(--nova-cyan, #00b4ff);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.dash2-prod-link span,
.dash2-model-link span,
.dash2-product-name {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dash2-model-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0 0 0 12px;
  border-left: 2px solid rgba(0, 180, 255, 0.14);
}

.dash2-model-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  padding: 2px 0;
  cursor: pointer;
  text-align: left;
  opacity: 0.92;
}

.dash2-model-link:hover { color: var(--text); opacity: 1; }

.dash2-model-link strong {
  color: var(--nova-cyan, #00b4ff);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  flex-shrink: 0;
}

.dash2-card-body {
  flex: 1 1 auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Depo/hastane bloklarÄ±: alt alta (dikey) */
.dash2-wh-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  overflow: visible;
  padding-bottom: 0;
}

.dash2-card-body > .dash2-foot-title {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.dash2-card-body > .dash2-empty-soft {
  flex: 0 0 auto;
}

.dash2-card-head-click { cursor: pointer; }
.dash2-card-head-click:hover h3 { color: var(--nova-cyan, #00b4ff); }

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 180, 255, 0.06);
  border: 1px solid rgba(0, 180, 255, 0.12);
}

.dash-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.dash-tab:hover {
  color: var(--text);
  background: rgba(0, 180, 255, 0.1);
}

.dash-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(42, 91, 163, 0.92), rgba(0, 140, 210, 0.85));
  box-shadow: 0 0 0 1px rgba(0, 180, 255, 0.25);
}

.dash-tab-panel {
  display: none;
}

.dash-tab-panel.active {
  display: block;
}

.dash2-filter-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px 18px;
  align-items: start;
}

.dash2-filter-actions-field {
  min-width: 0;
}

.dash2-filter-actions-label,
.dash2-filter-actions-spacer {
  visibility: hidden;
  user-select: none;
}

.dash2-filter-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.dash2-filter-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  height: 100%;
  min-height: 44px;
  font-size: var(--nova-font-md);
}

.dash2-grand {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dash2-grand strong {
  color: var(--nova-cyan, #00b4ff);
  font-size: 1.05rem;
}

/* Etiket kartlarÄ±: grid, dikey akÄ±ÅŸ (yukarÄ± â†’ aÅŸaÄŸÄ±) */
.dash2-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  align-items: stretch;
  overflow: visible;
  padding-bottom: 4px;
}

.dash3-watch-aging {
  margin: 0 0 16px;
}

.dash3-aging-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.dash3-aging-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.dash3-aging-card {
  min-width: 0;
  padding: 12px 14px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    linear-gradient(165deg, rgba(251, 140, 0, 0.08), transparent 48%),
    var(--card-surface);
}

.dash3-aging-pill {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.dash3-aging-pill:disabled {
  cursor: default;
  opacity: 0.7;
}

.dash3-aging-pill:not(:disabled):hover {
  filter: brightness(1.08);
}

.dash3-aging-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--card-heading);
}

.dash3-aging-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash3-aging-pill strong {
  font-weight: 800;
}

.dash3-aging-pill.is-warn {
  color: #7a4a00;
  background: rgba(251, 140, 0, 0.22);
  border: 1px solid rgba(251, 140, 0, 0.45);
}

.dash3-aging-pill.is-overdue {
  color: #fff;
  background: rgba(229, 57, 53, 0.82);
  border: 1px solid rgba(229, 57, 53, 0.95);
}

.dash3-aging-pill.is-fresh {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.dash3-aging-meta {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.dash3-loc-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border, rgba(15, 23, 42, 0.12));
}
.dash3-loc-title {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dash3-loc-card-help {
  margin: 0 0 8px;
  font-size: 0.72rem;
  line-height: 1.35;
}
.dash3-loc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow: auto;
}
.dash3-loc-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dash3-loc-pair {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash3-loc-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash3-loc-side.is-crm {
  padding-top: 6px;
  border-top: 1px dashed var(--border, rgba(15, 23, 42, 0.14));
}
.dash3-loc-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
  color: var(--text);
}
.dash3-loc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dash3-loc-chip {
  border: 0;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
  white-space: nowrap;
}
.dash3-loc-chip.is-red {
  background: #c62828;
  color: #fff;
}
.dash3-loc-chip.is-green {
  background: #2e7d32;
  color: #fff;
}
.dash3-loc-chip:hover {
  filter: brightness(1.08);
}
.dash3-loc-crm-chip {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.18));
  background: var(--bg-2, var(--input-bg, #f3f4f6));
  color: var(--text);
}
.dash3-loc-empty {
  margin: 0;
  font-size: 0.8rem;
}
[data-theme="dark"] .dash3-loc-block {
  border-top-color: rgba(242, 244, 247, 0.12);
}
[data-theme="dark"] .dash3-loc-side.is-crm {
  border-top-color: rgba(242, 244, 247, 0.14);
}
[data-theme="dark"] .dash3-loc-crm-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(242, 244, 247, 0.16);
  color: var(--text);
}
.dash3-loc-all {
  margin-top: 20px;
}
.dash3-loc-all-help {
  margin: 0 0 10px;
  font-size: 0.82rem;
}
.dash3-loc-all-panel {
  background: var(--bg-panel, var(--bg-2));
  border: 1px solid var(--border, rgba(15, 23, 42, 0.12));
  border-radius: 10px;
  padding: 14px 16px;
  max-height: 360px;
  overflow: auto;
}
.dash3-loc-all-panel .dash3-loc-list {
  max-height: none;
}
[data-theme="dark"] .dash3-loc-all-panel {
  border-color: rgba(242, 244, 247, 0.12);
}

[data-theme="dark"] .dash3-aging-pill.is-warn {
  color: #ffd59a;
  background: rgba(251, 140, 0, 0.18);
}

[data-theme="light"] .dash3-aging-pill.is-fresh {
  background: #f4f7fb;
}

[data-theme="light"] .dash3-aging-card {
  background:
    linear-gradient(165deg, rgba(251, 140, 0, 0.1), transparent 48%),
    #fff;
}

.dash2-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:
    linear-gradient(165deg, rgba(0, 180, 255, 0.07), transparent 42%),
    var(--card-surface);
  overflow: hidden;
  color: var(--text);
}

.dash2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(0, 180, 255, 0.15);
}

.dash2-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--card-heading);
  letter-spacing: 0.01em;
}

.dash2-card-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--nova-cyan, #00b4ff);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 180, 255, 0.35);
  background: rgba(0, 180, 255, 0.08);
}

.dash2-product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.dash2-product-name {
  font-weight: 650;
  color: var(--card-heading);
}

.dash2-product-total {
  font-weight: 700;
  color: var(--nova-cyan, #00b4ff);
  font-variant-numeric: tabular-nums;
}

.dash2-product-inline {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dash2-loc-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash2-loc-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
}

.dash2-loc-name {
  color: var(--card-body);
  word-break: break-word;
}

.dash2-loc-qty {
  flex-shrink: 0;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.dash2-card-foot {
  margin-top: auto;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
}

.dash2-foot-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dash2-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 0.88rem;
  color: var(--text);
}

.dash2-total-row.muted {
  color: var(--text-muted);
}

.dash2-grand-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 180, 255, 0.25);
  font-size: 0.95rem;
}

.dash2-grand-row strong {
  color: var(--nova-cyan, #00b4ff);
  font-size: 1.1rem;
}

.dash2-empty-soft {
  padding: 18px 8px;
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .dash2-filter-panel {
    grid-template-columns: 1fr;
  }

  .dash2-filter-actions-field .dash2-filter-actions-label,
  .dash2-filter-actions-field .dash2-filter-actions-spacer {
    display: none;
  }

  .dash2-filter-actions {
    flex-wrap: wrap;
  }

  .dash2-filter-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .dash2-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dash3-aging-grid {
    grid-template-columns: 1fr;
  }

  .dash2-card-head {
    flex-wrap: wrap;
    padding: 12px 14px 10px;
  }

  .dash2-card-body {
    padding: 10px 12px;
  }

  .dash2-card-foot {
    padding: 10px 12px 12px;
  }

  .dash-tag-filter-btn {
    width: 100%;
    min-height: 44px;
  }
}

.dash-search-panel {
  padding: 12px 14px;
}

.dash-search-panel-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  align-items: start;
}

.dash-search-field {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-rows: auto 44px auto;
  align-items: stretch;
  gap: 0;
}

.dash-search-field label {
  display: block;
  margin: 0 0 6px;
  font-size: var(--nova-font-sm);
  line-height: 1.2;
  color: var(--text-muted);
  min-height: 1.2em;
}

.dash-search-control {
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: stretch;
}

.dash-search-control > .nova-select,
.dash-search-control > select,
.dash-search-control > .combo {
  width: 100%;
  height: 100%;
  min-height: 44px;
  flex: 1;
}

.dash-search-control .combo-trigger {
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

.dash-search-control .dash-tag-filter-btn {
  width: 100%;
  height: 100%;
  min-height: 44px;
  margin: 0;
  justify-content: flex-start;
  text-align: left;
  padding-left: 14px;
  padding-right: 14px;
  box-sizing: border-box;
  font-size: var(--nova-font-md);
}

.dash-tag-filter-btn {
  width: 100%;
}

.dash-tag-filter-summary,
.dash-search-hint {
  margin-top: 6px;
  min-height: 1.35em;
  font-size: var(--nova-font-sm);
  line-height: 1.35;
  color: var(--text-muted);
  word-break: break-word;
}

.dash-search-hint {
  visibility: hidden;
}

.form-group-span {
  grid-column: 1 / -1;
}

.tags-cell {
  max-width: 220px;
  min-width: 140px;
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-word;
}

.tags-cell-btn {
  width: 100%;
  min-height: 36px;
  text-align: left;
  white-space: normal;
  line-height: 1.25;
  cursor: pointer;
  color: inherit;
}

.tags-cell-btn:hover {
  border-color: rgba(0, 180, 255, 0.45);
  color: var(--nova-cyan);
}

.tag-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

#modalRoot > .tag-picker-overlay,
body > .tag-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  border-radius: 0;
}

.tag-picker-panel {
  width: min(420px, calc(100vw - 24px));
  max-height: min(85dvh, 560px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  z-index: 401;
  pointer-events: auto;
}

.tag-picker-panel h3 {
  margin: 0;
  font-size: 1.05rem;
}

.tag-picker-list {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
}

.tag-picker-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 4px;
}

.toolbar-sep {
  display: inline-block;
  width: 1px;
  height: 1.4em;
  margin: 0 8px;
  background: var(--border, #ccc);
  vertical-align: middle;
}

.tag-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.tag-picker-item span {
  pointer-events: none;
}

.tag-picker-item:hover {
  background: rgba(0, 180, 255, 0.1);
}

.tag-picker-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--nova-cyan, #00b4ff);
}

.stat-card.dash-hit {
  border-color: var(--nova-cyan);
  box-shadow: 0 0 0 1px rgba(0, 180, 255, 0.35);
}

@media (max-width: 768px) {
  .dash-search-panel-dual {
    grid-template-columns: 1fr;
  }

  .dash-search-field {
    max-width: none;
  }
}

.dash-section {
  margin-bottom: 22px;
}

.dash-section-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.dash-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dash-section-head .dash-section-title {
  margin: 0;
}

.dash-ihale-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-filter-btn {
  border: 1px solid transparent;
  font-weight: 700;
  padding: 8px 14px;
}

.dash-filter-biten {
  background: rgba(229, 57, 53, 0.18);
  color: #ff8a80;
  border-color: rgba(229, 57, 53, 0.45);
}

.dash-filter-biten:hover,
.dash-filter-biten.active {
  background: rgba(229, 57, 53, 0.35);
  color: #ffcdd2;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.35);
}

.dash-filter-devam {
  background: rgba(46, 175, 110, 0.16);
  color: #69f0ae;
  border-color: rgba(46, 175, 110, 0.45);
}

.dash-filter-devam:hover,
.dash-filter-devam.active {
  background: rgba(46, 175, 110, 0.32);
  color: #b9f6ca;
  box-shadow: 0 0 0 2px rgba(46, 175, 110, 0.35);
}

.dash-filter-clear {
  background: rgba(159, 180, 204, 0.12);
  color: var(--text-muted);
  border-color: var(--border);
}

.dash-filter-clear:hover {
  background: rgba(159, 180, 204, 0.22);
  color: var(--text);
}

.stats-grid-depo {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.stat-card .meta {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-card-depo .value {
  font-size: 1.25rem;
}

.stat-card .dash-countdown {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.2;
}

.stat-card.stat-expired {
  border-color: rgba(229, 57, 53, 0.45);
}

/* Excel-like table â€” 7.5pt / 9pt; yatay kaydÄ±rma .table-wrap iÃ§inde */
.table-scroll-shell {
  width: 100%;
  max-width: 100%;
}

.table-scroll-top {
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  height: 14px;
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: var(--bg-3);
  -webkit-overflow-scrolling: touch;
}

.table-scroll-top.has-scroll {
  display: block;
}

.table-scroll-top-inner {
  height: 1px;
  pointer-events: none;
}

.table-scroll-shell .table-scroll-top.has-scroll + .table-wrap,
.table-scroll-shell .table-scroll-top.has-scroll + .modal-table-wrap {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.table-scroll-shell > .table-wrap,
.table-scroll-shell > .modal-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  position: relative;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

/* DemirbaÅŸ listesi: 7.5pt / 9pt (+ sÄ±kÄ± satÄ±r / hÃ¼cre) */
#view-assets .nova-table,
#view-assets .nova-table thead th,
#view-assets .nova-table thead th .th-label,
#view-assets .nova-table tbody td,
#view-assets .nova-table .cell-input,
#view-assets .nova-table .combo-sm .combo-trigger,
#view-assets .nova-table .badge,
#view-assets .nova-table .countdown,
#view-assets .nova-table .btn,
#view-assets .nova-table .btn-sm,
#view-assets .nova-table .tags-cell-btn {
  font-size: var(--nova-font-md) !important;
  line-height: 1.3;
}

#view-assets .nova-table thead th .th-filter input,
#view-assets .nova-table thead th .th-filter select {
  font-size: var(--nova-font-sm) !important;
  line-height: 1.3;
}

#view-assets .nova-table tbody td {
  padding: 5px 7px;
  vertical-align: middle;
}

#view-assets .nova-table thead th .th-label {
  padding: 8px 7px 4px;
}

#view-assets .nova-table thead th .th-filter input,
#view-assets .nova-table thead th .th-filter select {
  min-height: 2em;
  min-width: 96px;
  padding: 4px 6px;
  line-height: 1.3;
  box-sizing: border-box;
}

#view-assets .nova-table .cell-input,
#view-assets .nova-table select.cell-input,
#view-assets .nova-table .combo-sm .combo-trigger,
#view-assets .nova-table .tags-cell-btn {
  min-height: 2.1em;
  min-width: 96px;
  padding: 5px 7px;
  line-height: 1.3;
  box-sizing: border-box;
}

#view-assets .nova-table .cell-input[data-field="product_name"],
#view-assets .nova-table .cell-input[data-field="model"],
#view-assets .nova-table .cell-input[data-field="ownership"],
#view-assets .nova-table .cell-input[data-field="supplier"],
#view-assets .nova-table .cell-wh-select {
  min-width: 128px;
}

#view-assets .nova-table .cell-input[data-field="brand"],
#view-assets .nova-table .cell-input[data-field="serial_number"],
#view-assets .nova-table .cell-input[data-field="invoice_no"] {
  min-width: 108px;
}

#view-assets .nova-table .tags-cell {
  max-width: 240px;
  min-width: 132px;
}

#view-assets .nova-table .tags-cell-btn {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#view-assets .nova-table .btn-sm,
#view-assets .nova-table .actions-row .btn {
  padding: 6px 10px;
  line-height: 1.3;
}

#view-assets .nova-table tbody tr:not(.row-editing) .cell-input:not(.tags-cell-btn):not(.cell-notes):not(.cell-inline-edit),
#view-assets .nova-table tbody tr:not(.row-editing) select.cell-input {
  pointer-events: none;
  cursor: default;
  opacity: 0.95;
}

#view-assets .nova-table tbody tr:not(.row-editing) .cell-input:not(.tags-cell-btn):not(.cell-notes):not(.cell-inline-edit):focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

#view-assets .nova-table tbody tr .cell-input.cell-notes,
#view-assets .nova-table tbody tr .cell-input.cell-inline-edit {
  pointer-events: auto;
  cursor: text;
  opacity: 1;
  min-width: 170px;
}

.topbar-global-search {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: min(280px, 42vw);
  flex: 1 1 220px;
  max-width: 420px;
}

.topbar-global-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.topbar-global-search input:focus {
  outline: none;
  border-color: var(--nova-cyan, #00b4ff);
}

.topbar-global-search .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.nova-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--nova-font-md) !important;
}

.nova-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--table-header);
  color: #fff;
  font-size: var(--nova-font-md) !important;
  font-weight: 700;
  text-align: left;
  padding: 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.nova-table thead th .th-label {
  padding: 8px 7px 4px;
  font-size: var(--nova-font-md) !important;
}

.nova-table thead th .th-filter {
  padding: 0 6px 6px;
}

.nova-table thead th .th-filter input,
.nova-table thead th .th-filter select {
  width: 100%;
  min-width: 88px;
  padding: 4px 6px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: var(--nova-font-sm) !important;
}

[data-theme="light"] .nova-table thead th .th-filter input,
[data-theme="light"] .nova-table thead th .th-filter select {
  background: rgba(255,255,255,0.92);
  color: #142033;
  border-color: rgba(255,255,255,0.5);
}

.nova-table tbody td {
  padding: 5px 7px;
  border-bottom: 1px solid var(--border);
  font-size: var(--nova-font-md) !important;
  vertical-align: middle;
  background: var(--table-row);
  white-space: nowrap;
}

.nova-table .cell-input,
.nova-table .combo-sm .combo-trigger,
.nova-table .badge,
.nova-table .countdown,
.nova-table .btn,
.nova-table .btn-sm,
.nova-table .tags-cell-btn {
  font-size: var(--nova-font-md) !important;
  min-width: 6.5em;
  max-width: 20em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nova-table .actions-cell .btn,
.nova-table .actions-row .btn {
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.nova-table .combo-sm .combo-trigger {
  padding: 5px 7px;
}

.nova-table tbody tr:nth-child(even) td {
  background: var(--table-row-alt);
}

.nova-table tbody tr.row-expired td {
  background: rgba(229, 57, 53, 0.18) !important;
  color: #ffb4b0;
}

[data-theme="light"] .nova-table tbody tr.row-expired td {
  background: #ffe5e5 !important;
  color: #8b1e1e;
}

.nova-table tbody tr.row-selected td {
  outline: 2px solid var(--nova-cyan);
  outline-offset: -2px;
}

.cell-input {
  width: 100%;
  min-width: 90px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.cell-input:focus {
  border-color: var(--nova-cyan);
  background: var(--input-bg);
  outline: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-aktif { background: rgba(67, 160, 71, 0.2); color: #7dcea0; }
.badge-atil { background: rgba(158, 158, 158, 0.25); color: #cfcfcf; }
.badge-tamirde { background: rgba(251, 140, 0, 0.22); color: #ffcc80; }
.badge-bozuk { background: rgba(229, 57, 53, 0.22); color: #ef9a9a; }
.badge-devam { background: rgba(0, 180, 255, 0.2); color: var(--nova-cyan); }
.badge-biten { background: rgba(229, 57, 53, 0.25); color: #ff8a80; }

[data-theme="light"] .badge-aktif { color: #1b5e20; }
[data-theme="light"] .badge-atil { color: #424242; }
[data-theme="light"] .badge-tamirde { color: #e65100; }
[data-theme="light"] .badge-bozuk { color: #b71c1c; }
[data-theme="light"] .badge-biten { color: #b71c1c; }
[data-theme="light"] .excel-badge.req { color: #b91c1c; }
[data-theme="light"] .excel-badge.opt { color: #0f766e; }

.countdown {
  font-weight: 700;
  white-space: nowrap;
}

.countdown.expired { color: var(--nova-red); }
.countdown.warn { color: var(--nova-orange); }
.countdown.ok { color: var(--nova-green); }

.actions-cell {
  white-space: nowrap !important;
  vertical-align: middle;
  width: 1%;
}

.nova-table td.actions-cell {
  min-width: max-content;
}

.actions-cell .actions-row,
.nova-table .actions-row {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  width: max-content;
  max-width: none;
}

.actions-cell .btn-sm,
.nova-table .actions-row .btn {
  flex: 0 0 auto !important;
  width: auto !important;
  white-space: nowrap;
  padding: 4px 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 16px;
}

.modal {
  width: min(560px, 100%);
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  max-height: 90vh;
  overflow: auto;
}

.modal.modal-wide {
  width: min(820px, 100%);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}

@media (max-width: 700px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.modal h3 {
  margin: 0 0 14px;
  color: var(--nova-cyan);
}

.modal-help {
  margin: 0 0 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.req-star {
  color: var(--nova-red, #e53935);
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: #10253f;
  color: #fff;
  border-left: 4px solid var(--nova-cyan);
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error { border-left-color: var(--nova-red); }

.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}

.listbox {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-3);
}

.listbox-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.listbox-item:hover,
.listbox-item.active {
  background: rgba(0, 180, 255, 0.12);
}

.view { display: none; }
.view.active { display: block; }

.table-compact .nova-table {
  font-size: var(--nova-font-sm);
}
.table-compact .th-filter input,
.table-compact .th-filter select {
  max-width: 72px;
  min-width: 48px;
  font-size: var(--nova-font-sm);
  padding: 2px 4px;
}
.dash-model-breakdown {
  margin-top: 6px;
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.35;
}
.dash-model-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 1px 0;
}
.dash-model-line strong {
  font-variant-numeric: tabular-nums;
  color: var(--nova-cyan, #00b4ff);
}

.table-meta-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 12px;
  margin: 0 0 8px;
  min-height: 1.35em;
}

.table-tools-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 6px;
}

.table-col-picker-wrap {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  flex: 0 0 auto;
  z-index: 6;
}

.table-col-picker-btn {
  white-space: nowrap;
}

.table-col-picker-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  z-index: 40;
  min-width: min(280px, calc(100vw - 24px));
  max-width: min(360px, calc(100vw - 24px));
  max-height: min(320px, 55vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel, var(--bg-2));
  box-shadow: 0 8px 28px var(--shadow);
}

.table-col-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 8px;
  border-bottom: 1px solid var(--border);
  font-size: var(--nova-font-sm);
  font-weight: 650;
  color: var(--text-muted);
}

.table-col-picker-list {
  overflow-y: auto;
  padding: 6px 2px 2px;
}

.table-col-picker-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 7px;
  font-size: var(--nova-font-sm);
  color: var(--text);
  cursor: grab;
  border: 1px solid transparent;
  user-select: none;
}

.table-col-picker-item:hover {
  background: rgba(0, 180, 255, 0.08);
}

.table-col-picker-item.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.table-col-picker-item.drag-over {
  border-color: var(--nova-cyan, #00b4ff);
  background: rgba(0, 180, 255, 0.12);
}

.table-col-picker-handle {
  flex-shrink: 0;
  width: 1.1em;
  margin-top: 1px;
  letter-spacing: -0.15em;
  color: var(--text-muted);
  font-size: 0.85em;
  line-height: 1.4;
  cursor: grab;
}

.table-col-picker-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.table-col-picker-item input {
  margin-top: 2px;
  flex-shrink: 0;
}

.table-col-picker-label span {
  line-height: 1.35;
  word-break: break-word;
}

.table-col-picker-hint {
  margin: 0;
  padding: 6px 4px 2px;
  font-size: var(--nova-font-sm);
  color: var(--text-muted);
  line-height: 1.35;
}

.table-col-picker-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.nova-table .nova-col-hidden {
  display: none !important;
}

.page-size-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--nova-font-sm);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.page-size-ctrl select {
  min-width: 4.5rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border, #c5d0dc);
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-weight: 600;
}

.table-total {
  display: flex;
  grid-column: 1;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--nova-font-md);
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0;
  min-width: 0;
}

.ihale-tur-dash {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 12rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.table-dash-slot {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
}

.table-dash-slot .ihale-tur-dash {
  flex: 1 1 auto;
  width: 100%;
}

.ihale-tur-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 5px 12px;
  min-height: 36px;
  border: 1px solid var(--border, #c5d0dc);
  border-radius: 8px;
  background: var(--surface, var(--bg-panel, var(--bg-2, transparent)));
  color: var(--text, inherit);
  font-family: inherit;
  font-size: 12pt;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

button.ihale-tur-chip {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.ihale-tur-chip:hover {
  border-color: var(--nova-cyan, #00B4FF);
}

button.ihale-tur-chip.is-on {
  border-color: var(--nova-cyan, #00B4FF);
  box-shadow: 0 0 0 2px rgba(0, 180, 255, 0.28);
  background: rgba(0, 180, 255, 0.1);
}

.ihale-tur-chip-name {
  font-weight: 700;
}

.ihale-tur-chip-sep {
  margin: 0 8px;
  opacity: 0.65;
  font-weight: 700;
}

.ihale-tur-chip-vals {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ihale-tur-chip-vals .ihale-cihaz-qty {
  font-weight: 700;
}

#ihaleKazanilanTable th[data-nova-col-key="teklif_tipi"],
#ihaleKazanilanTable td[data-nova-col-key="teklif_tipi"],
#ihaleTakipTable th[data-nova-col-key="teklif_tipi"],
#ihaleTakipTable td[data-nova-col-key="teklif_tipi"] {
  min-width: 148px;
}

.ihale-tur-chip.is-total {
  border-color: var(--nova-cyan, #00B4FF);
  background: rgba(0, 180, 255, 0.08);
  color: var(--text);
}

.ihale-tur-chip.is-total .ihale-tur-chip-name {
  color: var(--nova-cyan, #00B4FF);
}

[data-theme="light"] .ihale-tur-chip {
  background: #fff;
}

[data-theme="light"] .ihale-tur-chip.is-total {
  background: rgba(0, 180, 255, 0.08);
}

.ihale-ms {
  position: relative;
  width: 100%;
  min-width: 0;
}

.nova-table thead th .th-filter .ihale-ms-btn {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: var(--nova-font-sm) !important;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .nova-table thead th .th-filter .ihale-ms-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #142033;
  border-color: rgba(20, 32, 51, 0.22);
}

.ihale-ms-menu {
  z-index: 420;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2, var(--bg-panel, #fff));
  color: var(--text) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  font-family: inherit;
  font-size: var(--nova-font-sm);
}

.ihale-ms-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text) !important;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  user-select: none;
}

.ihale-ms-item span {
  color: var(--text) !important;
  flex: 1 1 auto;
  min-width: 0;
}

.ihale-ms-item:hover {
  background: linear-gradient(90deg, rgba(42, 91, 163, 0.55), rgba(0, 180, 255, 0.22));
  color: #fff !important;
}

.ihale-ms-item:hover span {
  color: #fff !important;
}

.ihale-ms-item input {
  margin: 0;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--nova-cyan, #00b4ff);
}

.ihale-ms-empty {
  display: block;
  padding: 8px 10px;
  color: var(--text-muted) !important;
}

.table-total-text {
  font-size: inherit;
  font-weight: inherit;
  margin-left: auto;
}

.table-total strong {
  color: var(--nova-cyan, #00b4ff);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
}

.pager-info {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pager-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pager-btn {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-3);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.pager-btn:hover:not(:disabled) {
  border-color: var(--nova-cyan);
  color: var(--nova-cyan);
}

.pager-btn.active {
  background: linear-gradient(135deg, #2a5ba3, #00b4ff);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sortable {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.sortable .sort-ind {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
}

.sortable .sort-ind::after {
  content: 'A-Z';
  opacity: 0.55;
}

.sortable.asc .sort-ind {
  color: var(--accent, #0d9488);
}

.sortable.asc .sort-ind::after {
  content: 'A-Z';
  opacity: 1;
}

.sortable.desc .sort-ind {
  color: var(--accent, #0d9488);
}

.sortable.desc .sort-ind::after {
  content: 'Z-A';
  opacity: 1;
}

.modal-excel-guide {
  width: min(1100px, 96vw);
  max-width: 96vw;
}

.excel-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.excel-guide-head h3 {
  margin: 0;
}

.excel-guide-banner {
  background: rgba(14, 116, 144, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
}

.excel-guide-banner ol {
  margin: 8px 0 0;
  padding-left: 18px;
}

.excel-guide-banner li {
  margin-bottom: 4px;
}

.excel-guide-banner .linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--nova-cyan, #22d3ee);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.excel-guide-wrap {
  max-height: min(52vh, 460px);
}

.excel-guide-table td,
.excel-guide-table th {
  vertical-align: top;
  font-size: 0.78rem;
  line-height: 1.4;
}

.excel-guide-table code {
  font-family: inherit;
  color: var(--nova-cyan, #22d3ee);
  font-size: 0.8rem;
}

.excel-guide-actions {
  flex-wrap: wrap;
}

.excel-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.excel-badge.req {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
}

.excel-badge.opt {
  background: rgba(13, 148, 136, 0.15);
  color: #2dd4bf;
}

.excel-error-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
  max-height: 240px;
  overflow: auto;
}

.excel-error-list li {
  margin-bottom: 4px;
}

.modal-meta {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.modal-table-wrap {
  max-height: min(55vh, 480px);
  margin-bottom: 12px;
}

@media (max-width: 1200px) {
  .toolbar-assets {
    flex-wrap: wrap;
  }

  .toolbar-assets .field {
    flex: 1 1 140px;
    max-width: none;
    min-width: 140px;
  }

  .toolbar-assets .toolbar-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .main { padding: 12px; }
  .page-title { font-size: 1.1rem; }
  .table-wrap { max-height: calc(100vh - 260px); }
  .topbar-actions { width: 100%; margin-left: 0; }
  .stats-grid,
  .stats-grid-depo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stat-card {
    padding: 12px 10px;
  }
  .stat-card .value {
    font-size: 1.2rem;
  }
  .stat-card-depo .value {
    font-size: 1.1rem;
  }
  .dash-section-title {
    font-size: 0.95rem;
  }
  .pager {
    flex-direction: column;
    align-items: stretch;
  }
  .pager-pages {
    justify-content: center;
  }

  .toolbar-assets {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .toolbar-assets .field {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
  }

  .toolbar-assets .toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .toolbar-assets .toolbar-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    font-size: 0.8rem;
    padding: 10px 8px;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .stats-grid-depo {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar .field {
    width: 100%;
    min-width: 0;
  }

  .toolbar-assets .toolbar-actions {
    grid-template-columns: 1fr;
  }
}

/* Faturalar */
.invoice-hint {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.invoice-hint strong { color: inherit; font-weight: 600; }
.modal-invoice { max-width: 820px; }
.modal-invoice-lg { max-width: min(1100px, 96vw); }
.invoice-picker-wrap {
  max-height: 280px;
  overflow: auto;
  margin-bottom: 8px;
}
.invoice-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-bottom: 16px;
}
.invoice-file-meta { margin-top: 6px; font-size: 0.85rem; }
.invoice-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  cursor: pointer;
}
.invoice-link-section h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.invoice-link-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.invoice-link-bar .nova-input { flex: 1; min-width: 160px; }
.invoice-hits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow: auto;
  margin-bottom: 10px;
}
.invoice-hit {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
}
.invoice-hit.is-linked { opacity: 0.55; }
.invoice-assets-wrap { max-height: min(52vh, 480px); overflow: auto; }
.inv-file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.inv-file-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border: 1px solid var(--border, #d0d7de);
  border-radius: 8px; background: var(--bg-2, #f6f8fa);
}
.inv-files-modal-list { list-style: none; margin: 12px 0; padding: 0; }
.inv-files-modal-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--border, #e5e7eb);
}
.btn-linkish {
  background: none; border: none; padding: 0; color: inherit;
  text-decoration: underline; cursor: pointer; font: inherit;
}
.invoice-lines-section { margin: 16px 0 8px; }
.inv-lines-body { display: flex; flex-direction: column; gap: 10px; overflow: visible; }
.inv-line-row {
  display: grid;
  grid-template-columns: 28px repeat(4, minmax(0, 1fr)) minmax(0, 1fr) minmax(140px, 1.3fr) 90px 36px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--bg-panel, #fff);
  overflow: visible;
}
.inv-line-row .form-group { margin: 0; min-width: 0; overflow: visible; }
.inv-line-row label { font-size: 0.75rem; }
.inv-line-num { align-self: center; font-weight: 600; }
.inv-line-rm { align-self: end; margin-bottom: 2px; }
.inv-line-row .inv-line-wh { min-width: 0; }
.inv-line-row .combo-trigger {
  padding: 9px 10px;
  font-size: 0.86rem;
}
@media (max-width: 1100px) {
  .inv-line-row {
    grid-template-columns: 28px 1fr 1fr;
  }
  .inv-line-row .inv-line-wh {
    grid-column: 2 / -1;
  }
  .inv-line-rm { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 640px) {
  .inv-line-row {
    grid-template-columns: 28px 1fr;
  }
  .inv-line-row .form-group,
  .inv-line-row .inv-line-wh {
    grid-column: 2 / -1;
  }
}

.invoice-linked-table { min-width: 760px; }
.invoice-linked-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.invoice-picker-details {
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 12px;
}
.invoice-picker-details > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
}
.invoice-picker-details[open] > summary {
  margin-bottom: 8px;
}
.invoice-linked-table { min-width: 720px; }
.inv-price-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  white-space: nowrap;
}
.inv-price-cell .inv-price-input {
  width: 110px;
  min-width: 110px;
  border: 1px solid rgba(94, 200, 255, 0.45) !important;
  background: rgba(0, 40, 70, 0.35) !important;
  font-size: var(--nova-font-md) !important;
  font-weight: 600;
  padding: 8px 10px !important;
}
.inv-price-cell .inv-price-input:focus {
  border-color: var(--nova-cyan) !important;
  outline: 2px solid rgba(0, 180, 255, 0.25);
}
.inv-price-input.inv-price-saving { opacity: 0.6; }
.inv-price-input.inv-price-saved {
  border-color: #3dd68c !important;
  box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.35);
}
.auto-link-preview {
  max-height: min(55vh, 480px);
  overflow: auto;
  margin: 10px 0 14px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--bg-3);
}
.auto-link-group { margin-bottom: 14px; }
.auto-link-group h4 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--text);
}
.auto-link-group code {
  font-size: 0.9rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.auto-link-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.auto-link-progress {
  margin: 12px 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-3);
  color: var(--text);
}
.auto-link-progress-label {
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}
.auto-link-progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.auto-link-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f6feb, #58a6ff);
  transition: width 0.25s ease;
}
.muted { opacity: 0.65; font-size: var(--nova-font-sm); }
.linkish {
  color: #5ec8ff;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}
@media (max-width: 720px) {
  .invoice-modal-grid { grid-template-columns: 1fr; }
}

/* Admin-only UI */
html[data-nova-admin="0"] .admin-only {
  display: none !important;
}
html[data-nova-user-mgr="0"] .user-manager-only {
  display: none !important;
}
.nova-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.nova-check-label input {
  margin: 0;
}
.qr-box {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  margin: 12px 0;
}
.qr-mount {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-mount img,
.qr-mount canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.qr-fallback {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.modal-qr {
  max-width: 420px;
}
.qr-video {
  width: 100%;
  max-height: 240px;
  background: #000;
  border-radius: 8px;
  margin: 10px 0;
}
@media print {
  .sidebar, .topbar, .nav-item, .toast, #loginView { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .modal { box-shadow: none !important; }
}

body.nova-import-lock {
  overflow: hidden !important;
}
body.nova-import-lock #app {
  pointer-events: none !important;
  user-select: none;
}

.import-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(0, 0, 0, 0.82);
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: auto;
}
.import-overlay-card {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 20px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.import-overlay-card h3 {
  margin: 0 0 8px;
  color: var(--nova-cyan);
  font-size: 1.15rem;
}
.import-overlay-status {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.4;
}
.import-overlay-status.is-error {
  color: #f87171;
}
.import-overlay-status.is-ok {
  color: #4ade80;
}
.import-progress-track {
  height: 14px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  overflow: hidden;
}
.import-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--nova-blue), var(--nova-cyan));
  transition: width 0.25s ease;
}
.import-progress-fill.is-error {
  background: var(--nova-red);
}
.import-progress-pct {
  margin: 8px 0 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.import-overlay-log {
  width: 100%;
  min-height: 200px;
  max-height: 42vh;
  resize: vertical;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  color: var(--log-text);
  background: var(--log-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  white-space: pre;
  overflow: auto;
}
.import-overlay-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .modal {
    width: 100%;
    max-height: min(92dvh, 92vh);
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .modal-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .modal-actions .btn {
    flex: 1 1 calc(50% - 8px);
    min-height: 44px;
  }

  .form-grid-2,
  .invoice-modal-grid {
    grid-template-columns: 1fr;
  }

  .combo-panel {
    max-height: min(50vh, 280px);
    z-index: 90;
  }

  .tag-picker-panel {
    width: 100%;
    max-height: min(85dvh, 560px);
  }

  .import-overlay {
    padding: 8px;
    align-items: end;
  }

  .import-overlay-card {
    width: 100%;
    max-height: 96dvh;
    padding: 14px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .import-overlay-log {
    min-height: 140px;
    max-height: 32vh;
    font-size: 11px;
  }

  .import-overlay-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .nova-table {
    min-width: 980px;
  }

  .topbar {
    gap: 8px;
  }

  .page-title {
    font-size: 1.05rem;
    flex: 1;
    min-width: 0;
  }
}

/* Ä°hale sayfasÄ± */
.ihale-panel[hidden] { display: none !important; }
.servis-panel[hidden] { display: none !important; }

.servis-parts-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.servis-part-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(120px, 1.2fr) 64px 96px 80px 36px;
  gap: 8px;
  align-items: center;
}
.servis-parts-sum {
  margin-top: 8px;
  font-size: 0.92rem;
}
.servis-grand-total-panel {
  margin-top: 12px;
  text-align: right;
}
.servis-grand-total {
  font-size: 1.05rem;
}
.servis-test-toggle {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.servis-test-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.servis-test-ok { color: var(--nova-green, #1a8f4c); font-weight: 600; }
.servis-test-nok { color: var(--nova-red, #c62828); font-weight: 600; }

.ih-firma-sureci-panel {
  max-width: min(1100px, 96vw);
  width: min(1100px, 96vw);
  background: var(--bg-panel);
  color: var(--text);
}
.ih-firma-sureci-wrap {
  max-height: 55vh;
  overflow: auto;
  margin: 12px 0;
  -webkit-overflow-scrolling: touch;
}
.ih-firma-sureci-table {
  min-width: 720px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.ih-firma-sureci-table th,
.ih-firma-sureci-table td {
  text-align: center;
  vertical-align: middle;
  color: var(--text);
  padding: 10px 8px;
}
.ih-firma-sureci-table thead th {
  background: var(--table-header, var(--bg-3));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.ih-firma-sureci-table thead th.ih-firma-sureci-firm {
  z-index: 3;
  left: 0;
}
.ih-firma-sureci-table th.ih-firma-sureci-stage {
  white-space: normal;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.2;
  min-width: 5.75rem;
  max-width: 7.25rem;
  padding: 8px 6px;
  vertical-align: bottom;
  hyphens: manual;
}
.ih-firma-sureci-table th.ih-firma-sureci-firm,
.ih-firma-sureci-table th[scope="row"].ih-firma-sureci-firm {
  text-align: left;
  font-weight: 650;
  white-space: normal;
  word-break: break-word;
  min-width: 9.5rem;
  max-width: 14rem;
  position: sticky;
  left: 0;
  background: var(--bg-panel, var(--bg-2));
  color: var(--text);
  z-index: 1;
  box-shadow: 4px 0 8px rgba(15, 23, 42, 0.08);
}
.ih-firma-sureci-table tbody td {
  background: var(--table-row, var(--bg-2));
  white-space: nowrap;
}
.ih-firma-sureci-radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ih-firma-sureci-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ih-firma-sureci-tick {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid var(--border, rgba(15, 23, 42, 0.25));
  background: var(--input-bg, #fff);
  display: inline-block;
  position: relative;
}
.ih-firma-sureci-radio input:checked + .ih-firma-sureci-tick {
  background: #43a047;
  border-color: #2e7d32;
}
.ih-firma-sureci-radio input:checked + .ih-firma-sureci-tick::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

[data-theme="dark"] .ih-firma-sureci-panel,
[data-theme="dark"] .tag-picker-panel.ih-firma-sureci-panel {
  background: var(--bg-panel);
  color: var(--text);
}
[data-theme="dark"] .ih-firma-sureci-panel .modal-help,
[data-theme="dark"] .ih-firma-sureci-panel h3 {
  color: var(--text);
}
[data-theme="dark"] .ih-firma-sureci-panel .modal-help {
  color: var(--text-muted);
}
[data-theme="dark"] .ih-firma-sureci-table th.ih-firma-sureci-firm,
[data-theme="dark"] .ih-firma-sureci-table th[scope="row"].ih-firma-sureci-firm {
  background: var(--bg-3, #161616);
  color: var(--text);
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .ih-firma-sureci-tick {
  background: #1a1f28;
  border-color: rgba(242, 244, 247, 0.35);
}
[data-theme="dark"] #view-ihale .nova-table .tags-cell-btn,
[data-theme="dark"] #view-ihale .nova-table .cell-input {
  color: var(--text);
}
[data-theme="dark"] #view-ihale .nova-table tbody td {
  color: var(--text);
}

.servis-fault-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.servis-fault-chip {
  border: 1px solid var(--border);
  background: var(--input-bg, var(--bg-2));
  color: var(--text);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.88rem;
  cursor: pointer;
}
.servis-fault-chip.is-on {
  background: rgba(67, 160, 71, 0.18);
  border-color: rgba(67, 160, 71, 0.55);
  color: var(--nova-green, #43a047);
  font-weight: 650;
}
.servis-repeat-warn {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(217, 119, 6, 0.45);
  color: var(--text);
}
.servis-repeat-warn ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

#view-ihale .combo-panel,
body:has(#view-ihale.active) #modalRoot .combo-panel {
  max-height: 360px;
}

#view-ihale .combo-options,
body:has(#view-ihale.active) #modalRoot .combo-options {
  max-height: 280px;
}

.ihale-dev-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ihale-dev-pick-row code {
  margin-left: 6px;
  opacity: 0.85;
}

#ihaleTakipTable th.ihale-cal-info-th,
#ihaleTakipTable td.ihale-cal-info-td {
  width: 44px;
  min-width: 44px;
  max-width: 52px;
  text-align: center;
  vertical-align: middle;
  padding-left: 4px;
  padding-right: 4px;
}

#ihaleTakipTable th.ihale-cal-info-th .th-filter input {
  display: none;
}

.ihale-cal-info-th-spacer {
  display: block;
  height: 26px;
}

.ihale-cal-info-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--nova-cyan);
  color: #061018;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s ease, transform 0.12s ease;
}

.ihale-cal-info-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.28);
}

.ihale-cal-info-btn.has-note {
  box-shadow: 0 0 0 2px rgba(0, 180, 255, 0.32);
}

#view-ihale .modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

#view-ihale .nova-table tbody tr:not(.row-editing) .cell-input:not(.tags-cell-btn):not(.cell-notes) {
  pointer-events: none;
  cursor: default;
  opacity: 0.95;
}

#view-ihale .nova-table tbody tr.row-editing .cell-input:not(.tags-cell-btn) {
  pointer-events: auto;
  cursor: text;
}

#view-ihale .nova-table tbody tr .cell-input.cell-notes,
#view-ihale .nova-table tbody tr .tags-cell-btn {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
}

#view-ihale .ihale-cihaz-qty {
  font-weight: 700;
}

#view-ihale .nova-table tbody tr .cell-input.cell-notes {
  cursor: text;
}

.ihale-purge-panel {
  margin-top: 12px;
}

.dash-tabs.ihale-tabs {
  margin-bottom: 14px;
}

.ihale-days-left {
  display: inline-block;
  font-weight: 700;
  font-size: var(--nova-font-md);
  color: var(--nova-green, #43a047);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nova-table tr.ihale-row-past {
  opacity: 0.62;
}

.nova-table tr.ihale-row-past .ihale-days-left {
  color: var(--nova-muted, #94a3b8);
}

[data-theme="light"] .ihale-days-left {
  color: #166534;
}

.ihale-cal-toolbar {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ihale-pass-gate {
  display: flex;
  justify-content: center;
  padding: 48px 16px 24px;
}

.ihale-pass-panel {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ihale-pass-panel h3 {
  margin: 0;
}

.ihale-gcal-modal {
  max-width: 520px;
}

.ihale-gcal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.ihale-gcal-form-title {
  margin: 0;
  font-size: var(--nova-font-md);
  font-weight: 600;
}

.ihale-cal-optin {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.ihale-cal-optin .ihale-gcal-form {
  border-top: none;
  margin-top: 10px;
  padding-top: 0;
}

.ihale-cal-color-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ihale-cal-color-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: var(--nova-font-md);
  user-select: none;
}

.ihale-gcal-allday {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--nova-font-md);
  cursor: pointer;
  user-select: none;
}

.ih-ihale-tarih-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.ih-ihale-tarih-head > label:first-child {
  margin: 0;
}
.ih-yaklasik-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.ih-yaklasik-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--nova-cyan, #0ea5e9);
  cursor: pointer;
}
.ih-ihale-dash {
  text-align: center;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  cursor: default;
}
[data-theme="dark"] .ih-yaklasik-check {
  color: var(--text);
}

.ihale-gcal-datetime-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}

.ihale-day-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.ihale-day-note-main {
  min-width: 0;
  flex: 1;
}

.ihale-day-note-main p {
  margin: 4px 0;
}

.ihale-gcal-time {
  display: inline-block;
  font-size: var(--nova-font-sm);
  font-weight: 700;
  color: var(--nova-cyan);
  margin-bottom: 2px;
}

.ihale-cal-note-line.is-timed {
  font-variant-numeric: tabular-nums;
}

.ihale-cal-title {
  margin: 0;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--card-heading, inherit);
}

.ihale-cal-jump {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  text-transform: capitalize;
}

.ihale-cal-jump:hover {
  background: rgba(0, 180, 255, 0.12);
  color: var(--nova-cyan, #00b4ff);
}

.ihale-cal-jump-sep {
  opacity: 0.45;
}

.ihale-cal-range {
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text-muted, #9fb4cc);
}

.ihale-cal-picker {
  position: fixed;
  z-index: 12000;
  width: 260px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-surface, #0f1c2e);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.ihale-cal-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 650;
  font-size: 0.92rem;
}

.ihale-cal-picker-grid {
  display: grid;
  gap: 6px;
}

.ihale-cal-picker-months {
  grid-template-columns: repeat(3, 1fr);
}

.ihale-cal-picker-years {
  grid-template-columns: repeat(3, 1fr);
}

.ihale-cal-picker-item {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(0, 180, 255, 0.06);
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
}

.ihale-cal-picker-item:hover {
  border-color: rgba(0, 180, 255, 0.35);
  background: rgba(0, 180, 255, 0.14);
}

.ihale-cal-picker-item.active {
  border-color: rgba(0, 180, 255, 0.55);
  background: rgba(0, 180, 255, 0.22);
  color: var(--nova-cyan, #00b4ff);
}

.ihale-cal-mode {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.ihale-calendar {
  margin-top: 12px;
}

.ihale-cal-month-head,
.ihale-cal-week-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: var(--text-muted, #9fb4cc);
  text-align: center;
  font-weight: 650;
}

.ihale-cal-month,
.ihale-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.ihale-cal-day {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: inherit;
  border-radius: 10px;
  min-height: 88px;
  padding: 6px 7px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font: inherit;
  overflow: hidden;
}

.ihale-cal-day.empty {
  visibility: hidden;
  pointer-events: none;
}

.ihale-cal-day.is-today {
  border-color: var(--nova-cyan, #00b4ff);
}

.ihale-cal-day.has-note {
  background: rgba(0, 180, 255, 0.16);
  border-color: rgba(0, 180, 255, 0.55);
}

.ihale-cal-day.has-note-red {
  background: rgba(225, 29, 72, 0.14);
  border-color: rgba(225, 29, 72, 0.55);
}

.ihale-cal-day.has-note-blue {
  background: rgba(2, 132, 199, 0.14);
  border-color: rgba(2, 132, 199, 0.55);
}

.ihale-cal-day.has-note-green {
  background: rgba(67, 160, 71, 0.16);
  border-color: rgba(67, 160, 71, 0.55);
}

.ihale-cal-day.is-holiday .ihale-cal-hol {
  color: #e11d48;
  font-size: var(--nova-font-sm);
  line-height: 1.2;
}

.ihale-cal-num {
  font-weight: 700;
  font-size: var(--nova-font-md);
}

.ihale-cal-notes {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: auto;
  min-width: 0;
  width: 100%;
}

.ihale-cal-note-line {
  display: block;
  font-size: var(--nova-font-sm);
  line-height: 1.25;
  color: #0284c7;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ihale-cal-note-line.is-red {
  color: #be123c;
}

.ihale-cal-note-line.is-blue {
  color: #0284c7;
}

.ihale-cal-note-line.is-green {
  color: #2e7d32;
}

.ihale-day-note.is-red {
  border-left: 3px solid #e11d48;
}

.ihale-day-note.is-blue {
  border-left: 3px solid #0284c7;
}

.ihale-day-note.is-green {
  border-left: 3px solid #43a047;
}

.ihale-cal-badge {
  display: inline-block;
  font-size: var(--nova-font-xs, 0.72rem);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.ihale-cal-badge.is-red {
  background: rgba(225, 29, 72, 0.15);
  color: #be123c;
}

.ihale-cal-badge.is-blue {
  background: rgba(2, 132, 199, 0.15);
  color: #0369a1;
}

.ihale-cal-badge.is-green {
  background: rgba(67, 160, 71, 0.15);
  color: #2e7d32;
}

.ihale-cal-badge.is-neutral {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
}

.ihale-cal-badge.is-takip {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
}

.btn.ihale-cal-color-green {
  background: rgba(67, 160, 71, 0.12);
  color: #2e7d32;
  border-color: rgba(67, 160, 71, 0.45);
}

.btn.ihale-cal-color-red {
  background: rgba(225, 29, 72, 0.1);
  color: #be123c;
  border-color: rgba(225, 29, 72, 0.4);
}

.btn.ihale-cal-color-blue {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
  border-color: rgba(2, 132, 199, 0.45);
}

.btn.ihale-cal-color-red.is-active,
.btn.ihale-cal-color-blue.is-active,
.btn.ihale-cal-color-green.is-active {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.ihale-cal-note-line.is-timed {
  max-width: 100%;
}

.ihale-day-note {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  background: var(--bg-2);
}

.ihale-day-note .muted {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ========== Tema okunabilirlik (dark / light) ========== */
body.nova-app,
.panel,
.modal,
.dash2-card,
.stat-card,
.table-wrap,
.tag-picker-panel,
.import-overlay-card,
.ihale-cal-picker,
.ihale-day-note {
  color: var(--text);
}

.panel h2,
.panel h3,
.modal h3,
.page-title,
.dash2-card-head h3,
.dash-section-title {
  color: var(--card-heading, var(--text));
}

.modal h3 {
  color: var(--nova-cyan);
}

.form-group label,
.toolbar .field label,
.dash-search-field label,
.muted,
.modal-help,
.modal-meta,
.invoice-hint,
.invoice-file-meta,
.empty-state,
.dash-filter-hint,
.purge-warn {
  color: var(--text-muted);
}

.nova-table tbody td,
.nova-table .cell-input,
.nova-table select.cell-input,
.nova-table .combo-sm .combo-trigger,
.nova-input,
.nova-select,
.form-group input,
.form-group select,
.form-group textarea {
  color: var(--text);
}

.nova-table .cell-input::placeholder,
.nova-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.dash2-loc-list li {
  background: rgba(0, 180, 255, 0.04);
}

.excel-guide-table code {
  color: var(--nova-cyan);
}

[data-theme="light"] .dash-filter-biten {
  background: rgba(229, 57, 53, 0.12);
  color: #b71c1c;
  border-color: rgba(183, 28, 28, 0.35);
}

[data-theme="light"] .dash-filter-biten:hover,
[data-theme="light"] .dash-filter-biten.active {
  background: rgba(229, 57, 53, 0.22);
  color: #7f1d1d;
}

[data-theme="light"] .dash-filter-devam {
  background: rgba(46, 175, 110, 0.12);
  color: #166534;
  border-color: rgba(22, 101, 52, 0.35);
}

[data-theme="light"] .dash-filter-devam:hover,
[data-theme="light"] .dash-filter-devam.active {
  background: rgba(46, 175, 110, 0.22);
  color: #14532d;
}

[data-theme="light"] .excel-badge.req {
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}

[data-theme="light"] .excel-badge.opt {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

[data-theme="light"] .toast {
  background: #1e4f8c;
  color: #fff;
}

[data-theme="light"] .combo-option:hover,
[data-theme="light"] .combo-option.active {
  color: #fff;
}

[data-theme="light"] .ihale-cal-badge,
[data-theme="light"] .ihale-cal-note-line {
  color: #166534;
}

[data-theme="light"] .dash2-wh-block {
  background: rgba(30, 79, 140, 0.04);
  border-color: rgba(30, 79, 140, 0.14);
}

[data-theme="dark"] .dash-filter-biten {
  color: #ff8a80;
}

[data-theme="dark"] .dash-filter-devam {
  color: #69f0ae;
}

[data-theme="dark"] .excel-badge.req {
  color: #f87171;
}

[data-theme="dark"] .excel-badge.opt {
  color: #2dd4bf;
}

/* ========== Mobil / tablet responsive ========== */
@media (max-width: 1024px) {
  .main {
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .dash2-cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  }

  .stats-grid,
  .stats-grid-depo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .purge-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    font-size: 106%;
  }

  .app-shell {
    min-height: 100dvh;
  }

  .main {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    min-width: 0;
    padding: 10px 8px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .topbar-global-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }

  .topbar-actions {
    margin-left: auto;
    gap: 6px;
  }

  .page-title {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .dash-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .dash-tab {
    width: 100%;
    text-align: center;
    padding: 12px 10px;
    min-height: 44px;
  }

  .dash-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-ihale-filters {
    width: 100%;
  }

  .dash-filter-btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .panel {
    padding: 12px 10px;
    border-radius: 12px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .toolbar .field {
    width: 100%;
    min-width: 0;
  }

  .toolbar .btn,
  .toolbar > .btn {
    width: 100%;
    min-height: 44px;
  }

  .table-meta-bar {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }

  /* İhale Takip / Kazanılan: meta şeridi dikey, chip taşmasın, Sütunlar altta */
  #view-ihale .table-meta-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  #view-ihale .table-meta-bar > .table-total {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
    grid-column: auto;
  }

  #view-ihale .table-meta-bar .page-size-ctrl {
    width: 100%;
    justify-content: space-between;
  }

  #view-ihale .table-meta-bar .page-size-ctrl select {
    min-width: 5rem;
    min-height: 40px;
  }

  #view-ihale .table-dash-slot,
  #view-ihale .ihale-tur-dash {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  #view-ihale .ihale-tur-chip {
    white-space: normal;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
    min-height: 44px;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  #view-ihale .ihale-tur-chip-sep {
    display: none;
  }

  #view-ihale .ihale-tur-chip-vals {
    display: block;
    width: 100%;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.35;
  }

  #view-ihale .table-total-text {
    display: block;
    width: 100%;
  }

  #view-ihale .table-col-picker-wrap {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    align-self: stretch;
    width: 100%;
    position: relative;
  }

  #view-ihale .table-col-picker-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  #view-ihale .table-col-picker-menu {
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
  }

  #view-ihale .ihale-panel .toolbar {
    width: 100%;
  }

  #view-ihale .ihale-panel .toolbar .btn {
    width: 100%;
  }

  .table-wrap {
    max-height: calc(100dvh - 180px);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto !important;
    overflow-y: auto;
    touch-action: pan-x pan-y;
  }

  .table-scroll-shell > .table-wrap,
  .table-scroll-shell > .modal-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .nova-table {
    width: max-content !important;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
  }

  #assetsTable {
    min-width: 1400px !important;
  }

  #ihaleTakipTable {
    min-width: 2000px !important;
  }

  #ihaleKazanilanTable {
    min-width: 1800px !important;
  }

  #servisKartTable,
  #servisOnarimTable,
  #servisMaliyetTable {
    min-width: 1200px !important;
  }

  #warehousesTable {
    min-width: 1100px !important;
  }

  /*
   * sticky left:0 ilk sütun — mobilde/küçük ekranda başlıklar kayarken
   * satırlar “sadece 1. sütun” gibi kalıyordu (özellikle Lokasyon Adı genişken).
   * Yatay kaydırma tüm tabloyu birlikte taşısın; sticky yalnızca thead üstte kalsın.
   */
  .nova-table th:first-child,
  .nova-table td:first-child {
    position: static;
    left: auto;
    box-shadow: none;
  }

  .nova-table thead th:first-child {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--table-header);
  }

  .bulk-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .bulk-bar .btn {
    min-height: 44px;
    flex: 1 1 auto;
  }

  .actions-cell .actions-row,
  .nova-table .actions-row {
    flex-wrap: wrap !important;
    max-width: 200px;
    white-space: normal;
    gap: 6px;
  }

  .nova-table .btn-sm,
  .actions-row .btn {
    min-height: 40px;
    padding: 8px 10px;
  }

  .cell-input,
  .tags-cell-btn {
    min-height: 40px;
    padding: 8px 10px;
  }

  .modal-backdrop {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .modal,
  .modal.modal-wide,
  .modal-invoice-lg,
  .modal-excel-guide {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .modal-actions {
    flex-wrap: wrap;
    gap: 8px;
    position: sticky;
    bottom: 0;
    background: var(--bg-panel, var(--bg-2));
    padding-top: 10px;
    z-index: 2;
  }

  .modal-actions .btn {
    flex: 1 1 calc(50% - 8px);
    min-height: 44px;
  }

  .tag-picker-overlay {
    padding: 0;
    align-items: stretch;
  }

  .tag-picker-panel,
  .ih-firma-sureci-panel {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    margin: 0;
  }

  .ih-firma-sureci-wrap {
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ih-firma-sureci-table th.ih-firma-sureci-firm,
  .ih-firma-sureci-table th[scope="row"].ih-firma-sureci-firm {
    position: sticky;
    left: 0;
    z-index: 2;
  }

  .ihale-cal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ihale-cal-title {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .ihale-calendar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #view-ihale .modal-grid,
  .modal-grid {
    grid-template-columns: 1fr !important;
  }

  .servis-part-row {
    grid-template-columns: 1fr !important;
    gap: 6px;
  }

  .servis-part-row .servis-part-rm {
    width: 100%;
    min-height: 40px;
  }

  .ihale-gcal-datetime-row {
    flex-direction: column;
  }

  .pager-wrap,
  .pager {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .login-page {
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .login-card {
    padding: 22px 16px;
  }

  .nav-item {
    min-height: 44px;
    padding: 12px 14px;
  }

  /* iOS: 16px alti input odaklaninca sayfa zoom yapmasin */
  input,
  select,
  textarea,
  .nova-input,
  .cell-input {
    font-size: 16px !important;
  }

  .ih-firma-sureci-tick {
    width: 28px;
    height: 28px;
  }

  .ih-firma-sureci-radio {
    min-width: 44px;
    min-height: 44px;
  }

  .listbox {
    max-height: min(50dvh, 320px);
  }

  .field label {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 100%;
  }

  .hamburger,
  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .stats-grid,
  .stats-grid-depo,
  .purge-stats {
    grid-template-columns: 1fr;
  }

  .dash-tabs {
    grid-template-columns: 1fr;
  }

  .dash2-card-badge {
    font-size: 0.7rem;
  }

  .stat-card .value {
    font-size: 1.25rem;
  }

  .pager-pages {
    gap: 4px;
  }

  .pager-pages .btn {
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
  }

  #view-assets .nova-table .btn-sm,
  #view-assets .nova-table .actions-row .btn {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .page-title {
    font-size: 0.98rem;
  }

  .sidebar {
    width: min(100vw - 48px, 300px);
  }

  .th-filter input {
    min-width: 72px;
    font-size: 0.78rem;
  }

  .ihale-tur-dash {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }

  .ihale-tur-chip {
    font-size: 0.78rem;
    padding: 8px 10px;
    min-height: 40px;
    white-space: normal;
    max-width: 100%;
  }

  .modal-actions .btn {
    flex: 1 1 100%;
  }

  .servis-fault-tags {
    gap: 6px;
  }

  .servis-fault-chip {
    min-height: 40px;
    padding: 8px 12px;
  }

  .table-wrap::after {
    content: '<< kaydir >>';
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 4px 0 0;
    pointer-events: none;
  }
}

@media (max-width: 360px) {
  html {
    font-size: 97%;
  }

  .main {
    padding: 8px 6px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .panel {
    padding: 10px 8px;
  }

  .btn {
    padding: 10px 12px;
  }
}

/* ========== Dark / light okunabilirlik (tema geçişi) ========== */
[data-theme="dark"] .muted,
[data-theme="dark"] .modal-help,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .invoice-hint,
[data-theme="dark"] .invoice-file-meta,
[data-theme="dark"] .form-group label,
[data-theme="dark"] .toolbar .field label,
[data-theme="dark"] .purge-warn,
[data-theme="dark"] .dash-filter-hint,
[data-theme="dark"] .table-col-picker-label,
[data-theme="dark"] .table-col-picker-label span {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .panel,
[data-theme="dark"] .modal,
[data-theme="dark"] .tag-picker-panel,
[data-theme="dark"] .ih-firma-sureci-panel,
[data-theme="dark"] .combo-panel,
[data-theme="dark"] .ihale-ms-menu {
  color: var(--text);
  background: var(--bg-panel, var(--bg-2));
}

[data-theme="dark"] .tag-picker-item,
[data-theme="dark"] .ihale-ms-item,
[data-theme="dark"] .combo-option {
  color: var(--text);
}

[data-theme="dark"] .nova-table tbody td,
[data-theme="dark"] .nova-table .cell-input,
[data-theme="dark"] .nova-table select.cell-input,
[data-theme="dark"] .nova-table .tags-cell-btn,
[data-theme="dark"] .nova-table .combo-sm .combo-trigger,
[data-theme="dark"] .btn-ghost {
  color: var(--text);
}

[data-theme="dark"] .nova-table thead th .th-filter input,
[data-theme="dark"] .nova-table thead th .th-filter select,
[data-theme="dark"] .nova-table thead th .th-filter .ihale-ms-btn {
  color: #fff !important;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .nova-table thead th .th-filter input::placeholder,
[data-theme="dark"] .nova-table thead th .th-filter select::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .ihale-cal-note-line,
[data-theme="dark"] .ihale-cal-note-line.is-blue {
  color: #7dd3fc;
}
[data-theme="dark"] .ihale-cal-note-line.is-red {
  color: #fb7185;
}
[data-theme="dark"] .ihale-cal-note-line.is-green {
  color: #86efac;
}

[data-theme="dark"] .ihale-cal-badge.is-red {
  background: rgba(225, 29, 72, 0.22);
  color: #fda4af;
}
[data-theme="dark"] .ihale-cal-badge.is-blue,
[data-theme="dark"] .ihale-cal-badge.is-neutral {
  background: rgba(2, 132, 199, 0.22);
  color: #7dd3fc;
}
[data-theme="dark"] .ihale-cal-badge.is-green {
  background: rgba(67, 160, 71, 0.22);
  color: #86efac;
}
[data-theme="dark"] .ihale-cal-badge.is-takip {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

[data-theme="dark"] .btn.ihale-cal-color-green {
  background: rgba(67, 160, 71, 0.2);
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.45);
}
[data-theme="dark"] .btn.ihale-cal-color-red {
  background: rgba(225, 29, 72, 0.18);
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.4);
}
[data-theme="dark"] .btn.ihale-cal-color-blue {
  background: rgba(2, 132, 199, 0.2);
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.4);
}

[data-theme="dark"] .ihale-days-left {
  color: #86efac;
}
[data-theme="dark"] .nova-table tr.ihale-row-past .ihale-days-left {
  color: #fda4af;
}

[data-theme="dark"] .servis-fault-chip {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .servis-fault-chip.is-on {
  color: #86efac;
}
[data-theme="dark"] .servis-repeat-warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.16);
}

[data-theme="dark"] .ihale-tur-chip {
  color: var(--text);
  background: var(--bg-3);
  border-color: var(--border);
}

[data-theme="dark"] .linkish,
[data-theme="dark"] .btn-linkish {
  color: var(--nova-cyan);
}

[data-theme="dark"] .modal-actions {
  background: var(--bg-panel, var(--bg-2));
  color: var(--text);
}

[data-theme="light"] .servis-fault-chip {
  background: #fff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.18);
}
[data-theme="light"] .servis-fault-chip.is-on {
  color: #1b5e20;
}
[data-theme="light"] .servis-repeat-warn {
  color: #92400e;
}
[data-theme="light"] .ihale-days-left {
  color: #15803d;
}
