:root {
  --students-border: #CBD5E1;
  --students-header: #EFF6FF;
  --students-ink: #003a7d;
  --students-paper: #ffffff;
  --students-alternate: #f8fafc;
  --students-hover: #e0f2fe;
  --students-muted: #64748b;
  --students-danger: #b91c1c;
  --students-accepted: #15803d;
}
.students-section { min-width: 0; }
.homepage-editor-entry.admin-jump {
  --home-entry-fill: #be185d;
  --home-entry-deep: #a81152;
  --home-entry-text: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  margin-block: 4px 16px;
  padding: 12px 22px;
  border: 1px solid var(--home-entry-deep);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--home-entry-fill), var(--home-entry-deep));
  color: var(--home-entry-text);
  font: inherit;
  font-weight: 800;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--home-entry-fill) 22%, transparent);
  cursor: pointer;
}
.homepage-editor-entry.admin-jump:hover { background: var(--home-entry-deep); color: var(--home-entry-text); }
.homepage-editor-entry.admin-jump:focus-visible { outline: 3px solid var(--home-entry-fill); outline-offset: 4px; }
.students-product-bar { flex-wrap: nowrap; }
.students-product-select { width: min(100%, 680px); min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--students-border); border-radius: 8px; background: var(--students-paper); color: var(--students-ink); font: inherit; font-size: 14px; text-overflow: ellipsis; }
.students-product-select:focus-visible { outline: 2px solid var(--students-ink); outline-offset: 2px; }
.students-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-block: 16px; color: var(--students-ink); font-size: 14px; }
.students-pagination .btn { min-height: 40px; }
.students-pagination .btn:focus-visible { outline: 2px solid var(--students-ink); outline-offset: 2px; }
.students-section .admin-card-head { flex-wrap: wrap; gap: 12px; }
.students-section h2 { margin: 0; }
.students-section h2 small { font-size: 14px; font-weight: 500; color: var(--students-muted); }
.students-section .admin-search { border-color: var(--students-border); background: var(--students-paper); color: var(--students-ink); max-width: 100%; }
.students-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
#studentSelectionCount { color: var(--students-muted); font-size: 14px; }
#studentSelectionCount:empty { display: none; }
.students-help { position: relative; margin-inline-start: auto; }
.students-help summary { cursor: pointer; color: var(--students-ink); font-size: 14px; }
.students-help > div { position: absolute; z-index: 8; inset-inline-end: 0; width: 270px; background: var(--students-paper); border: 1px solid var(--students-border); border-radius: 6px; padding: 12px; }
.students-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--students-border); border-radius: 6px; isolation: isolate; scrollbar-color: var(--students-border) var(--students-header); }
.students-table { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; color: var(--students-ink); }
.students-table th, .students-table td { height: 46px; box-sizing: border-box; padding: 6px 9px; border-inline-end: 1px solid var(--students-border); border-bottom: 1px solid var(--students-border); white-space: nowrap; text-align: right; vertical-align: middle; }
.students-table tr:last-child td { border-bottom: 0; }
.students-table th:last-child, .students-table td:last-child { border-inline-end: 0; }
.students-table th { background: var(--students-header); color: var(--students-ink); font-weight: 700; }
.students-table td { background: var(--students-paper); }
.students-table tr:nth-child(even) td { background: var(--students-alternate); }
.students-table tbody tr:hover td { background: var(--students-hover); }
.students-table tbody tr { cursor: pointer; }
.students-table .students-select { width: 42px; text-align: center; position: sticky; right: 0; z-index: 2; }
.students-table .students-first { width: 112px; position: sticky; right: 42px; z-index: 2; }
.students-table .students-last { width: 132px; position: sticky; right: 154px; z-index: 2; }
.students-table .students-last { border-inline-end-width: 2px; }
.students-table .students-date { width: 118px; }
.students-table .students-mail { width: 194px; }
.students-table .students-phone { width: 116px; }
.students-table .students-program { width: 150px; }
.students-table .students-email-state { width: 95px; text-align: center; }
.students-table .students-delete { width: 48px; text-align: center; }
.students-table .students-truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.students-table .students-sort { border: 0; background: transparent; color: inherit; font: inherit; padding: 0; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.students-table input[type="checkbox"] { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--students-ink); }
.students-trash { width: 30px; height: 30px; padding: 5px; border: 0; background: transparent; color: var(--students-danger); cursor: pointer; }
.students-trash svg { width: 19px; height: 19px; }
.students-trash:hover { background: color-mix(in srgb, var(--students-danger) 8%, var(--students-paper)); border-radius: 4px; }
.students-trash:disabled { opacity: .4; cursor: not-allowed; }
.students-sort:hover { text-decoration: underline; text-underline-offset: 4px; }
.students-section :is(button, input, summary, [tabindex]):focus-visible { outline: 2px solid var(--students-ink); outline-offset: 2px; }
.students-email-mark { font-weight: 700; font-size: 17px; color: var(--students-muted); }
.students-email-mark.is-accepted { color: var(--students-accepted); }
.students-email-mark.is-failed { color: var(--students-danger); }
.students-danger.btn { background: var(--students-danger); color: var(--students-paper); border-color: var(--students-danger); }
.students-delete-dialog { width: min(520px, calc(100% - 32px)); border: 1px solid var(--students-border); border-radius: 8px; color: var(--students-ink); background: var(--students-paper); padding: 22px; }
.students-delete-dialog::backdrop { background: color-mix(in srgb, var(--students-ink) 30%, transparent); }
.students-delete-dialog ul { max-height: 220px; overflow-y: auto; }
.students-delete-dialog .admin-actions-row { justify-content: flex-end; gap: 12px; }
.students-delete-errors { color: var(--students-danger); }
.students-tools [data-delete-selected] { order: 99; width: auto; min-height: 44px; margin-inline-start: auto; padding: 8px 16px; font-size: 15px; font-weight: 700; border-radius: 12px; }
.students-tools:has([data-delete-selected]:not([hidden])) .students-help { margin-inline-start: 0; }
@media (max-width: 600px) { .students-section .admin-search { width: 100%; } .students-section { padding-inline: 10px; } .students-tools { gap: 8px; } .students-table .students-first { width: 96px; } .students-table .students-last { width: 112px; right: 138px; } }
/* Special links table */
.offer-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #CBD5E1;border-radius:10px;background:#fff}
.offer-table{width:100%;min-width:760px;border-collapse:collapse;font-size:14px;direction:rtl}
.offer-table th{background:#EFF6FF;color:#003a7d;font-weight:600;text-align:right;padding:8px 10px;border-bottom:1px solid #CBD5E1;white-space:nowrap}
.offer-table td{padding:8px 10px;border-bottom:1px solid #E2E8F0;vertical-align:middle;text-align:right}
.offer-table tr:last-child td{border-bottom:0}
.offer-sub{display:block;color:#64748B;font-size:12px}
.offer-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.offer-badge-open{background:#DBEAFE;color:#1D4ED8}
.offer-badge-progress{background:#FEF3C7;color:#B45309}
.offer-badge-redeemed{background:#DCFCE7;color:#15803D}
.offer-badge-revoked{background:#F1F5F9;color:#64748B}
.offer-acts{display:flex;flex-wrap:wrap;gap:6px}
.offer-acts button{font-size:13px;padding:6px 10px;min-height:36px;border:1px solid #CBD5E1;border-radius:8px;background:#fff;color:#003a7d;cursor:pointer}
.offer-acts button:hover{background:#EFF6FF}
.offer-acts .offer-act-warn{color:#B91C1C}
.students-table .students-presence { width: 34px; text-align: center; }
.students-presence-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; }
.students-presence-mark i { width: 9px; height: 9px; border-radius: 50%; background: var(--students-muted); flex: none; }
.students-presence-mark.is-online i { background: var(--students-accepted); box-shadow: 0 0 0 3px color-mix(in oklab, var(--students-accepted) 22%, transparent); }

/* Dashboard: online students by product */
.online-by-product { margin-block-end: 14px; }
.online-by-product h2 { margin: 0 0 2px; font-size: 1.05rem; }
.online-total { margin: 6px 0 8px; }
.online-products { display: flex; flex-wrap: wrap; gap: 8px; }
.online-product { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 6px 12px; border: 1px solid rgba(0, 58, 125, .18); border-radius: 12px; background: #fff; color: #003a7d; font: inherit; cursor: pointer; }
.online-product span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-product b { min-width: 26px; padding: 1px 7px; border-radius: 999px; background: #e7f8ee; color: #137a3a; text-align: center; }
.online-product.is-on, .online-product:focus-visible { border-color: #003a7d; outline: 2px solid #41d9f8; outline-offset: 1px; }
.online-list { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(0, 58, 125, .12); }
.online-list h3 { margin: 0 0 6px; font-size: .95rem; }
.online-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px; }
.online-list li > * { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: start; }
.online-list button { cursor: pointer; }
.online-list button:hover, .online-list button:focus-visible { background: rgba(65, 217, 248, .14); outline: 2px solid #41d9f8; }
.online-list i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #1fae5b; }
.rec-sync-card{border:2px solid var(--cyan,#41d9f8)}
.rec-sync-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.rec-sync-head h2{margin:0 0 4px}
.rec-sync-btn{min-height:48px;padding:0 22px;border:0;border-radius:14px;background:var(--navy,#003a7d);color:#fff;font:inherit;font-weight:800;font-size:1.05rem;cursor:pointer}
.rec-sync-btn:disabled{opacity:.6;cursor:wait}
.rec-sync-progress{height:6px;border-radius:6px;background:#e6ecf7;overflow:hidden;margin-top:10px}
.rec-sync-progress span{display:block;height:100%;width:40%;background:var(--cyan,#41d9f8);animation:recsync 1.2s linear infinite}
@keyframes recsync{from{transform:translateX(150%)}to{transform:translateX(-250%)}}
.rec-sync-counts{margin:10px 0 0}.rec-sync-error{margin:10px 0 0;color:#b42318;font-weight:700}
@media (max-width:600px){.rec-sync-btn{width:100%}}
.students-tools .students-wa-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; order: -1; }
.students-tools .students-wa.btn { width: auto; flex: 0 0 auto; min-height: 44px; padding: 8px 14px; font-size: 15px; font-weight: 700; border-radius: 12px; color: #fff; }
.students-tools .students-wa-mig.btn { background: #0f6b3d; border-color: #0f6b3d; }
.students-tools .students-wa-login.btn { background: #1f8a4c; border-color: #1f8a4c; }
