/* =====================================================
   سنايبر قيمز — الهوية المعدنية الداكنة 3D
   (مرجع الهوية: صفحة AGENCY على bot-dis.mudar.net)
   ===================================================== */

:root {
  --bg: #0b0d10;
  --bg-2: #111418;
  --panel: #14181d;
  --panel-2: #1a1f26;
  --line: #262c34;
  --text: #e6ebf0;
  --text-2: #9aa4af;
  --silver: linear-gradient(160deg, #f5f7fa 0%, #c3cad2 35%, #8e979f 60%, #e8ecf0 100%);
  --silver-flat: #c9d1d9;
  --accent: #d7dde3;
  --green: #3fb96a;
  --red: #e5534b;
  --amber: #d4a72c;
  --radius: 14px;
  --shadow-3d: 0 1px 0 rgba(255,255,255,.08) inset, 0 -2px 0 rgba(0,0,0,.45) inset, 0 10px 24px rgba(0,0,0,.45);
  --shadow-soft: 0 8px 28px rgba(0,0,0,.35);
}

[data-theme="light"] {
  --bg: #eef1f4;
  --bg-2: #e6eaee;
  --panel: #ffffff;
  --panel-2: #f4f6f8;
  --line: #d8dee4;
  --text: #1a2129;
  --text-2: #5b6572;
  --accent: #2b333c;
  --shadow-3d: 0 1px 0 rgba(255,255,255,.9) inset, 0 -2px 0 rgba(0,0,0,.08) inset, 0 10px 22px rgba(21,32,43,.12);
  --shadow-soft: 0 8px 24px rgba(21,32,43,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 15px;
}

/* ---------- شعار SN المعدني ---------- */
.logo-sn {
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(150deg, #ffffff 0%, #d7dde3 25%, #78828c 50%, #e8ecf0 75%, #9aa4af 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55));
}
.logo-box {
  border-radius: 12px;
  background: linear-gradient(160deg, #23282f, #0e1115);
  border: 1px solid #333b44;
  box-shadow: var(--shadow-3d);
  display: grid; place-items: center;
}

/* ---------- لودر الانتظار (شعار SN متحرك بمنتصف الشاشة) ---------- */
.loader-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  background: rgba(8, 10, 13, .82);
  backdrop-filter: blur(4px);
}
[data-theme="light"] .loader-overlay { background: rgba(238, 241, 244, .85); }
.loader-overlay.active { display: flex; }

.loader-logo {
  width: 96px; height: 96px; border-radius: 24px;
  background: linear-gradient(160deg, #23282f, #0e1115);
  border: 1px solid #3a434d;
  box-shadow: var(--shadow-3d);
  display: grid; place-items: center;
  font-size: 38px;
  animation: loaderPulse 1.6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.loader-logo .logo-sn { animation: loaderShine 1.6s linear infinite; }
.loader-logo::after {
  content: '';
  position: absolute; inset: -60%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.16) 50%, transparent 58%);
  animation: loaderSweep 1.6s linear infinite;
}
.loader-text { color: var(--text-2); font-size: 13.5px; font-weight: 700; letter-spacing: .5px; }

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}
@keyframes loaderShine {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}
@keyframes loaderSweep {
  0%   { transform: translateX(120%); }
  100% { transform: translateX(-120%); }
}

body { background: radial-gradient(1200px 600px at 85% -10%, rgba(200,210,220,.06), transparent 60%), var(--bg); }

a { color: inherit; text-decoration: none; }
::placeholder { color: var(--text-2); }

/* ---------- الأزرار المعدنية 3D ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border: none; border-radius: 12px;
  font-weight: 700; font-size: 14px; font-family: inherit;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: translateY(2px); }

.btn-metal {
  background: var(--silver);
  color: #14181d;
  box-shadow: var(--shadow-3d);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.btn-metal:hover { filter: brightness(1.06); }

.btn-dark {
  background: linear-gradient(160deg, #23282f, #14181d);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3d);
}
.btn-dark:hover { filter: brightness(1.15); }

.btn-danger { background: linear-gradient(160deg, #7d2d29, #5a201d); color: #ffd9d6; box-shadow: var(--shadow-3d); }

/* ---------- البطاقات ---------- */
.card {
  background: linear-gradient(175deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}
.card h3 { font-size: 15px; color: var(--text-2); font-weight: 600; margin-bottom: 8px; }
.card .big { font-size: 26px; font-weight: 800; letter-spacing: .5px; }

/* ---------- تخطيط الصفحة ---------- */
.app { display: flex; min-height: 100vh; }

/* السايد بار (يمين) */
.sidebar {
  width: 260px; flex-shrink: 0;
  background: linear-gradient(190deg, #12151a, #0c0e12);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
[data-theme="light"] .sidebar { background: linear-gradient(190deg, #ffffff, #f0f3f6); border-left-color: var(--line); }

.brand {
  padding: 22px 20px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.brand .logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--silver);
  box-shadow: var(--shadow-3d);
  display: grid; place-items: center;
  color: #14181d; font-weight: 900; font-size: 20px;
}
.brand .name { font-weight: 800; font-size: 16px; }
.brand .sub { font-size: 11px; color: var(--text-2); }

.nav { padding: 10px 12px 24px; }
.nav-section { margin-top: 6px; }
.nav-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 700; font-size: 13.5px;
  cursor: pointer; user-select: none;
  transition: background .15s, color .15s;
}
.nav-head:hover { background: rgba(255,255,255,.04); color: var(--text); }
[data-theme="light"] .nav-head:hover { background: rgba(0,0,0,.05); }
.nav-head .chev { margin-inline-start: auto; transition: transform .2s; font-size: 11px; }
.nav-section.open .nav-head { color: var(--text); }
.nav-section.open .chev { transform: rotate(90deg); }
.nav-head .badge {
  background: var(--red); color: #fff;
  border-radius: 20px; font-size: 11px; padding: 1px 7px; font-weight: 700;
}

.nav-items { display: none; padding: 2px 8px 6px 0; }
.nav-section.open .nav-items { display: block; }
.nav-items a {
  display: block; padding: 8px 30px 8px 12px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  border-radius: 8px; position: relative;
}
.nav-items a::before {
  content: ''; position: absolute; right: 14px; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--line); transform: translateY(-50%);
}
.nav-items a:hover { color: var(--text); background: rgba(255,255,255,.04); }
/* الصفحة المفتوحة حالياً */
.nav-items a.active {
  color: var(--text); background: rgba(255,255,255,.08);
  font-weight: 800;
}
.nav-items a.active::before { background: var(--silver-flat); box-shadow: 0 0 7px var(--silver-flat); }
/* الثيم الفاتح: خط أغمق وتمييز أزرق للنشط */
[data-theme="light"] .nav-head { color: #333d4b; }
[data-theme="light"] .nav-items a { color: #3c4655; }
[data-theme="light"] .nav-items a:hover { background: rgba(0,0,0,.05); color: #16324f; }
[data-theme="light"] .nav-items a.active { color: #1d3f8f; background: rgba(63,107,214,.12); }
[data-theme="light"] .brand .sub { color: #4a5462; }

/* المحتوى */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 26px;
  background: linear-gradient(180deg, var(--panel), transparent);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text-2); cursor: pointer; font-size: 16px;
  box-shadow: var(--shadow-3d);
  position: relative;
}
.icon-btn:hover { color: var(--text); }
.icon-btn .dot {
  position: absolute; top: 6px; left: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}

.userchip { display: flex; align-items: center; gap: 10px; }
.userchip .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--silver); color: #14181d;
  display: grid; place-items: center; font-weight: 800;
  box-shadow: var(--shadow-3d);
}
.userchip .uname { font-size: 13px; font-weight: 700; }
.userchip .urole { font-size: 11px; color: var(--text-2); }

.content { padding: 26px; }
.page-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.page-sub { color: var(--text-2); font-size: 13px; margin-bottom: 22px; }

.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

/* ---------- النماذج ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #7d8894;
  box-shadow: 0 0 0 3px rgba(160,170,180,.15);
}

.alert { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; border: 1px solid; }
.alert-error { background: rgba(229,83,75,.1); border-color: rgba(229,83,75,.4); color: #ff9c96; }
.alert-success { background: rgba(63,185,106,.1); border-color: rgba(63,185,106,.4); color: #7ee787; }

/* ---------- صفحة الدخول ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(900px 500px at 50% -10%, rgba(200,210,220,.08), transparent 60%), var(--bg);
}
.login-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(175deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-soft); padding: 38px 34px;
  text-align: center;
}
.login-card .logo {
  width: 74px; height: 74px; margin: 0 auto 18px;
  border-radius: 20px; background: var(--silver);
  box-shadow: var(--shadow-3d);
  display: grid; place-items: center;
  color: #14181d; font-weight: 900; font-size: 34px;
}
.login-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.login-card .sub { color: var(--text-2); font-size: 13px; margin-bottom: 26px; }
.login-card form { text-align: right; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 6px; padding: 13px; font-size: 15px; }

/* ---------- جداول ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  background: var(--panel-2); color: var(--text-2);
  padding: 12px 14px; text-align: right; font-weight: 700; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(255,255,255,.02); }

/* تلميح (؟) */
.hint { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--line); color: var(--text-2); font-size: 11px; cursor: help; }

/* شارات الحالة */
.tag { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.tag-on  { background: rgba(63,185,106,.14); color: #5ecb85; border: 1px solid rgba(63,185,106,.35); }
.tag-off { background: rgba(229,83,75,.12); color: #ff9c96; border: 1px solid rgba(229,83,75,.3); }
.tag-mid { background: rgba(212,167,44,.12); color: #e3b341; border: 1px solid rgba(212,167,44,.3); }

/* مصفوفة الصلاحيات */
.matrix-wrap { overflow-x: auto; }
table.matrix { border-collapse: collapse; font-size: 13px; min-width: 100%; }
table.matrix th, table.matrix td { border: 1px solid var(--line); padding: 9px 12px; text-align: center; white-space: nowrap; }
table.matrix th { background: var(--panel-2); font-weight: 700; }
table.matrix td.perm-label { text-align: right; background: var(--panel-2); font-weight: 600; color: var(--text-2); }
table.matrix input[type=checkbox] { width: 17px; height: 17px; accent-color: #8e979f; cursor: pointer; }

/* رأس صفحة مع زر */
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .grow { flex: 1; }

/* بطاقات الربط الخارجي */
.integration-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.integration-head .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow-3d); }
.integration-head .grow { flex: 1; }

/* شريط التمرير — داكن متناسق مع الثيم (يتبدل مع الوضع الفاتح تلقائياً) */
* { scrollbar-width: thin; scrollbar-color: var(--line) var(--bg-2); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-2); border-radius: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-2); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: var(--bg-2); }

/* سكرول داكن مضمون بكل العناصر (يشمل السايد بار) + إجبار نمط النظام الداكن */
:root { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
.sidebar { scrollbar-width: thin; scrollbar-color: var(--line) var(--bg-2); }
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: var(--bg-2); }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--text-2); }

/* خط كايرو لكل عناصر الإدخال أينما كانت (بحث الجدول وغيره) */
input, select, textarea, button { font-family: inherit; }

/* أسماء بديلة للألوان — success/danger مستخدمة بمواضع كثيرة */
:root { --success: var(--green); --danger: var(--red); }

/* إصلاحات الثيم الفاتح: الأزرار وأرقام المستندات */
[data-theme="light"] { --silver-flat: #3f6bd6; }
[data-theme="light"] .btn-dark {
  background: linear-gradient(160deg, #ffffff, #e6eaee);
  color: var(--text);
  border: 1px solid var(--line);
}
[data-theme="light"] .btn-metal {
  background: linear-gradient(160deg, #2b333c, #14181d);
  color: #f2f5f8;
  text-shadow: none;
}
/* ---------- مودال التأكيد الموحد ---------- */
.sn-cf-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(5, 8, 12, .62); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.sn-cf-overlay.on { display: flex; animation: cfIn .14s ease-out; }
@keyframes cfIn { from { opacity: 0 } to { opacity: 1 } }
.sn-cf {
  width: 100%; max-width: 400px; text-align: center;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 22px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: cfPop .16s ease-out;
}
@keyframes cfPop { from { transform: translateY(10px) scale(.97); opacity: .6 } to { transform: none; opacity: 1 } }
.sn-cf-icon { font-size: 34px; margin-bottom: 8px; }
.sn-cf-title { font-weight: 900; font-size: 16.5px; margin-bottom: 6px; }
.sn-cf-msg { color: var(--text-2); font-size: 13.5px; line-height: 1.9; margin-bottom: 18px; }
.sn-cf-btns { display: flex; gap: 10px; }
.sn-cf-btns .btn { flex: 1; justify-content: center; padding: 11px; font-size: 14px; }
[data-theme="light"] .sn-cf { box-shadow: 0 30px 80px rgba(30, 45, 70, .35); background: linear-gradient(180deg, #ffffff, #f2f5f8); }
[data-theme="light"] .sn-cf-overlay { background: rgba(30, 40, 55, .45); }

/* إجمالي البيع السريع: الفضي المعدني لا يُقرأ على الخلفية الفاتحة */
[data-theme="light"] .qk-total {
  background: linear-gradient(160deg, #16324f 0%, #3f6bd6 55%, #16324f 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(30, 50, 80, .18));
}

/* ---------- سايد بار الجوال + زر البرجر 3D ---------- */
.burger3d { display: none; }
.mb-overlay { display: none; }

@media (max-width: 700px) {
  /* زر البرجر — معدني بارز بضغطة حقيقية */
  .burger3d {
    display: grid; place-items: center;
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 13px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.09);
    background: linear-gradient(145deg, #20252d, #0d1015);
    box-shadow:
      0 5px 12px rgba(0,0,0,.5),
      0 1px 0 rgba(255,255,255,.07) inset,
      0 -3px 6px rgba(0,0,0,.45) inset;
    transition: transform .14s ease, box-shadow .14s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .burger3d:active {
    transform: translateY(2px) scale(.97);
    box-shadow:
      0 1px 4px rgba(0,0,0,.55),
      0 2px 5px rgba(0,0,0,.5) inset;
  }
  [data-theme="light"] .burger3d {
    border-color: rgba(0,0,0,.08);
    background: linear-gradient(145deg, #ffffff, #dfe5ec);
    box-shadow:
      0 5px 12px rgba(30,40,55,.16),
      0 1px 0 #fff inset,
      0 -3px 6px rgba(30,40,55,.1) inset;
  }
  .burger3d .bars { position: relative; width: 21px; height: 15px; }
  .burger3d .bars span {
    position: absolute; right: 0; width: 100%; height: 2.7px; border-radius: 4px;
    background: linear-gradient(180deg, #f5f7fa, #b7bfc9 55%, #8d97a3);
    box-shadow: 0 1px 2px rgba(0,0,0,.6);
    transition: transform .32s cubic-bezier(.25,.9,.3,1.2), opacity .18s ease, width .32s cubic-bezier(.25,.9,.3,1.2);
  }
  [data-theme="light"] .burger3d .bars span {
    background: linear-gradient(180deg, #39424e, #1a2028 55%, #0d1116);
    box-shadow: 0 1px 2px rgba(255,255,255,.55);
  }
  .burger3d .bars span:nth-child(1) { top: 0; }
  .burger3d .bars span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 72%; }
  .burger3d .bars span:nth-child(3) { bottom: 0; }
  /* عند الفتح: تتحول لعلامة X */
  body.sb-open .burger3d .bars span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
  body.sb-open .burger3d .bars span:nth-child(2) { opacity: 0; transform: translateY(-50%) translateX(10px); }
  body.sb-open .burger3d .bars span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

  /* السايد بار — لوح منزلق بعمق ثلاثي الأبعاد */
  .sidebar {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(80vw, 300px); height: 100dvh;
    z-index: 120;
    transform: perspective(1100px) translateX(108%) rotateY(-24deg);
    transform-origin: right center;
    transition: transform .42s cubic-bezier(.22,.95,.3,1);
    box-shadow:
      -28px 0 70px rgba(0,0,0,.6),
      -1px 0 0 rgba(255,255,255,.06) inset;
    will-change: transform;
  }
  body.sb-open .sidebar { transform: perspective(1100px) translateX(0) rotateY(0deg); }
  [data-theme="light"] .sidebar { box-shadow: -28px 0 70px rgba(30,40,55,.28), -1px 0 0 rgba(0,0,0,.04) inset; }

  /* طبقة التعتيم خلف القائمة */
  .mb-overlay {
    display: block;
    position: fixed; inset: 0; z-index: 115;
    background: rgba(5,7,10,.55);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity .32s ease;
  }
  body.sb-open .mb-overlay { opacity: 1; pointer-events: auto; }
  body.sb-open { overflow: hidden; }
}

/* حقول التاريخ: مؤشر يد + أيقونة تقويم واضحة */
input[type="date"] { cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .85; filter: invert(.6); }
[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }

/* ---------- التقويم الاحترافي السريع (يوم | شهر | سنة) ---------- */
.sn-dp { position: absolute; z-index: 500; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.55); width: 280px; overflow: hidden; animation: snDpIn .15s ease; }
@keyframes snDpIn { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.sn-dp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.sn-dp-head b { font-size: 13.5px; }
.sn-dp-cols { display: flex; height: 200px; }
.sn-dp-col { flex: 1; overflow-y: auto; scrollbar-width: thin; border-left: 1px solid var(--line); }
.sn-dp-col:last-child { border-left: none; }
.sn-dp-col::-webkit-scrollbar { width: 5px; }
.sn-dp-col .t { position: sticky; top: 0; background: var(--bg); padding: 6px; text-align: center; font-size: 11px; font-weight: 800; color: var(--text-2); border-bottom: 1px solid var(--line); z-index: 2; }
.sn-dp-it { padding: 7px 4px; text-align: center; font-size: 13px; cursor: pointer; border-radius: 8px; margin: 1px 5px; }
.sn-dp-it:hover { background: var(--bg-2); }
.sn-dp-it.on { background: var(--silver); color: #14181d; font-weight: 900; }
.sn-dp-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel-2); }
.sn-dp-foot button { flex: 1; padding: 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-family: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.sn-dp-foot button.ok { background: var(--silver); color: #14181d; border: none; box-shadow: var(--shadow-3d); }
input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
