/* الطبقة الثالثة (شاشة فقط): الصفحة الأولى الجديدة + ألوان ما بعد الدخول + الوضع الداكن */
@media screen {
/* ===== ألوان التطبيق بعد الدخول (الشريط العلوي يبقى كما هو) ===== */
body.app-on { --primary-color: #0f766e; --primary-dark: #115e59; --primary-light: #14b8a6; --accent-color: #f59e0b; --accent-hover: #d97706; --btn-orange: #e8590c; --bg-color: #f1f6f5; --border-color: #d6e3e1; }
body.app-on { background: radial-gradient(1000px 360px at 90% -8%, rgba(20,184,166,.14), transparent 60%), radial-gradient(800px 320px at 0% 0%, rgba(245,158,11,.10), transparent 55%), var(--bg-color); }
body.app-on .section-bar { border-color: rgba(15,118,110,.10); }
body.app-on .btn-blue.active, body.app-on .btn-action-warning { box-shadow: none; }
body.app-on .printable-list-table th { background: #e3f3f0; color: var(--primary-color); }
body.app-on .printable-list-table tbody tr:nth-child(even) { background: #f8fcfb; }
body.app-on .printable-list-table tbody tr:hover { background: #eef8f6; }
body.app-on .student-card-header { background: linear-gradient(180deg, #f7fcfb, #ecf6f4); }
body.app-on .class-card-item.active { background: linear-gradient(135deg, #0f766e, #14b8a6) !important; border-color: transparent !important; }
body.app-on .class-card-item:hover { border-color: var(--primary-light); }
body.app-on .cm-track { background: #dcece9; }
body.app-on .summary-block { border-top-color: var(--primary-color); }
body.app-on :focus-visible, body.app-on input:focus, body.app-on select:focus, body.app-on textarea:focus { box-shadow: 0 0 0 3px rgba(15,118,110,.25) !important; border-color: var(--primary-color); }
body.app-on .inner-tabs { gap: 6px; border-bottom: none; padding-bottom: 0; background: #e6f1ef; border-radius: 14px; padding: 5px; }
body.app-on .inner-tabs .btn-blue { background: transparent; color: var(--primary-color); border-radius: 10px; }
body.app-on .inner-tabs .btn-blue:hover { background: rgba(15,118,110,.10); transform: none; box-shadow: none; }
body.app-on .inner-tabs .btn-blue.active { background: var(--primary-color) !important; color: #fff !important; border-color: transparent !important; }

/* ===== شريط السنة/الشهر/المبلغ/البحث ===== */
.filters-bar { padding: 12px 16px; }
.gf-grid { display: grid; width: 100%; gap: 12px; grid-template-columns: 110px minmax(130px, 1fr) 170px minmax(220px, 2fr); align-items: end; }
.gf-f { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.gf-f > span { font-size: .78em; font-weight: 800; color: #64748b; }
.gf-f input, .gf-f select { width: 100%; box-sizing: border-box; padding: 9px 10px; font-weight: 700; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: #fff; text-align: center; }
.gf-search input { text-align: start; }
body:not([data-view="home"]) .gf-search { display: none; }
body:not([data-view="home"]) .gf-grid { grid-template-columns: 110px minmax(130px, 1fr) 170px; max-width: 560px; }

/* ===== الصفوف: بطاقات أو قائمة منسدلة ===== */
.class-picker { flex-direction: column; align-items: stretch; gap: 10px; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cp-head h4 { margin: 0; color: var(--primary-color); font-weight: 800; }
.seg { display: inline-flex; background: #e6f1ef; border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: none; background: transparent; color: var(--primary-color); font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: .82em; }
.seg button.on { background: var(--primary-color); color: #fff; }
#classSelect { font-weight: 800; padding: 11px 12px; }

/* ===== أدوات القائمة + نسبة التحصيل في صف واحد ===== */
.home-tools { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 14px; }
.home-tools .btn-action-print { padding: 10px 16px; }
.home-tools .collect-meter { flex: 1 1 260px; margin: 0; padding: 8px 16px; }
.count-pill { font-weight: 800; font-size: .85em; color: var(--primary-color); background: #e3f3f0; padding: 5px 12px; border-radius: 999px; }

/* ===== الأسماء: تظهر الأسماء فقط، والتفاصيل بالضغط على الاسم ===== */
.cards-container { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-items: start; gap: 12px; }
.student-card-header { cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 1.05em; text-align: start; }
.student-card-header::after { content: '▾'; font-size: .8em; opacity: .55; transition: transform .2s; }
.student-card:not(.collapsed) .student-card-header::after { transform: rotate(180deg); }
.student-card:not(.collapsed) .student-card-header { border-bottom: 1px solid var(--border-color); }
.student-card.collapsed .student-card-body, .student-card.collapsed .student-card-actions { display: none !important; }
.student-card.collapsed .student-card-header { border-bottom: none; }
.list-view .student-card { flex-wrap: wrap; }
.list-view .student-card-header { flex: 1 1 100%; min-width: 0; border-left: none; padding: 12px 16px; }
.list-view .student-card:not(.collapsed) .student-card-body { padding: 12px 16px; }

/* ===== الصفحة الأولى ===== */
#landing { margin: -15px; min-height: 100vh; }
.ld-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px max(16px, calc((100% - 1180px) / 2)); background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
.ld-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ld-brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 2px 8px rgba(34,27,82,.2); }
.ld-brand b { color: var(--primary-color); font-weight: 800; font-size: 1.15em; }
.ld-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ld-btn { border: 2px solid transparent; border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: .92em; cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .12s; }
.ld-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(34,27,82,.2); }
.ld-btn-primary { background: var(--primary-color); color: #fff; }
.ld-btn-accent { background: var(--btn-orange); color: #fff; }
.ld-btn-ghost { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.ld-btn-icon { background: rgba(75,53,155,.08); padding: 10px 14px; }
.ld-main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 26px 20px 10px; }
.ld-features { max-width: none; padding: 0 0 26px; }
.ld-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ld-card { padding: 24px 20px; }
.ld-card span { font-size: 2.3em; display: inline-block; }
.ld-card h3 { font-size: 1.1em; }
.ld-steps { max-width: none; padding: 6px 0 30px; }
.ld-steps h2 { margin: 0 0 14px; }
.ld-steps-list { grid-template-columns: repeat(3, 1fr); }
.ld-contact { margin-top: 20px; background: linear-gradient(135deg, #221b52, #3a2c86); color: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.ld-contact h3 { margin: 0 0 12px; font-weight: 800; }
.ld-contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ld-contact-row a { color: #fff; text-decoration: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 10px 18px; border-radius: 999px; font-weight: 800; }
.ld-contact-row a:hover { background: var(--accent-color); color: #221b52; }

@media (max-width: 900px) {
  .ld-grid, .ld-steps-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .gf-grid, body:not([data-view="home"]) .gf-grid { grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; max-width: none; }
  .gf-search { grid-column: 1 / -1; }
  .gf-f > span { font-size: .72em; }
  .ld-top { padding: 10px 14px; }
  .ld-brand b { font-size: 1em; }
  .ld-top-actions { width: 100%; }
  .ld-top-actions .ld-btn { flex: 1 1 auto; padding: 9px 10px; font-size: .82em; }
  .ld-grid, .ld-steps-list { grid-template-columns: 1fr; }
  .ld-main { padding: 18px 14px 6px; }
  .home-tools .btn-action-print { flex: 1 1 45%; }
  .cards-container { grid-template-columns: 1fr 1fr; }
  .student-card-header { padding: 10px; font-size: .95em; }
  .list-view .student-card-header { padding: 11px 12px; }
}
@media (max-width: 420px) { .cards-container { grid-template-columns: 1fr; } }

/* ===== الوضع الداكن ===== */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { --bg-color: #0e1620; --border-color: #263543; --text-color: #e4ecf3; --surface: #162230; --surface-2: #1c2b3a; --muted: #9fb2c3; background: var(--bg-color); color: var(--text-color); }
html[data-theme="dark"] body.app-on { --primary-color: #2dd4bf; --primary-dark: #14b8a6; --primary-light: #5eead4; --btn-orange: #fb923c; background: radial-gradient(900px 320px at 90% -8%, rgba(45,212,191,.10), transparent 60%), var(--bg-color); }
html[data-theme="dark"] body:not(.app-on) { --primary-color: #a89cf5; --primary-dark: #8b7ee8; }
html[data-theme="dark"] .section-bar, html[data-theme="dark"] .student-card, html[data-theme="dark"] .class-card-item, html[data-theme="dark"] .collect-meter, html[data-theme="dark"] .custom-modal-content, html[data-theme="dark"] .dialog-box, html[data-theme="dark"] .login-box, html[data-theme="dark"] .phone-card-item, html[data-theme="dark"] .ld-card, html[data-theme="dark"] .ld-steps-list li { background: var(--surface); color: var(--text-color); border-color: var(--border-color); }
html[data-theme="dark"] .student-card-header, html[data-theme="dark"] .student-card-actions, html[data-theme="dark"] .admin-charts, html[data-theme="dark"] .summary-block { background: var(--surface-2) !important; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea, html[data-theme="dark"] .gf-f input, html[data-theme="dark"] .gf-f select { background: var(--surface-2); color: var(--text-color); border-color: var(--border-color); }
html[data-theme="dark"] .gf-f > span, html[data-theme="dark"] .card-field label, html[data-theme="dark"] .login-note, html[data-theme="dark"] .ld-sub, html[data-theme="dark"] .ld-card p, html[data-theme="dark"] .ld-steps-list small { color: var(--muted); }
html[data-theme="dark"] .seg, html[data-theme="dark"] body.app-on .inner-tabs, html[data-theme="dark"] .count-pill { background: var(--surface-2); }
html[data-theme="dark"] .printable-list-table { border-color: var(--border-color); }
html[data-theme="dark"] .printable-list-table th, html[data-theme="dark"] body.app-on .printable-list-table th { background: var(--surface-2); color: var(--primary-color); }
html[data-theme="dark"] .printable-list-table td { border-bottom-color: var(--border-color); }
html[data-theme="dark"] .printable-list-table tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
html[data-theme="dark"] .printable-list-table tbody tr:hover { background: rgba(255,255,255,.07); }
html[data-theme="dark"] .cm-track, html[data-theme="dark"] .chart-bar-container { background: var(--surface-2); }
html[data-theme="dark"] .chart-value, html[data-theme="dark"] .dialog-box p, html[data-theme="dark"] .calc-row { color: var(--text-color); }
html[data-theme="dark"] [style*="background: #f8fafc"], html[data-theme="dark"] [style*="background: #fff;"], html[data-theme="dark"] [style*="background: #f0f9ff"], html[data-theme="dark"] [style*="background: #f5f3ff"], html[data-theme="dark"] [style*="background: #f0fdf4"] { background: var(--surface-2) !important; color: var(--text-color); }
html[data-theme="dark"] [style*="color: #64748b"], html[data-theme="dark"] [style*="color: #475569"], html[data-theme="dark"] [style*="color: #334155"] { color: var(--muted) !important; }
html[data-theme="dark"] .ld-top { background: rgba(14,22,32,.88); }
html[data-theme="dark"] #landing { background: linear-gradient(180deg, #0e1620 0%, #141c2e 100%); }
html[data-theme="dark"] #landing::before, html[data-theme="dark"] #landing::after { opacity: .15; }
html[data-theme="dark"] .ld-btn-primary { background: #6d5fd6; }
html[data-theme="dark"] .ld-btn-icon { background: rgba(255,255,255,.1); color: #fff; }
html[data-theme="dark"] .nav-buttons-section { }
@media (max-width: 700px) { html[data-theme="dark"] .nav-buttons-section { background: rgba(14,22,32,.96); border-top-color: var(--border-color); } html[data-theme="dark"] .nav-buttons-section .btn-blue { color: var(--muted); } html[data-theme="dark"] .nav-buttons-section .btn-blue.active { background: var(--surface-2) !important; color: var(--primary-color) !important; } }
}

@media screen {
.gf-grid, body:not([data-view="home"]) .gf-grid { grid-template-columns: 120px minmax(150px, 1fr) 190px; max-width: 640px; margin-inline: auto; }
.ld-hero2 { position: relative; z-index: 1; text-align: center; padding: 34px 20px 6px; }
.ld-hero2 .ld-logo { width: min(210px, 55vw); height: auto; border-radius: 28px; box-shadow: 0 16px 40px rgba(75,53,155,.22); }
.ld-hero2 h1 { margin: 14px 0 4px; font-size: 2.6em; font-weight: 800; letter-spacing: 1px; color: var(--primary-color); }
.ld-hero2 p { margin: 0; font-size: 1.25em; font-weight: 700; color: #475569; }
.home-search { gap: 12px; align-items: end; flex-wrap: wrap; }
.home-search .hs-input { flex: 1 1 280px; }
.home-search .hs-input input { text-align: start; font-size: 1.05em; padding: 11px 14px; width: 100%; box-sizing: border-box; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); }
.hs-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hs-btns .btn-action-print { padding: 11px 16px; }
.home-stats { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.home-stats .stat-badge { cursor: default; padding: 10px 16px; font-size: .95em; }
.home-stats .stat-badge:hover { transform: none; opacity: 1; }
.home-stats .collect-meter { flex: 1 1 240px; margin: 0; padding: 8px 16px; }
.student-card { border-right-width: 6px; }
.student-card-header { padding: 14px 16px; font-size: 1.1em; }
.student-card:not(.collapsed) { box-shadow: var(--shadow); border-color: var(--primary-light); }
html[data-theme="dark"] .ld-hero2 p { color: var(--muted); }
@media (max-width: 700px) {
  .gf-grid, body:not([data-view="home"]) .gf-grid { grid-template-columns: 1fr 1.3fr 1fr; max-width: none; }
  .ld-hero2 h1 { font-size: 2em; } .ld-hero2 p { font-size: 1.05em; }
  .hs-btns { width: 100%; } .hs-btns .btn-action-print { flex: 1; }
  .home-stats .stat-badge { flex: 1 1 28%; justify-content: center; padding: 9px 6px; font-size: .85em; }
}
}
@media screen { .gf-grid, body:not([data-view="home"]) .gf-grid { grid-template-columns: 130px 1fr 1fr; max-width: none; } .gf-f > span { font-size: .8em; } }
@media screen and (max-width: 700px) { .gf-grid, body:not([data-view="home"]) .gf-grid { grid-template-columns: 1fr 1.3fr 1fr; } }

@media screen {
.amt-row { display: flex; gap: 6px; }
.amt-row input { width: 80px; flex: none; }
.amt-row select { flex: 1; min-width: 0; }
.gf-f select { font-size: .95em; }
.gf-grid, body:not([data-view="home"]) .gf-grid { grid-template-columns: 120px minmax(130px, 1fr) minmax(260px, 1.8fr); }
.student-card-header { cursor: default; }
.student-card-header::after { content: none; }
.student-card.collapsed .student-card-body, .student-card.collapsed .student-card-actions { display: block !important; }
.student-card.collapsed .student-card-actions { display: flex !important; }
}
@media screen and (max-width: 700px) {
.gf-grid, body:not([data-view="home"]) .gf-grid { grid-template-columns: 1fr 1.5fr; }
.gf-amt { grid-column: 1 / -1; }
}
@media screen {
.student-card:not(.collapsed) { border-color: var(--border-color); }
.student-card.paid-row { border-right: 6px solid var(--success-color); }
.student-card:not(.paid-row) { border-right: 6px solid var(--danger-color); }
body.app-on .student-card:not(.paid-row) .student-card-header { background: #fee2e2; color: #b91c1c; }
body.app-on .student-card.paid-row .student-card-header { background: #dcfce7; color: #047857; }
html[data-theme="dark"] body.app-on .student-card:not(.paid-row) .student-card-header { background: rgba(239,68,68,.22) !important; color: #fca5a5; }
html[data-theme="dark"] body.app-on .student-card.paid-row .student-card-header { background: rgba(34,197,94,.20) !important; color: #86efac; }
}

@media screen {
.settings-period .gf-grid, body:not([data-view="home"]) .settings-period .gf-grid { grid-template-columns: 1fr 1fr; max-width: none; gap: 10px; }
.settings-period .gf-amt { grid-column: 1 / -1; }
.settings-period .gf-f input, .settings-period .gf-f select { background: #fff; }
.settings-period .amt-row input { width: 90px; }
html[data-theme="dark"] .settings-period .gf-f input, html[data-theme="dark"] .settings-period .gf-f select { background: var(--surface-2); }
}

/* الوضع الداكن: جدول الشهور (صفوفه ورأسه كانت بخلفيات فاتحة ثابتة) */
@media screen {
html[data-theme="dark"] #stats-tab-months thead tr { background: var(--surface-2) !important; }
html[data-theme="dark"] #stats-tab-months thead th { color: var(--text-color); border-color: var(--border-color) !important; }
html[data-theme="dark"] #monthsSummaryTableBody tr { background: var(--surface-2) !important; }
html[data-theme="dark"] #monthsSummaryTableBody tr[style*="font-weight: bold"] { background: rgba(45,212,191,.16) !important; }
html[data-theme="dark"] #monthsSummaryTableBody td { border-color: var(--border-color) !important; }
html[data-theme="dark"] #monthsSummaryTableBody td:first-child { color: var(--text-color); }
}

/* متابعة الغياب (شاشة) */
@media screen {
.att-wrap { overflow-x: auto; border-radius: 12px; }
.att-table { width: auto; min-width: 100%; }
.att-table th, .att-table td { padding: 0; text-align: center; }
.att-table th.att-day { min-width: 38px; cursor: pointer; line-height: 1.2; padding: 4px 2px; }
.att-table th.att-day small { display: block; font-weight: 700; opacity: .7; font-size: .75em; }
.att-table td[data-d] { height: 40px; min-width: 38px; cursor: pointer; user-select: none; -webkit-user-select: none; font-weight: 800; touch-action: manipulation; }
.att-table td.att-p { background: rgba(16,185,129,.20); color: #047857; }
.att-table td.att-a { background: rgba(239,68,68,.20); color: #b91c1c; }
.att-table td.att-no, .att-table td.att-name { position: sticky; z-index: 2; background: var(--surface, #fff); }
.att-table td.att-no { right: 0; min-width: 34px; }
.att-table td.att-name { right: 34px; min-width: 130px; padding: 0 10px; white-space: nowrap; font-weight: 800; text-align: start; }
.att-table th.att-no, .att-table th.att-name { position: sticky; z-index: 3; }
.att-table th.att-no { right: 0; min-width: 34px; } .att-table th.att-name { right: 34px; min-width: 130px; }
body.app-on .att-table th.att-sel { background: var(--accent-color); color: #1f2937; }
.att-table th.att-today { box-shadow: inset 0 -3px 0 var(--btn-orange); }
html[data-theme="dark"] .att-table td.att-p { color: #86efac; }
html[data-theme="dark"] .att-table td.att-a { color: #fca5a5; }
html[data-theme="dark"] body.app-on .att-table th.att-sel { background: var(--accent-color); color: #1f2937; }
}

/* ألوان الشريط الجانبي (الكمبيوتر) */
@media screen {
:root { --sb-bg-1: #2c2878; --sb-bg-2: #1c1950; --sb-active: #f59e0b; --sb-w: 244px; }
html[data-theme="dark"] { --sb-bg-1: #1d2140; --sb-bg-2: #12142b; }
}

/* لوحة الألوان: كل الأزرار من الأزرق/الأبيض. الأحمر للخروج والحذف وعدم الدفع فقط، الإدارة أخضر، العدّاد أصفر */
@media screen {
:root { --btn-orange: #2563eb; --btn-orange-hover: #1d4ed8; --btn-admin: #16a34a; --btn-counter: #facc15; --sb-active: #ffffff; }
body.app-on { --primary-color: #3b34a5; --primary-dark: #2c2878; --primary-light: #5a52c7; --accent-color: #bfdbfe; --accent-hover: #93c5fd; --btn-orange: #2563eb; --btn-orange-hover: #1d4ed8; --bg-color: #eef1f9; --border-color: #dfe3f1; }
html[data-theme="dark"] body.app-on { --primary-color: #6674f0; --primary-dark: #4f5fd9; --primary-light: #8b97f5; --accent-color: #93c5fd; --btn-orange: #3b82f6; }
html:not([data-theme="dark"]) body.app-on .section-bar { border-color: rgba(59,52,165,.10); }
html:not([data-theme="dark"]) body.app-on .printable-list-table th { background: #e6eaf8; }
html:not([data-theme="dark"]) body.app-on .printable-list-table tbody tr:nth-child(even) { background: #f8f9fd; }
html:not([data-theme="dark"]) body.app-on .printable-list-table tbody tr:hover { background: #eef0fb; }
html:not([data-theme="dark"]) body.app-on .student-card-header { background: linear-gradient(180deg, #f8f9fe, #eef0fa); }
html:not([data-theme="dark"]) body.app-on .cm-track { background: #e0e4f5; }
html:not([data-theme="dark"]) body.app-on .inner-tabs, html:not([data-theme="dark"]) .seg, html:not([data-theme="dark"]) .count-pill { background: #e6eaf8; }
body.app-on .inner-tabs .btn-blue:hover { background: rgba(59,52,165,.10); }
body.app-on :focus-visible, body.app-on input:focus, body.app-on select:focus, body.app-on textarea:focus { box-shadow: 0 0 0 3px rgba(59,52,165,.25) !important; }
}

/* متغيرات التصميم المشتركة (نفس قيم theme.css حتى لا يعتمد theme2 على ملف آخر) */
@media screen {
:root { --radius: 16px; --radius-sm: 10px; --shadow-sm: 0 1px 2px rgba(34,27,82,.06); --shadow: 0 2px 4px rgba(34,27,82,.04), 0 10px 28px rgba(34,27,82,.08); }
}

/* ===== لوحة الألوان الجديدة (تركوازي داكن + ذهبي + كريمي) — كل الألوان تُغيَّر من هنا ===== */
@media screen {
html body, html body.app-on {
  --t-ink: #0c3b4e; --t-deep: #0e4a5c; --t-teal: #0f766e; --t-teal-2: #0f6370; --t-gold: #b8893a; --t-gold-hover: #9a7230;
  --t-gold-soft: #f3e7c3; --t-sand: #e7e2d6; --t-th: #0f4560; --t-red: #c0283c;
  --sb-bg-1: #0f5c66; --sb-bg-2: #0c3b4e; --sb-active: #ffffff;
  --wc-ink: #0c3b4e; --wc-deep: #0e4a5c; --wc-indigo: #0f766e; --wc-indigo-2: #0f6370; --wc-amber: #b8893a; --wc-purple: #0f766e; --wc-red: #c0283c;
  --top-bar-bg: #0c3b4e; --btn-admin: #0f766e; --btn-counter: #f3c969; --pink: #d9a441; --blue: #14b8a6;
}
html:not([data-theme="dark"]) body, html:not([data-theme="dark"]) body.app-on {
  --primary-color: #0f766e; --primary-dark: #115e59; --primary-light: #14b8a6; --accent-color: #b8893a; --accent-hover: #9a7230;
  --btn-orange: #0f766e; --btn-orange-hover: #115e59; --bg-color: #efece6; --border-color: #ddd8cc; --ring: 0 0 0 3px rgba(15,118,110,.28);
}
html[data-theme="dark"] body.app-on, html[data-theme="dark"] body:not(.app-on) {
  --primary-color: #2dd4bf; --primary-dark: #14b8a6; --primary-light: #5eead4; --accent-color: #d9a441; --accent-hover: #f3c969;
  --btn-orange: #0f9a8e; --btn-orange-hover: #0f766e; --ring: 0 0 0 3px rgba(45,212,191,.30);
  --sb-bg-1: #12414b; --sb-bg-2: #0b2a35; --wc-ink: #0b2a35; --wc-deep: #0e3a47; --wc-indigo-2: #0e4a55;
}
}

/* اختيار الأسماء لطباعة الوصولات (الإحصائيات الإدارية) */
@media screen {
.adm-sel, #adminSelAll { width: 22px; height: 22px; cursor: pointer; accent-color: var(--primary-color); vertical-align: middle; }
#btnPrintSelected:disabled { opacity: .45; cursor: not-allowed; }
}
