/* DASGROUPS EMS – everyday comfort: Today home cards, phone bottom bar, smart search,
   quick screens, simple mode and large text. Works on top of every UI style (light and dark). */
:root { --ux-blue: #3b6ef5; --ux-violet: #7a3fcf; --ux-green: #1faa59; --ux-red: #e04848; --ux-amber: #f2a20c;
        --ux-card: rgba(255,255,255,.92); --ux-ink: #1b1f3b; --ux-muted: #636a8c; --ux-line: rgba(120,128,170,.22); }
html.dark, html.glass-dark, html.iso-dark, html.theme-geo:not(.geo-light) {
        --ux-card: rgba(30,34,58,.88); --ux-ink: #eef0ff; --ux-muted: #a9b0d6; --ux-line: rgba(160,170,220,.18); }

/* ---------- Today home ---------- */
.ux-today { margin: 0 0 18px; color: var(--ux-ink); }
.ux-hello { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.ux-hello h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ux-ink); }
.ux-hello .ux-date { color: var(--ux-muted); font-size: 14px; }
.ux-hello .ux-off { background: #fff3d6; color: #7a5200; border-radius: 99px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.ux-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ux-grid.wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ux-card { background: var(--ux-card); border: 1px solid var(--ux-line); border-radius: 16px; padding: 16px; box-shadow: 0 6px 20px rgba(40,40,110,.08); color: var(--ux-ink); min-width: 0; }
.ux-card h4 { margin: 0 0 10px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--ux-ink); }
.ux-card h4 .ux-more { margin-left: auto; font-size: 13px; font-weight: 600; }
.ux-stat { display: flex; flex-direction: column; gap: 2px; text-decoration: none !important; color: var(--ux-ink) !important; }
.ux-stat b { font-size: 26px; line-height: 1.15; font-weight: 800; }
.ux-stat span { color: var(--ux-muted); font-size: 13px; }
.ux-stat i { font-size: 18px; margin-bottom: 6px; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--ux-blue), var(--ux-violet)); }
.ux-stat.green i { background: linear-gradient(135deg, #1faa59, #12855f); }
.ux-stat.red i { background: linear-gradient(135deg, #ef6b5b, #d63d3d); }
.ux-stat.amber i { background: linear-gradient(135deg, #f5b73b, #e58a0b); }
.ux-list { list-style: none; margin: 0; padding: 0; }
.ux-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--ux-line); min-width: 0; }
.ux-list li:last-child { border-bottom: 0; }
.ux-list .t { flex: 1; min-width: 0; }
.ux-list .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ux-list .t small { color: var(--ux-muted); }
.ux-time { font-weight: 700; color: var(--ux-blue); white-space: nowrap; font-size: 13px; min-width: 58px; }
.ux-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: 10px; border: 1.5px solid var(--ux-line); background: transparent; color: var(--ux-ink) !important; font-weight: 600; font-size: 13px; text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.ux-btn.main { background: linear-gradient(90deg, var(--ux-blue), var(--ux-violet)); color: #fff !important; border-color: transparent; }
.ux-btn.green { background: #1faa59; color: #fff !important; border-color: transparent; }
.ux-btn.red { background: #fdecec; color: #b42323 !important; border-color: #f6c7c7; }
.ux-btn.wa { background: #25d366; color: #fff !important; border-color: transparent; }
.ux-btn.big { min-height: 48px; font-size: 15px; padding: 10px 18px; border-radius: 12px; }
.ux-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ux-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.ux-pill.ok { background: #e1f6ea; color: #137a40; } .ux-pill.no { background: #fdecec; color: #b42323; } .ux-pill.wait { background: #fff3d6; color: #7a5200; }
.ux-empty { text-align: center; color: var(--ux-muted); padding: 18px 8px; font-size: 14px; }
.ux-empty i { display: block; font-size: 28px; margin-bottom: 8px; opacity: .6; }
.ux-empty .ux-btn { margin-top: 10px; }
.ux-alert { border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; }
.ux-alert.warn { background: #fff3d6; color: #6b4700; border: 1px solid #f2c94c; }
.ux-alert.bad { background: #fdecec; color: #8d1c1c; border: 1px solid #f3b6b6; }
.ux-alert .ux-btn { margin-left: auto; }
.ux-progress { height: 8px; border-radius: 99px; background: var(--ux-line); overflow: hidden; margin: 6px 0 12px; }
.ux-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--ux-green), #6fd49a); }
.ux-check li.done .t b { text-decoration: line-through; opacity: .6; }
.ux-check .dot { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 2px solid var(--ux-line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.ux-check li.done .dot { background: var(--ux-green); border-color: var(--ux-green); color: #fff; }
.ux-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ux-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; border-radius: 16px; background: var(--ux-card); border: 1px solid var(--ux-line); color: var(--ux-ink) !important; text-decoration: none !important; font-weight: 700; text-align: center; padding: 10px; }
.ux-tile i { font-size: 28px; color: var(--ux-blue); }
.ux-tile:hover { transform: translateY(-2px); }
.ux-kids { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.ux-kid { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 99px; border: 2px solid var(--ux-line); background: var(--ux-card); text-decoration: none !important; color: var(--ux-ink) !important; white-space: nowrap; font-weight: 600; }
.ux-kid img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ux-kid.on { border-color: var(--ux-blue); box-shadow: 0 0 0 3px rgba(59,110,245,.15); }
.ux-due { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ux-due b { font-size: 28px; font-weight: 800; }
.ux-bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.ux-bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.ux-bars span.bar { width: 100%; max-width: 46px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, var(--ux-blue), var(--ux-violet)); }
.ux-bars small { font-size: 11px; color: var(--ux-muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ux-bars em { font-style: normal; font-weight: 700; font-size: 12px; }
.ux-legacy-toggle { margin: 6px 0 14px; }

/* ---------- quick screens ---------- */
.ux-page { max-width: 980px; margin: 0 auto; color: var(--ux-ink); }
.ux-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ux-row .form-control { width: auto; min-width: 160px; flex: 1 1 160px; min-height: 42px; }
.ux-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ux-chip { padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--ux-line); color: var(--ux-ink) !important; text-decoration: none !important; font-weight: 600; font-size: 13px; background: var(--ux-card); }
.ux-chip.on { background: linear-gradient(90deg, var(--ux-blue), var(--ux-violet)); color: #fff !important; border-color: transparent; }
.ux-chip .ux-pill { margin-left: 4px; }
.ux-stu { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ux-s { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 2px solid #bfe9cf; background: #effaf3; cursor: pointer; user-select: none; color: #173b26; min-height: 58px; }
.ux-s .r { font-weight: 800; font-size: 13px; min-width: 26px; text-align: center; opacity: .7; }
.ux-s .n { font-weight: 600; font-size: 14px; line-height: 1.25; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ux-s .st { font-weight: 800; font-size: 13px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1faa59; color: #fff; flex: 0 0 28px; }
.ux-s.A { border-color: #f3b6b6; background: #fdecec; color: #5d1313; } .ux-s.A .st { background: #e04848; }
.ux-s.L { border-color: #f6dc9b; background: #fff7e3; color: #5c4100; } .ux-s.L .st { background: #e5a00d; }
.ux-s.HD { border-color: #cfd6f3; background: #f0f3ff; color: #22306b; } .ux-s.HD .st { background: #6b7bd6; }
.ux-sticky { position: sticky; bottom: 0; z-index: 5; padding: 12px 0; background: linear-gradient(180deg, transparent, var(--ux-card) 30%); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ux-sum { font-weight: 700; }
.ux-table { width: 100%; border-collapse: collapse; }
.ux-table th, .ux-table td { padding: 9px 8px; border-bottom: 1px solid var(--ux-line); text-align: left; vertical-align: middle; }
.ux-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--ux-muted); }
.ux-table td.num, .ux-table th.num { text-align: right; white-space: nowrap; }
.ux-scroll { overflow-x: auto; }
.ux-note-tpl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ux-note-tpl button { border: 1.5px solid var(--ux-line); background: var(--ux-card); color: var(--ux-ink); border-radius: 99px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.ux-scan { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ux-scan input.form-control { min-height: 48px; font-size: 16px; }
.ux-found { margin-top: 10px; }
.ux-found .opt { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1.5px solid var(--ux-line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.ux-found .opt.on { border-color: var(--ux-blue); background: rgba(59,110,245,.08); }
.ux-found .opt .t { flex: 1; min-width: 0; }
.ux-found .opt small { color: var(--ux-muted); display: block; }
#uxCam { width: 100%; max-width: 420px; border-radius: 12px; display: none; margin-top: 8px; background: #000; }
.ux-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--ux-line); }
.ux-switch b { display: block; } .ux-switch small { color: var(--ux-muted); }
.ux-switch input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--ux-blue); flex: 0 0 24px; }
.ux-alerts td input { width: 22px; height: 22px; accent-color: var(--ux-blue); }

/* ---------- smart search ---------- */
.ux-search-drop { position: absolute; z-index: 2000; left: 0; right: 0; top: 100%; margin-top: 6px; background: #fff; color: #1b1f3b; border-radius: 14px; box-shadow: 0 16px 40px rgba(20,20,60,.25); overflow: hidden; min-width: 320px; max-height: 70vh; overflow-y: auto; display: none; }
.ux-search-drop.open { display: block; }
.ux-search-drop .it { cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #eef0f7; color: #1b1f3b; text-decoration: none; }
.ux-search-drop .it:hover, .ux-search-drop .it.act { background: #f3f5ff; }
.ux-search-drop img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 36px; }
.ux-search-drop .tx { flex: 1; min-width: 0; }
.ux-search-drop .tx b { display: block; font-size: 14px; } .ux-search-drop .tx small { color: #6a7095; }
.ux-search-drop .ty { font-size: 11px; font-weight: 700; color: #7a3fcf; text-transform: uppercase; }
.ux-search-drop .lk { display: flex; gap: 6px; } .ux-search-drop .lk a { font-size: 12px; padding: 3px 8px; border-radius: 8px; background: #eef1ff; color: #3d3f8f; text-decoration: none; }
.ux-search-drop .none { padding: 14px; color: #6a7095; font-size: 13px; }
.ux-msearch { position: fixed; inset: 0; z-index: 2100; background: rgba(15,18,40,.55); display: none; padding: 14px; }
.ux-msearch.open { display: block; }
.ux-msearch .box { position: relative; background: #fff; border-radius: 16px; padding: 10px; }
.ux-msearch input { width: 100%; min-height: 48px; font-size: 16px; border: 1.5px solid #d9dcef; border-radius: 12px; padding: 0 14px; color: #1b1f3b; }
.ux-msearch .ux-search-drop { position: static; box-shadow: none; min-width: 0; margin-top: 8px; }

/* ---------- "Watch how" ---------- */
.ux-help { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 4px 12px; border-radius: 99px; background: #ff3d3d; color: #fff !important; font-size: 12px; font-weight: 700; text-decoration: none !important; vertical-align: middle; }
.ux-help:hover { filter: brightness(1.1); }
.ux-video-bg { position: fixed; inset: 0; z-index: 3000; background: rgba(10,12,30,.8); display: none; align-items: center; justify-content: center; padding: 16px; }
.ux-video-bg.open { display: flex; }
.ux-video-bg .v { width: 100%; max-width: 900px; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; position: relative; }
.ux-video-bg iframe, .ux-video-bg video { width: 100%; height: 100%; border: 0; }
.ux-video-bg .x { position: absolute; top: -44px; right: 0; color: #fff; font-size: 30px; background: none; border: 0; cursor: pointer; }

/* ---------- phone bottom bar (PC dock further down) ---------- */
.ux-bbar { display: none; }
@media (max-width: 767px) {
    .ux-bbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: var(--ux-card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
               border-top: 1px solid var(--ux-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(20,20,60,.10); }
    .ux-bbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; color: var(--ux-muted) !important; text-decoration: none !important; font-size: 11px; font-weight: 600; min-width: 0; }
    .ux-bbar a i { font-size: 20px; }
    .ux-bbar a.on { color: var(--ux-blue) !important; }
    .ux-bbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    body.has-ux-bbar .content-body { padding-bottom: 90px !important; }
    /* floating buttons sit above the bar instead of on top of it */
    body.has-ux-bbar .whatsapp-popup { bottom: 78px !important; }
    body.has-ux-bbar .demo-pill { bottom: 140px !important; }
    body.has-ux-bbar .dst-buddy { bottom: 150px !important; }
    .ux-scan { grid-template-columns: 1fr; }
    .ux-hello h3 { font-size: 19px; }
    .ux-stat b { font-size: 22px; }
}

/* ---------- PC / tablet: the same quick bar as a floating dock ---------- */
.ux-bbar a { position: relative; }
.ux-bbar-badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
                 background: #DE1110; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.ux-bbar-badge[hidden] { display: none; }
.ux-dock-toggle, .ux-dock-show { display: none; }
@media (min-width: 768px) {
    .ux-bbar { display: flex; align-items: stretch; gap: 2px; position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1030;
               padding: 6px 8px; border-radius: 20px; background: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
               border: 1px solid var(--ux-line); box-shadow: 0 10px 30px rgba(20,20,60,.16); transition: transform .25s ease, opacity .25s ease; }
    .ux-bbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 92px; padding: 6px 4px; border-radius: 14px;
                 color: var(--ux-muted) !important; text-decoration: none !important; font-size: 12px; font-weight: 600; }
    .ux-bbar a i { font-size: 20px; }
    .ux-bbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .ux-bbar a:hover { background: rgba(37, 93, 206, .08); color: var(--ux-blue) !important; }
    .ux-bbar a.on { color: var(--ux-blue) !important; background: rgba(37, 93, 206, .10); }
    .ux-bbar a:focus-visible, .ux-dock-toggle:focus-visible, .ux-dock-show:focus-visible { outline: 2px solid var(--ux-blue); outline-offset: 2px; }
    .ux-dock-toggle { display: flex; align-items: center; justify-content: center; width: 30px; margin-left: 2px; border: 0; border-left: 1px solid var(--ux-line);
                      border-radius: 0 14px 14px 0; background: none; color: var(--ux-muted); cursor: pointer; }
    .ux-dock-toggle:hover { color: var(--ux-blue); }
    .ux-dock-show { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); z-index: 1030; align-items: center; justify-content: center;
                    width: 64px; height: 22px; border: 1px solid var(--ux-line); border-bottom: 0; border-radius: 12px 12px 0 0; background: #fff;
                    color: var(--ux-muted); cursor: pointer; box-shadow: 0 -4px 14px rgba(20,20,60,.10); display: flex; transition: transform .25s ease; }
    html.dark .ux-bbar, html.glass-dark .ux-bbar, html.iso-dark .ux-bbar,
    html.dark .ux-dock-show, html.glass-dark .ux-dock-show, html.iso-dark .ux-dock-show { background: #1e223a; }
    body.ux-dock-hidden .ux-bbar { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
    body.ux-dock-hidden .ux-dock-show { transform: translate(-50%, 0); }
    body.has-ux-bbar:not(.ux-dock-hidden) .content-body { padding-bottom: 100px !important; }
    body.has-ux-bbar:not(.ux-dock-hidden) .dst-buddy { bottom: 96px !important; }
    .ux-msearch .box { max-width: 640px; margin: 80px auto 0; }
    body.ems-bulk-open .ems-bulk-bar { bottom: 96px; }
    body.ems-bulk-open.ux-dock-hidden .ems-bulk-bar { bottom: 18px; }
}

/* ---------- comfort settings ---------- */
html.ux-large .content-body { zoom: 1.15; }
html.ux-large .ux-bbar a { font-size: 12.5px; }
html.ux-large .ux-bbar a i { font-size: 23px; }
@media print { .ux-bbar, .ux-help, .ux-today .ux-btn { display: none !important; } }

/* ---------- language button (top bar) ---------- */
.header .header-menu > li.ux-lang-li { position: relative; }
.ux-lang-btn { display: inline-flex !important; align-items: center; gap: 7px; height: 38px; padding: 0 12px !important; margin-top: 4px; border-radius: 99px;
               background: linear-gradient(135deg, #3ad0ff 0%, #4c6bff 55%, #8b5cff 100%); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; white-space: nowrap;
               box-shadow: 0 4px 12px rgba(76,107,255,.35); }
.ux-lang-btn i.fa-language { font-size: 18px; }
.ux-lang-btn i.fa-caret-down { font-size: 11px; opacity: .85; }
.ux-lang-btn span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.ux-lang-menu { width: 300px; padding: 0 !important; }
.ux-lang-list { max-height: 65vh; overflow-y: auto; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ux-lang-h { grid-column: 1 / -1; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #8a90b0; padding: 8px 6px 2px; }
.ux-lang-list a { display: flex; flex-direction: column; position: relative; padding: 7px 10px; border-radius: 10px; color: #1b1f3b !important; text-decoration: none !important; line-height: 1.25; }
.ux-lang-list a:hover { background: #f1f3ff; }
.ux-lang-list a.on { background: #e9edff; box-shadow: inset 0 0 0 1.5px #4c6bff; }
.ux-lang-list a b { font-size: 15px; font-weight: 700; }
.ux-lang-list a small { font-size: 11px; color: #6a7095; }
.ux-lang-list a i.fa-check { position: absolute; right: 8px; top: 9px; color: #4c6bff; font-size: 12px; }
html.dark .ux-lang-list a, html.glass-dark .ux-lang-list a { color: #eef0ff !important; }
html.dark .ux-lang-list a:hover, html.glass-dark .ux-lang-list a:hover { background: rgba(255,255,255,.08); }
@media (max-width: 767px) {
    .ux-lang-btn { height: 34px; padding: 0 10px !important; font-size: 13px; }
    .ux-lang-btn span { max-width: 70px; }
    .ux-lang-menu { position: fixed !important; left: 10px !important; right: 10px !important; top: 120px !important; width: auto; }
}

/* ---------- owner (super admin) and school admin tools ---------- */
.ux-alert.info { background: #eef3ff; color: #1d3a9e; border: 1px solid #c7d4ff; }
.ux-viewas { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 14px; padding: 10px 16px; border-radius: 12px;
    background: linear-gradient(90deg, #ff7a18, #ff3d6e); color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(255, 61, 110, .3); }
.ux-viewas i { font-size: 18px; }
.ux-viewas .ux-btn { margin-left: auto; background: #fff; color: #c2185b; border-color: #fff; }
.ux-acts { display: inline-flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.ow-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.ow-dot.green { background: #1fae5b; } .ow-dot.amber { background: #f2a516; } .ow-dot.red { background: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .18); }
.ow-bulk { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 8px; }
.ow-bulk > span { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ow-grid td.num input, .ux-table td.num input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ux-blue); }
.ow-grid thead th { position: sticky; top: 0; background: var(--ux-card, #fff); }
.ux-meter { margin: 8px 0; } .ux-meter b { display: flex; justify-content: space-between; font-size: 13px; }
.ux-meter .bar { height: 8px; border-radius: 99px; background: #edf0f7; overflow: hidden; margin-top: 4px; }
.ux-meter .bar span { display: block; height: 100%; border-radius: 99px; background: var(--ux-blue, #3b5bfd); }
.ux-meter.hi .bar span { background: #f2a516; } .ux-meter.full .bar span { background: #e5484d; }
.ux-ready { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ux-ready .ring { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px;
    background: conic-gradient(var(--ux-blue, #3b5bfd) calc(var(--p) * 1%), #edf0f7 0); position: relative; }
.ux-ready .ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--ux-card, #fff); }
.ux-ready .ring b { position: relative; }
.ux-tile-edit li { cursor: grab; } .ux-tile-edit li.drag { opacity: .4; }
.ux-act-row small.by { color: #c2185b; font-weight: 700; }
.ux-step { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ux-step span { padding: 6px 12px; border-radius: 99px; background: #edf0f7; font-weight: 700; font-size: 13px; }
.ux-step span.on { background: var(--ux-blue, #3b5bfd); color: #fff; }
html.dark .ux-alert.info { background: #1d2547; color: #c7d4ff; border-color: #2e3c78; }
html.dark .ux-meter .bar, html.dark .ux-step span { background: #2a2f3d; }

/* ---------- owner: school websites gallery ---------- */
.ow-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 10px; }
.ow-site { border: 1px solid var(--ux-line, #e3e7f2); border-radius: 18px; overflow: hidden; background: var(--ux-card, #fff); display: flex; flex-direction: column; }
.ow-site.off { opacity: .92; }
.ow-thumb { position: relative; height: 200px; overflow: hidden; background: linear-gradient(135deg, #0a1440, #142c80); }
.ow-thumb iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform: scale(.26); transform-origin: 0 0; pointer-events: none; }
.ow-thumb-link { position: absolute; inset: 0; z-index: 2; }
.ow-thumb-link:hover { background: rgba(76, 107, 255, .12); }
.ow-thumb-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #c7d4ff; text-align: center; padding: 0 20px; }
.ow-thumb-msg i { font-size: 30px; margin-bottom: 4px; }
.ow-thumb-msg b { color: #fff; font-size: 16px; }
.ow-site.off .ow-thumb { background: linear-gradient(135deg, #3a1d2a, #5b2232); }
.ow-sbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ow-stitle b { font-size: 16px; }
.ow-addr { color: var(--ux-muted); word-break: break-all; }
.ow-facts { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--ux-muted); }
.ow-facts i { width: 16px; color: var(--ux-blue, #3b5bfd); }
.ow-sacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.ow-down { width: 100%; }
.ow-down summary { list-style: none; display: inline-flex; cursor: pointer; }
.ow-down summary::-webkit-details-marker { display: none; }
.ow-down[open] form { display: grid; gap: 8px; margin-top: 8px; }
.ow-default { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }

/* ---------- offline chip + data saver (assets/js/ems-offline.js) ---------- */
.ems-net-chip { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2050; max-width: calc(100vw - 32px);
    padding: 9px 16px; border: 0; border-radius: 22px; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer;
    box-shadow: 0 8px 24px rgba(2,24,97,.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ems-net-chip[hidden] { display: none; }
.ems-net-chip.off { background: #56627E; }
.ems-net-chip.wait { background: #B45309; }
.ems-net-chip.ok { background: #15803D; }
html.ems-lite *, html.ems-lite *::before, html.ems-lite *::after { animation: none !important; transition: none !important; }
html.ems-lite * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; text-shadow: none !important; }
html.ems-lite body, html.ems-lite .content-body, html.ems-lite .panel, html.ems-lite .sidebar-left, html.ems-lite .header { background-image: none !important; }
html.ems-lite canvas.ui-fx-bg, html.ems-lite .ui-fx-orbs, html.ems-lite .bg-orbs, html.ems-lite .glass-bg { display: none !important; }
html.ems-lite .ux-bbar, html.ems-lite .ems-net-chip { box-shadow: 0 -1px 0 rgba(0,0,0,.12) !important; }

/* ---------- 🔊 Listen and 🎤 speak (assets/js/ems-voice.js) ---------- */
.ems-listen { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 4px 12px; border: 0; border-radius: 16px;
    background: #e8eefc; color: #255DCE; font-size: 13px; font-weight: 700; vertical-align: middle; cursor: pointer; line-height: 1.6; }
.ems-listen:hover, .ems-listen:focus-visible { background: #255DCE; color: #fff; outline: none; }
.ems-listen.on { background: #DE1110; color: #fff; }
.ems-listen.on i::before { content: "\f04d"; }
.ems-listen.on span::after { content: " · stop"; }
.ems-mic { position: absolute; right: 8px; bottom: 8px; z-index: 5; width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: #255DCE; color: #fff; font-size: 16px; cursor: pointer; box-shadow: 0 3px 10px rgba(2,24,97,.25); }
.ems-mic.on { background: #DE1110; animation: ems-mic-pulse 1s infinite; }
@keyframes ems-mic-pulse { 50% { box-shadow: 0 0 0 8px rgba(222,17,16,.18); } }
html.dark .ems-listen, html.glass-dark .ems-listen { background: rgba(127,168,245,.18); color: #7FA8F5; }
@media print { .ems-listen, .ems-mic, .ems-net-chip { display: none !important; } }
.ems-rec-btn { margin-top: 8px; border-radius: 10px !important; font-weight: 600; }
.ems-rec-btn.on { background: #DE1110 !important; color: #fff !important; border-color: #DE1110 !important; }

/* ---------- phones: everything you tap is big enough for a finger (about 40px) ---------- */
@media (max-width: 767px) {
    .view-more, a.ux-more, .ux-more { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 10px; }
    .view-more { justify-content: center; width: 100%; }
    .btn-xs, .btn-group-xs > .btn { min-height: 40px; min-width: 40px; padding: 8px 12px; font-size: 14px; line-height: 1.4; }
    .dataTables_length select, .dataTables_wrapper select { min-height: 40px; min-width: 64px; font-size: 16px; }
    table input[type=checkbox], table input[type=radio], .dataTables_wrapper input[type=checkbox] { width: 22px; height: 22px; }
    td label.i-checks, th label.i-checks, td .checkbox-replace, th .checkbox-replace { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    .pagination > li > a, .pagination > li > span, .paginate_button { min-width: 40px; min-height: 40px; display: inline-flex !important; align-items: center; justify-content: center; }
    select.form-control, input.form-control { min-height: 42px; font-size: 16px; } /* 16px stops phones from zooming in */
    .select2-container .select2-selection--single { min-height: 42px; }
}
