/* NumberOne Risk Desk — P&L sayfasi gorsel katmani v2 (koyu, sol yan menu). Sadece CSS. */
:root {
  --bg: #141618;
  --panel: #1b1e22;
  --panel-soft: #23272c;
  --panel-strong: #17191c;
  --panel-border: rgba(255,255,255,0.075);
  --text: #e8eaed;
  --muted: #a3adb8;
  --accent: #2e9e63;
  --good: #34c77b;
  --bad: #f0554f;
  --warning: #f5b301;
  --n1-mono: "Segoe UI", Arial, sans-serif;
}
html body {
  background: var(--bg); color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif; font-size: 13.5px;
}
html body::-webkit-scrollbar-track { background: transparent; }
html body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }
html .wrap { max-width: none; margin: 0 0 0 222px; padding: 14px 18px 60px; }

/* sol yan menu */
html .nav-bar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 222px;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  background: #111315; border: none; border-right: 1px solid var(--panel-border); border-radius: 0;
  box-shadow: none; padding: 18px 14px; margin: 0; z-index: 50;
}
html .nav-bar .n1-brand { display: block; text-decoration: none; padding: 6px 6px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--panel-border); }
html .nav-bar .n1-logo { display: block; width: 100%; max-width: 172px; height: auto; margin: 0; }
html .nav-bar .n1-nav-label { font-size: 11.5px; color: var(--muted); padding: 12px 10px 4px; }
html .nav-bar .logo {
  display: block; background: none; -webkit-text-fill-color: var(--muted); color: var(--muted);
  font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 0;
}
html .nav-bar .logo::before { content: none; }
html .nav-bar a:not(.n1-brand) {
  display: flex; align-items: center; gap: 10px; background: transparent; color: var(--muted);
  border-radius: 8px; padding: 8px 10px; font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--text);
}
html .nav-bar a:not(.n1-brand)::before {
  content: ''; width: 16px; height: 16px; flex: 0 0 16px; background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
html .nav-bar a:not(.n1-brand):hover { background: rgba(255,255,255,0.04); color: var(--text); }
html .nav-bar a.active { background: var(--accent); color: #fff; font-weight: 600; }
.n1-nav-panel    { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E"); }
.n1-nav-pnl      { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 17 9 11 13 15 21 7'/%3E%3Cpolyline points='15 7 21 7 21 13'/%3E%3C/svg%3E"); }
.n1-nav-analytics{ --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.21 15.89A10 10 0 1 1 8 2.83'/%3E%3Cpath d='M22 12A10 10 0 0 0 12 2v10z'/%3E%3C/svg%3E"); }
.n1-nav-company  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2'/%3E%3Cline x1='2' y1='13' x2='22' y2='13'/%3E%3C/svg%3E"); }
.n1-nav-history  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 4 1 10 7 10'/%3E%3Cpath d='M3.51 15a9 9 0 1 0 2.13-9.36L1 10'/%3E%3Cpolyline points='12 7 12 12 15 14'/%3E%3C/svg%3E"); }
.n1-nav-accounting { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3Cline x1='9' y1='8' x2='16' y2='8'/%3E%3Cline x1='9' y1='12' x2='16' y2='12'/%3E%3C/svg%3E"); }
.n1-nav-reports  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E"); }
.n1-nav-retail   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M17 11a4 4 0 1 0 0-8'/%3E%3Cpath d='M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3Cpath d='M21 21v-2a4 4 0 0 0-3-3.87'/%3E%3C/svg%3E"); }
.n1-nav-alarm    { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }

/* basliklar */
html .page-header { padding: 4px 0 10px; }
html .page-header h1 { background: none; -webkit-text-fill-color: var(--text); color: var(--text); font-size: 18px; font-weight: 700; letter-spacing: -0.2px; }
html .section h3, html .section h4 {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text);
  font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
html .section h3::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); }

/* kutular */
html .toolbar { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; box-shadow: none; }
html .toolbar button, html .toolbar input, html .toolbar select, html button, html input, html select {
  background: var(--panel-soft); border: 1px solid var(--panel-border); color: var(--text); border-radius: 7px; box-shadow: none;
}
html .toolbar button:hover, html button:hover { border-color: rgba(255,255,255,0.18); transform: none; box-shadow: none; }
html .card, html .section { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; box-shadow: none; }
html .card { border-left: 3px solid var(--accent); }
html .card:hover, html .section:hover { transform: none; box-shadow: none; }
html .card::before, html .section::before { display: none; }
html .card small { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 500; }
html .card .value { font-size: 24px; font-variant-numeric: tabular-nums; font-family: Arial, "Segoe UI", sans-serif; }
html th { background: var(--panel-strong); border-bottom: 1px solid var(--panel-border); font-size: 12px; letter-spacing: 0; text-transform: none; }
html th, html td { border-bottom: 1px solid var(--panel-border); padding: 8px 10px; font-size: 13.5px; }
html td.right { font-variant-numeric: tabular-nums; }
html tbody tr:hover { background: rgba(255,255,255,0.04); }
html .tag { border-color: var(--panel-border); background: rgba(255,255,255,0.06); color: var(--text); border-radius: 4px; }
html .pill { background: rgba(255,255,255,0.06); border: 1px solid var(--panel-border); color: var(--text); }
html .form-actions button, html .refresh-btn { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 1050px) {
  html .nav-bar { position: static; width: auto; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--panel-border); }
  html .wrap { margin-left: 0; }
}
