/* Tema 1 — Windows 95 görünümü (Ops Desk) — layout: base.css */

@font-face {
  font-family: 'W95FA';
  src: local('MS Sans Serif'), local('Tahoma');
}

body.theme-win95 {
  font-family: 'W95FA', 'MS Sans Serif', Tahoma, sans-serif;
  background: #008080;
}

body.theme-win95 .desktop {
  background: #008080;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%);
  background-size: 4px 4px;
  overflow: hidden;
}

body.theme-win95 .desktop-icon {
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}

body.theme-win95 .desktop-icon:hover,
body.theme-win95 .desktop-icon.selected,
body.theme-win95 .desktop-icon:focus {
  background: rgba(0, 0, 128, 0.4);
  outline: 1px dotted #fff;
}

body.theme-win95 .desktop-icon:focus {
  outline: 1px dotted #fff;
  outline-offset: 2px;
}

body.theme-win95 .desktop-icon .icon-glyph {
  image-rendering: pixelated;
}

/* Görev çubuğu */
body.theme-win95 .taskbar {
  background: #c0c0c0;
  border-top: 2px solid #dfdfdf;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  margin: 2px;
  font-weight: bold;
  font-size: 11px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
}

.start-btn:active,
.start-btn.pressed {
  border-style: inset;
}

.start-btn .win-logo {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ff0000 0%, #ff0000 50%, #00ff00 50%, #00ff00 100%);
  border: 1px solid #000;
}

.taskbar-windows {
  flex: 1;
  display: flex;
  gap: 2px;
  padding: 2px 4px;
  overflow: hidden;
}

.taskbar-btn {
  max-width: 160px;
  padding: 2px 8px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
}

.taskbar-btn.active {
  border-style: inset;
  font-weight: bold;
  border-top: 2px solid #000080;
}

.taskbar-btn.focused {
  background: #000080;
  color: #fff;
  border-style: inset;
  border-top: 2px solid #ffff80;
}

.taskbar-btn.focused .taskbar-app-label {
  color: #fff;
}

.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 1px inset #808080;
  margin: 2px 4px 2px 0;
  background: #c0c0c0;
  font-size: 11px;
}

.tray-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 11px;
  color: #000;
  background: #c0c0c0;
  border: 1px inset #dfdfdf;
  padding: 2px 6px;
  cursor: pointer;
}

.tray-status:hover {
  background: #d4d0c8;
}

.tray-status .dot.checking {
  background: #d8b000;
}

/* Tray veri kaynağı menüsü */
.tray-menu {
  display: none;
  position: fixed;
  right: 6px;
  bottom: calc(var(--taskbar-height) + 6px);
  min-width: 220px;
  background: #c0c0c0;
  border: 2px outset #fff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
  z-index: 21000;
  padding: 2px;
}

.tray-menu.open {
  display: block;
}

.tray-menu-title {
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  color: #000080;
}

.tray-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}

.tray-menu-item:hover {
  background: #000080;
  color: #fff;
}

.tray-menu-check {
  display: inline-block;
  width: 10px;
  visibility: hidden;
}

.tray-menu-check.active {
  visibility: visible;
}

.tray-menu-sep {
  height: 2px;
  margin: 3px 4px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
}

.tray-menu-info {
  font-size: 10px;
  color: #404040;
  padding: 4px 8px;
  border-top: 1px solid #808080;
  line-height: 1.4;
  word-break: break-all;
}

.tray-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #000;
}

.tray-status .dot.online {
  background: #00aa00;
}

.tray-status .dot.offline {
  background: #aa0000;
}

/* Pencere */
.window {
  position: absolute;
  min-width: 320px;
  min-height: 200px;
  background: #c0c0c0;
  border: 2px outset #fff;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  resize: none;
}

/* Kenar/köşeden boyutlandırma (Win95) */
.resize-handle {
  position: absolute;
  z-index: 5;
}

.window.maximized .resize-handle {
  display: none;
}

.resize-n,
.resize-s {
  left: 8px;
  right: 8px;
  height: 5px;
}

.resize-n {
  top: 0;
  cursor: n-resize;
}

.resize-s {
  bottom: 0;
  cursor: s-resize;
}

.resize-e,
.resize-w {
  top: 8px;
  bottom: 8px;
  width: 5px;
}

.resize-e {
  right: 0;
  cursor: e-resize;
}

.resize-w {
  left: 0;
  cursor: w-resize;
}

.resize-nw,
.resize-ne,
.resize-sw,
.resize-se {
  width: 12px;
  height: 12px;
}

.resize-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
}

.resize-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
}

.resize-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
}

.resize-se {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}

.window.minimized {
  display: none;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  /* .desktop zaten görev çubuğunu hariç tutar — tekrar 28px düşürme */
  height: 100% !important;
  max-height: none !important;
}

.title-bar {
  display: flex;
  align-items: center;
  padding: 2px 2px 2px 4px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  cursor: move;
}

.title-bar.inactive {
  background: linear-gradient(90deg, #808080, #b0b0b0);
}

.title-bar-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-bar-controls {
  display: flex;
  gap: 2px;
}

.title-btn {
  width: 16px;
  height: 14px;
  padding: 0;
  font-size: 9px;
  line-height: 12px;
  font-weight: bold;
  background: #c0c0c0;
  color: #000;
  border: 2px outset #fff;
  cursor: pointer;
}

.title-btn:active {
  border-style: inset;
}

.menu-bar {
  display: flex;
  padding: 2px 0;
  border-bottom: 1px solid #808080;
}

.menu-item {
  padding: 2px 8px;
  cursor: pointer;
}

.menu-item:hover {
  background: #000080;
  color: #fff;
}

.window-body {
  flex: 1;
  min-height: 0;
  padding: 8px;
  overflow: auto;
  border: 2px inset #808080;
  margin: 2px;
  background: #c0c0c0;
}

.window-body.layout-fill {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.window-body.layout-fill .orders-list-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.window-body.layout-fill .orders-filters-panel,
.window-body.layout-fill .orders-list-toolbar,
.window-body.layout-fill .pager-bar {
  flex-shrink: 0;
}

.window-body.layout-fill .table-wrap-fill {
  flex: 1 1 0;
  min-height: 80px;
  max-height: none;
  overflow: auto;
}

.orders-filters-panel {
  border: 2px groove #fff;
  margin: 0 0 8px;
  padding: 6px 10px 8px;
  background: #c0c0c0;
}

.orders-filters-summary {
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  padding: 0 4px;
  list-style: none;
}

.orders-filters-summary::-webkit-details-marker {
  display: none;
}

.orders-filters-summary::before {
  content: '▸ ';
}

.orders-filters-panel[open] > .orders-filters-summary::before {
  content: '▾ ';
}

.orders-filters-body {
  padding-top: 6px;
}

.orders-list-toolbar {
  margin-bottom: 6px;
}

.status-bar {
  display: flex;
  border-top: 1px solid #808080;
  margin: 0 2px 2px;
}

.status-panel {
  padding: 2px 6px;
  border: 1px inset #808080;
  font-size: 11px;
}

.status-panel:first-child {
  flex: 1;
}

/* Form elemanları */
fieldset {
  border: 2px groove #fff;
  margin: 0 0 8px;
  padding: 8px 12px 12px;
}

legend {
  padding: 0 4px;
}

label {
  display: block;
  margin-bottom: 2px;
}

input[type='text'],
input[type='search'],
select {
  font-family: inherit;
  font-size: 11px;
  padding: 3px 4px;
  border: 2px inset #808080;
  background: #fff;
  width: 100%;
}

input[type='text']:focus,
select:focus {
  outline: 1px dotted #000;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  align-items: center;
}

.btn {
  padding: 4px 12px;
  font-family: inherit;
  font-size: 11px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  min-width: 75px;
}

.btn:active {
  border-style: inset;
}

.btn:disabled {
  color: #808080;
  text-shadow: 1px 1px 0 #fff;
  cursor: default;
}

.btn.primary {
  font-weight: bold;
}

/* Tablo */
.table-wrap {
  border: 2px inset #808080;
  background: #fff;
  overflow: auto;
  max-height: 340px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  background: #fff;
}

table.data-table th {
  background: #c0c0c0;
  border: 1px outset #fff;
  padding: 4px 6px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.th-heading {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.col-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  color: #000;
  background: #c0c0c0;
  border: 1px outset #fff;
  cursor: help;
  flex-shrink: 0;
  vertical-align: middle;
}

.col-help:active {
  border-style: inset;
}

.col-help-mark {
  pointer-events: none;
}

.col-tooltip {
  display: none;
  position: fixed;
  z-index: 25000;
  min-width: 200px;
  max-width: 300px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
  color: #000;
  background: #ffffe1;
  border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

.col-tooltip.col-tip--open {
  display: block;
}

.order-status-tooltip {
  display: none;
  position: fixed;
  z-index: 25000;
  min-width: 240px;
  max-width: 360px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
  color: #000;
  background: #ffffe1;
  border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

.order-status-tooltip.order-status-tip--open {
  display: block;
}

.order-status-help:hover .order-status-tooltip:not(.order-status-tip--open),
.order-status-help:focus .order-status-tooltip:not(.order-status-tip--open) {
  display: none;
}

.col-tooltip::before {
  content: none;
}

.col-help:hover .col-tooltip:not(.col-tip--open),
.col-help:focus .col-tooltip:not(.col-tip--open),
.col-help:focus-visible .col-tooltip:not(.col-tip--open) {
  display: none;
}

table.data-table thead {
  z-index: 2;
}

table.data-table th:has(.col-help:hover),
table.data-table th:has(.col-help:focus) {
  z-index: 10;
}

table.data-table td {
  padding: 3px 6px;
  border-bottom: 1px solid #dfdfdf;
  white-space: nowrap;
}

table.data-table tr {
  cursor: pointer;
}

body.theme-win95 table.data-table tbody tr:hover {
  background: #000080;
  color: #fff;
}

body.theme-win95 table.data-table tbody tr.selected {
  background: #000080;
  color: #fff;
}

body.theme-win95 table.data-table tbody tr.selected td,
body.theme-win95 table.data-table tbody tr:hover td,
body.theme-win95 table.data-table tbody tr.selected td strong,
body.theme-win95 table.data-table tbody tr:hover td strong {
  color: #fff;
}

body.theme-win95 table.data-table tbody tr.selected .badge,
body.theme-win95 table.data-table tbody tr:hover .badge {
  color: #000;
}

body.theme-win95 table.data-table tbody tr.selected .badge.failed,
body.theme-win95 table.data-table tbody tr:hover .badge.failed {
  color: #800000;
}

body.theme-win95 table.data-table tbody tr.selected .non-excel,
body.theme-win95 table.data-table tbody tr.selected .non-excel * {
  color: #ffb0b0 !important;
}

body.theme-win95 table.data-table tbody tr:hover .non-excel,
body.theme-win95 table.data-table tbody tr:hover .non-excel * {
  color: #ffb0b0 !important;
}

body.theme-win95 table.data-table tbody tr.selected .meta-id,
body.theme-win95 table.data-table tbody tr:hover .meta-id {
  color: #cce0ff !important;
}

body.theme-win95 table.data-table tbody tr.selected a.link-win,
body.theme-win95 table.data-table tbody tr:hover a.link-win {
  color: #ffff80;
}

body.theme-win95 table.data-table tbody tr.selected:focus {
  outline: 2px dotted #ffff00;
  outline-offset: -2px;
}

/* Canlı izleme — yeni / güncellenen satır (detay açılınca/kapanınca söner) */
body.theme-win95 table.data-table tbody tr.order-flash:not(.selected):not(:hover) {
  background: #ffff80 !important;
  animation: order-row-flash 1.1s ease-in-out infinite;
}

body.theme-win95 table.data-table tbody tr.order-flash.selected,
body.theme-win95 table.data-table tbody tr.order-flash:hover {
  box-shadow: inset 0 0 0 2px #ffff00;
}

@keyframes order-row-flash {
  0%,
  100% {
    background-color: #ffff80;
  }
  50% {
    background-color: #ffffc8;
  }
}

body.theme-win95 .start-menu-item:focus {
  background: #000080;
  color: #fff;
  outline: 1px dotted #fff;
}

body.theme-win95 table.data-table tbody tr:nth-child(even):not(:hover):not(.selected):not(.order-flash) {
  background: #f0f0f0;
}

/* Durum rozetleri */
.badge {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #808080;
  font-size: 10px;
  background: #ffffcc;
}

.badge.on-hold { background: #ffffcc; }
.badge.processing { background: #cce5ff; }
.badge.completed { background: #ccffcc; }
.badge.cancelled { background: #ffcccc; }
.badge.failed { background: #ffcccc; color: #800000; }

/* Sekmeler */
.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}

.tab {
  padding: 4px 12px;
  background: #c0c0c0;
  border: 2px outset #fff;
  border-bottom: none;
  cursor: pointer;
  font-size: 11px;
}

.tab.active {
  background: #c0c0c0;
  border-style: inset;
  border-bottom: 2px solid #c0c0c0;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
  font-weight: bold;
}

.tab:focus {
  outline: 1px dotted #000;
  outline-offset: -2px;
}

.tab-panel {
  display: none;
  border: 2px inset #808080;
  padding: 12px;
  background: #fff;
  min-height: 280px;
  overflow: auto;
}

.tab-panel.active {
  display: block;
}

/* Ekonomi paneli */
.econ-panel {
  font-size: 11px;
}

.econ-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  margin-bottom: 12px;
  border: 2px inset #808080;
  background: #ffffcc;
}

.econ-hero.ok {
  background: #e8ffe8;
}

.econ-hero.warn {
  background: #ffe8e8;
}

.econ-hero-label {
  display: block;
  font-weight: bold;
  color: #000080;
  margin-bottom: 4px;
}

.econ-hero-amount {
  display: block;
  font-size: 22px;
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace;
}

.econ-hero-sub {
  display: block;
  margin-top: 4px;
  color: #444;
}

.econ-hero-checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}

.econ-check {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #808080;
  font-size: 10px;
  background: #fff;
}

.econ-check.ok {
  background: #ccffcc;
}

.econ-check.fail {
  background: #ffcccc;
  font-weight: bold;
}

.econ-intro,
.econ-note {
  margin: 0 0 10px;
  color: #333;
  line-height: 1.4;
}

.econ-note {
  font-size: 10px;
  color: #666;
  font-style: italic;
}

.econ-section {
  border: 2px groove #fff;
  margin: 0 0 10px;
  padding: 8px 10px 10px;
  background: #f0f0f0;
}

.econ-section legend {
  font-weight: bold;
  padding: 0 4px;
}

.econ-block {
  background: #fff;
  border: 1px inset #c0c0c0;
  padding: 8px;
}

.econ-row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 1.4fr) 100px;
  gap: 8px;
  align-items: baseline;
  padding: 2px 0;
  line-height: 1.35;
}

.econ-row.bold .econ-label,
.econ-row.bold .econ-amount {
  font-weight: bold;
}

.econ-row.highlight {
  background: #ffffe0;
  margin: 2px -4px;
  padding: 4px;
}

.econ-row.muted {
  color: #666;
}

.econ-row.indent-1 {
  padding-left: 12px;
}

.econ-row.indent-2 {
  padding-left: 24px;
}

.econ-label {
  color: #000;
}

.econ-formula {
  font-size: 10px;
  color: #555;
  font-family: 'Courier New', Courier, monospace;
}

.econ-amount {
  text-align: right;
  font-family: 'Courier New', Courier, monospace;
  white-space: nowrap;
}

.econ-divider {
  border-top: 1px dashed #999;
  margin: 6px 0;
}

.econ-line-check {
  margin: 2px 0 6px;
}

.econ-line-check.indent-1 {
  padding-left: 12px;
}

.econ-line-check.indent-2 {
  padding-left: 24px;
}

.econ-muted {
  color: #888;
  font-style: italic;
  margin: 0;
}

.econ-waterfall .econ-row {
  grid-template-columns: 1fr 100px;
}

.econ-waterfall .econ-formula {
  display: none;
}

#tab-economics {
  overflow: auto;
}

.window-body.layout-fill .tab-panel.active {
  flex: 1;
  min-height: 160px;
  max-height: none;
  display: block;
}

.window-body.layout-fill {
  display: flex;
  flex-direction: column;
}

.window-body.layout-fill .tabs {
  flex-shrink: 0;
}

/* Detay grid */
.detail-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4px 12px;
  font-size: 11px;
}

.detail-grid .label {
  color: #000080;
  font-weight: bold;
}

.detail-section {
  border: 2px groove #fff;
  margin: 0 0 10px;
  padding: 8px 10px 10px;
  background: #f0f0f0;
}

.detail-section legend {
  font-weight: bold;
  padding: 0 4px;
}

.detail-section .detail-grid {
  background: #fff;
  border: 1px inset #c0c0c0;
  padding: 8px;
}

.meta-id {
  font-size: 10px;
  color: #666;
  font-weight: normal;
}

.link-win {
  color: #000080;
  text-decoration: underline;
  cursor: pointer;
}

.link-win:hover {
  color: #0000ff;
}

/* Excel dışı alanlar — kırmızı */
.non-excel,
.label.non-excel,
.value.non-excel,
.detail-grid .label.non-excel,
.detail-grid .value.non-excel,
.th-label.non-excel,
legend.non-excel,
.line-item-meta strong.non-excel,
.line-item-meta span.non-excel,
.econ-label.non-excel,
.econ-amount.non-excel,
td.non-excel,
.shipments-table th .non-excel,
p.non-excel {
  color: #c00000 !important;
}

.excel-legend-note {
  margin: 0 0 8px;
  font-size: 10px;
  color: #333;
}

.toolbar-legend {
  margin-left: auto;
  align-self: center;
  font-size: 10px;
}

.line-item-meta-wide {
  grid-template-columns: repeat(4, 1fr);
}

.shipments-table {
  font-size: 11px;
}

body.theme-win95 .rate-eds-shell {
  --rate-bg-elevated: #141C2B;
  --rate-bg-header: #1E293B;
  --rate-bg-toolbar: #141C2B;
}

/* Win95 chrome butonları — koyu terminal içinde uyumlu */
body.theme-win95 .rate-eds-shell .rate-gear-btn,
body.theme-win95 .rate-eds-shell .rate-action-btn {
  background: var(--rate-bg-elevated);
  border: 1px solid var(--rate-border-strong);
  color: var(--rate-text);
}

body.theme-win95 .rate-eds-shell .rate-gear-btn.is-active,
body.theme-win95 .rate-eds-shell .rate-gear-btn:active {
  border-style: solid;
  background: var(--rate-bg-row-hover);
  border-color: var(--rate-info);
}

body.theme-win95 .rate-eds-shell .rate-action-btn:hover {
  background: var(--rate-bg-row-hover);
  border-color: var(--rate-info);
}

.rate-settings-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.rate-eds-subbar-compact {
  padding: 6px 10px;
  gap: 4px;
}

.rate-eds-subbar .rate-flow-banner .rate-flow-accent {
  color: #000080;
  font-weight: bold;
}

.rate-eds-subbar .non-excel {
  color: #800000 !important;
}

.rate-symbol-picker {
  margin: 8px 8px 0;
  padding: 0;
  background: #d4d0c8;
  border: 2px groove #fff;
  flex-shrink: 0;
  color: #000;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.rate-picker-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 32px;
  padding: 10px 12px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}

.rate-picker-header:hover {
  background: #d0d0d0;
}

.rate-picker-header:focus {
  outline: 1px dotted #000;
  outline-offset: -2px;
}

.rate-symbol-picker-collapsed .rate-picker-header {
  border-bottom: none;
}

.rate-picker-body {
  padding: 8px 10px 4px;
}

.rate-picker-caret {
  font-size: 10px;
  line-height: 1;
  color: #000;
}

.rate-picker-title {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.4;
  color: #000;
}

.rate-picker-summary {
  font-size: 10px;
  font-weight: normal;
  color: #c00000;
  line-height: 1.4;
}

.rate-picker-note {
  margin: 0 0 8px;
  font-size: 10px;
  color: #222;
  line-height: 1.4;
}

.rate-picker-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.rate-picker-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 140px;
  overflow: auto;
}

.rate-picker-grid-sidebar {
  max-height: min(52vh, 420px);
}

.rate-picker-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.rate-picker-group-head strong {
  display: inline;
  margin-bottom: 0;
  font-size: 10px;
  color: #000080;
}

.rate-picker-group-meta {
  font-size: 9px;
  color: #555;
  margin-right: auto;
}

.rate-picker-cat-btn {
  font-size: 9px;
  padding: 0 6px;
  height: 18px;
  line-height: 16px;
  border: 1px outset #fff;
  background: #dfdfdf;
  cursor: pointer;
  font-family: Tahoma, sans-serif;
}

.rate-picker-cat-btn:active {
  border-style: inset;
}

.rate-picker-group strong {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
  color: #000080;
}

.rate-picker-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.rate-picker-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  cursor: pointer;
  color: #000;
}

.rate-picker-item span {
  color: #000;
}

.rate-picker-item code {
  font-size: 9px;
  color: #333;
}

.rate-toolbar-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  background: #2a2a2a;
  flex-shrink: 0;
  min-width: 0;
}

.rate-toolbar-meta {
  margin-left: auto;
  font-size: 10px;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.rate-publish-stat {
  white-space: nowrap;
  line-height: 1.2;
}

.rate-publish-stat strong {
  display: inline;
  font-weight: bold;
}

.rate-col-label {
  font-weight: bold;
  color: #9cdcfe;
  white-space: nowrap;
}

.rate-feed-hint {
  display: block;
  font-size: 9px;
  color: #888;
  font-weight: normal;
}

.rate-col-pct {
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.rate-muted {
  color: #888 !important;
}

.rate-col-mode .rate-select {
  font-size: 9px;
  max-width: 110px;
}

.rate-ecom-table .rate-col-num {
  font-family: 'Consolas', 'Courier New', monospace;
  text-align: right;
}

.window-body.rate-window-body {
  padding: 0;
  margin: 2px;
  border: 2px inset #808080;
  background: #1a1a1a;
  overflow: hidden;
}

.rate-eds-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #1a1a1a;
  color: #dcdcdc;
  font-size: 11px;
  overflow: hidden;
}

.rate-eds-top,
.rate-settings-sidebar,
.rate-eds-license,
.rate-symbol-picker {
  color: #000;
}

.rate-eds-top {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #c0c0c0;
  overflow: visible;
  padding-bottom: 6px;
}

.rate-eds-menubar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  background: linear-gradient(180deg, #ece9d8 0%, #d4d0c8 100%);
  border-bottom: 1px solid #808080;
  flex-shrink: 0;
}

.rate-menubar-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.rate-menubar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 72px;
  padding: 4px 6px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 9px;
  color: #000;
  cursor: pointer;
  font-family: Tahoma, 'MS Sans Serif', sans-serif;
}

.rate-menubar-btn:hover {
  border-color: #fff #808080 #808080 #fff;
  background: #c0c0c0;
}

.rate-menubar-ico {
  font-size: 18px;
  line-height: 1;
}

.rate-menubar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 200px;
}

.rate-main-menu {
  font-size: 10px;
  color: #000;
}

.rate-select,
.rate-search-input {
  font-size: 11px;
  padding: 2px 4px;
  border: 1px inset #808080;
  background: #fff;
}

.rate-search-input {
  flex: 1 1 auto;
  min-width: 72px;
  max-width: 200px;
  width: auto;
}

.rate-eds-subbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 8px;
  background: #c0c0c0;
  color: #000;
  font-size: 10px;
  flex-shrink: 0;
  border-bottom: 1px solid #808080;
}

.rate-flow-banner {
  font-size: 10px;
}

.rate-flow-banner strong {
  color: #7ec8ff;
}

.rate-legend {
  font-size: 9px;
  opacity: 0.9;
}

.rate-table-wrap {
  flex: 1;
  min-height: 180px;
  overflow: auto;
  background: #1e1e1e;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e1e1e;
  color: #dcdcdc;
  font-size: 11px;
}

.rate-table th {
  background: #3a3a3a;
  color: #e8e8e8;
  border: 1px solid #555;
  padding: 5px 6px;
  position: sticky;
  top: 0;
  z-index: 2;
  font-weight: 600;
  white-space: nowrap;
}

.rate-table td {
  border: none;
  border-bottom: 1px solid #333;
  padding: 3px 6px;
  vertical-align: middle;
}

.rate-data-row:nth-child(odd) {
  background: #242424;
}

.rate-data-row:nth-child(even) {
  background: #2c2c2c;
}

.rate-data-row:hover {
  background: #383838 !important;
}

.rate-group-row td {
  background: #2a2a2a !important;
  color: #ffd700 !important;
  font-weight: bold;
  padding: 4px 8px !important;
  border-bottom: 1px solid #444;
}

.rate-group-toggle {
  background: transparent;
  border: none;
  color: #ffd700;
  font-weight: bold;
  cursor: pointer;
  font-size: 11px;
  padding: 0 4px 0 0;
}

.rate-group-count {
  font-size: 10px;
  color: #ccc;
  margin-left: 4px;
  font-weight: normal;
}

.rate-row-publish {
  background: #2a3340 !important;
  box-shadow: inset 3px 0 0 #6b9bd1;
}

.rate-row-publish:hover {
  background: #323d4d !important;
}

.rate-col-code {
  white-space: nowrap;
}

.rate-code {
  color: #9cdcfe;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.rate-wp {
  display: block;
  font-size: 9px;
  font-weight: normal;
  margin-top: 1px;
}

.rate-col-num {
  font-family: 'Consolas', 'Courier New', monospace;
  text-align: right;
  white-space: nowrap;
}

.rate-bid,
.rate-ask {
  color: #b8d4ff;
}

.rate-out {
  color: #ff6b6b;
  font-weight: bold;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rate-pub-value {
  display: inline-block;
}

.rate-pub-delta {
  display: inline-block;
  margin-left: 6px;
  font-size: 9px;
  font-weight: bold;
  color: #006600;
  font-family: 'Consolas', 'Courier New', monospace;
}

.rate-flash {
  animation: rate-pub-flash 0.85s ease;
}

.rate-flash .rate-pub-value {
  color: #000 !important;
}

.rate-flash .rate-pub-delta {
  color: #004400;
}

@keyframes rate-pub-flash {
  0% {
    background-color: #ffff00;
    box-shadow: inset 0 0 0 2px #ff0;
  }
  35% {
    background-color: #7cff7c;
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

.rate-col-time {
  color: #aaa;
  font-size: 10px;
  white-space: nowrap;
}

.rate-col-cat,
.rate-col-grp {
  color: #ccc;
  font-size: 10px;
}

.rate-input {
  width: 88px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10px;
  padding: 1px 3px;
  border: 1px inset #555;
  background: #fff;
  color: #000;
}

.rate-marj-input {
  width: 92px;
  text-align: right;
  letter-spacing: 0.02em;
}

.rate-input:disabled {
  background: #555;
  color: #999;
  border-color: #444;
}

.rate-check {
  text-align: center;
  width: 36px;
}

.rate-check input {
  cursor: pointer;
}

.rate-eds-sources {
  flex-shrink: 0;
  background: #2b2b2b;
  padding: 2px 6px 4px;
  border-top: 1px solid #444;
  max-height: 110px;
  overflow: auto;
}

.rate-sources-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  color: #ddd;
  font-family: Tahoma, 'Segoe UI', sans-serif;
}

.rate-sources-table th {
  text-align: left;
  color: #9a9a9a;
  font-weight: normal;
  padding: 2px 8px;
  white-space: nowrap;
}

.rate-sources-table td {
  padding: 2px 8px;
  border-top: 1px solid #3a3a3a;
  white-space: nowrap;
}

.rate-sources-table tr.is-active-source td {
  background: #353535;
  color: #fff;
}

.rate-source-host {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 9px;
}

.rate-source-status {
  text-align: right;
  width: 110px;
  white-space: nowrap;
}

.rate-source-status .rate-conn-led {
  margin-right: 6px;
}

.rate-pill-online {
  display: inline-block;
  min-width: 64px;
  text-align: center;
  padding: 2px 10px;
  background: #7cfc00;
  color: #000;
  font-weight: bold;
  font-size: 10px;
  letter-spacing: 0.04em;
  border: 1px solid #228b22;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rate-pill-online.rate-pill-dim {
  background: #555;
  border-color: #333;
  color: #bbb;
  box-shadow: none;
}

.rate-pill-online.is-wait {
  background: #f0a000;
  border-color: #a60;
  color: #000;
}

.rate-pill-online.is-stale {
  color: #a60;
  font-weight: bold;
}

.rate-pill-online.is-live {
  background: #7cfc00;
  border-color: #1a7a1a;
}

.rate-eds-license {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #00b4d8 0%, #0096c7 100%);
  color: #000;
  font-size: 10px;
  flex-shrink: 0;
}

.rate-license-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.rate-status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rate-status-connected {
  display: inline-block;
  min-width: 92px;
  text-align: center;
  padding: 2px 10px;
  background: #888;
  color: #000;
  font-weight: bold;
  border: 1px solid #666;
}

.rate-status-connected.is-on {
  background: #d4ff00;
  border-color: #8a0;
}

.rate-status-connected.is-stale {
  background: #f0a000;
  border-color: #a60;
}

.rate-status-connected.is-wait {
  background: #f0a000;
  border-color: #a60;
}

.rate-status-connected.is-err {
  background: #ff6b6b;
  border-color: #a00;
}

.rate-conn-led {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #1a1a1a;
  background: #777;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rate-conn-led.is-off {
  background: #666;
}

.rate-conn-led.is-err {
  background: #d32f2f;
}

.rate-conn-led.is-stale {
  background: #f0a000;
  border-color: #a60;
}

.rate-conn-led.is-wait {
  background: #f0a000;
  animation: rate-conn-pulse 0.55s ease-in-out infinite;
}

.rate-conn-led.is-on {
  background: #22c55e;
  animation: rate-conn-pulse 1.15s ease-in-out infinite;
}

.rate-conn-led.is-tick {
  animation: rate-conn-tick 0.35s ease;
}

@keyframes rate-conn-pulse {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1.05);
  }
  50% {
    opacity: 0.25;
    filter: brightness(1.35);
  }
}

@keyframes rate-conn-tick {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75);
  }
  40% {
    transform: scale(1.35);
    box-shadow: 0 0 5px 1px rgba(34, 197, 94, 0.85);
  }
  100% {
    transform: scale(1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

.rate-license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.rate-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px outset #fff;
  background: #c0c0c0;
  font-size: 10px;
  cursor: pointer;
  color: #000;
  font-family: Tahoma, sans-serif;
}

.rate-action-btn:hover {
  background: #d8d8d8;
}

.rate-action-mini {
  min-width: 24px;
  justify-content: center;
  padding: 3px 6px;
}

.rate-action-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #333;
}

.rate-dot-blue {
  background: #0066cc;
}

.rate-dot-green {
  background: #008000;
}

.rate-dot-red {
  background: #cc0000;
}

.rate-table .non-excel {
  color: #ff6b6b !important;
}

.rate-table th .non-excel,
.rate-table th .th-label.non-excel {
  color: #ff8888 !important;
}

.rate-table .rate-bid.non-excel,
.rate-table .rate-ask.non-excel {
  color: #b8d4ff !important;
}

.rate-window-body .col-help-mark {
  color: #111;
  border-color: #888;
}

.rate-window-body .col-tooltip {
  background: #ffffe1;
  color: #000;
  border-color: #808080;
}

/* data-table global stillerini EDS panelinde geçersiz kıl */
.rate-table-wrap table.data-table.rate-table {
  background: #1a1a1a;
}

.rate-table-wrap table.data-table.rate-table th {
  background: #3a3a3a;
  color: #e8e8e8;
  border: 1px solid #555;
  border-style: solid;
  font-weight: 600;
}

.rate-table-wrap table.data-table.rate-table th .th-label {
  color: #e8e8e8;
}

.rate-table-wrap table.data-table.rate-table th .th-label.non-excel {
  color: #800000 !important;
}

.rate-table-wrap table.data-table.rate-table th .col-help {
  color: #111;
  background: #d4d0c8;
  border-color: #808080;
}

.rate-table-wrap table.data-table.rate-table th .col-help-mark {
  color: #111;
}

.rate-table-wrap table.data-table.rate-table td {
  border-bottom-color: #2a2a2a;
}

.rate-table-wrap table.data-table.rate-table tbody tr {
  cursor: default;
}

.rate-table-wrap table.data-table.rate-table tbody tr:hover {
  background: inherit;
  color: inherit;
}

.rate-table-wrap table.data-table.rate-table tbody tr:nth-child(even):not(:hover):not(.selected) {
  background: inherit;
}

.rate-table-wrap table.data-table.rate-table .rate-data-row:hover {
  background: #3a3a48 !important;
}

.rate-table-wrap table.data-table.rate-table .rate-group-row:hover {
  background: transparent !important;
}

@media (max-width: 900px) {
  .line-item-meta-wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-grid .value {
  word-break: break-word;
}

/* JSON görünümü */
.json-view {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  background: #000;
  color: #00ff00;
  padding: 8px;
  overflow: auto;
  max-height: 400px;
  white-space: pre-wrap;
  word-break: break-all;
  border: 2px inset #808080;
}

/* Ürün kartı */
.line-item-card {
  display: flex;
  gap: 12px;
  padding: 8px;
  margin-bottom: 8px;
  border: 2px inset #808080;
  background: #f8f8f8;
}

.line-item-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #808080;
  background: #fff;
}

.line-item-card .item-info {
  flex: 1;
}

.line-item-card h4 {
  margin: 0 0 6px;
  font-size: 12px;
}

.line-item-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 12px;
  font-size: 10px;
}

.product-summary {
  margin-top: 12px;
  border: 2px groove #fff;
  padding: 8px 10px 10px;
  background: #f0f0f0;
  overflow: visible;
}

.product-summary-scroll {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.product-summary-table tfoot,
.ps-break-row td,
.ps-tip-host {
  overflow: visible;
}

.product-summary-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #fff;
  border: 1px inset #808080;
  font-size: 11px;
  table-layout: fixed;
}

.product-summary-table th,
.product-summary-table td {
  padding: 6px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #e0e0e0;
}

.product-summary-table th {
  background: #dfdfdf;
  text-align: left;
  font-weight: bold;
  border-bottom: 1px solid #808080;
}

.product-summary-table col.ps-col-name { width: 32%; }
.product-summary-table col.ps-col-detail { width: 26%; }
.product-summary-table col.ps-col-rate { width: 22%; }
.product-summary-table col.ps-col-total { width: 20%; }

.product-summary-table th:nth-child(3),
.product-summary-table th:nth-child(4) {
  text-align: right;
}

.product-summary-table tbody tr:last-child td {
  border-bottom: none;
}

.product-summary-table td.ps-detail,
.product-summary-table td.ps-rate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-summary-table td.ps-total {
  white-space: nowrap;
}

.ps-name {
  font-weight: bold;
  white-space: normal;
  word-break: break-word;
}

.ps-detail {
  color: #333;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
}

.ps-rate {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  color: #000080;
  text-align: right;
}

.ps-total {
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  text-align: right;
}

.ps-other {
  color: #000080;
  cursor: help;
  text-decoration: underline dotted #000080;
  text-underline-offset: 2px;
  font-weight: bold;
}

.ps-other-hint {
  color: #808080;
  font-style: italic;
  font-family: Tahoma, 'MS Sans Serif', sans-serif;
}

.ps-other-row td {
  background: #f4f4f4;
  border-top: 1px solid #c0c0c0;
}

/* Başlangıç menüsü */
.start-menu {
  display: none;
  position: fixed;
  bottom: var(--taskbar-height);
  left: 0;
  width: 200px;
  background: #c0c0c0;
  border: 2px outset #fff;
  z-index: 10001;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.start-menu.open {
  display: block;
}

.start-menu-sidebar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(180deg, #000080, #1084d0);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 4px;
  letter-spacing: 1px;
}

.start-menu-items {
  margin-left: 24px;
  padding: 4px 0;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

.start-menu-item:hover {
  background: #000080;
  color: #fff;
}

.start-menu-separator {
  height: 2px;
  margin: 4px 8px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
}

.start-menu-subtitle {
  padding: 4px 12px 2px;
  font-size: 10px;
  font-weight: bold;
  color: #404040;
}

.start-menu-theme-check.active {
  color: #000080;
  font-weight: bold;
}

/* Mesaj kutusu */
.dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 20000;
  align-items: center;
  justify-content: center;
}

.dialog-overlay.open {
  display: flex;
}

.dialog {
  min-width: 300px;
  max-width: 420px;
  background: #c0c0c0;
  border: 2px outset #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.dialog-json {
  min-width: 480px;
  max-width: 90vw;
}

.dialog-body {
  display: flex;
  gap: 12px;
  padding: 16px;
  align-items: flex-start;
}

.dialog-icon {
  font-size: 32px;
  line-height: 1;
}

.dialog-content {
  flex: 1;
  white-space: pre-wrap;
}

.dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px 16px;
}

.dialog-footer-extra {
  padding: 0 16px 4px;
  color: #000;
}

/* Bağlantı ayarları diyaloğu */
.live-settings {
  min-width: 460px;
  max-width: 560px;
}

.live-settings-body {
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.live-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-field label {
  font-size: 11px;
  font-weight: bold;
}

.live-field input,
.live-field select {
  font-family: inherit;
  font-size: 11px;
  padding: 3px 4px;
  border: 2px inset #fff;
  background: #fff;
}

.live-field-inline select {
  max-width: 260px;
}

.live-hint,
.live-note {
  font-size: 10px;
  color: #404040;
  margin: 0;
  line-height: 1.4;
}

.live-note {
  border-top: 1px solid #808080;
  padding-top: 8px;
}

.live-test-result {
  font-size: 11px;
  padding: 6px 8px;
  border: 2px inset #fff;
  background: #fff;
}

.live-test-result.ok {
  color: #006400;
}

.live-test-result.error {
  color: #a00000;
}

.live-test-result.warn {
  color: #8a5b00;
}

.live-test-result.pending {
  color: #000080;
}

body.theme-win95 .pager-size-select {
  background: #fff;
  color: #000;
  border: 2px inset #808080;
  border-radius: 0;
}

body.theme-win95 .pager-size-label,
body.theme-win95 .pager-info {
  color: #404040;
}

body.theme-win95 .pager-info strong {
  color: #000;
}

.live-badge {
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid #006400;
  background: #e3f4e3;
  color: #006400;
}

.api-error-box {
  padding: 14px;
  text-align: center;
  font-size: 11px;
  color: #a00000;
  line-height: 1.6;
}

.api-error-box .api-error-hint {
  display: block;
  color: #404040;
  margin-top: 6px;
}

/* Scrollbar Win95 tarzı */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: #dfdfdf;
  border-left: 1px solid #808080;
}

::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 2px outset #fff;
}

::-webkit-scrollbar-button {
  background: #c0c0c0;
  border: 2px outset #fff;
  height: 16px;
}

.empty-state {
  text-align: center;
  padding: 32px;
  color: #808080;
}

.startup-app-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.startup-app-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
}

.startup-app-item:hover {
  background: #000080;
  color: #fff;
}

.startup-app-icon {
  width: 20px;
  text-align: center;
}

.appearance-theme-item {
  align-items: flex-start;
}

.appearance-theme-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.appearance-theme-desc {
  font-size: 10px;
  font-weight: normal;
  color: #444;
}

.startup-app-item:hover .appearance-theme-desc {
  color: #ccc;
}

.startup-hint {
  margin: 10px 0 0;
  font-size: 10px;
  color: #444;
}

.sunken-panel {
  border: 2px inset #808080;
  background: #fff;
  padding: 8px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.filter-row-main {
  grid-template-columns: minmax(160px, 1.4fr) repeat(4, minmax(110px, 1fr));
}

.filter-row-dates {
  grid-template-columns: 1fr 1fr auto;
  margin-bottom: 4px;
}

.filter-row-events {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.6fr);
}

.filter-date-pair {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-date-pair input[type='date'] {
  min-width: 0;
  flex: 1;
}

.filter-date-sep {
  color: #404040;
  font-size: 11px;
}

.filter-action-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-hint {
  margin: 4px 0 0;
  line-height: 1.35;
}

.toolbar-sort-hint {
  font-size: 11px;
  color: #000080;
  margin-left: 4px;
}

th.th-sortable {
  cursor: pointer;
  user-select: none;
}

th.th-sortable:hover {
  background: #d4d0c8;
}

th.th-sorted .th-label,
th.th-sorted .sort-indicator--active {
  font-weight: bold;
  color: #000080;
}

.sort-indicator {
  font-size: 10px;
  margin-left: 2px;
  line-height: 1;
  flex-shrink: 0;
}

.sort-indicator--idle {
  color: #666;
  opacity: 0.75;
  font-weight: normal;
}

th.th-sortable:hover .sort-indicator--idle {
  color: #000080;
  opacity: 1;
}

.sort-indicator--active {
  font-weight: bold;
}

th.th-sort-page-only {
  font-style: italic;
}

th.th-sort-page-only .sort-scope {
  font-size: 9px;
  font-style: normal;
  font-weight: normal;
  color: #555;
  margin-left: 3px;
  border: 1px solid #888;
  padding: 0 3px;
  background: #eee;
}

@media (max-width: 768px) {
  .filter-row,
  .filter-row-main,
  .filter-row-dates,
  .filter-row-events {
    grid-template-columns: 1fr;
  }
}

/* Kur ayarları — sidebar + marj birimi */
.rate-main-row {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.rate-main-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.rate-gear-btn {
  width: 28px;
  height: 24px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  border: 2px outset #fff;
  background: #c0c0c0;
  cursor: pointer;
  flex-shrink: 0;
}

.rate-gear-btn.is-active,
.rate-gear-btn:active {
  border-style: inset;
  background: #dfdfdf;
}

.rate-settings-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #d4d0c8;
  border-right: 2px groove #fff;
  min-height: 0;
  overflow: hidden;
}

.rate-settings-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #c0c0c0;
  color: #000;
  font-size: 11px;
  border-bottom: 1px solid #808080;
  font-weight: bold;
}

.rate-settings-close {
  width: 18px;
  height: 18px;
  padding: 0;
  line-height: 1;
  border: 2px outset #fff;
  background: #c0c0c0;
  color: #000;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.rate-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid #808080;
}

.rate-settings-nav-btn {
  text-align: left;
  padding: 6px 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.rate-settings-nav-btn:hover {
  background: #e0e0e0;
}

.rate-settings-nav-btn.is-active {
  background: #ffffcc;
  color: #000;
  border: 1px solid #000080;
  font-weight: bold;
}

.rate-settings-panel-body {
  flex: 1;
  overflow: auto;
  padding: 8px;
  font-size: 11px;
}

.rate-settings-heading {
  margin: 0 0 8px;
  font-size: 12px;
}

.rate-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.rate-field label {
  font-weight: bold;
}

.rate-input-wide {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 4px 6px;
}

.rate-settings-help {
  margin: 0;
  padding-left: 16px;
  line-height: 1.45;
}

.rate-col-marj {
  width: 132px;
  min-width: 132px;
  white-space: nowrap;
}

.rate-marj-wrap {
  display: grid;
  grid-template-columns: 36px 84px;
  align-items: center;
  gap: 4px;
  width: 124px;
}

.rate-unit-select {
  width: 36px;
  height: 22px;
  padding: 0;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  border: 1px inset #808080;
  background: #fff;
  color: #000;
}

.rate-marj-wrap[data-unit="pct"] .rate-unit-select {
  color: #800000;
}

.rate-marj-wrap .rate-marj-input {
  width: 84px;
  min-width: 0;
  box-sizing: border-box;
  text-align: right;
  color: #000;
}

.rate-marj-wrap[data-unit="pct"] .rate-marj-input {
  color: #800000;
}

.rate-provider-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rate-provider-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: #fff;
  border: 2px outset #fff;
  cursor: pointer;
  font-size: 11px;
}

.rate-provider-card.is-selected {
  border: 2px inset #808080;
  background: #e8f0ff;
}

.rate-provider-card.is-planned {
  opacity: 0.92;
}

.rate-provider-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rate-provider-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rate-provider-title {
  font-weight: bold;
  color: #000080;
}

.rate-provider-badge {
  font-size: 10px;
  padding: 1px 6px;
  background: #c0c0c0;
  border: 1px solid #808080;
}

.rate-provider-card.is-selected .rate-provider-badge {
  background: #ffffcc;
  color: #000;
  border-color: #000080;
  font-weight: bold;
}

.rate-provider-meta,
.rate-provider-endpoint,
.rate-provider-note {
  color: #333;
  font-size: 10px;
  line-height: 1.35;
  word-break: break-all;
}

.rate-provider-note {
  color: #666;
  font-style: italic;
}

.ps-intro {
  margin: 0 0 8px;
  font-size: 10px;
  color: #333;
}

.ps-has {
  color: #000080;
  font-family: Tahoma, 'MS Sans Serif', sans-serif;
  font-size: 11px;
}

.ps-has-sum td {
  background: #e8e8f0;
  font-size: 10px;
  font-weight: bold;
  color: #000080;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #c0c0c0;
}

.ps-break-row td {
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.ps-break-label {
  text-align: right;
  font-weight: bold;
  color: #222;
  padding-right: 12px !important;
}

.ps-break-row.ps-vat td {
  background: #fff8e8;
}

.ps-break-row.ps-paid td {
  background: #d8f0d8;
  border-top: 2px solid #008000;
  font-size: 12px;
}

.ps-break-row.ps-discount .ps-total {
  color: #800000;
}

.product-summary-table tfoot .ps-total {
  white-space: nowrap;
}

.ps-tip-host {
  position: relative;
  cursor: help;
  text-decoration: underline dotted #666;
  text-underline-offset: 2px;
}

.ps-tip {
  display: none;
}

.ps-tip.ps-tip--open {
  display: block;
  position: fixed;
  z-index: 25000;
  min-width: 240px;
  max-width: min(420px, calc(100vw - 24px));
  max-height: min(70vh, 480px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 10px;
  background: #ffffe1;
  color: #000;
  border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  font-size: 10px;
  font-weight: normal;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  line-height: 1.35;
  pointer-events: auto;
  box-sizing: border-box;
}

.ps-tip-title {
  font-weight: bold;
  margin-bottom: 4px;
  color: #000080;
}

.ps-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
  border-bottom: 1px dotted #ccc;
}

.ps-tip-row:last-child {
  border-bottom: none;
}

.ps-break-row.ps-vat .ps-break-label {
  color: #000080;
}

.product-summary .non-excel,
.product-summary .non-excel * {
  color: #c00000 !important;
}

.ps-tip-src {
  font-weight: normal;
  color: #666;
  font-size: 9px;
}

.ps-tip-block {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #ccc;
}

.ps-tip-formula {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  padding: 2px 0;
  line-height: 1.35;
}

.ps-tip-note {
  font-size: 9px;
  color: #444;
  margin: 2px 0 4px;
  font-style: italic;
}

.ps-tip-sum {
  margin-top: 4px;
  font-weight: bold;
}

.ps-break-row.ps-products .ps-break-label {
  color: #000080;
}

.econ-slip {
  background: #fff;
  border: 1px inset #808080;
  padding: 10px;
  color: #000;
  font-size: 11px;
}

.econ-slip-banner {
  background: #ffffcc;
  border: 1px solid #000;
  padding: 6px 8px;
  margin-bottom: 10px;
  font-weight: bold;
}

.econ-slip-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.econ-slip-grid > div {
  flex: 1;
  min-width: 0;
}

.econ-slip-party {
  margin: 8px 0 12px;
  padding: 8px;
  border: 1px solid #808080;
  background: #f8f8f8;
}

.econ-slip-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0;
}

.econ-slip-table th,
.econ-slip-table td {
  border-bottom: 1px solid #ddd;
  padding: 5px 6px;
  text-align: left;
  vertical-align: top;
}

.econ-slip-amt {
  text-align: right !important;
  white-space: nowrap;
  font-family: 'Courier New', Courier, monospace;
}

.econ-slip-meta {
  font-size: 10px;
  color: #444;
  margin-top: 2px;
}

.econ-slip-total td {
  font-weight: bold;
  border-top: 2px solid #000;
  background: #d8f0d8;
}

.econ-slip-vat {
  font-size: 10px;
  color: #333;
  margin: 6px 0;
}

.econ-slip-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

@media print {
  .tabs,
  .econ-slip-actions,
  .title-bar,
  .window-controls {
    display: none !important;
  }
}

.ps-break-row.ps-pos-missing td,
.ps-break-row.ps-pos-derived td {
  background: #fff0f0;
}
.ps-break-row.ps-pos-missing .ps-break-label,
.ps-break-row.ps-pos-derived .ps-break-label {
  color: #c00000;
}
.ps-break-row.ps-pos:not(.ps-pos-missing):not(.ps-pos-derived) td {
  background: #f0f4ff;
}

/* Sipariş Express kartları */
body.theme-win95 .express-card {
  background: #fff;
  border: 2px inset #808080;
}

body.theme-win95 .express-card-head {
  background: #dfdfdf;
  border-bottom: 1px solid #808080;
}

body.theme-win95 .express-card:hover,
body.theme-win95 .express-card:focus-visible {
  outline: 2px dotted #000080;
  outline-offset: -2px;
}

body.theme-win95 .express-card--flash {
  background: #ffffe8;
}

.express-card-body .product-summary-table td.ps-detail,
.express-card-body .product-summary-table td.ps-rate,
.express-card-body .product-summary-table td.ps-total {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
