:root {
  color-scheme: dark;
  --bg: #10151d;
  --panel: #161d27;
  --panel-strong: #1d2632;
  --panel-soft: #202b39;
  --border: #2a3647;
  --text: #eef3f8;
  --muted: #9eacbc;
  --accent: #34c759;
  --accent-soft: rgba(52, 199, 89, 0.18);
  --warn: #ffb020;
  --blue: #42a5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
}

.sidebar {
  border-right: 1px solid var(--border);
  padding: 22px 14px;
  background: linear-gradient(180deg, #121923 0%, #0d131b 100%);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

.brand h1,
.topbar h2,
.section-header h3,
.hero-panel h3 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.sidebar-title {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.sidebar-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.65;
}

.sidebar-logo {
  display: block;
  margin: 0 4px 16px;
  padding: 4px 2px 10px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0;
  background: transparent;
  text-decoration: none;
}

.sidebar-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 14px;
  padding: 14px 12px;
  border: 1px solid rgba(52, 199, 89, 0.34);
  border-radius: 8px;
  background: rgba(52, 199, 89, 0.12);
}

.sidebar-user-main {
  min-width: 0;
}

.sidebar-user-label {
  display: block;
  margin-bottom: 6px;
  color: #a8d8ba;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-user-card strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
}

.sidebar-user-card small {
  display: block;
  margin-top: 6px;
  color: #c7f2d8;
  font-weight: 800;
}

.sidebar-logout-btn {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.48);
  color: #e5eef8;
  cursor: pointer;
  font-size: 16px;
}

.sidebar-logout-btn:hover,
.sidebar-logout-btn:focus {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.16);
  color: #ffffff;
}

.sidebar-logout-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  padding: 0 4px 18px;
}

.sidebar-home,
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.sidebar-home {
  border: 1px solid rgba(52, 199, 89, 0.38);
  background: rgba(52, 199, 89, 0.14);
  color: #f3fff8;
}

.sidebar-home i,
.sidebar-link i,
.sidebar-menu summary i:first-child {
  width: 18px;
  color: #38cfff;
  text-align: center;
}

.sidebar-menu {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(22, 29, 39, 0.82);
  overflow: hidden;
}

.sidebar-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  color: #cfe1f4;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.sidebar-menu summary::-webkit-details-marker {
  display: none;
}

.sidebar-menu summary span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sidebar-menu summary .fa-chevron-down {
  color: var(--muted);
  font-size: 11px;
  transition: transform 140ms ease;
}

.sidebar-menu:not([open]) summary .fa-chevron-down {
  transform: rotate(-90deg);
}

.sidebar-menu-list {
  display: grid;
  gap: 4px;
  padding: 0 8px 10px;
}

.sidebar-link {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  color: #dce8f7;
  font-size: 14px;
}

.sidebar-link:hover,
.sidebar-link:focus {
  border-color: rgba(66, 165, 245, 0.26);
  background: rgba(66, 165, 245, 0.12);
}

.sidebar-link[aria-current="page"],
.sidebar-home[aria-current="page"] {
  border-color: rgba(52, 199, 89, 0.55);
  background: rgba(52, 199, 89, 0.16);
}

.sidebar-link.hidden,
.sidebar-menu.hidden {
  display: none !important;
}

.main-content {
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 24px 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: #1d2733;
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.22);
}

.topbar h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 8px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.1;
}

.topbar h2 i {
  color: #22c7f2;
}

.topbar p:not(.eyebrow) {
  margin: 0;
  color: #d3e3f6;
  font-size: 14px;
  font-weight: 700;
}

.topbar-meta {
  display: none;
  align-items: center;
  gap: 12px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  background: var(--panel);
}

#current-user,
#global-current-user {
  background: #1f3a2a;
  border-color: #3f7f5a;
  color: #f3fff8;
  font-weight: 700;
  font-size: 17px;
  min-height: 44px;
  padding: 0 18px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.hero-panel,
.metric-panel,
.content-section,
.module-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
}

.hero-panel {
  padding: 22px;
}

.panel-kicker,
.metric-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.metric-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-panel strong {
  font-size: 34px;
  line-height: 1;
}

.muted {
  color: var(--muted);
}

.content-section {
  padding: 20px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.module-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.live-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.activity-overview {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.6fr;
  gap: 12px;
  margin-bottom: 16px;
}

.summary-chip {
  min-height: 90px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
}

.summary-chip strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

.activity-panel {
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
}

.activity-panel h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.activity-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.activity-panel .muted-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.recent-list {
  display: grid;
  gap: 8px;
}

.recent-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
}

.recent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(66, 165, 245, 0.14);
  color: #8cc8ff;
  font-size: 12px;
  font-weight: 700;
}

.recent-main {
  min-width: 0;
}

.recent-main strong,
.recent-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-main span {
  color: var(--muted);
  font-size: 13px;
}

.recent-main .recent-op {
  color: #eef6ff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}


.recent-time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.reader-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.reader-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel-strong);
}

.reader-table th,
.reader-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.reader-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: #1a2330;
}

#saha-log-wrap .reader-table thead th {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

#saha-log-wrap .reader-table tbody td {
  font-size: 13px;
  font-weight: 600;
}

#saha-body input[type='text'] {
  width: 100%;
  min-width: 380px;
  max-width: 520px;
  height: 38px;
  padding: 8px 10px;
  line-height: 1.3;
  font-size: 18px;
  font-weight: 700;
}

.reader-table tbody tr:last-child td {
  border-bottom: 0;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.data-tools-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.kart-quick-row {
  gap: 10px;
}

.kart-quick-btn {
  min-width: 220px;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}

.btn-ico {
  width: 18px;
  display: inline-flex;
  justify-content: center;
}

.kart-grid-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  width: min(76%, 1320px);
  margin-left: auto;
  margin-right: auto;
}

.kart-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  margin-bottom: 14px;
  width: min(64%, 1080px);
  margin-left: auto;
  margin-right: auto;
}

.kart-tile {
  min-height: 72px;
  border: 1px solid rgba(52, 199, 89, 0.45);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  grid-template-rows: auto auto auto;
  place-items: center;
  gap: 2px;
  padding: 10px 12px;
  font-size: clamp(18px, 1.1vw, 23px);
  line-height: 1.1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.kart-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 58%);
  opacity: 0.75;
}

.kart-tile::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(12, 29, 42, 0.32);
  border-color: rgba(12, 29, 42, 0.34) transparent transparent rgba(12, 29, 42, 0.34);
  border-radius: 4px;
  opacity: 0.7;
  pointer-events: none;
}

.kart-tile small,
.tile-key {
  font-size: clamp(14px, 0.8vw, 18px);
  font-weight: 900;
  opacity: 0.98;
  letter-spacing: 0.02em;
}

.tile-art {
  position: static;
  display: inline-grid;
  place-items: center;
  min-width: clamp(58px, 3.5vw, 82px);
  min-height: clamp(34px, 2.3vw, 52px);
}

.tile-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 2.2vw, 56px);
  height: clamp(36px, 2.2vw, 56px);
  margin-right: 0;
  font-size: clamp(24px, 1.8vw, 38px);
  line-height: 1;
  vertical-align: middle;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.3));
}

.tile-ico-water {
  color: #8ed8ff;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 8px rgba(69, 179, 255, 0.28));
}

.tile-ico-foam {
  color: #f4fbff;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.24));
}

.tile-ico-air {
  color: #8fd0f7;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 8px rgba(143, 208, 247, 0.25));
}

.tile-ico-vacuum {
  color: #f4f0e8;
}

.tile-label {
  display: block;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

.tile-barcode {
  position: absolute;
  right: 14px;
  top: 12px;
  width: clamp(24px, 1.6vw, 40px);
  height: clamp(14px, 0.9vw, 22px);
  background: repeating-linear-gradient(90deg, rgba(16, 31, 45, 0.78) 0 2px, transparent 2px 4px, rgba(16, 31, 45, 0.78) 4px 5px, transparent 5px 8px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.42);
  opacity: 0.9;
}

.tile-eye {
  position: absolute;
  right: 0;
  bottom: 2px;
  color: rgba(10, 25, 35, 0.82);
  font-size: clamp(16px, 1.1vw, 24px);
  text-shadow: none;
}

.tile-scan {
  position: absolute;
  inset: 4px -2px auto -2px;
  height: 3px;
  background: rgba(239, 68, 68, 0.8);
  box-shadow: 0 12px 0 rgba(239, 68, 68, 0.34);
}

.tile-bubbles {
  position: absolute;
  right: 2px;
  top: -2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: -14px 8px 0 3px rgba(255, 255, 255, 0.84), 8px 11px 0 1px rgba(255, 255, 255, 0.72);
}

.kart-tile-green {
  background: linear-gradient(180deg, #50656a 0%, #354951 100%);
  color: #f5fbf8;
  border-color: rgba(117, 201, 166, 0.45);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.kart-tile-blue {
  border-color: rgba(94, 151, 201, 0.42);
  background: linear-gradient(180deg, #3f5669 0%, #2e4154 100%);
}

.kart-tile-blue::after {
  border-color: rgba(143, 199, 243, 0.32) transparent transparent rgba(143, 199, 243, 0.32);
}

.kart-tile-blue .tile-barcode {
  background: repeating-linear-gradient(90deg, rgba(205, 232, 255, 0.86) 0 2px, transparent 2px 4px, rgba(205, 232, 255, 0.86) 4px 5px, transparent 5px 8px);
}

.kart-tile:active {
  transform: scale(0.97);
  filter: grayscale(0.55) brightness(0.9);
  box-shadow: inset 0 0 0 2px rgba(120, 130, 145, 0.45), 0 0 0 2px rgba(90, 100, 115, 0.2);
}

.kart-grid-four .kart-tile {
  min-height: 88px;
  font-size: clamp(20px, 1.25vw, 26px);
}

.kart-grid-four .kart-tile small {
  font-size: clamp(16px, 0.9vw, 20px);
}

.kart-nav-grid {
  width: 100%;
  max-width: 1620px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kart-nav-grid .kart-tile {
  min-height: 112px;
  grid-template-rows: 1fr auto;
  padding: 18px 22px 14px;
}

.kart-nav-grid .kart-tile > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(22px, 1.35vw, 28px);
}

.kart-nav-grid .tile-ico {
  width: auto;
  height: auto;
  font-size: clamp(28px, 1.8vw, 38px);
}

.kart-nav-grid .kart-tile small {
  font-size: 20px;
}

/* 1080p bandi */
@media (max-width: 1920px) {
  .kart-grid-four {
    width: 80%;
    gap: 12px;
  }
  .kart-grid-two {
    width: 68%;
    gap: 10px 18px;
  }
  .kart-tile {
    min-height: 68px;
  }
  .kart-nav-grid {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 2K ve uzeri */
@media (min-width: 2000px) {
  .kart-grid-four {
    width: 72%;
    gap: 16px;
  }
  .kart-grid-two {
    width: 60%;
    gap: 14px 26px;
  }
  .kart-tile {
    min-height: 84px;
    padding: 12px 14px;
  }
  .kart-nav-grid {
    width: 100%;
  }
}

/* Tablet / kucuk notebook */
@media (max-width: 1280px) {
  .kart-grid-four {
    width: 92%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .kart-grid-two {
    width: 92%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .kart-tile {
    min-height: 78px;
    font-size: 20px;
  }
  .kart-tile small {
    font-size: 15px;
  }
  .kart-nav-grid {
    width: 96%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kart-nav-grid .kart-tile > span {
    white-space: normal;
  }
}

/* Tablet portrait / buyuk telefon */
@media (max-width: 900px) {
  .kart-grid-four,
  .kart-grid-two {
    width: 96%;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .kart-tile {
    min-height: 82px;
    font-size: 20px;
    padding: 12px;
  }
  .kart-tile small {
    font-size: 16px;
  }
}

.table-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.table-select {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #121923;
  color: var(--text);
}

.column-visibility {
  position: relative;
}

.column-visibility summary {
  list-style: none;
  cursor: pointer;
}

.column-toggle-list {
  position: absolute;
  top: 38px;
  left: 0;
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  z-index: 10;
  display: grid;
  gap: 6px;
}

.column-toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.permission-grid .column-toggle-item {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 700;
}

.permission-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #22c55e;
}

.user-name-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #8cc8ff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.user-name-button:hover,
.user-name-button:focus {
  text-decoration: underline;
}

.pager-row {
  display: flex;
  gap: 8px;
}

.customer-pager-row .pager-row {
  margin-left: auto;
}

.notice-wrap {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}

.notice-info {
  background: rgba(66, 165, 245, 0.12);
  border-color: rgba(66, 165, 245, 0.42);
}

.notice-success {
  background: rgba(52, 199, 89, 0.12);
  border-color: rgba(52, 199, 89, 0.42);
}

.notice-error {
  background: rgba(255, 82, 82, 0.12);
  border-color: rgba(255, 82, 82, 0.42);
}

.toolbar-input {
  width: min(520px, 100%);
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #121923;
  color: var(--text);
}

.primary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.customer-table td {
  vertical-align: top;
}

/* Sabit kolon genisligi: sayfa degisimlerinde kolonlar ziplamasin */
.customer-table,
.log-table {
  table-layout: fixed;
}

.barcode-table {
  table-layout: auto;
  min-width: 1280px;
}

.customer-table th,
.customer-table td,
.barcode-table th,
.barcode-table td,
.log-table th,
.log-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Islem kolonu sabit ve daha genis */
.customer-table th:last-child,
.customer-table td:last-child {
  width: 430px;
}

.customer-table th.col-kart_id,
.customer-table td.col-kart_id { width: 150px; }

.customer-table th.col-name,
.customer-table td.col-name { width: 360px; }

.customer-table th.col-plaka,
.customer-table td.col-plaka { width: 170px; }

.customer-table th.col-telefon,
.customer-table td.col-telefon { width: 150px; }

.customer-table th.col-sonislempersonel,
.customer-table td.col-sonislempersonel { width: 260px; }

.customer-table th.col-sonbakiyeyuklemetarihi,
.customer-table td.col-sonbakiyeyuklemetarihi { width: 180px; }

.customer-table th.col-sonyuklenenbakiye,
.customer-table td.col-sonyuklenenbakiye { width: 120px; }

.customer-table th.col-bakiye,
.customer-table td.col-bakiye { width: 110px; }

.customer-table th.col-actions,
.customer-table td.col-actions { width: 430px; }

.customer-table th.col-sonyuklenenbakiye,
.customer-table td.col-sonyuklenenbakiye,
.customer-table th.col-bakiye,
.customer-table td.col-bakiye {
  text-align: right;
}

.customer-table td.col-actions {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.barcode-table th:last-child,
.barcode-table td:last-child {
  width: 300px;
  min-width: 300px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

/* Kisa kolonlar */
.barcode-table th:nth-child(1),
.barcode-table td:nth-child(1) {
  width: 72px;
}

.barcode-table th:nth-child(3),
.barcode-table td:nth-child(3) {
  width: 150px;
}

.barcode-table th:nth-child(4),
.barcode-table td:nth-child(4) {
  width: 110px;
}

.barcode-table th:nth-child(5),
.barcode-table td:nth-child(5) {
  width: 180px;
}

.barcode-table th:nth-child(6),
.barcode-table td:nth-child(6) {
  width: 180px;
  min-width: 180px;
  font-variant-numeric: tabular-nums;
}

.log-table th.col-id,
.log-table td.col-id { width: 120px; }

.log-table th.col-kart_id,
.log-table td.col-kart_id { width: 150px; }

.log-table th.col-name,
.log-table td.col-name { width: 260px; }

.log-table th.col-programText,
.log-table td.col-programText { width: 150px; }

.log-table th.col-sure,
.log-table td.col-sure { width: 110px; }

.log-table th.col-actionText,
.log-table td.col-actionText { width: 160px; }

.log-table th.col-promotionText,
.log-table td.col-promotionText { width: 140px; }

.log-table th.col-oldBalance,
.log-table td.col-oldBalance,
.log-table th.col-newBalance,
.log-table td.col-newBalance { width: 120px; text-align: right; }

.log-table th.col-date,
.log-table td.col-date { width: 180px; }

.log-table th.col-reader,
.log-table td.col-reader { width: 150px; }

.ghost-table-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.table-action-btn {
  min-width: 74px;
  min-height: 34px;
  padding: 0 10px;
  font-weight: 600;
}

.barcode-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  min-width: 288px;
  overflow: visible;
  white-space: nowrap;
}

.barcode-actions .btn-detail,
.barcode-actions .btn-refund {
  min-width: 64px;
}

.barcode-actions .btn-reprint {
  min-width: 108px;
}

.btn-danger {
  border-color: #ef4444;
  background: #ef4444;
  color: #fff;
}

.btn-detail {
  border-color: #f59e0b;
  background: #f59e0b;
  color: #111827;
}

.btn-reprint {
  border-color: #22c55e;
  background: #22c55e;
  color: #ffffff;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.confirm-modal-card {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.confirm-modal-card h3 {
  margin: 0;
}

.confirm-modal-card p {
  margin: 0;
  color: var(--muted);
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-modal-actions .btn-save,
.confirm-modal-actions .btn-danger {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.confirm-modal-actions .btn-save {
  background: #22c55e;
  color: #fff;
}

.confirm-modal-actions .btn-danger {
  background: #ef4444;
  color: #fff;
}

.barcode-top-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  align-items: start;
}

.barcode-create-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.barcode-create-form {
  display: grid;
  gap: 10px;
}

.barcode-create-form .toolbar-input {
  width: 100%;
}

.barcode-create-summary {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 12px;
  display: grid;
  gap: 6px;
  min-height: 100%;
}

.barcode-create-summary h4 {
  margin: 0 0 6px;
}

.barcode-create-summary strong {
  font-size: 20px;
}

.hidden {
  display: none !important;
}

.promo-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promo-settings-form {
  max-width: none;
}

.promo-form-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
}

.promo-preview {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  color: #dce8f7;
  font-weight: 700;
}

.customer-detail {
  display: grid;
  gap: 14px;
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-stack {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.link-button {
  white-space: nowrap;
}

.table-link {
  color: #8cc8ff;
  text-decoration: none;
  font-weight: 600;
}

.balance-link {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
}

.action-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  white-space: nowrap;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}

.action-green {
  background: #17c58f;
}

.action-amber {
  background: #f5a623;
}

.action-blue {
  background: #42a5f5;
}

.status-groups {
  display: grid;
  gap: 16px;
}

.status-section {
  display: grid;
  gap: 12px;
}

.status-section h4 {
  margin: 0;
  font-size: 18px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.status-card {
  min-height: 148px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.maintenance-block {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.maintenance-grid-1 {
  grid-template-columns: 1fr;
}

.maintenance-paired-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  grid-column: 1 / -1;
  align-items: end;
}

.maintenance-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.maintenance-grid input,
.maintenance-grid select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #121923;
  color: var(--text);
}

.maintenance-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.maintenance-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.maintenance-actions .btn-neutral {
  background: #6b7789;
}

.maintenance-actions .btn-warn {
  background: #f59e0b;
  color: #111827;
}

.maintenance-actions .btn-save {
  background: #22c55e;
}

.maintenance-actions .btn-danger {
  background: #ef4444;
}

/* Sistem Ayarlari ekraninda 1080p okunabilirlik */
.system-settings-page .topbar h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
}

.system-settings-page .topbar {
  align-items: flex-end;
}

.system-settings-page .section-header h3 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}

.system-settings-page .section-header {
  align-items: flex-end;
  margin-bottom: 14px;
}

.system-settings-page .eyebrow {
  font-size: 14px;
}

.system-settings-page #default-role-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.system-settings-page .maintenance-actions button,
.system-settings-page .maintenance-actions .ghost-link,
.system-settings-page .maintenance-actions .btn-save {
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 700;
}

.system-settings-page .table-select {
  min-height: 44px;
  font-size: 16px;
}

.system-settings-page .sys-actions {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.system-settings-page .column-toggle-item {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  padding: 4px 0;
}

.system-settings-page .column-toggle-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #22c55e;
}

.system-settings-page .perm-key-original {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
}

.system-settings-page {
  padding-bottom: 96px;
}

.system-settings-page #sys-status {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  margin-top: 14px;
}

.system-bottom-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.maintenance-note {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.maintenance-actions-triple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.maintenance-actions-left {
  justify-self: start;
}

.maintenance-actions-center {
  justify-self: center;
}

.maintenance-actions-right {
  justify-self: end;
}

.maintenance-actions-center .btn-warn {
  min-width: 190px;
  font-weight: 700;
}

.status-banner {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 16px;
  font-weight: 700;
}

.status-info {
  background: rgba(66, 165, 245, 0.14);
  border-color: rgba(66, 165, 245, 0.45);
  color: #8cc8ff;
}

.status-success {
  background: rgba(52, 199, 89, 0.14);
  border-color: rgba(52, 199, 89, 0.45);
  color: #78e59d;
}

.status-error {
  background: rgba(255, 82, 82, 0.14);
  border-color: rgba(255, 82, 82, 0.45);
  color: #ff9b9b;
}

.floating-status {
  position: fixed;
  left: calc(296px + 28px);
  right: 28px;
  z-index: 1000;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
}

.floating-status.toast-top {
  top: 22px;
}

.floating-status.toast-bottom {
  bottom: 22px;
}

.maintenance-inline {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.health-ribbons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 6px 0 10px;
}
.health-ribbons.dual-only {
  grid-template-columns: 1fr 1fr;
}

.health-ribbon {
  display: grid;
  gap: 4px;
}

.health-ribbon-stack {
  display: grid;
  gap: 8px;
}

.health-ribbon-label {
  font-size: 10px;
  font-weight: 700;
  color: #d8e7ff;
  text-transform: uppercase;
}

.health-ribbon-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.health-ribbon-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 220ms ease;
}

.health-ribbon-fill.tone-green { background: #22c55e; }
.health-ribbon-fill.tone-yellow { background: #facc15; }
.health-ribbon-fill.tone-orange { background: #fb923c; }
.health-ribbon-fill.tone-red { background: #ef4444; }

.maintenance-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.maintenance-sections {
  display: grid;
  gap: 24px;
}

.maintenance-group {
  display: grid;
  gap: 14px;
}

.settings-form {
  max-width: 640px;
}

.settings-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.settings-form .toolbar-input {
  width: 100%;
}

.login-page {
  background:
    radial-gradient(circle at 74% 12%, rgba(56, 189, 248, 0.12), transparent 28rem),
    radial-gradient(circle at 36% 84%, rgba(52, 199, 89, 0.10), transparent 30rem),
    #10151d;
}

.login-main {
  padding: 18px 28px 28px;
}

.login-topbar {
  margin-bottom: 18px;
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 620px);
  gap: 18px;
  align-items: stretch;
  max-width: 1260px;
}

.login-intro-panel,
.login-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(22, 29, 39, 0.92);
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.22);
}

.login-intro-panel {
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.login-intro-panel::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(56, 207, 255, 0.18);
  border-radius: 999px;
}

.login-intro-panel h3 {
  max-width: 620px;
  margin: 8px 0 12px;
  color: #fff;
  font-size: 34px;
  line-height: 1.05;
}

.login-intro-text {
  max-width: 680px;
  margin: 0;
  color: #d3e3f6;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.login-feature {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(32, 43, 57, 0.78);
}

.login-feature i {
  color: #38cfff;
  font-size: 22px;
}

.login-feature span {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.login-card {
  padding: 22px;
}

.login-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.login-card-head h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.login-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(52, 199, 89, 0.34);
  border-radius: 8px;
  background: rgba(52, 199, 89, 0.12);
  color: #c7f2d8;
  font-size: 13px;
  font-weight: 900;
}

.login-form {
  max-width: none;
  margin-top: 14px;
}

.password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.password-row .toolbar-input {
  flex: 1;
}

.password-row .ghost-link {
  min-height: 42px;
}

.login-actions {
  justify-content: flex-start;
  gap: 10px;
}

.login-inline-link {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.signup-note {
  padding: 12px 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.10);
  color: #cfeaff;
  font-weight: 800;
}

.totp-qr-wrap {
  display: flex;
  justify-content: flex-start;
}

.totp-qr-wrap img {
  width: 220px;
  height: 220px;
  border: 1px solid #2a3647;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.settings-modern-page {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 28rem),
    linear-gradient(135deg, #29323c 0%, #3b454f 100%);
}

.settings-modern-page .main-content {
  gap: 18px;
}

.settings-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  background: #1d2733;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.22);
}

.settings-hero h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 8px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.1;
}

.settings-hero h2 i,
.settings-panel h3 i {
  color: #22c7f2;
}

.settings-hero p:not(.eyebrow) {
  margin: 0;
  color: #d3e3f6;
  font-size: 14px;
}

.settings-modern-form {
  display: grid;
  gap: 14px;
}

.settings-panel {
  padding: 20px;
  background: rgba(26, 35, 46, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
}

.settings-panel h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.settings-info-panel {
  background: rgba(51, 80, 96, 0.78);
  border-color: rgba(34, 199, 242, 0.32);
}

.settings-info-panel p {
  margin: 0 0 12px;
  color: #e2f3ff;
  font-size: 14px;
  font-weight: 700;
}

.settings-info-panel p:last-child {
  margin-bottom: 0;
}

.settings-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.settings-panel-head h3 {
  margin-bottom: 0;
}

.settings-panel-head .status-banner {
  width: auto;
  min-width: 220px;
  min-height: 40px;
  padding: 9px 12px;
  font-size: 13px;
}

.settings-layout-summary {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 199, 242, 0.24);
  border-radius: 8px;
  background: rgba(34, 199, 242, 0.08);
  color: #c8e2f7;
  font-size: 13px;
  font-weight: 800;
}

.settings-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-dynamic-card-root {
  display: contents;
}

.settings-card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-card-grid-two .settings-input-card:last-child {
  grid-column: 1 / -1;
}

.settings-card-grid-balanced .settings-input-card:last-child {
  grid-column: auto;
}

.settings-format-card strong {
  font-size: 24px;
}

.settings-card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-input-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 144px;
  padding: 18px 12px 12px;
  background: #202b36;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  color: #ffffff;
}

.settings-input-card > span {
  max-width: calc(100% - 48px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.settings-input-card > i {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.18);
  color: #ffffff;
  font-size: 16px;
}

.settings-program-number {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(34, 199, 242, 0.16);
  color: #9be8ff;
  font-size: 18px;
  font-weight: 900;
}

.settings-input-card .toolbar-input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(203, 213, 225, 0.38);
  border-radius: 8px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
}

.settings-input-card small {
  color: #b9d1ea;
  font-size: 13px;
  font-weight: 800;
}

.settings-read-card strong {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(203, 213, 225, 0.38);
  border-radius: 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.settings-time-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(34, 199, 242, 0.16);
  color: #9be8ff;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.settings-actions-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(26, 35, 46, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
}

.settings-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #b7c8dd;
  font-size: 13px;
  font-weight: 700;
}

.settings-meta-row strong {
  color: #ffffff;
}

.settings-actions-panel .btn-save {
  min-width: 132px;
  justify-content: center;
}

.settings-modern-page .fa-droplet { color: #44c8ff; }
.settings-modern-page .fa-soap { color: #eff9ff; }
.settings-modern-page .fa-broom,
.settings-modern-page .fa-brush { color: #d8ecff; }
.settings-modern-page .fa-wind { color: #64d9ff; }
.settings-modern-page .fa-fill-drip { color: #9fdfff; }
.settings-modern-page .fa-id-card,
.settings-modern-page .fa-user-pen,
.settings-modern-page .fa-calendar-days { color: #d8ecff; }

.reports-page {
  background:
    radial-gradient(circle at top left, rgba(34, 199, 242, 0.12), transparent 28rem),
    linear-gradient(135deg, #202a34 0%, #35404a 100%);
}

.reports-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  justify-content: flex-end;
}

.report-date-control {
  display: grid;
  gap: 5px;
  min-width: 170px;
  color: #bdd3ea;
  font-size: 12px;
  font-weight: 800;
}

.report-date-control .toolbar-input {
  min-height: 42px;
}

.reports-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reports-status-row .status-banner {
  max-width: 680px;
}

.reports-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.report-metric-card {
  position: relative;
  min-height: 132px;
  padding: 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(26, 35, 46, 0.88);
  color: #ffffff;
}

.report-metric-card span:not(.report-metric-icon) {
  display: block;
  max-width: calc(100% - 46px);
  color: #bdd3ea;
  font-size: 13px;
  font-weight: 800;
}

.report-metric-card strong {
  display: block;
  margin-top: 16px;
  font-size: 27px;
  font-weight: 900;
}

.report-metric-card small {
  display: block;
  margin-top: 8px;
  color: #9eb6cf;
  font-weight: 800;
}

.report-metric-icon {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(34, 199, 242, 0.16);
  color: #9be8ff;
}

.reports-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.reports-single-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.report-list {
  display: grid;
  gap: 8px;
}

.report-list-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.report-list-row span {
  color: #dce8f7;
  font-weight: 800;
}

.report-list-row strong {
  color: #ffffff;
  font-weight: 900;
}

.report-list-row small {
  color: #91cfff;
  font-weight: 800;
}

.report-note {
  display: grid;
  gap: 10px;
  color: #cfe1f4;
  font-weight: 700;
  line-height: 1.5;
}

.report-note p {
  margin: 0;
}

.report-machine-table {
  table-layout: fixed;
}

.report-machine-table th,
.report-machine-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1180px) {
  .settings-card-grid,
  .settings-card-grid-four,
  .reports-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .settings-hero,
  .settings-panel-head,
  .settings-actions-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-card-grid,
  .settings-card-grid-two,
  .settings-card-grid-four,
  .reports-summary-grid,
  .reports-two-col {
    grid-template-columns: 1fr;
  }

  .settings-card-grid-two .settings-input-card:last-child {
    grid-column: auto;
  }
}

.maintenance-page-card {
  min-height: auto;
  padding: 14px 16px;
  align-self: start;
}

.status-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-card h5 {
  margin: 0;
  font-size: 16px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.status-active {
  background: rgba(66, 165, 245, 0.14);
}

.status-idle {
  background: rgba(122, 138, 158, 0.14);
}

.status-emergency {
  background: rgba(255, 82, 82, 0.14);
}

.status-thermal {
  background: rgba(255, 176, 32, 0.14);
}

.dot-active,
.accent-blue {
  background: #42a5f5;
}

.accent-cyan {
  background: #26c6da;
}

.accent-amber {
  background: #ffb020;
}

.accent-green {
  background: #34c759;
}

.accent-indigo {
  background: #7c6cf2;
}

.accent-slate,
.dot-idle {
  background: #7a8a9e;
}

.dot-prog-su { background: #38bdf8; }
.dot-prog-kopuk { background: #ffffff; border: 1px solid rgba(15, 23, 42, 0.35); }
.dot-prog-supurge { background: #22c55e; }
.dot-prog-hava { background: #a78bfa; }
.dot-prog-firca { background: #f59e0b; }
.dot-prog-fircakopuk { background: #fb7185; }

.dot-emergency {
  background: #ff5252;
}

.dot-thermal {
  background: #ffb020;
}

.status-program {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f3f8ff;
  font-weight: 700;
  font-size: 30px;
  position: relative;
  z-index: 2;
}

.status-program-text.is-active {
  color: #34c759;
}

.status-program-text.is-last {
  color: #8a97aa;
}

.status-program-text.is-emergency {
  color: #ff3b30;
}

.status-program-text.is-thermal {
  color: #ff8f00;
}

.status-meta {
  display: grid;
  gap: 4px;
  color: #d7e3f1;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.status-meta span:first-child {
  font-size: 15px;
  font-weight: 800;
}

.status-active .status-meta span:first-child {
  color: #8cc8ff;
}

.status-idle .status-meta span:first-child {
  color: #c9d3df;
}

.status-emergency .status-meta span:first-child,
.status-thermal .status-meta span:first-child {
  color: #ffd7d7;
}

.status-bg-icon {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 110px;
  line-height: 1;
  opacity: 0.35;
  color: #2b3646;
  pointer-events: none;
}

.status-active .status-bg-icon {
  color: #7db9f3;
}

.status-emergency .status-bg-icon {
  color: #8a2b2b;
}

.status-thermal .status-bg-icon {
  color: #8c631c;
}

.module-card {
  padding: 18px;
  background: var(--panel-strong);
}

.module-card h4 {
  margin: 0 0 14px;
  font-size: 18px;
}

.module-list {
  display: grid;
  gap: 10px;
}

.module-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.module-row strong {
  display: block;
  margin-bottom: 5px;
}

.module-path {
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.module-note {
  margin-top: 6px;
  color: #f4c36a;
  font-size: 12px;
  line-height: 1.35;
}

.status-badge {
  min-width: 78px;
  padding: 7px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.status-hazir {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-sirada {
  background: rgba(255, 176, 32, 0.16);
  color: var(--warn);
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-grid,
  .activity-overview,
  .login-grid,
  .login-feature-grid,
  .daily-grid,
  .module-groups,
  .live-summary,
  .status-grid,
  .maintenance-page-grid,
  .promo-summary-grid,
  .promo-form-grid {
    grid-template-columns: 1fr;
  }

  .floating-status {
    left: 18px;
    right: 18px;
  }
}
