/* The 2026 teacher redesign (Roi 19/10, canvases VkrZWSLV + G9uP9pPk): the staff frame's bottom sheets,
   the bottom bar and the side bar. Every rule is scoped to [data-ui="new"]; the classic design is untouched.
   Shared by ui3/Sheet.js (any screen may open a sheet). Brand: sky #175bb0 + mint #2ec4a5, Rubik. */

/* ------------------------------------------------------------ the bottom sheet (ui3/Sheet.js) -- */
[data-ui="new"] .t3-sheet-wrap { position: fixed; inset: 0; z-index: 1060; }
[data-ui="new"] .t3-scrim {
    position: absolute; inset: 0; background: rgba(10, 25, 50, 0.3);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: t3-fade-in .2s ease-out;
}
[data-ui="new"] .t3-sheet {
    position: absolute; inset-inline: 0; bottom: 0; max-height: 86vh; overflow: auto;
    background: #fff; border-radius: 22px 22px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -18px 48px rgba(10, 25, 50, 0.22); animation: t3-pop-in .24s cubic-bezier(.2, .8, .2, 1);
    font-family: 'Rubik', system-ui, sans-serif; color: #12233f; text-align: start; box-sizing: border-box;
}
[data-ui="new"] .t3-sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: #d5deea; margin: 0 auto 12px; }
[data-ui="new"] .t3-sheet-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
[data-ui="new"] .t3-sheet-title h2 { margin: 0; font-size: 18px; font-weight: 800; color: #12233f; }
[data-ui="new"] .t3-sheet-x {
    width: 40px; height: 40px; border-radius: 12px; border: 0; background: #f4f7fb; color: #4a5a73;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
[data-ui="new"] .t3-sheet-row {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 2px; border: 0; background: none;
    border-bottom: 1px solid #eef2f8; font-size: 15px; color: #12233f; text-align: start; text-decoration: none; cursor: pointer;
    box-sizing: border-box; font-family: inherit;
}
[data-ui="new"] .t3-sheet-row:last-child { border-bottom: 0; }
[data-ui="new"] .t3-sheet-row:hover { background: #f7f9fc; color: #12233f; text-decoration: none; }
[data-ui="new"] .t3-sheet-ic {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; background: #e6efff; color: #114591;
    display: inline-flex; align-items: center; justify-content: center;
}
[data-ui="new"] .t3-sheet-ic.mint { background: #dcf5ee; color: #0a6f5d; }
[data-ui="new"] .t3-sheet-ic.bad, [data-ui="new"] .t3-sheet-row.out .t3-sheet-ic { background: #fde6e8; color: #b0202d; }
[data-ui="new"] .t3-sheet-row.out { color: #b0202d; }
[data-ui="new"] .t3-sheet-tx { flex: 1; min-width: 0; }
[data-ui="new"] .t3-sheet-tx b { display: block; font-weight: 600; }
[data-ui="new"] .t3-sheet-tx small { display: block; font-size: 12px; color: #5b6b85; margin-top: 1px; }
[data-ui="new"] .t3-sheet-row > .p3-ico:last-child { color: #8090a8; flex-shrink: 0; }

/* tiles inside a sheet (the teacher's "כל האפשרויות") */
[data-ui="new"] .t3-sheet-gtitle { font-size: 13px; font-weight: 600; color: #114591; margin: 12px 2px 6px; }
[data-ui="new"] .t3-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
[data-ui="new"] .t3-tile {
    position: relative; min-height: 88px; border-radius: 16px; border: 1px solid #dfe8f4; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px 4px;
    box-sizing: border-box; text-align: center; color: #12233f; text-decoration: none; cursor: pointer; font-family: inherit;
}
[data-ui="new"] .t3-tile:hover { border-color: #9cc2f2; color: #12233f; text-decoration: none; }
[data-ui="new"] .t3-tile-ic {
    width: 36px; height: 36px; border-radius: 12px; background: #e6efff; color: #114591;
    display: inline-flex; align-items: center; justify-content: center;
}
[data-ui="new"] .t3-tile-ic.mint { background: #dcf5ee; color: #0a6f5d; }
[data-ui="new"] .t3-tile-l { font-size: 12.5px; font-weight: 700; line-height: 1.15; }
[data-ui="new"] .t3-tile-h { font-size: 10.5px; color: #5b6b85; }
[data-ui="new"] .t3-tile-n {
    position: absolute; top: 7px; inset-inline-end: 7px; min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box;
    border-radius: 99px; background: #175bb0; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* from 900px: a popover card under the header, or a centred card */
@media (min-width: 900px) {
    [data-ui="new"] .t3-sheet-wrap.popover .t3-scrim { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
    [data-ui="new"] .t3-sheet-wrap.popover .t3-sheet {
        inset-inline: auto 20px; inset-inline-end: 20px; inset-inline-start: auto; top: 76px; bottom: auto; width: 360px;
        border-radius: 18px; box-shadow: 0 18px 48px rgba(10, 25, 50, 0.2); border: 1px solid #dfe8f4;
    }
    [data-ui="new"] .t3-sheet-wrap.center .t3-sheet {
        inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); max-height: 86vh;
        border-radius: 22px; animation: t3-fade-in .2s ease-out;
    }
    [data-ui="new"] .t3-sheet-wrap.popover .t3-sheet-grip, [data-ui="new"] .t3-sheet-wrap.center .t3-sheet-grip { display: none; }
}

@keyframes t3-fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes t3-pop-in { from { transform: translateY(24px); opacity: 0 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) {
    [data-ui="new"] .t3-scrim, [data-ui="new"] .t3-sheet { animation: none; }
}

/* ------------------------------------------------------------ the frame (ui3/StaffShell.js) -- */
/* (the shell work adds its rules below this line) */

/* sheets inside the frame: ui2.css styles the drawer's .t3-scrim (fixed, z-index 1044) with a stronger selector,
   which inside a sheet would lift the scrim over the sheet and swallow every tap; and the theme's .popover
   (teacher.rtl.css) would put a shadow on the popover sheet's full-screen wrapper */
:root[data-ui="new"] .t3-sheet-wrap > .t3-scrim { position: absolute; z-index: 0; background: rgba(10, 25, 50, 0.3); }
:root[data-ui="new"] .t3-sheet-wrap > .t3-sheet { z-index: 1; }
:root[data-ui="new"] .t3-sheet-wrap.popover { border: 0; box-shadow: none; }
@media (min-width: 900px) {
    :root[data-ui="new"] .t3-sheet-wrap.popover > .t3-scrim { background: transparent; }
}

/* the side bar: a primary group (היום · נוכחות · ציונים · הודעות) over a divider, then the sections */
:root[data-ui="new"] .t3-sec-main { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 12px; margin-bottom: 4px; border-bottom: 1px solid #eef2f8; }
:root[data-ui="new"] .t3-side > .t3-sec > a.t3-nav { min-height: 42px; font-size: 14.5px; }
:root[data-ui="new"] .t3-nav-n {
    min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; flex-shrink: 0;
    background: #175bb0; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
}

/* the account sheet (a bottom sheet on a phone, a popover from 900px) */
:root[data-ui="new"] .t3-acc-prof { display: flex; align-items: center; gap: 12px; padding: 0 2px 12px; border-bottom: 1px solid #eef2f8; }
:root[data-ui="new"] .t3-acc-chip {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; background: #e6efff; color: #114591;
    font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
:root[data-ui="new"] .t3-acc-who { min-width: 0; }
:root[data-ui="new"] .t3-acc-who b { display: block; font-size: 16px; font-weight: 700; color: #12233f; }
:root[data-ui="new"] .t3-acc-who small { display: block; font-size: 12.5px; color: #5b6b85; }
:root[data-ui="new"] .t3-sheet-row.t3-acc-pick { cursor: default; }
:root[data-ui="new"] .t3-sheet-row.t3-acc-pick:hover { background: none; }
:root[data-ui="new"] .t3-acc-select {
    flex-shrink: 0; max-width: 190px; height: 36px; padding: 0 10px; border-radius: 11px; border: 1px solid #dfe8f4;
    background: #fff; color: #12233f; font: 600 14px 'Rubik', system-ui, sans-serif; cursor: pointer;
}
:root[data-ui="new"] .t3-acc-sheet .t3-sheet-row.out { border-bottom: 0; }
:root[data-ui="new"] .t3-acc-ver { text-align: center; font-size: 11.5px; color: #8090a8; margin-top: 6px; }
/* logging out, confirmed inside the sheet (an app WebView answers window.confirm "no") */
:root[data-ui="new"] .t3-ask { padding: 16px 2px 6px; text-align: center; }
:root[data-ui="new"] .t3-ask > b { display: block; font-size: 18px; font-weight: 800; color: #12233f; margin-bottom: 16px; }
:root[data-ui="new"] .t3-ask-row { display: flex; gap: 10px; }
:root[data-ui="new"] .t3-ask-btn {
    flex: 1; height: 48px; border-radius: 14px; border: 1px solid transparent; cursor: pointer;
    font: 700 15px 'Rubik', system-ui, sans-serif;
}
:root[data-ui="new"] .t3-ask-btn.bad { background: #b0202d; color: #fff; }
:root[data-ui="new"] .t3-ask-btn.bad:hover { background: #8f1824; }
:root[data-ui="new"] .t3-ask-btn.ghost { background: #fff; border-color: #c9d6e8; color: #2a3a55; }

/* phone: the design board's header row (76px: logo, "ממשק מורה", bell, avatar - the mail button left for the
   הודעות tab) and its 78px bottom bar; these replace ui2.css's 64px header and 72px bar */
@media (max-width: 767px) {
    :root[data-ui="new"] .t3-head-in { padding: 16px; min-height: 76px; gap: 10px; }
    :root[data-ui="new"] .t3-role { height: 32px; padding: 0 12px; font-size: 13px; }
    :root[data-ui="new"] .t3-head-actions { gap: 8px; }
    :root[data-ui="new"] .t3-phone .t3-acc { width: 44px; height: 44px; padding: 0; border: 0; background: none; justify-content: center; }
    :root[data-ui="new"] .t3-phone .t3-av { width: 44px; height: 44px; border-radius: 13px; }
    :root[data-ui="new"] .t3 .server-notifications-container { top: 76px; }
    :root[data-ui="new"] .t3-tabbar { min-height: 78px; padding: 6px 6px calc(10px + env(safe-area-inset-bottom, 0px)); }
    :root[data-ui="new"] .t3-tabbar a[aria-current="page"] .t3-count { top: -4px; inset-inline-end: 0; }
}

/* ============================== the computer's quick sign-in (utils/Passkey.js, PasskeyOffer.js, PasskeyBanner.js) ==============================
   Windows Hello / Touch ID instead of the SMS code, on the login page and once inside the staff apps. Both designs
   (no [data-ui] scope); never shown inside the app or on a phone. */
.pk3-quick, .pk3-offer.panel { border-radius: 16px !important; border: 1px solid #dfe8f4 !important; box-shadow: none !important; }
.pk3-quick { border: 2px solid #175bb0 !important; }
.pk3-entry + .pk3-entry { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef2f8; }
.pk3-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border: 0;
    border-radius: 12px; background: #175bb0; color: #fff; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer;
}
.pk3-btn:hover, .pk3-btn:focus-visible { background: #114591; color: #fff; }
.pk3-btn:focus-visible { outline: 2px solid #114591; outline-offset: 2px; }
.pk3-btn[disabled] { opacity: .6; cursor: default; }
.pk3-btn svg { width: 26px; height: 26px; flex: none; }
.pk3-btn.big { display: flex; width: 100%; min-height: 60px; font-size: 18px; }
.pk3-who { margin-top: 8px; text-align: center; color: #5b6b85; font-size: 14px; }
.pk3-sub { margin-top: 8px; text-align: center; color: #8090a8; font-size: 13px; }
.pk3-link { background: none; border: 0; color: #175bb0; font: inherit; font-weight: 600; cursor: pointer; padding: 8px 12px; border-radius: 10px; }
.pk3-link:hover { background: #eef5ff; }
.pk3-offer .panel-body { text-align: center; padding: 22px; }
.pk3-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #e6efff; color: #175bb0; flex: none; }
.pk3-ic svg { width: 26px; height: 26px; }
.pk3-ic.big { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 10px; }
.pk3-ic.big svg { width: 34px; height: 34px; }
.pk3-ic.ok { background: #dcf5ee; color: #0a6f5d; }
.pk3-h { font-size: 20px; font-weight: 800; margin: 0 0 6px; color: #12233f; }
.pk3-p { color: #5b6b85; line-height: 1.55; margin: 0 0 12px; }
.pk3-note { text-align: start; border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.pk3-note.info { background: #e6efff; color: #114591; }
.pk3-note.warn { background: #fff4e0; color: #8a4a00; }
.pk3-acts { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.pk3-ok { display: flex; align-items: center; gap: 12px; text-align: start; padding: 4px; }
.pk3-ok b { display: block; color: #12233f; }
.pk3-ok span { color: #5b6b85; font-size: 14px; }
/* the in-app banner: one row above the page */
.pk3-banner { margin: 0 0 14px; }
:root:not([data-ui="new"]) .pk3-banner { margin: 8px 15px 12px; }
.pk3-offer.compact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #dfe8f4; border-radius: 16px; padding: 12px 14px; }
.pk3-offer.compact .pk3-tx { flex: 1 1 260px; min-width: 0; text-align: start; }
.pk3-tx b { display: block; color: #12233f; font-size: 15px; }
.pk3-tx span { color: #5b6b85; font-size: 14px; }
.pk3-offer.compact .pk3-acts { margin: 0; }
.pk3-err { flex-basis: 100%; color: #a1262b; font-size: 14px; }
@media print { .pk3-banner, .pk3-quick { display: none !important; } }
