/* ==================== لوحة تحكم SYCOOP ==================== */
.admin-body{ background: var(--bg); min-height:100vh; }

/* ---------- شاشة الدخول ---------- */
.login-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(255,152,0,.14), transparent),
    radial-gradient(600px 400px at -10% 110%, rgba(42,117,198,.16), transparent),
    var(--primary-dark);
  padding:20px;
}
.login-card{
  background:#fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding:44px; width:100%; max-width:400px;
}
.login-card .logo{ justify-content:center; margin-bottom:6px; font-size:1.4rem;}
.login-card p.sub{ text-align:center; color:var(--muted); font-size:.85rem; margin-bottom:28px;}
.login-card .field{ margin-bottom:16px; }
.login-card .field label{ display:block; font-size:.82rem; font-weight:700; color:var(--muted); margin-bottom:6px;}
.login-card .field input{
  width:100%; padding:12px 14px; border:1px solid var(--border); border-radius: var(--radius-sm); font-size:.92rem;
}
.login-card button{
  width:100%; background: var(--primary); color:#fff; font-weight:800; padding:13px; border-radius: var(--radius-pill);
  margin-top:8px; transition:.2s;
}
.login-card button:hover{ background: var(--primary-dark); }
.login-hint{
  background: var(--primary-light); color:var(--primary-dark); font-size:.78rem;
  padding:10px 14px; border-radius: var(--radius-sm); margin-top:18px; text-align:center;
}
.login-error{ color:var(--danger); font-size:.82rem; text-align:center; margin-top:10px; display:none;}

/* ---------- تخطيط اللوحة ---------- */
.admin-shell{ display:flex; min-height:100vh; }
.admin-sidebar{
  width: 240px; background: var(--primary-dark); color:#fff; flex-shrink:0;
  padding: 24px 0; display:flex; flex-direction:column;
}
.admin-sidebar .logo{ color:#fff; padding: 0 22px 24px; font-size:1.15rem; }
.admin-nav a{
  display:flex; align-items:center; gap:12px; padding:12px 22px; font-size:.88rem; font-weight:600;
  color: rgba(255,255,255,.72); border-right: 3px solid transparent; transition:.2s all;
}
.admin-nav a:hover{ background: rgba(255,255,255,.06); color:#fff; }
.admin-nav a.active{ background: rgba(255,255,255,.1); color:#fff; border-color: var(--accent); }
.nav-badge{
  margin-right:auto; background:var(--danger); color:#fff; font-size:.7rem; font-weight:700;
  border-radius:99px; padding:1px 7px; line-height:1.5;
}
.deprecated-banner{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  background:#FFF3E0; border:1px solid #FFCC80; color:#E65100; border-radius: var(--radius-md);
  padding:14px 20px; margin-bottom:18px; font-weight:600; font-size:.85rem;
}
[data-theme="dark"] .deprecated-banner{ background:#3A2A10; border-color:#5C4319; color:#FFB300; }
.admin-sidebar .logout-btn{
  margin: 16px 22px 0; padding:10px; text-align:center; border:1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm); font-size:.82rem; color: rgba(255,255,255,.8);
}
.admin-sidebar .logout-btn:hover{ background: rgba(255,255,255,.08); color:#fff; }
.admin-sidebar .spacer{ flex:1; }

.admin-main{ flex:1; min-width:0; }
.admin-topbar{
  background:#fff; border-bottom:1px solid var(--border); padding:16px 30px;
  display:flex; align-items:center; justify-content:space-between;
}
.admin-topbar h1{ font-size:1.1rem; }
.admin-topbar .view-site{ font-size:.82rem; font-weight:700; color:var(--primary); }
.admin-content{ padding: 28px 30px; }

/* ---------- بطاقات إحصائية ---------- */
.stat-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:18px; margin-bottom:28px;}
.stat-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-md); padding:20px;
  box-shadow: var(--shadow-sm); display:flex; align-items:center; gap:14px;
}
.stat-card .ic{ width:48px; height:48px; border-radius: var(--radius-pill); background:var(--primary-light); display:flex; align-items:center; justify-content:center; font-size:1.3rem; flex-shrink:0;}
.stat-card .num{ font-family: var(--font-display); font-size:1.5rem; font-weight:800; color: var(--primary-dark); line-height:1.2;}
.stat-card .lbl{ font-size:.8rem; color:var(--muted); }

/* ---------- جداول الإدارة ---------- */
.admin-panel{ background:#fff; border:1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.admin-panel-head{ display:flex; justify-content:space-between; align-items:center; padding:18px 22px; border-bottom:1px solid var(--border); flex-wrap:wrap; gap:10px;}
.admin-panel-head h3{ font-size:1rem; }
.admin-search{ display:flex; gap:8px; }
.admin-search input{ padding:9px 14px; border:1px solid var(--border); border-radius: var(--radius-sm); font-size:.85rem; min-width:220px;}

table.admin-table{ width:100%; border-collapse: collapse; }
table.admin-table th{ text-align:right; font-size:.76rem; color:var(--muted); text-transform:uppercase; padding:12px 18px; border-bottom:1px solid var(--border); background:var(--bg);}
table.admin-table td{ padding:14px 18px; font-size:.86rem; border-bottom:1px solid var(--border); vertical-align:middle;}
table.admin-table tr:last-child td{ border-bottom:none; }
table.admin-table tr:hover td{ background: var(--bg); }
/* شريط صفحات موحَّد أسفل أي جدول طويل (يستخدمه assets/js/list-toolbar.js) — مربع البحث/الفلاتر
   الخاصة بكل قائمة تبقى مبنيّة يدويًا بطراز .admin-search/.admin-panel-head الحالي لتطابق باقي
   لوحة التحكم، فهذا الجزء فقط عام عبر كل القوائم. */
.tb-list-pagination{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:12px 22px; border-top:1px solid var(--border); }
.tb-list-pagination .tb-list-summary{ font-size:.8rem; color:var(--muted); white-space:nowrap; }
.tb-list-pagination .tb-list-pages{ display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.tb-list-pagination .tb-list-pages button{ min-width:30px; height:30px; padding:0 8px; border:1px solid var(--border); background:#fff; border-radius:var(--radius-sm); font-size:.8rem; cursor:pointer; color:var(--ink); }
.tb-list-pagination .tb-list-pages button:hover:not(:disabled){ background:var(--primary-light); border-color:var(--primary); }
.tb-list-pagination .tb-list-pages button:disabled{ opacity:.4; cursor:default; }
.tb-list-pagination .tb-list-pages button.active{ background:var(--primary); color:#fff; border-color:var(--primary); font-weight:700; }
.tb-list-pagination .tb-list-pages .ellipsis{ padding:0 4px; color:var(--muted); }
.tb-list-pagination .tb-list-size{ display:flex; align-items:center; gap:6px; font-size:.8rem; color:var(--muted); white-space:nowrap; }
.tb-list-pagination .tb-list-size select{ padding:5px 8px; font-size:.8rem; border:1px solid var(--border); border-radius:var(--radius-sm); background:#fff; color:var(--ink); }
[data-theme="dark"] .tb-list-pagination .tb-list-pages button,
[data-theme="dark"] .tb-list-pagination .tb-list-size select{ background:var(--surface); color:var(--ink); border-color:var(--border); }

.row-actions{ display:flex; gap:8px; }
.icon-btn{
  width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border); font-size:.85rem; color: var(--muted); transition:.2s;
}
.icon-btn:hover{ background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary);}
.icon-btn.danger:hover{ background:#FFEBEE; color:var(--danger); border-color:var(--danger);}

.status-dot{ display:inline-flex; align-items:center; gap:6px; font-size:.8rem; font-weight:700;}
.status-dot::before{ content:''; width:8px; height:8px; border-radius:50%; background: var(--ok); }
.status-dot.inactive::before{ background: var(--muted); }

.btn-primary{
  background: var(--primary); color:#fff; font-weight:700; padding:10px 22px; border-radius: var(--radius-pill); font-size:.85rem;
  display:inline-flex; align-items:center; gap:6px; transition:.2s;
}
.btn-primary:hover{ background: var(--primary-dark); }

/* ---------- نموذج إضافة/تعديل صنف ---------- */
.form-card{ background:#fff; border:1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding:28px; margin-bottom:20px;}
.form-card h3{ font-size:1rem; margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid var(--border);}
.form-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap:18px;}
.form-grid.full{ grid-template-columns: 1fr; }
.f-field label{ display:block; font-size:.82rem; font-weight:700; color:var(--ink); margin-bottom:7px;}
.f-field .req{ color:var(--accent); }
.f-field input, .f-field select, .f-field textarea{
  width:100%; padding:11px 14px; border:1px solid var(--border); border-radius: var(--radius-sm); font-size:.88rem; background: var(--bg);
}
.f-field textarea{ min-height:90px; resize:vertical; }
.f-field small{ display:block; color:var(--muted); font-size:.74rem; margin-top:4px;}
.form-actions{ display:flex; gap:12px; justify-content:flex-start; margin-top:6px; }
.btn-cancel{ background:#fff; border:1px solid var(--border); color:var(--muted); font-weight:700; padding:11px 24px; border-radius: var(--radius-pill); font-size:.85rem;}

.toast{
  position: fixed; bottom:24px; left:50%; transform: translateX(-50%);
  background: var(--primary-dark); color:#fff; padding:12px 26px; border-radius: var(--radius-pill);
  font-size:.85rem; font-weight:700; box-shadow: var(--shadow-lg); z-index:999; display:none;
}
.empty-state{ text-align:center; padding:50px 20px; color:var(--muted); }
.empty-state .ic{ font-size:2.2rem; margin-bottom:10px; }

/* ==================== قسم المحاسبة السحابية — ثيم أزرق بأسلوب برامج نقاط البيع الاحترافية ==================== */
:root{
  --acc-blue: #2A75C6;
  --acc-blue-dark: #1F5FA3;
  --acc-blue-light: #E8F1FC;
  --acc-green: #43A047;
  --acc-purple: #7B4FA0;
  --acc-ribbon: linear-gradient(180deg, #2A75C6, #1F5FA3);
}
.acc-sidebar{ background: linear-gradient(180deg,#123A63,#0D2C4D) !important; }
.acc-sidebar .logo{ color:#fff; }
.acc-nav a:hover{ background: rgba(255,255,255,.06); }
.acc-nav a.active{ background: rgba(255,255,255,.14) !important; border-color: #4FA3F7 !important; color:#fff !important; }
.acc-topbar-badge{
  background: var(--acc-blue); color:#fff; font-size:.72rem; font-weight:800; padding:4px 12px; border-radius: var(--radius-pill);
  margin-inline-start:10px;
}
.acc-stat-card .num{ color:#123A63; }
.acc-stat-card.profit .num{ color: var(--ok); }
.acc-stat-card.loss .num{ color: var(--danger); }
.invoice-line-row{ display:grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap:10px; align-items:center; margin-bottom:10px; }
.invoice-line-row input, .invoice-line-row select{ padding:9px 10px; border:1px solid var(--border); border-radius:8px; font-size:.82rem; }
.invoice-total-box{ background: var(--bg); border-radius: var(--radius-md); padding:16px 20px; text-align:left; font-size:1.1rem; font-weight:800; color:var(--acc-blue-dark); margin-top:10px;}

/* ---------- شريط الأزرار العلوي (Ribbon) بأسلوب برامج الصيدليات ---------- */
.acc-ribbon{
  background: var(--acc-ribbon); border-radius: var(--radius-md); padding: 12px 16px 14px;
  display:flex; gap:10px; overflow-x:auto; margin-bottom:18px; box-shadow: var(--shadow-sm);
}
.acc-ribbon-btn{
  display:flex; flex-direction:column; align-items:center; gap:6px; min-width:78px; padding:8px 10px;
  border-radius:10px; color:#fff; font-size:.7rem; font-weight:700; text-align:center; flex-shrink:0;
  background: rgba(255,255,255,.06);
}
.acc-ribbon-btn:hover{ background: rgba(255,255,255,.16); }
.acc-ribbon-btn .ic{ font-size:1.35rem; }
.acc-ribbon-btn.disabled{ opacity:.35; pointer-events:none; }

/* ---------- بطاقات لوحة القيادة الملونة (Tiles) ---------- */
.tile-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap:16px; }
.tile-card{
  border-radius: var(--radius-md); padding:18px 20px; color:#fff; display:flex; gap:14px; align-items:flex-start;
  box-shadow: var(--shadow-sm); min-height:96px; transition:.15s transform;
}
.tile-card:hover{ transform: translateY(-2px); }
.tile-card .ic{ font-size:1.8rem; opacity:.9; flex-shrink:0; }
.tile-card h4{ color:#fff; font-size:.92rem; margin-bottom:6px; }
.tile-card p{ font-size:.78rem; opacity:.92; line-height:1.6; }
.tile-blue{ background: linear-gradient(135deg,#4A94DB,#1F5FA3); }
.tile-green{ background: linear-gradient(135deg,#5CB85C,#388E3C); }
.tile-purple{ background: linear-gradient(135deg,#9B6CDB,#7B4FA0); }
.tile-navy{ background: linear-gradient(135deg,#3A6EA5,#123A63); }

/* ---------- شبكة بيانات كثيفة لصفحة نقطة البيع (مطابقة لأسلوب برامج الصيدليات) ---------- */
.pos-grid-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:8px; }
table.pos-grid{ width:100%; border-collapse:collapse; font-size:.78rem; min-width:760px; }
table.pos-grid thead th{
  background: var(--acc-blue); color:#fff; padding:8px 10px; text-align:right; font-weight:700; font-size:.72rem; white-space:nowrap;
}
table.pos-grid tbody td{ padding:7px 10px; border-bottom:1px solid var(--border); white-space:nowrap; }
table.pos-grid tbody tr:hover td{ background: var(--acc-blue-light); }
table.pos-grid .num-cell{ color: var(--acc-blue-dark); font-weight:700; }
table.pos-grid .total-cell{ color: var(--danger); font-weight:800; }

.pos-topbar{
  background:#fff; border:1px solid var(--border); border-radius:8px; padding:10px 14px;
  display:flex; gap:12px; align-items:center; margin-bottom:12px; flex-wrap:wrap;
}
.pos-topbar .f-field{ flex:1; min-width:180px; margin-bottom:0; }
.pos-status-bar{
  background: var(--acc-blue-dark); color:#cfe3fb; font-size:.72rem; padding:8px 16px; border-radius:8px; margin-top:16px;
}
.pos-pay-radio-group{ display:flex; gap:14px; flex-wrap:wrap; padding:10px 0; }
.pos-pay-radio-group label{ display:flex; align-items:center; gap:6px; font-size:.82rem; font-weight:700; color:var(--ink); }
.pos-summary-box{
  background:#fff; border:1px solid var(--border); border-radius:8px; padding:14px 16px; display:grid;
  grid-template-columns: repeat(3,1fr); gap:10px; margin-top:12px;
}
.pos-summary-box .item{ text-align:center; }
.pos-summary-box .item .lbl{ font-size:.72rem; color:var(--muted); }
.pos-summary-box .item .val{ font-size:1.1rem; font-weight:800; color:var(--acc-blue-dark); }
.pos-tab-mini{ display:flex; gap:4px; border-bottom:2px solid var(--border); margin-bottom:12px; }
.pos-tab-mini button{ padding:8px 14px; font-size:.78rem; font-weight:700; color:var(--muted); border-bottom:3px solid transparent; }
.pos-tab-mini button.active{ color: var(--acc-blue); border-color: var(--acc-blue); }

/* ---------- شريط معلومات النظام العلوي (يحاكي شريط الإصدار في برامج نقاط البيع) ---------- */
.pos-sysbar{
  background: var(--acc-blue-dark); color: #cfe3fb; font-size:.7rem; padding:6px 16px; border-radius:6px;
  display:flex; justify-content:center; gap:18px; margin-bottom:10px; flex-wrap:wrap;
}

/* ---------- تبويبات جلسات البيع المتعددة (بيع نقدي 1/2/3...) ---------- */
.pos-session-tabs{ display:flex; gap:4px; margin-bottom:14px; align-items:center; flex-wrap:wrap; }
.pos-session-tab{
  display:flex; align-items:center; gap:8px; padding:9px 16px; border-radius:8px 8px 0 0; font-size:.82rem; font-weight:700;
  background:#fff; border:1px solid var(--border); border-bottom:none; color:var(--muted); cursor:pointer;
}
.pos-session-tab.active{ background: var(--acc-blue); color:#fff; }
.pos-session-tab .close-x{ opacity:.7; font-size:.75rem; }
.pos-session-tab .close-x:hover{ opacity:1; }
.pos-session-add{
  width:32px; height:32px; border-radius:8px; border:1px dashed var(--border); color:var(--muted); font-size:1rem;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}

/* ---------- صف أزرار الإجراءات الملوّنة ---------- */
.pos-action-row{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.pos-act-btn{
  display:flex; align-items:center; gap:6px; padding:9px 16px; border-radius:8px; color:#fff; font-size:.78rem; font-weight:700;
  box-shadow: var(--shadow-sm);
}
.pos-act-btn:hover{ filter:brightness(1.08); }
.pos-act-purple{ background: var(--acc-purple); }
.pos-act-red{ background:#D32F2F; }
.pos-act-blue{ background: var(--acc-blue); }
.pos-act-green{ background: var(--acc-green); }

/* ---------- التخطيط الرئيسي بعمودين (يطابق نسب التصميم المرجعي: محتوى رئيسي + شريط منتج جانبي كامل الارتفاع) ---------- */
.pos-main-layout{ display:grid; grid-template-columns: 1fr 360px; gap:18px; align-items:start; }
.pos-right-col{ position:sticky; top:16px; }
@media (max-width: 1100px){
  .pos-main-layout{ grid-template-columns: 1fr; }
  .pos-right-col{ position:static; }
}
.pos-grid-tabs{ display:flex; gap:4px; margin-bottom:8px; }
.pos-grid-tabs button{ padding:8px 16px; font-size:.78rem; font-weight:700; color:var(--muted); border-bottom:3px solid transparent; }
.pos-grid-tabs button.active{ color: var(--acc-blue); border-color: var(--acc-blue); }
.pos-expand-arrow{ cursor:pointer; color: var(--acc-blue); font-weight:800; }

/* ---------- نافذة تفاصيل منبثقة (لبطاقات النظرة العامة القابلة للنقر) ---------- */
.tile-card{ cursor:pointer; }
.modal-overlay{
  position:fixed; inset:0; background:rgba(10,20,35,.55); z-index:200; display:none;
  align-items:flex-start; justify-content:center; padding:60px 20px; overflow-y:auto;
}
.modal-overlay.open{ display:flex; }
.modal-box{
  background:#fff; border-radius: var(--radius-lg); max-width:720px; width:100%; box-shadow: var(--shadow-lg);
  overflow:hidden; animation: modalIn .15s ease;
}
@keyframes modalIn{ from{ transform:translateY(-10px); opacity:0;} to{ transform:translateY(0); opacity:1;} }
.modal-head{ background: var(--acc-blue); color:#fff; padding:16px 22px; display:flex; justify-content:space-between; align-items:center; }
.modal-head h3{ color:#fff; margin:0; font-size:1rem; }
.modal-close{ color:#fff; font-size:1.2rem; opacity:.85; }
.modal-close:hover{ opacity:1; }
.modal-body{ padding:20px 22px; max-height:60vh; overflow-y:auto; }

/* ---------- قائمة سياقية (زر الفأرة الأيمن) ---------- */
.ctx-menu{
  position:fixed; z-index:500; background:#fff; border:1px solid var(--border); border-radius:8px;
  box-shadow: var(--shadow-lg); min-width:190px; padding:6px; display:none;
}
.ctx-menu.open{ display:block; }
.ctx-menu-item{
  display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:6px; font-size:.83rem; font-weight:600; color:var(--ink); cursor:pointer;
}
.ctx-menu-item:hover{ background: var(--acc-blue-light); color: var(--acc-blue-dark); }
.ctx-menu-item.danger:hover{ background:#FFEBEE; color:var(--danger); }
.ctx-menu-sep{ height:1px; background:var(--border); margin:5px 4px; }
.ctx-hint{ font-size:.66rem; color:var(--muted); text-align:center; padding:4px 0 2px; }

/* ==================== الوضع الليلي / الفاتح (Dark / Light Mode) ==================== */
[data-theme="dark"]{
  --bg: #12161C;
  --surface: #1A2028;
  --ink: #E8EDF2;
  --muted: #8B98A8;
  --border: #2A3340;
  --primary-light: #14283A;
}
[data-theme="dark"] body,
[data-theme="dark"] .admin-body{ background: var(--bg); color: var(--ink); }
[data-theme="dark"] .admin-topbar,
[data-theme="dark"] .form-card,
[data-theme="dark"] .admin-panel,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .info-panel,
[data-theme="dark"] .data-table-card,
[data-theme="dark"] .login-card,
[data-theme="dark"] table.admin-table th{ background: var(--surface); color: var(--ink); border-color: var(--border); }
[data-theme="dark"] table.admin-table tr:hover td{ background: #202832; }
[data-theme="dark"] .f-field input, [data-theme="dark"] .f-field select, [data-theme="dark"] .f-field textarea,
[data-theme="dark"] .admin-search input{ background: #0F1319; color: var(--ink); border-color: var(--border); }
[data-theme="dark"] .btn-cancel{ background: var(--surface); color: var(--muted); border-color: var(--border); }
.theme-toggle-btn{
  display:flex; align-items:center; justify-content:center; gap:8px; margin: 0 22px 14px;
  padding:10px; border:1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm);
  color: rgba(255,255,255,.85); font-size:.8rem; font-weight:700; background: rgba(255,255,255,.04);
}
.theme-toggle-btn:hover{ background: rgba(255,255,255,.1); }

@media (max-width: 860px){
  .admin-shell{ flex-direction:column; }
  .admin-sidebar{ width:100%; flex-direction:row; overflow-x:auto; padding:12px; }
  .admin-sidebar .logo{ display:none; }
  .admin-nav{ display:flex; }
  .admin-sidebar .spacer, .admin-sidebar .logout-btn{ display:none; }

  /* جداول البيانات كلها مغلَّفة أصلاً بـ<div style="overflow-x:auto;"> في كل صفحات الإدارة — عرض أدنى
     هنا يُفعّل ذلك التمرير الأفقي الموجود بدل ضغط نص الأعمدة حتى يصبح غير مقروء (نفس منطق
     table.tb-grid في tebeos.css الخاص بتطبيق نقطة البيع). */
  table.admin-table{ min-width:640px; }
  /* سطر تحرير بند فاتورة (اسم/كمية/سعر/إجمالي/حذف) بخمسة أعمدة يضيق جدًا على هاتف — عمود واحد بدله */
  .invoice-line-row{ grid-template-columns:1fr; }
}

/* ==================== إدارة السوق (لوحة التحكم) ==================== */
.mkt-tabs{ display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:18px; flex-wrap:wrap; }
.mkt-tabs button{ padding:11px 18px; font-size:.85rem; font-weight:700; color:var(--muted); border-bottom:3px solid transparent; }
.mkt-tabs button.active{ color: var(--primary); border-color: var(--primary); }
.mkt-tabs button .cnt{ background: var(--primary-light); color:var(--primary-dark); border-radius:99px; padding:1px 8px; font-size:.72rem; margin-inline-start:6px; }
.mkt-pane{ display:none; }
.mkt-pane.active{ display:block; }

.badge{ display:inline-block; font-size:.72rem; padding:3px 10px; border-radius:99px; font-weight:700; }
.badge.green{ background:#E8F5E9; color:#2E7D32; }
.badge.orange{ background:#FFF3E0; color:#EF6C00; }
.badge.blue{ background:#E3F2FD; color:#1565C0; }
.badge.red{ background:#FFEBEE; color:#D32F2F; }
.badge.gray{ background:#EEF0F2; color:var(--muted); }

.verified-badge{ display:inline-flex; align-items:center; gap:3px; background:#E3F2FD; color:#1565C0; font-size:.7rem; font-weight:800; padding:2px 8px; border-radius:99px; }
.stars{ color:#FFB300; font-size:.82rem; letter-spacing:1px; white-space:nowrap; }
.stars small{ color:var(--muted); font-weight:600; margin-inline-start:3px; }

.mkt-filters{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding:14px 22px; border-bottom:1px solid var(--border); }
.mkt-filters select, .mkt-filters input{ padding:8px 12px; border:1px solid var(--border); border-radius: var(--radius-sm); font-size:.82rem; }
.mkt-report-note{ font-size:.78rem; color:var(--muted); max-width:280px; }

[data-theme="dark"] .badge.green{ background:#123A26; color:#5CD68A; }
[data-theme="dark"] .badge.orange{ background:#3A2A10; color:#F5B15C; }
[data-theme="dark"] .badge.blue{ background:#122B45; color:#6CB2F5; }
[data-theme="dark"] .badge.red{ background:#3A1414; color:#F58C8C; }
[data-theme="dark"] .badge.gray{ background:#232A33; color:var(--muted); }
[data-theme="dark"] .verified-badge{ background:#122B45; color:#6CB2F5; }
