@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
  --blue: #00baff;
  --light-blue: #4fd8ff;
  --bg-dark: #07121f;
  --bg-panel: rgba(255,255,255,0.05);
  --border-glow: rgba(0,186,255,0.4);
  --site-grid-width: 100%;
  --site-grid-max-width: 100%;
  --graph-fixed-height: 380px;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: linear-gradient(135deg, var(--bg-dark), #0b243b);
  color: #e0f7ff;
  overflow-x: hidden;
  overflow-y: auto;
}

body.auth-locked {
  overflow: hidden;
}

.app-shell.is-hidden {
  display: none;
}

/* === TOP BAR === */
.topbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 6px 10px 10px;
  background: rgba(8, 25, 40, 0.96);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 0 15px rgba(0,186,255,0.2);
}

.topbar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.topbar-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 210px;
  padding: 6px 10px 6px 12px;
  border-left: 3px solid #00baff;
  background: rgba(0, 186, 255, 0.06);
  border-radius: 8px;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.topbar-title-block:hover {
  background: rgba(0, 186, 255, 0.1);
  border-left-color: #4fd8ff;
  box-shadow: inset 0 0 0 1px rgba(0, 186, 255, 0.2);
}

.topbar-title-block:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(0, 186, 255, 0.3),
    0 0 0 2px rgba(79, 216, 255, 0.4);
}

.topbar-title {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #7de7ff;
  text-transform: uppercase;
}

.topbar-subtitle {
  display: none;
}

.topbar-title-pulse {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  display: inline-block;
  border-radius: 999px;
  animation: topbar-title-pulse 2s ease-in-out infinite;
}

.pulse-green {
  width: 20px;
  height: 20px;
  background: #73e5c5;
  box-shadow: 0 0 14px rgba(115, 229, 197, 0.45);
  animation-delay: 0s;
}

.pulse-red {
  width: 16px;
  height: 16px;
  background: #f27d96;
  box-shadow: 0 0 12px rgba(242, 125, 150, 0.42);
  animation-delay: 0.12s;
}

.pulse-orange {
  width: 13px;
  height: 13px;
  background: #ffb184;
  box-shadow: 0 0 11px rgba(255, 177, 132, 0.4);
  animation-delay: 0.24s;
}

.pulse-blue {
  width: 10px;
  height: 10px;
  background: #7edfff;
  box-shadow: 0 0 10px rgba(126, 223, 255, 0.45);
  animation-delay: 0.36s;
}

.topbar-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.topbar-summary-card {
  position: relative;
  overflow: hidden;
  padding: 11px 14px;
  border: 1px solid rgba(0, 186, 255, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(11, 51, 78, 0.72), rgba(8, 38, 62, 0.66));
  box-shadow: inset 0 0 0 1px rgba(0, 186, 255, 0.08);
}

.topbar-summary-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 0%,
    transparent 38%,
    rgba(173, 235, 255, 0.16) 50%,
    transparent 62%,
    transparent 100%);
  transform: translateX(-120%);
  animation: topbar-skeleton-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

.topbar-summary-label {
  position: relative;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.7px;
  font-weight: 700;
  color: #7fafc8;
  margin-bottom: 6px;
}

.topbar-summary-value {
  position: relative;
  z-index: 2;
  font-size: 33px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.topbar-summary-wave {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 28px;
  height: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 3px;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
  color: #00d4ff;
}

.topbar-summary-wave span {
  width: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  opacity: 0.88;
  transform-origin: bottom center;
  animation: topbar-wave-bars 1.6s ease-in-out infinite;
}
.topbar-summary-wave span:nth-child(1) { height: 12px; animation-delay: 0s; }
.topbar-summary-wave span:nth-child(2) { height: 16px; animation-delay: 0.12s; }
.topbar-summary-wave span:nth-child(3) { height: 19px; animation-delay: 0.24s; }
.topbar-summary-wave span:nth-child(4) { height: 14px; animation-delay: 0.36s; }
.topbar-summary-wave span:nth-child(5) { height: 9px; animation-delay: 0.48s; }

.topbar-summary-value.metric-value-cyan + .topbar-summary-wave {
  color: #00d4ff;
}

.topbar-summary-value.metric-value-orange + .topbar-summary-wave {
  color: #ff8a65;
}

.topbar-summary-value.metric-value-green + .topbar-summary-wave {
  color: #06d6a0;
}

.topbar-summary-value.metric-value-red + .topbar-summary-wave {
  color: #ef476f;
}

@keyframes topbar-skeleton-shimmer {
  0% { transform: translateX(-120%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes topbar-wave-bars {
  0%, 100% { transform: scaleY(0.65); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes topbar-title-pulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}
.metric-value-cyan {
  color: #00d4ff;
}

.metric-value-orange {
  color: #ff8a65;
}

.metric-value-green {
  color: #06d6a0;
}

.metric-value-red {
  color: #ef476f;
}

/* === MAIN LAYOUT === */
.main {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 20px;
  padding: 20px;
  overflow: hidden;
  min-height: 0;
  
}

.page-area {
  flex: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.page-view {
  width: 100%;
  display: none;
  gap: 20px;
  flex-wrap: wrap;
}

.page-view.active {
  display: flex;
}

.site-workspace {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.sidebar, .content {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,186,255,0.15);
  backdrop-filter: blur(15px);
}
.sidebar {
  border: 1px solid rgba(79,216,255,0.2);
}

/* === FIELDSETS === */
fieldset {
  border: 1px solid rgba(0,186,255,0.3);
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 30, 50, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
legend {
  color: var(--light-blue);
  font-weight: bold;
  text-shadow: 0 0 5px rgba(79,216,255,0.4);
}
.input-group {
  display: flex;
    flex: 1 1 50%;
    margin: 0;
  }
  .input-group input, .input-group select {
    flex: 1 1 50%;
  }

label {
  font-weight: 600;
  color: #c9f3ff;
  font-size: 14px;
  margin-bottom: 4px;
}
input, select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,186,255,0.4);
  background: rgba(255,255,255,0.08);
  color: #cce8ff;
}

select {
  background: #112236;
  color: #cce8ff;
}

select option {
  background: #112236;
  color: #cce8ff;
}

select option:checked {
  background: #1a3a5c;
  color: #fff;
}
input[readonly] {
  cursor: pointer;
  opacity: 0.7;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
}
th, td { padding: 10px; text-align: right; }
th { background: rgba(0,186,255,0.2); color: var(--blue); }
td { background: rgba(255,255,255,0.05); }

.error {
  color: #ff7675;
  font-weight: bold;
  padding: 15px;
  background: rgba(255,50,50,0.1);
  border: 1px solid rgba(255,50,50,0.3);
  border-radius: 12px;
  margin-top: 20px;
  text-shadow: 0 0 6px rgba(255,100,100,0.4);
}

canvas {
  background: rgba(0, 20, 40, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,186,255,0.15);
  margin-top: 20px;
}

.graph-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.graph-card {
  border: 1px solid rgba(0,186,255,0.25);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 30, 50, 0.25);
}

.graph-card h2 {
  margin-bottom: 8px;
}

.table-card {
  border: 1px solid rgba(0,186,255,0.25);
  border-radius: 12px;
  padding: 0px;
  background: rgba(0, 30, 50, 0.25);
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.mutabakat-table {
  width: 100%;
  min-width: 1380px;
  border-collapse: collapse;
  margin: 0;
  table-layout: auto;
}

.mutabakat-table th,
.mutabakat-table td {
  padding: clamp(6px, 0.75vw, 10px) clamp(6px, 0.85vw, 12px);
  border: 1px solid rgba(0,186,255,0.15);
  white-space: nowrap;
  font-size: clamp(9px, 0.62vw, 13px);
  font-variant-numeric: tabular-nums;
}

.mutabakat-table thead th {
  background: rgba(0,186,255,0.22);
  color: #d5f2ff;
  font-size: 13px;
  text-align: right;
}

.mutabakat-table thead th:first-child {
  text-align: left;
  width: 16%;
}

.mutabakat-table thead th.col-actions,
.mutabakat-table tbody td.col-actions {
  text-align: center;
  width: 112px;
  min-width: 112px;
}

.hidden-column {
  display: none !important;
}

/* Kısıtlı sütun modunda tablo genişliği içeriğe göre ayarlanır */
.mutabakat-table.cols-restricted {
  display: inline-table;
  width: max-content;
  min-width: 0;
  max-width: none;
}

.mutabakat-table.cols-restricted .col-name {
  width: 200px;
  min-width: 120px;
  white-space: nowrap;
}

.mutabakat-table.cols-restricted thead th:first-child {
  width: 200px;
}

.mutabakat-table.cols-restricted thead th.col-actions,
.mutabakat-table.cols-restricted tbody td.col-actions {
  width: 112px;
  min-width: 112px;
}

.mutabakat-table.cols-restricted td,
.mutabakat-table.cols-restricted th {
  width: auto;
  white-space: nowrap;
}

.mutabakat-table tbody td {
  text-align: right;
  color: #d9f4ff;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  text-overflow: ellipsis;
}

.mutabakat-table tbody td.col-name {
  text-align: left;
  color: #9fe9ff;
  font-weight: 600;
}

.pnl-year-toolbar {
  justify-content: flex-start;
}

.pnl-year-field {
  min-width: 170px;
  max-width: 220px;
}

.pnl-year-field label {
  display: block;
  margin-bottom: 4px;
  color: #9fdfff;
  font-size: 12px;
  font-weight: 600;
}

#pnlYearSelect {
  width: 100%;
}

#pnlMonthSelect {
  width: 100%;
}

.pnl-table-title {
  margin: 10px 12px 0;
  font-size: 14px;
  color: #9fdfff;
}

.mutabakat-table.pnl-table {
  min-width: 760px;
}

.mutabakat-table.pnl-table thead th,
.mutabakat-table.pnl-table tbody td {
  min-width: 150px;
}

#pnlGelirTable thead th:nth-child(1),
#pnlGelirTable tbody td:nth-child(1) {
  min-width: 190px;
  text-align: left;
}

#pnlGelirTable thead th:nth-child(n+2),
#pnlGelirTable tbody td:nth-child(n+2) {
  text-align: right;
}

#pnlGelirTable .pnl-profit.positive {
  color: #06d6a0;
}

#pnlGelirTable .pnl-profit.negative {
  color: #ff6b6b;
}

#pnlGiderTable thead th:nth-child(1),
#pnlGiderTable tbody td:nth-child(1) {
  min-width: 220px;
  text-align: left;
}

#pnlGiderTable thead th:nth-child(2),
#pnlGiderTable tbody td:nth-child(2) {
  min-width: 220px;
  text-align: left;
}

#pnlGiderTable thead th:nth-child(3),
#pnlGiderTable tbody td:nth-child(3) {
  min-width: 140px;
  text-align: right;
}

#pnlGiderTable thead th:nth-child(4),
#pnlGiderTable tbody td:nth-child(4) {
  min-width: 220px;
  text-align: left;
}

/* PNL Gider - kategori grup satırı */
.mutabakat-table tr.pnl-cat-header td {
  background: rgba(0, 130, 200, 0.12);
  padding: 6px 12px;
  border-top: 1px solid rgba(0,186,255,0.25);
}
.pnl-cat-label {
  font-weight: 700;
  color: #9fdfff;
  font-size: 13px;
  letter-spacing: 0.4px;
}
.pnl-cat-subtotal {
  float: right;
  font-weight: 600;
  color: #ff8a65;
  font-size: 12px;
}

/* PNL Gider - detay satırı */
.mutabakat-table tr.pnl-detail-row td {
  padding: 5px 10px;
  font-size: 13px;
  color: #c8d8e8;
}
.pnl-detail-indent {
  width: 24px;
  min-width: 0 !important;
}
.pnl-tutar {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #ffd166;
  white-space: nowrap;
}
.pnl-not {
  color: #7a9db0;
  font-size: 12px;
}

/* PNL genel toplam satırı */
.mutabakat-table tr.pnl-grand-total td {
  background: rgba(0, 60, 100, 0.25);
  border-top: 1px solid rgba(0,186,255,0.35);
  padding: 7px 12px;
  color: #e0f4ff;
  font-size: 13px;
}
.mutabakat-table tr.pnl-grand-total .pnl-tutar {
  color: #ff6b6b;
  font-size: 14px;
}

/* PNL Gelir - özet kart grid */
.pnl-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 12px 18px;
}
.pnl-metric-card {
  flex: 1 1 140px;
  background: rgba(0, 50, 90, 0.45);
  border: 1px solid rgba(0, 186, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 130px;
  max-width: 220px;
}
.pnl-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: #7fafc8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.pnl-metric-value {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.single-graph-card {
  margin-top: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: var(--graph-fixed-height);
  display: flex;
  flex-direction: column;
}

.annual-candle-card {
  margin-top: 14px;
}

.annual-graph-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.annual-year-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.annual-year-picker label {
  color: #9fdfff;
  font-size: 12px;
  font-weight: 600;
}

.annual-year-picker select {
  min-width: 84px;
  max-width: 128px;
  background: rgba(10, 26, 43, 0.95);
  border: 1px solid var(--border-glow);
  color: #d9f4ff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
}

.graph-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.graph-head h2 {
  margin: 0;
  border-bottom: 0;
  flex: 1 1 220px;
}

.graph-controls {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.compact-graph-controls .method-picker,
.compact-graph-controls .graph-picker {
  width: 170px;
  max-width: 170px;
  padding: 6px 8px;
}

.compact-graph-controls .method-picker summary,
.compact-graph-controls .graph-picker summary {
  font-size: 12px;
}

.method-picker,
.graph-picker {
  position: relative;
  min-width: 0;
  width: clamp(220px, 24vw, 300px);
  max-width: 100%;
  border: 1px solid rgba(0,186,255,0.3);
  border-radius: 10px;
  background: rgba(0, 20, 40, 0.42);
  padding: 8px 10px;
}

.method-picker summary,
.graph-picker summary {
  cursor: pointer;
  list-style: none;
  color: #c9f3ff;
  font-weight: 600;
}

.method-picker summary::-webkit-details-marker,
.graph-picker summary::-webkit-details-marker {
  display: none;
}

.method-picker summary::after,
.graph-picker summary::after {
  content: "▾";
  float: right;
  color: #4fd8ff;
}

.method-picker[open] summary::after,
.graph-picker[open] summary::after {
  content: "▴";
}

.method-picker-options {
  margin-top: 0;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(0,186,255,0.3);
  border-radius: 10px;
  background: rgba(3, 22, 38, 0.96);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  max-height: 200px;
  overflow-y: auto;
}

.method-option {
  width: 100%;
  border: 1px solid rgba(0,186,255,0.25);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #c9f3ff;
  text-align: left;
  padding: 7px 9px;
  font-size: 13px;
  cursor: pointer;
}

.method-option:hover {
  background: rgba(0,186,255,0.16);
  border-color: rgba(0,186,255,0.4);
}

.graph-picker-options {
  margin-top: 0;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  padding: 8px 10px;
  border: 1px solid rgba(0,186,255,0.3);
  border-radius: 10px;
  background: rgba(3, 22, 38, 0.96);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.graph-picker-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #c9f3ff;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.graph-picker-options input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #00baff;
  flex: 0 0 auto;
}

#mutabakatChart {
  margin-top: 12px;
  min-height: 0;
  height: 100% !important;
  flex: 1 1 auto;
}

/* === MUTABAKAT BUTTONS === */
.mutabakat-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn-mutabik {
  padding: 12px 32px;
  font-weight: bold;
  font-size: 16px;
  background: linear-gradient(90deg, #00b347, #00e676);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,200,100,0.3);
}
.btn-mutabik:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,230,118,0.6);
}
.btn-mutabik-degil {
  padding: 12px 32px;
  font-weight: bold;
  font-size: 16px;
  background: linear-gradient(90deg, #cc0000, #ff4444);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(255,50,50,0.3);
}
.btn-mutabik-degil:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255,70,70,0.6);
}

.duzenle-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.btn-duzenle {
  padding: 10px 28px;
  font-weight: bold;
  font-size: 15px;
  background: linear-gradient(90deg, #007aff, #00baff);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,186,255,0.3);
}

.btn-duzenle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,186,255,0.6);
}

.btn-row-edit {
  width: 100%;
  max-width: 112px;
  padding: 6px 10px;
  border: 1px solid rgba(0,186,255,0.35);
  border-radius: 8px;
  background: rgba(0, 50, 80, 0.7);
  color: #d5f2ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-row-edit:hover {
  background: rgba(0, 110, 170, 0.55);
}

.table-totals-row td {
  background: rgba(0, 60, 110, 0.55);
  border-top: 2px solid rgba(0, 186, 255, 0.45);
  color: #e0f4ff;
  font-size: 13px;
}
.table-totals-row td[data-field="guncelKasa"] strong {
  color: #06d6a0;
}
.table-totals-row td[data-field="cekimToplam"] strong,
.table-totals-row td[data-field="cekimKom"] strong,
.table-totals-row td[data-field="kasaCikisi"] strong,
.table-totals-row td[data-field="gider"] strong {
  color: #ff8a65;
}

.btn-row-edit:disabled,
.btn-row-delete:disabled,
.btn-excel:disabled,
.btn-modal-save:disabled,
.btn-topbar-password:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.commission-log-card {
  margin-top: 10px;
}

.search-filter-section {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	padding: 0 10px;
}

.log-search-input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid rgba(0, 186, 255, 0.3);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	font-size: 14px;
}

.log-search-input:focus {
	outline: none;
	border-color: rgba(0, 186, 255, 0.7);
	background: rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 8px rgba(0, 186, 255, 0.3);
}

.log-search-input::placeholder {
	color: rgba(159, 223, 255, 0.5);
}

.btn-clear-search {
	padding: 8px 16px;
	background: rgba(0, 186, 255, 0.15);
	border: 1px solid rgba(0, 186, 255, 0.3);
	border-radius: 4px;
	color: #9fdfff;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.btn-clear-search:hover {
	background: rgba(0, 186, 255, 0.25);
	border-color: rgba(0, 186, 255, 0.6);
	color: #fff;
}

.btn-clear-search:active {
	transform: scale(0.98);
}

.daily-site-log-card {
	margin-top: 30px;
  position: relative;
  overflow: visible;
}

.daily-site-log-card h3 {
	margin: 0 0 12px 10px;
	color: #9fdfff;
	font-weight: 500;
	font-size: 16px;
}

.daily-log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 0;
}

.daily-log-head h3 {
  margin: 0;
}

.btn-log-excel {
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

#dailySiteLogTable thead th,
#dailySiteLogTable tbody td {
  padding: 8px 10px;
  font-size: 13px;
}

#dailySiteLogTable thead th:last-child,
#dailySiteLogTable tbody td:last-child {
  min-width: 120px;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Log Gelir/Gider Tabları --- */
.log-tabs {
	display: flex;
	gap: 0;
	margin: 0 0 14px 0;
	border-bottom: 1px solid rgba(0, 186, 255, 0.2);
}

.log-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
	padding: 8px 24px;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	color: rgba(159, 223, 255, 0.5);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	letter-spacing: 0.3px;
}

#siteLogTabGelir::before,
#siteLogTabGider::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: log-tab-bracket-breathe 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px currentColor);
  opacity: 0.95;
}

#siteLogTabGelir {
  color: #7ce7b1;
}

#siteLogTabGelir::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306d6a0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V6'/%3E%3Cpath d='M3.5 6h17'/%3E%3Ccircle cx='12' cy='12.5' r='2.4'/%3E%3C/svg%3E");
}

#siteLogTabGider {
  color: #ff8f8f;
}

#siteLogTabGider::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef476f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V6'/%3E%3Cpath d='M3.5 6h17'/%3E%3Ccircle cx='12' cy='12.5' r='2.4'/%3E%3C/svg%3E");
  animation-delay: 0.2s;
}

.log-tab:hover {
	color: #9fdfff;
}

.log-tab.active {
	color: #9fdfff;
	border-bottom-color: #00baff;
}

#siteLogTabGelir.active {
  color: #9df3c8;
}

#siteLogTabGider.active {
  color: #ffb0b0;
}

@keyframes log-tab-bracket-breathe {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.log-th-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-col-filter {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(0, 186, 255, 0.35);
  background: rgba(0, 186, 255, 0.12);
  color: #9fdfff;
  border-radius: 6px;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.btn-col-filter::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 0;
  border-bottom: 6px solid currentColor;
}

.btn-col-filter::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
}

.btn-col-filter:hover {
  background: rgba(0, 186, 255, 0.22);
  color: #fff;
}

.btn-col-filter.active {
  background: rgba(255, 166, 0, 0.2);
  border-color: rgba(255, 166, 0, 0.5);
  color: #ffd89a;
}

.daily-filter-popup {
  position: absolute;
  z-index: 210;
  min-width: 280px;
  max-width: 320px;
  max-height: 320px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(0, 186, 255, 0.35);
  border-radius: 10px;
  background: rgba(5, 24, 40, 0.96);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.daily-filter-popup.open {
  display: flex;
}

.daily-filter-head {
  font-size: 13px;
  font-weight: 700;
  color: #bfeeff;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 186, 255, 0.18);
}

.daily-filter-actions-row {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.btn-filter-mini,
.btn-filter-sort,
.btn-filter-apply,
.btn-filter-clear {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-filter-mini {
  border: 1px solid rgba(0, 186, 255, 0.35);
  background: rgba(0, 186, 255, 0.12);
  color: #9fdfff;
}

.btn-filter-mini:hover {
  background: rgba(0, 186, 255, 0.22);
  color: #fff;
}

.btn-filter-sort {
  border: 1px solid rgba(0, 186, 255, 0.35);
  background: rgba(0, 186, 255, 0.1);
  color: #9fdfff;
}

.btn-filter-sort:hover {
  background: rgba(0, 186, 255, 0.2);
  color: #fff;
}

.btn-filter-sort.active {
  background: rgba(255, 166, 0, 0.2);
  border-color: rgba(255, 166, 0, 0.55);
  color: #ffd89a;
}

.btn-filter-apply {
  border: 1px solid rgba(0, 186, 255, 0.5);
  background: rgba(0, 186, 255, 0.2);
  color: #d9f7ff;
}

.btn-filter-apply:hover {
  background: rgba(0, 186, 255, 0.32);
  color: #fff;
}

.btn-filter-clear {
  border: 1px solid rgba(255, 126, 126, 0.45);
  background: rgba(255, 92, 92, 0.14);
  color: #ffc0c0;
}

.btn-filter-clear:hover {
  background: rgba(255, 92, 92, 0.24);
  color: #fff;
}

.daily-filter-list {
  overflow: auto;
  max-height: 180px;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.daily-filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cdefff;
  padding: 3px 4px;
  border-radius: 6px;
}

.daily-filter-item:hover {
  background: rgba(0, 186, 255, 0.08);
}

.daily-filter-item input {
  accent-color: #00baff;
}

.gider-select-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gider-row {
	display: flex;
	gap: 6px;
	align-items: center;
}

.btn-gider-plus {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	background: rgba(0, 186, 255, 0.18);
	border: 1px solid rgba(0, 186, 255, 0.4);
	border-radius: 4px;
	color: #9fdfff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-gider-plus:hover {
	background: rgba(0, 186, 255, 0.35);
	color: #fff;
}

.gider-new-input-wrap {
	display: flex;
	gap: 6px;
	align-items: center;
}

.gider-new-input-wrap input {
	flex: 1;
	padding: 6px 10px;
	border: 1px solid rgba(0, 186, 255, 0.3);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	font-size: 13px;
}

.gider-new-input-wrap input:focus {
	outline: none;
	border-color: rgba(0, 186, 255, 0.7);
}

.btn-gider-add {
	padding: 5px 12px;
	background: rgba(0, 186, 255, 0.2);
	border: 1px solid rgba(0, 186, 255, 0.45);
	border-radius: 4px;
	color: #9fdfff;
	font-size: 12px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
}

.btn-gider-add:hover {
	background: rgba(0, 186, 255, 0.35);
	color: #fff;
}

.btn-gider-cancel {
	padding: 5px 10px;
	background: rgba(255, 80, 80, 0.12);
	border: 1px solid rgba(255, 80, 80, 0.3);
	border-radius: 4px;
	color: #ff9999;
	font-size: 12px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
}

.btn-gider-cancel:hover {
	background: rgba(255, 80, 80, 0.25);
	color: #fff;
}

/* --- Gider arama + liste-select --- */
.gider-search-input {
	width: 100%;
	padding: 6px 10px;
	border: 1px solid rgba(0, 186, 255, 0.3);
	border-radius: 4px 4px 0 0;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 13px;
	outline: none;
	box-sizing: border-box;
}

.gider-search-input:focus {
	border-color: rgba(0, 186, 255, 0.7);
}

.gider-search-input::placeholder {
	color: rgba(159, 223, 255, 0.45);
}

.gider-list-select {
	width: 100%;
	padding: 4px 6px;
	border: 1px solid rgba(0, 186, 255, 0.3);
	border-top: none;
	border-radius: 0 0 4px 4px;
	background: rgba(0, 0, 0, 0.3);
	color: #9fdfff;
	font-size: 13px;
	outline: none;
	overflow-y: auto;
	cursor: pointer;
}

.gider-list-select option {
	padding: 4px 6px;
	background: #192840;
	color: #9fdfff;
}

.gider-list-select option:checked,
.gider-list-select option:hover {
	background: rgba(0, 186, 255, 0.25);
	color: #fff;
}

/* --- Modal: Liste butonu --- */
.btn-modal-liste {
	padding: 7px 16px;
	background: rgba(255, 170, 0, 0.15);
	border: 1px solid rgba(255, 170, 0, 0.4);
	border-radius: 6px;
	color: #ffd080;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
}

.btn-modal-liste:hover {
	background: rgba(255, 170, 0, 0.28);
	color: #fff;
}

/* --- Gider Liste Yönetim Modali --- */
.gider-liste-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 12px;
	border-bottom: 1px solid rgba(0, 186, 255, 0.2);
}

.gider-liste-tab {
	flex: 1;
	padding: 8px;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	color: rgba(159, 223, 255, 0.55);
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
}

.gider-liste-tab:hover {
	color: #9fdfff;
}

.gider-liste-tab.active {
	color: #9fdfff;
	border-bottom-color: #00baff;
}

.gider-liste-content {
	max-height: 260px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 14px;
}

.gider-liste-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 10px;
	background: rgba(0, 186, 255, 0.06);
	border: 1px solid rgba(0, 186, 255, 0.12);
	border-radius: 4px;
	gap: 8px;
}

.gider-liste-row span {
	color: #9fdfff;
	font-size: 13px;
}

.btn-gider-delete {
	padding: 3px 10px;
	background: rgba(255, 60, 60, 0.12);
	border: 1px solid rgba(255, 60, 60, 0.3);
	border-radius: 4px;
	color: #ff9999;
	font-size: 12px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
	flex-shrink: 0;
}

.btn-gider-delete:hover {
	background: rgba(255, 60, 60, 0.28);
	color: #fff;
}

.note-preview {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  color: #cfefff;
  cursor: help;
  font-size: 11px;
}

.kasa-cikisi-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.komisyonlu-badge {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 166, 0, 0.18);
  border: 1px solid rgba(255, 166, 0, 0.5);
  color: #ffd89a;
}

.amount-secondary {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(159, 223, 255, 0.7);
}

.daily-log-total-row td {
  background: rgba(0, 186, 255, 0.12) !important;
  font-weight: 700;
  color: #d9f6ff;
  border-top: 1px solid rgba(0, 186, 255, 0.5);
}

.daily-log-total-row td:first-child {
  text-align: left;
}

.log-pagination {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 10px 10px 4px;
}

.log-pager-btn {
	padding: 5px 14px;
	background: rgba(0, 186, 255, 0.12);
	border: 1px solid rgba(0, 186, 255, 0.3);
	border-radius: 4px;
	color: #9fdfff;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.log-pager-btn:hover:not(:disabled) {
	background: rgba(0, 186, 255, 0.25);
	border-color: rgba(0, 186, 255, 0.65);
	color: #fff;
}

.log-pager-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.log-pager-info {
	font-size: 12px;
	color: rgba(159, 223, 255, 0.7);
	min-width: 90px;
	text-align: center;
}

.log-status-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.log-cancelled-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #ffd9d9;
  background: rgba(255, 92, 92, 0.18);
  border: 1px solid rgba(255, 92, 92, 0.34);
}

.daily-site-log-card .mutabakat-table tbody tr.daily-log-row-cancelled td {
  background: linear-gradient(0deg, rgba(255, 92, 92, 0.12), rgba(255, 92, 92, 0.12)), rgba(255,255,255,0.04);
  border-color: rgba(255, 92, 92, 0.24);
}

.daily-site-log-card .mutabakat-table tbody tr.daily-log-row-cancelled td:first-child {
  box-shadow: inset 2px 0 0 rgba(255, 122, 122, 0.7);
}

.daily-site-log-card .mutabakat-table tbody tr.daily-log-row-cancelled .col-name {
  color: #ffd2d2;
}

.log-status-text {
  font-size: 12px;
  color: #9fdfff;
}

.btn-log-action {
  border: 1px solid rgba(0,186,255,0.35);
  background: rgba(0, 50, 80, 0.7);
  color: #d5f2ff;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  cursor: pointer;
}

.btn-log-action[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.correction-choice {
  border: 1px solid rgba(0,186,255,0.2);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: 0.2s;
}

.correction-choice:hover {
  border-color: rgba(0,186,255,0.45);
  background: rgba(0,186,255,0.08);
}

.correction-choice.selected {
  border-color: rgba(0,186,255,0.85);
  background: rgba(0,186,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(0,186,255,0.45);
}

.correction-choice input {
  cursor: text;
}

.correction-choice[data-mode="negative"] {
  border-color: rgba(255, 118, 118, 0.35);
  background: rgba(255, 96, 96, 0.08);
}

.correction-choice[data-mode="negative"]:hover {
  border-color: rgba(255, 128, 128, 0.55);
  background: rgba(255, 96, 96, 0.14);
}

.correction-choice[data-mode="negative"].selected {
  border-color: rgba(255, 138, 138, 0.85);
  background: rgba(255, 96, 96, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 148, 148, 0.5);
}

.kasa-cikis-type-wrap {
  margin-top: 10px;
}

.kasa-cikis-type-options {
  display: flex;
  gap: 8px;
}

.kasa-cikis-type-option {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 186, 255, 0.3);
  background: rgba(0, 186, 255, 0.08);
  color: #bdeeff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.kasa-cikis-type-option:hover {
  background: rgba(0, 186, 255, 0.16);
  color: #fff;
}

.kasa-cikis-type-option.active {
  border-color: rgba(255, 166, 0, 0.6);
  background: rgba(255, 166, 0, 0.18);
  color: #ffe0aa;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 20, 0.58);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 20px;
  box-sizing: border-box;
}

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

.modal-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(0,186,255,0.35);
  border-radius: 14px;
  background: rgba(5, 28, 46, 0.98);
  box-shadow: 0 16px 30px rgba(0,0,0,0.45);
  padding: 16px;
}

.modal-card h3 {
  margin: 0 0 12px;
  color: #7de7ff;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.modal-field label {
  margin: 0;
  color: #bde3ff;
}

.modal-field select,
.modal-field input {
  width: 100%;
  box-sizing: border-box;
}

.modal-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,186,255,0.4);
  background: rgba(255,255,255,0.08);
  color: #fff;
  resize: vertical;
  min-height: 72px;
}

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

.btn-modal-cancel,
.btn-modal-save {
  min-width: 92px;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(0,186,255,0.35);
  font-weight: 600;
  cursor: pointer;
}

.btn-modal-cancel {
  background: rgba(255,255,255,0.08);
  color: #d8f2ff;
}

.btn-modal-save {
  background: linear-gradient(90deg, #007aff, #00baff);
  color: #fff;
}

/* === FIXED MENU === */
.side-nav {
  flex: 0 0 250px;
  max-width: 250px;
  min-height: 100%;
  align-self: stretch;
  padding: 10px;
}

.fixed-menu {
  margin-top: 0;
  padding: 12px 10px 14px;
  border: 1px solid rgba(0,186,255,0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(7, 35, 58, 0.74), rgba(4, 25, 42, 0.82));
  flex: 1;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 0 0 1px rgba(0, 186, 255, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.22);
}

.menu-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.filter-btn {
  width: 100%;
  padding: 10px 10px;
  text-align: left;
  border: 1px solid rgba(0,186,255,0.35);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #c9f3ff;
  font-size: 14px;
  cursor: pointer;
}

.filter-btn span {
  float: right;
  color: var(--light-blue);
}

.fixed-menu h3 {
  margin: 0 2px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--light-blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

.menu-title-grid {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background:
    radial-gradient(circle, #9beaff 32%, transparent 34%) 0 0 / 33.333% 33.333% repeat;
  filter: drop-shadow(0 0 4px rgba(125, 231, 255, 0.6));
  animation: menu-title-grid-breathe 2.6s ease-in-out infinite;
}

.fixed-menu h3::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 186, 255, 0.55), rgba(0, 186, 255, 0));
}

.menu-item {
  border: 1px solid rgba(0,186,255,0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  margin-bottom: 6px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.menu-item:last-child {
  margin-bottom: 0;
}

.menu-item:hover {
  border-color: rgba(0, 186, 255, 0.42);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.menu-item[open] {
  border-color: rgba(0, 186, 255, 0.46);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

.menu-item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  cursor: pointer;
  font-weight: 700;
  color: #cdefff;
  font-size: 14px;
  line-height: 1.2;
  list-style: none;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

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

.menu-item summary::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #63ddff;
  font-size: 11px;
  transition: transform 0.2s ease;
}

.menu-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.menu-item summary.menu-link::after,
.menu-item summary.menu-logout-link::after {
  content: '';
}

.menu-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #8fe6ff;
}

.menu-icon svg {
  width: 100%;
  height: 100%;
}

.menu-icon-gear {
  color: #93e8ff;
  animation: menu-gear-spin 3.4s linear infinite;
  transform-origin: center;
}

.menu-icon-logout {
  color: #a9edff;
}

.menu-icon-shine {
  overflow: hidden;
  border-radius: 4px;
}

.menu-icon-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 0%,
    transparent 38%,
    rgba(230, 248, 255, 0.9) 50%,
    transparent 62%,
    transparent 100%);
  transform: translateX(-130%);
  animation: menu-icon-shine-pass 2.9s ease-in-out infinite;
  pointer-events: none;
}

.menu-finans-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 17px;
  height: 12px;
  margin-right: 2px;
  color: #62ddff;
  opacity: 0.95;
  pointer-events: none;
}

.menu-finans-wave span {
  width: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  transform-origin: bottom center;
  animation: topbar-wave-bars 1.7s ease-in-out infinite;
}

.menu-finans-wave span:nth-child(1) { height: 7px; animation-delay: 0s; }
.menu-finans-wave span:nth-child(2) { height: 10px; animation-delay: 0.1s; }
.menu-finans-wave span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.menu-finans-wave span:nth-child(4) { height: 9px; animation-delay: 0.3s; }
.menu-finans-wave span:nth-child(5) { height: 6px; animation-delay: 0.4s; }

@keyframes menu-gear-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes menu-icon-shine-pass {
  0% { transform: translateX(-130%); }
  56% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

@keyframes menu-sub-wave {
  0%, 100% {
    opacity: 0.62;
    filter: brightness(0.95);
  }
  50% {
    opacity: 1;
    filter: brightness(1.2);
  }
}

@keyframes menu-title-grid-breathe {
  0%, 100% {
    transform: scale(0.9) rotate(0deg);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.05) rotate(6deg);
    opacity: 1;
  }
}

.menu-item ul {
  margin: 0;
  padding: 2px 8px 10px 12px;
  border-top: 1px solid rgba(0,186,255,0.14);
}

.menu-item li {
  position: relative;
  color: #bde3ff;
  margin: 6px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(0,186,255,0.14);
  border-radius: 6px;
  padding: 8px 10px 8px 30px;
  background: rgba(255,255,255,0.02);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.finans-menu-item li::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 50%;
  width: 14px;
  height: 10px;
  background:
    linear-gradient(#8fe6ff, #8fe6ff) 0 4px / 2px 6px no-repeat,
    linear-gradient(#8fe6ff, #8fe6ff) 3px 2px / 2px 8px no-repeat,
    linear-gradient(#8fe6ff, #8fe6ff) 6px 1px / 2px 9px no-repeat,
    linear-gradient(#8fe6ff, #8fe6ff) 9px 3px / 2px 7px no-repeat,
    linear-gradient(#8fe6ff, #8fe6ff) 12px 5px / 2px 5px no-repeat;
  border-radius: 2px;
  transform: translateY(-50%);
  opacity: 0.88;
  animation: menu-sub-wave 1.7s ease-in-out infinite;
}

.finans-menu-item li:nth-child(2)::before { animation-delay: 0.1s; }
.finans-menu-item li:nth-child(3)::before { animation-delay: 0.2s; }
.finans-menu-item li:nth-child(4)::before { animation-delay: 0.3s; }
.finans-menu-item li:nth-child(5)::before { animation-delay: 0.4s; }

.menu-item li:hover {
  background: rgba(0, 186, 255, 0.14);
  border-color: rgba(0, 186, 255, 0.32);
  color: #e9f9ff;
  transform: translateX(2px);
}

.menu-item li.active {
  color: #eaf9ff;
  background: linear-gradient(90deg, rgba(0, 186, 255, 0.22), rgba(0, 186, 255, 0.1));
  border-color: rgba(0, 186, 255, 0.52);
  box-shadow: inset 2px 0 0 rgba(0, 212, 255, 0.9);
}

.menu-item summary.menu-link:hover {
  background: rgba(0, 186, 255, 0.12);
  padding-left: 14px;
}

.menu-item summary.menu-link.active {
  color: #eaf9ff;
  background: linear-gradient(90deg, rgba(0, 186, 255, 0.24), rgba(0, 186, 255, 0.1));
  box-shadow: inset 2px 0 0 rgba(0, 212, 255, 0.9);
}

.empty-page {
  width: 100%;
  min-height: 280px;
  border: 1px dashed rgba(0,186,255,0.35);
  border-radius: 16px;
  background: rgba(0, 20, 35, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.empty-page p {
  margin: 10px 0 0;
  color: #bde3ff;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.panel-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(0,186,255,0.3);
}

.panel-head h2 {
  flex: 0 0 auto;
  margin: 0;
  padding-bottom: 0;
  border-bottom: 0;
  white-space: nowrap;
}

.panel-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: none;
  flex: 0 1 auto;
  margin-bottom: 0;
}

.header-date-range {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  border: 1px solid rgba(0,186,255,0.3);
  border-radius: 10px;
  background: rgba(0, 30, 50, 0.35);
  padding: 8px 10px;
}

.header-date-range summary {
  position: relative;
  cursor: pointer;
  color: #c9f3ff;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  padding-left: 24px;
}

.header-date-range summary::before,
.header-day-picker label::before,
.commission-day-picker label::before,
.calendar-month-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239beaff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='4' ry='4'/%3E%3Cline x1='8' y1='2.5' x2='8' y2='6.5'/%3E%3Cline x1='16' y1='2.5' x2='16' y2='6.5'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='8' y1='9' x2='8' y2='21'/%3E%3Cline x1='16' y1='9' x2='16' y2='21'/%3E%3Cline x1='3' y1='15' x2='21' y2='15'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 4px rgba(79, 216, 255, 0.6));
  opacity: 0.9;
  animation: calendar-icon-float 2.8s ease-in-out infinite;
  pointer-events: none;
}

.header-date-range summary::-webkit-details-marker {
  display: none;
}

.header-date-range summary::after {
  content: "▾";
  float: right;
  color: var(--light-blue);
}

.header-date-range[open] summary::after {
  content: "▴";
}

.header-date-content {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.header-date-row {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-date-row label {
  margin-bottom: 4px;
  color: #c9f3ff;
  font-size: 13px;
}

.header-date-row input[type="date"] {
  width: 100%;
  padding: 7px 8px;
  box-sizing: border-box;
  border: 1px solid rgba(0,186,255,0.35);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #c9f3ff;
  font-size: 13px;
}

.header-date-range.hidden {
  display: none;
}

.header-day-picker {
  display: none;
  flex: 1;
  min-width: 0;
  max-width: none;
  border: 1px solid rgba(0,186,255,0.3);
  border-radius: 10px;
  background: rgba(0, 30, 50, 0.35);
  padding: 8px 10px;
  box-sizing: border-box;
}

.header-day-picker.active {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-day-picker label {
  position: relative;
  display: inline-block;
  padding-left: 22px;
  margin-bottom: 0;
  color: #c9f3ff;
  font-size: 13px;
}

.header-day-picker input[type="date"] {
  width: 100%;
  padding: 7px 8px;
  box-sizing: border-box;
  border: 1px solid rgba(0,186,255,0.35);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #c9f3ff;
  font-size: 13px;
}

.commission-tools {
  max-width: none;
}

.commission-day-picker {
  display: flex;
  flex-direction: column;
  min-width: 220px;
  border: 1px solid rgba(0,186,255,0.3);
  border-radius: 10px;
  background: rgba(0, 30, 50, 0.35);
  padding: 8px 10px;
  box-sizing: border-box;
}

.commission-day-picker label {
  position: relative;
  display: inline-block;
  padding-left: 22px;
  margin: 0 0 4px;
  color: #c9f3ff;
  font-size: 13px;
}

.commission-day-picker input[type="date"] {
  width: 100%;
  padding: 7px 8px;
  box-sizing: border-box;
  border: 1px solid rgba(0,186,255,0.35);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #c9f3ff;
  font-size: 13px;
}

.commission-warning {
  min-height: 16px;
  margin-top: 6px;
  color: #ffb4b4;
  font-size: 12px;
  line-height: 1.2;
}

.modal-card {
  max-width: 500px;
}

.modal-calendar-section {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(0,186,255,0.2);
  border-radius: 10px;
  background: rgba(0, 22, 40, 0.5);
}

.modal-day-summary {
  margin-top: 8px;
  color: #9fdfff;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-month-title {
  position: relative;
  display: inline-block;
  padding-left: 22px;
  color: #d9f4ff;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

@keyframes calendar-icon-float {
  0%, 100% {
    transform: translateY(-50%) scale(0.92);
    opacity: 0.72;
  }
  50% {
    transform: translateY(-50%) scale(1.05);
    opacity: 1;
  }
}

.calendar-nav-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0,186,255,0.35);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #e8f8ff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.calendar-nav-btn:hover {
  background: rgba(0,186,255,0.18);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 12px;
  color: #8fd7f0;
  font-weight: 600;
}

.calendar-day-empty {
  height: 36px;
}

.calendar-day-btn {
  height: 36px;
  border: 1px solid rgba(0,186,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #d8f2ff;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.calendar-day-btn:hover {
  border-color: rgba(0,186,255,0.45);
  background: rgba(0,186,255,0.12);
}

.calendar-day-btn.selected {
  border-color: rgba(0,186,255,0.75);
  background: rgba(0,186,255,0.32);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0,186,255,0.24);
}

.calendar-day-btn.base-day {
  box-shadow: inset 0 0 0 1px rgba(255,209,102,0.9);
}

.calendar-day-btn.today {
  border-color: rgba(144,190,109,0.8);
}

.calendar-day-btn.disabled,
.calendar-day-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.12);
  color: #8ca6b2;
}

.btn-excel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  padding: 0 16px;
  border: 1px solid rgba(0,186,255,0.35);
  border-radius: 10px;
  background: linear-gradient(90deg, #007aff, #00baff);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0,186,255,0.25);
  transition: 0.25s;
}

.btn-excel::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6f8ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 2.8h7L19 8.2V21.2H6.5a1.7 1.7 0 0 1-1.7-1.7V4.5A1.7 1.7 0 0 1 6.5 2.8Z'/%3E%3Cpath d='M13.5 2.8v4.3A1.2 1.2 0 0 0 14.7 8.3H19'/%3E%3Cpath d='m9.2 13.2 3.1 4.1'/%3E%3Cpath d='m12.3 13.2-3.1 4.1'/%3E%3Cpath d='M15 17.4h4.1'/%3E%3Cpath d='M15 13.2h4.1'/%3E%3Cpath d='M15 15.3h3.4'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 4px rgba(180, 240, 255, 0.75));
  animation: excel-icon-pulse 2.4s ease-in-out infinite;
}

.btn-excel:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0,186,255,0.45);
}

@keyframes excel-icon-pulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.07);
    opacity: 1;
  }
}

.panel-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-clear-dates {
  min-width: 120px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(0,186,255,0.35);
  border-radius: 10px;
  background: rgba(0, 35, 60, 0.8);
  color: #c9f3ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.btn-clear-dates:hover {
  background: rgba(0, 70, 115, 0.9);
  box-shadow: 0 0 14px rgba(0,186,255,0.35);
}

@media (max-width: 1250px) {
  :root {
    --graph-fixed-height: 340px;
  }

  .topbar-head {
    align-items: flex-start;
  }

  .topbar-title-block {
    min-width: 180px;
  }

  .topbar-summary-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .topbar-summary-value {
    font-size: 26px;
  }

  .mutabakat-table th,
  .mutabakat-table td {
    font-size: 11px;
    padding: 6px 6px;
  }

  .graph-controls {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .method-picker,
  .graph-picker {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .topbar-head {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-user-info {
    margin-left: 0;
    align-self: flex-end;
  }

  .topbar-summary-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .main {
    flex-wrap: wrap;
    overflow-y: auto;
  }

  .page-area {
    overflow-y: visible;
  }

  .side-nav {
    flex: 1 1 100%;
    max-width: none;
    min-height: auto;
  }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-tools {
    max-width: none;
    flex-direction: column;
  }

  .btn-excel {
    min-height: 42px;
  }

  .graph-head {
    flex-direction: column;
  }

  .graph-controls {
    width: 100%;
    flex-direction: column;
  }

  .method-picker,
  .graph-picker {
    width: 100%;
    min-width: 0;
  }

  .graph-picker-options {
    grid-template-columns: 1fr;
  }
}

body.auth-locked {
  overflow: hidden;
}

.app-shell.is-hidden {
  display: none;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1500px 700px at 50% 80%, rgba(0, 60, 105, 0.32), transparent 64%),
    radial-gradient(1200px 520px at 50% 40%, rgba(0, 30, 70, 0.28), transparent 68%),
    linear-gradient(135deg, #020d19 0%, #021224 42%, #031933 100%);
}

.login-overlay::before {
  content: '';
  position: absolute;
  right: -16vw;
  top: 50%;
  width: min(72vw, 1100px);
  height: min(72vw, 1100px);
  transform: translateY(-50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 48%, rgba(0, 188, 255, 0.24) 0%, rgba(0, 152, 230, 0.14) 22%, rgba(0, 86, 160, 0.08) 40%, rgba(0, 30, 64, 0.02) 58%, transparent 70%),
    radial-gradient(circle at 62% 52%, rgba(0, 60, 120, 0.16) 0%, rgba(0, 28, 64, 0.06) 42%, transparent 70%);
  filter: blur(2px);
  z-index: -1;
}

.login-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(2, 12, 26, 0.28) 86%),
    linear-gradient(to bottom, rgba(1, 10, 20, 0.26), rgba(1, 12, 24, 0.18));
}

.login-overlay.hidden {
  display: none;
}

.login-card {
  position: relative;
  overflow: hidden;
  width: 460px;
  max-width: 94vw;
  padding: 52px 44px 40px;
  border: 1px solid rgba(0,186,255,0.35);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(7, 37, 62, 0.9), rgba(4, 28, 48, 0.88));
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(0, 186, 255, 0.08),
    0 0 56px rgba(0,186,255,0.13);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-card::before {
  content: '';
  position: absolute;
  left: 26px;
  right: 26px;
  top: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77, 216, 255, 0), rgba(77, 216, 255, 0.55), rgba(77, 216, 255, 0));
  pointer-events: none;
  opacity: 0.9;
}

.login-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 0%,
    transparent 40%,
    rgba(173, 235, 255, 0.14) 50%,
    transparent 60%,
    transparent 100%);
  transform: translateX(-130%);
  animation: login-card-shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 8px;
}

.login-logo-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #eefcff;
}

.login-logo-sub {
  font-size: 15px;
  color: #9fdfff;
  margin-top: 6px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field label {
  font-size: 14px;
  font-weight: 700;
  color: #75ddff;
}

.login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,186,255,0.35);
  background: rgba(255,255,255,0.07);
  color: #e0f7ff;
  font-size: 16px;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(0, 186, 255, 0.14),
    0 0 18px rgba(0, 186, 255, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-field input:focus {
  border-color: #00baff;
  box-shadow:
    0 0 0 3px rgba(0,186,255,0.14),
    0 0 24px rgba(0,186,255,0.22);
  background: rgba(0,186,255,0.08);
}

.login-error {
  min-height: 20px;
  color: #ff8c8c;
  font-size: 13px;
  text-align: center;
}

.btn-login {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  padding: 13px 16px;
  border: 1px solid rgba(0,186,255,0.36);
  border-radius: 12px;
  background: linear-gradient(90deg, #0b8fe5, #23c6ff);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform 0.18s, opacity 0.18s, box-shadow 0.18s, filter 0.18s;
  box-shadow:
    0 10px 24px rgba(0, 149, 255, 0.26),
    0 0 22px rgba(35, 198, 255, 0.24);
}

.btn-login:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  filter: brightness(1.02);
}

@keyframes login-card-shimmer {
  0% { transform: translateX(-130%); }
  58% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

.topbar-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid rgba(0,186,255,0.22);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}

.topbar-user-icon {
  font-size: 16px;
  line-height: 1;
}

.topbar-username {
  font-size: 13px;
  font-weight: 600;
  color: #7de7ff;
}

.btn-topbar-password,
.btn-topbar-logout {
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-topbar-password {
  border: 1px solid rgba(0,186,255,0.35);
  background: rgba(0,186,255,0.12);
  color: #bfeeff;
}

.btn-topbar-password:hover {
  background: rgba(0,186,255,0.2);
}

.btn-topbar-logout {
  border: 1px solid rgba(255,100,100,0.35);
  background: rgba(255,80,80,0.08);
  color: #ffaaaa;
}

.btn-topbar-logout:hover {
  background: rgba(255,80,80,0.2);
}

.modal-card-wide {
  max-width: 760px;
  width: 95vw;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

#userEditModal.modal-overlay {
  align-items: flex-start;
  overflow-y: auto;
}

.user-perm-header {
  font-size: 13px;
  font-weight: 700;
  color: #4fd8ff;
  margin: 12px 0 8px;
  border-bottom: 1px solid rgba(0,186,255,0.18);
  padding-bottom: 6px;
}

.user-perm-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}

.user-special-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.user-special-title {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  color: #7fdfff;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

.user-special-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,186,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #d8f6ff;
  cursor: pointer;
  font-size: 13px;
}

.user-special-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00baff;
}

.user-special-item input[type="checkbox"]:disabled + span {
  opacity: 0.55;
}

@media (max-width: 900px) {
  .user-special-grid {
    grid-template-columns: 1fr;
  }
}

.manual-page-note {
  font-size: 13px;
  color: #9fdfff;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,186,255,0.14);
}

.user-perm-row {
  display: grid;
  grid-template-columns: 1fr 110px 110px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,186,255,0.1);
  font-size: 13px;
}

.user-perm-row:first-child {
  background: rgba(0,186,255,0.07);
  font-weight: 700;
  color: #4fd8ff;
  border-color: rgba(0,186,255,0.25);
}

.user-perm-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.user-perm-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #00baff;
  cursor: pointer;
}

.perm-cell {
  display: flex;
  justify-content: center;
}

.user-modal-error {
  min-height: 16px;
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
}

.menu-logout-link {
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  color: #ffaaaa;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.18s;
}

.menu-logout-link:hover {
  background: rgba(255,80,80,0.12);
}

.menu-logout-link::marker {
  display: none;
}

/* Input metinleri (login + kullanici ayarlari) her durumda beyaz olsun */
#loginUsername,
#loginPassword,
#userModalUsername,
#userModalPassword,
#userModalPasswordEdit,
#changePasswordCurrent,
#changePasswordNew,
#changePasswordRepeat,
.login-field input,
.modal-field input,
.modal-field select {
  color: #eaf9ff;
  -webkit-text-fill-color: #eaf9ff;
}

#loginUsername::placeholder,
#loginPassword::placeholder,
#userModalUsername::placeholder,
#userModalPassword::placeholder,
#userModalPasswordEdit::placeholder,
#changePasswordCurrent::placeholder,
#changePasswordNew::placeholder,
#changePasswordRepeat::placeholder,
.login-field input::placeholder,
.modal-field input::placeholder {
  color: rgba(190, 230, 255, 0.8);
}

#loginUsername:-webkit-autofill,
#loginPassword:-webkit-autofill,
#userModalUsername:-webkit-autofill,
#userModalPassword:-webkit-autofill,
#userModalPasswordEdit:-webkit-autofill,
#changePasswordCurrent:-webkit-autofill,
#changePasswordNew:-webkit-autofill,
#changePasswordRepeat:-webkit-autofill {
  -webkit-text-fill-color: #eaf9ff;
  box-shadow: 0 0 0px 1000px rgba(5, 28, 46, 0.98) inset;
  transition: background-color 9999s ease-in-out 0s;
}
