/* raqam24 demo: Masterchistka ekranlari, raqam24 brendbuk ranglari (brand.css dan KEYIN ulanadi).
   Raqam ko'k #2B59FF, Tun #0F1729, fon #F5F6F8, chegara #E4E7EC, menyu matni #344054, izoh #5B6474; Inter; soyasiz oq kartalar. */
:root, :root:root {
  --brand: #2B59FF; --brand-2: #1f47e0; --brand-3: #5a7dff; --on-brand: #fff; --accent: #2B59FF; --accent-2: #1f47e0;
  --bg: #F5F6F8; --surface: #ffffff; --surface-2: #fafbfc; --sunken: #f0f2f5;
  --line: #E4E7EC; --line-2: #d6dae1;
  --ink: #0F1729; --ink-2: #344054; --ink-3: #5B6474;
  --info: #2B59FF; --s-brand: #2B59FF; --s-info: #2B59FF; --grid: #eef0f3; --axis: #E4E7EC;
  --shadow: 0 0 0 1px var(--line); --shadow-lg: 0 0 0 1px var(--line-2); --shadow-sm: none; --shadow-md: none; --shadow-card: none;
  --side-bg: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --raised: 0 0 0 1px var(--line); --raised-sm: 0 0 0 1px var(--line); --inset: none; --glow: 0 0 0 3px color-mix(in srgb, #2B59FF 25%, transparent);
  --neu-face: #fff; --neu-well: #fff;
}
[data-theme=dark], :root[data-theme=dark] {
  --brand: #2B59FF; --brand-2: #4c74ff; --accent: #6e8fff; --accent-2: #8aa5ff;
  --bg: #0b1120; --surface: #0F1729; --surface-2: #131c31; --sunken: #18233b;
  --line: #222d45; --line-2: #2c3854; --ink: #F5F6F8; --ink-2: #C3C9D4; --ink-3: #8a93a6;
  --side-bg: #0F1729; --info: #6e8fff; --s-brand: #6e8fff;
  --shadow: 0 0 0 1px var(--line); --shadow-lg: 0 0 0 1px var(--line-2);
  --raised: 0 0 0 1px var(--line); --raised-sm: 0 0 0 1px var(--line); --inset: none; --neu-face: var(--surface); --neu-well: var(--surface);
}
html, body { font-family: var(--font) !important; }
body { background: var(--bg) !important; }
body::before, body::after { display: none !important; }
b, strong, h1, h2, h3, h4, .card > h3:first-child, .login-card h1 { font-weight: 600 !important; letter-spacing: -.01em; }

/* Animatsiya va bezaklar — tinch */
.view > * { animation: none !important; }
button::after { display: none !important; }
.stat::after, .stat::before { display: none !important; }
.stat:hover, .card:hover { transform: none !important; }

/* Kartalar: oq, 1px chegara, soyasiz */
.card, .stat, .table-wrap, .lc-sec, .bxf-pop, .kanban .col, .modal, .modal-card, .dropdown, .menu, .popover {
  background: var(--surface) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow: 0 0 0 1px var(--line) !important; border-color: var(--line) !important;
}
.card, .stat, .table-wrap, .lc-sec { border-radius: 12px !important; }
.kanban .col { background: var(--sunken) !important; box-shadow: none !important; }

/* Tugmalar: bitta ko'k, tekis */
button:not(.ghost):not(.danger):not(.x):not(.icon-btn):not(.nav-toggle):not(.chip):not(.lc-st):not(.lc-link):not(.bxf-x):not(.of-slot):not(.seg button):not(.bxf-preset button):not(.chat-item):not(.dt-x):not(.dt-main) {
  background: #2B59FF !important; color: #fff !important; box-shadow: none !important; border-color: #2B59FF !important; font-weight: 600 !important;
}
button:not(.ghost):not(.danger):not(.x):not(.icon-btn):not(.nav-toggle):not(.chip):not(.lc-st):not(.lc-link):not(.bxf-x):not(.of-slot):not(.seg button):not(.bxf-preset button):not(.chat-item):not(.dt-x):not(.dt-main):hover {
  background: #1f47e0 !important; box-shadow: none !important;
}
button:not(.dt-x):not(.dt-main) { border-radius: 8px !important; font-weight: 600 !important; }
button.ghost:not(.dt-pop *) { background: var(--surface) !important; color: var(--ink-2) !important; border: 1px solid var(--line-2) !important; box-shadow: none !important; }
button.ghost:hover { background: var(--sunken) !important; }
button:active { transform: none !important; }
input, select, textarea { border-radius: 8px !important; border: 1px solid var(--line-2) !important; box-shadow: none !important; font-weight: 500 !important; background: var(--surface) !important; }
input:focus, select:focus, textarea:focus { border-color: #2B59FF !important; box-shadow: 0 0 0 3px color-mix(in srgb, #2B59FF 18%, transparent) !important; }
label { font-weight: 500 !important; }

/* Tepa panel */
.topbar { background: var(--surface) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 1px 0 var(--line) !important; border-bottom: 0 !important; }
.brand-logo { border-radius: 6px !important; }
.brand-name { font-weight: 600 !important; color: var(--ink) !important; }

/* Yon menyu: oq, faol band — ko'k */
.sidebar { background: var(--side-bg) !important; color: var(--ink-2) !important; box-shadow: 1px 0 0 var(--line) !important; }
.sidebar::before, .sidebar::after { display: none !important; }
#nav a { color: var(--ink-2) !important; font-weight: 500 !important; border-radius: 8px !important; transform: none !important; box-shadow: none !important; }
#nav a:hover { background: var(--sunken) !important; color: var(--ink) !important; }
#nav a.active { background: color-mix(in srgb, #2B59FF 10%, var(--surface)) !important; color: #2B59FF !important; box-shadow: none !important; }
#nav a .em { width: 20px !important; height: 20px !important; filter: grayscale(1) contrast(1.1) opacity(.75) !important; }
#nav a.active .em { filter: none !important; }
#nav .badge { background: #2B59FF !important; color: #fff !important; font-weight: 600 !important; }
#nav a.active .badge { background: #2B59FF !important; color: #fff !important; }

/* 3D emoji — matn ichida kichik va kulrang (brendbuk: chiziqli ikonkalar) */
.em { filter: grayscale(1) opacity(.7); }
.card > h3 .em { width: 20px !important; height: 20px !important; }

/* Kirish sahifasi: Tun fon */
.login-screen { background: #0F1729 !important; }
.login-screen::before, .login-screen .blob, .login-screen .fl { display: none !important; }
.login-card { border-radius: 16px !important; box-shadow: none !important; }

/* Holat ranglari (qizil/sariq/yashil) o'z ma'nosida qoladi */

/* Menyu: 3D emoji o'rniga chiziqli ikonkalar (Lucide) — brendbuk */
#nav a:is([href="#dashboard"],[href="#leads"],[href="#calls"],[href="#chat"],[href="#orders"],[href="#board"],[href="#workshop"],[href="#clients"],[href="#cash"],[href="#stock"],[href="#reports"],[href="#marketing"],[href="#staff"],[href="#settings"]) .em, .topbar #page-title .em, #page-title img, .stat .em, .stat img.em { display: none !important; }
#nav a[href="#dashboard"]::before, #nav a[href="#leads"]::before, #nav a[href="#calls"]::before, #nav a[href="#chat"]::before, #nav a[href="#orders"]::before, #nav a[href="#board"]::before, #nav a[href="#workshop"]::before, #nav a[href="#clients"]::before, #nav a[href="#cash"]::before, #nav a[href="#stock"]::before, #nav a[href="#reports"]::before, #nav a[href="#marketing"]::before, #nav a[href="#staff"]::before, #nav a[href="#settings"]::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
#nav a[href="#dashboard"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect width=%227%22 height=%229%22 x=%223%22 y=%223%22 rx=%221%22/%3E%3Crect width=%227%22 height=%225%22 x=%2214%22 y=%223%22 rx=%221%22/%3E%3Crect width=%227%22 height=%229%22 x=%2214%22 y=%2212%22 rx=%221%22/%3E%3Crect width=%227%22 height=%225%22 x=%223%22 y=%2216%22 rx=%221%22/%3E%3C/svg%3E"); }
#nav a[href="#leads"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpolyline points=%2222 12 16 12 14 15 10 15 8 12 2 12%22/%3E%3Cpath d=%22M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z%22/%3E%3C/svg%3E"); }
#nav a[href="#calls"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z%22/%3E%3C/svg%3E"); }
#nav a[href="#chat"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z%22/%3E%3C/svg%3E"); }
#nav a[href="#orders"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect width=%228%22 height=%224%22 x=%228%22 y=%222%22 rx=%221%22/%3E%3Cpath d=%22M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2%22/%3E%3Cpath d=%22M12 11h4M12 16h4M8 11h.01M8 16h.01%22/%3E%3C/svg%3E"); }
#nav a[href="#board"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2%22/%3E%3Cpath d=%22M15 18H9%22/%3E%3Cpath d=%22M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14%22/%3E%3Ccircle cx=%2217%22 cy=%2218%22 r=%222%22/%3E%3Ccircle cx=%227%22 cy=%2218%22 r=%222%22/%3E%3C/svg%3E"); }
#nav a[href="#workshop"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z%22/%3E%3Cpath d=%22M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97%22/%3E%3C/svg%3E"); }
#nav a[href="#clients"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%229%22 cy=%227%22 r=%224%22/%3E%3Cpath d=%22M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75%22/%3E%3C/svg%3E"); }
#nav a[href="#cash"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1%22/%3E%3Cpath d=%22M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4%22/%3E%3C/svg%3E"); }
#nav a[href="#stock"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m7.5 4.27 9 5.15%22/%3E%3Cpath d=%22M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z%22/%3E%3Cpath d=%22m3.3 7 8.7 5 8.7-5M12 22V12%22/%3E%3C/svg%3E"); }
#nav a[href="#reports"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 3v16a2 2 0 0 0 2 2h16%22/%3E%3Cpath d=%22M18 17V9M13 17V5M8 17v-3%22/%3E%3C/svg%3E"); }
#nav a[href="#marketing"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%226%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%222%22/%3E%3C/svg%3E"); }
#nav a[href="#staff"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M18 21a8 8 0 0 0-16 0%22/%3E%3Ccircle cx=%2210%22 cy=%228%22 r=%225%22/%3E%3Cpath d=%22M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3%22/%3E%3C/svg%3E"); }
#nav a[href="#settings"] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3C/svg%3E"); }
