/**
 * ══════════════════════════════════════════════════════════════════════════════
 * GÖKÇEOS PROTOTYPE UI V2 — GÖKÇE FİNANS ÇALIŞMA ALANI CSS
 * Standard: G-110 Operational Hotel/Pension Finance Workspace
 * Layout: Strict Flush Left-Aligned Sidebar · Live Double Ledger, Folio & Cash Register
 * ══════════════════════════════════════════════════════════════════════════════
 */

.fin-center-container {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 560px;
  background: #080e1c;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────────────────────
   1. STRICT FLUSH LEFT-ALIGNED SIDEBAR
   ───────────────────────────────────────────────────────────────────────────── */
.fin-sidebar {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  background: #050914;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  user-select: none;
  padding: 10px 8px;
}

.fin-sidebar-brand {
  padding: 8px 10px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.fin-sidebar-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.fin-sidebar-sub {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.fin-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow-y: auto;
}

.fin-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: left;
  outline: none;
}

.fin-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
}

.fin-nav-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-left: 3px solid #38bdf8;
  border-radius: 0 6px 6px 0;
}

.fin-nav-icon {
  font-size: 15px;
  width: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.fin-nav-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fin-nav-label {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fin-nav-desc {
  font-size: 9.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fin-nav-item.active .fin-nav-desc {
  color: #7dd3fc;
}

.fin-nav-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.fin-nav-badge.active-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.fin-nav-badge.warning-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.fin-nav-badge.danger-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. MAIN WORKSPACE & TOP COMMAND BAR
   ───────────────────────────────────────────────────────────────────────────── */
.fin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #080e1c;
}

.fin-topbar {
  height: 48px;
  padding: 0 16px;
  background: #0c1428;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
}

.fin-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fin-topbar-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fin-role-tag {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}

.fin-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
}

/* Panels & Cards */
.fin-panel {
  background: #0f192d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.fin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fin-panel-title {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tables */
.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.fin-table th {
  text-align: left;
  padding: 8px 10px;
  background: #15223c;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fin-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.fin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 900px) {
  .fin-sidebar {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    padding: 8px 4px;
  }
  .fin-sidebar-title span:not(.fin-sidebar-icon),
  .fin-sidebar-sub,
  .fin-nav-text-col,
  .fin-nav-badge {
    display: none;
  }
  .fin-nav-item {
    justify-content: center;
    padding: 0;
  }
}
