/* ui3-teacher.css: the teacher app inner pages (teacher.html: my assessments, teacher card, class diary, messages, school events, the yearly scores) in the 2026 look.
   New ui only: every rule is scoped under :root[data-ui="new"]. Sizes in px (root font-size differs per app). */

/* ============================== the page parts (.t3p) ============================== */
:root[data-ui="new"] .t3p { display: flex; flex-direction: column; gap: 18px; padding: 4px 0 24px; color: #12233f; font-family: "Rubik", system-ui, sans-serif; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
:root[data-ui="new"] .t3p .p3-ico { flex-shrink: 0; display: block; }
:root[data-ui="new"] .t3p button { font-family: inherit; }
:root[data-ui="new"] .t3p-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* page head: h1 + one soft line, the main actions on the inline end */
:root[data-ui="new"] .t3p-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
:root[data-ui="new"] .t3p-head-tx { flex: 1 1 260px; min-width: 0; }
:root[data-ui="new"] .t3p-head h1 { margin: 0; font-family: inherit; font-size: 26px; font-weight: 800; line-height: 1.25; color: #12233f; letter-spacing: 0; }
:root[data-ui="new"] .t3p-sub { font-size: 14px; color: #5b6b85; margin-top: 4px; }
:root[data-ui="new"] .t3p-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* cards */
:root[data-ui="new"] .t3p-card { background: #fff; border: 1px solid #dfe8f4; border-radius: 18px; padding: 16px 18px; min-width: 0; }
:root[data-ui="new"] .t3p-card-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; min-height: 42px; }
:root[data-ui="new"] .t3p-card-h h2 { margin: 0; font-family: inherit; font-size: 17px; font-weight: 800; line-height: 1.3; color: #12233f; }
:root[data-ui="new"] .t3p-card-h .t3p-acts { margin-inline-start: auto; }
:root[data-ui="new"] .t3p-chip { flex-shrink: 0; font-size: 12px; font-weight: 700; line-height: 1.5; color: #114591; background: #e6efff; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
:root[data-ui="new"] .t3p-chip.mint { color: #0a6f5d; background: #dcf5ee; }
:root[data-ui="new"] .t3p-chip.ok { color: #0b6b4a; background: #e1f4ea; }
:root[data-ui="new"] .t3p-chip.warn { color: #8a4a00; background: #fff1df; }
:root[data-ui="new"] .t3p-chip.bad { color: #b0202d; background: #fde6e8; }
:root[data-ui="new"] .t3p-chip.grey { color: #4a5a73; background: #f1f4f9; }

/* buttons: ghost by default, sky for the main action */
:root[data-ui="new"] .t3p-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 14px; margin: 0; border-radius: 12px; cursor: pointer;
    background: #fff; border: 1px solid #dfe8f4; color: #12233f !important; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
    text-decoration: none !important; white-space: nowrap; box-shadow: none;
}
:root[data-ui="new"] .t3p-btn:hover { border-color: #b9d3f4; background: #f4f8fe; color: #114591 !important; }
:root[data-ui="new"] .t3p-btn.primary { background: #175bb0; border-color: #175bb0; color: #fff !important; font-weight: 700; padding: 0 16px; box-shadow: 0 8px 18px rgba(23, 91, 176, .24); }
:root[data-ui="new"] .t3p-btn.primary:hover { background: #114591; border-color: #114591; color: #fff !important; }
:root[data-ui="new"] .t3p-btn.mint { background: #dcf5ee; border-color: #9fdcca; color: #0a6f5d !important; font-weight: 700; }
:root[data-ui="new"] .t3p-btn.mint:hover { background: #cdf0e6; }
:root[data-ui="new"] .t3p-btn.danger { color: #b0202d !important; border-color: #f3c4c9; }
:root[data-ui="new"] .t3p-btn.danger:hover { background: #fff5f6; }
:root[data-ui="new"] .t3p-btn.sm { height: 34px; padding: 0 11px; font-size: 13px; border-radius: 10px; }
:root[data-ui="new"] .t3p-btn[disabled] { opacity: .55; cursor: default; }
:root[data-ui="new"] .t3p-ibtn {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: #f1f4f9; border: 0; color: #2a3a55 !important; padding: 0; margin: 0;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none !important;
}
:root[data-ui="new"] .t3p-ibtn:hover { background: #e6efff; color: #114591 !important; }
:root[data-ui="new"] .t3p-ibtn.danger { color: #b0202d !important; }
:root[data-ui="new"] .t3p-ibtn.danger:hover { background: #fde6e8; }
:root[data-ui="new"] .t3p-btn:focus-visible, :root[data-ui="new"] .t3p-ibtn:focus-visible, :root[data-ui="new"] .t3p-tab:focus-visible { outline: 2px solid #175bb0 !important; outline-offset: 2px !important; }

/* the tab bar: the underline style of the admin dashboard */
:root[data-ui="new"] .t3p-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #dfe8f4; }
:root[data-ui="new"] .t3p-tab {
    height: 44px; padding: 0 14px; margin: 0 0 -1px; border: 0; border-bottom: 3px solid transparent; background: transparent; border-radius: 0;
    color: #4a5a73; font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
:root[data-ui="new"] .t3p-tab:hover { color: #114591; }
:root[data-ui="new"] .t3p-tab[aria-selected="true"] { border-bottom-color: #175bb0; color: #114591; font-weight: 700; }
:root[data-ui="new"] .t3p-tab .t3p-chip { font-size: 11px; padding: 1px 8px; }

/* filters: labels above the controls, a responsive grid */
:root[data-ui="new"] .t3p-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; align-items: end; margin: 0 0 16px; }
:root[data-ui="new"] .t3p-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
:root[data-ui="new"] .t3p-lbl { margin: 0; font-size: 13px; font-weight: 600; color: #4a5a73; line-height: 1.3; }
:root[data-ui="new"] .t3p-field select.form-control,
:root[data-ui="new"] .t3p-field input.form-control { width: 100% !important; max-width: none !important; margin: 0 !important; }
/* a checkbox group of the RadioBox component as pill toggles */
:root[data-ui="new"] .t3p .t3p-pills { margin: 0; }
:root[data-ui="new"] .t3p .t3p-pills .checkboxes { display: flex; flex-wrap: wrap; gap: 6px; }
:root[data-ui="new"] .t3p .t3p-pills .checkboxes > label {
    float: none; margin: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
    background: #fff; border: 1px solid #dfe8f4; color: #4a5a73; font-size: 13px; font-weight: 600; white-space: nowrap;
}
:root[data-ui="new"] .t3p .t3p-pills .checkboxes > label:hover { border-color: #b9d3f4; color: #114591; }
:root[data-ui="new"] .t3p .t3p-pills .checkboxes > label.selected { background: #e6efff; border-color: #b9d3f4; color: #114591; }
:root[data-ui="new"] .t3p .t3p-pills .checkboxes > label > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
:root[data-ui="new"] .t3p .t3p-pills .checkboxes > label:has(> input:focus-visible) { outline: 2px solid #175bb0; outline-offset: 2px; }
:root[data-ui="new"] .t3p .t3p-pills .clearfix { display: none; }

/* empty / prompt state */
:root[data-ui="new"] .t3p-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 34px 18px; color: #5b6b85; font-size: 13px; }
:root[data-ui="new"] .t3p-empty-ico { width: 40px; height: 40px; border-radius: 50%; background: #e6efff; color: #114591; display: flex; align-items: center; justify-content: center; margin: 0 0 8px; }
:root[data-ui="new"] .t3p-empty b { font-size: 15px; font-weight: 700; color: #12233f; }

/* the page's own tables (the shared ReportTable / DataTable keep their own look from ui3-pages.css) */
:root[data-ui="new"] .t3p-scroll { overflow-x: auto; min-width: 0; -webkit-overflow-scrolling: touch; }
:root[data-ui="new"] .t3p-table { width: 100%; border-collapse: collapse; background: transparent; margin: 0; font-size: 14px; color: #12233f; }
:root[data-ui="new"] .t3p-table > thead > tr > th {
    background: #f7f9fc; color: #4a5a73; font-size: 13px; font-weight: 600; text-align: start; padding: 10px 10px; border: 0; border-bottom: 1px solid #e6edf6;
    white-space: nowrap; vertical-align: bottom; position: sticky; top: 0; z-index: 1;
}
:root[data-ui="new"] .t3p-table > thead > tr > th:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
:root[data-ui="new"] .t3p-table > thead > tr > th:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
:root[data-ui="new"] .t3p-table > tbody > tr { background: #fff; }
:root[data-ui="new"] .t3p-table > tbody > tr:hover { background: #f7f9fc; }
:root[data-ui="new"] .t3p-table > tbody > tr > td { padding: 12px 10px; height: 50px; border: 0; border-bottom: 1px solid #eef2f8; vertical-align: middle; text-align: start; }
:root[data-ui="new"] .t3p-table > tbody > tr:last-child > td { border-bottom: 0; }
:root[data-ui="new"] .t3p-table td.t3p-num, :root[data-ui="new"] .t3p-table th.t3p-num { color: #8090a8; font-size: 12px; width: 1%; white-space: nowrap; }
:root[data-ui="new"] .t3p-table .t3p-nowrap { white-space: nowrap; }
:root[data-ui="new"] .t3p-table a { color: #114591; font-weight: 600; }
/* the learning focus sheet (teacher card > lessons report) */
:root[data-ui="new"] .t3p-sheet > thead > tr > th { white-space: normal; min-width: 72px; max-width: 120px; font-size: 12px; text-align: center; }
:root[data-ui="new"] .t3p-sheet > thead > tr > th:nth-child(-n+4) { text-align: start; }
:root[data-ui="new"] .t3p-sheet td.t3p-mark { text-align: center; color: transparent; }
:root[data-ui="new"] .t3p-sheet td.t3p-mark.on { color: #0a6f5d; font-weight: 800; }
:root[data-ui="new"] .t3p-sheet td.t3p-mark.on::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2ec4a5; vertical-align: middle; margin-inline-end: 4px; }

:root[data-ui="new"] .t3p-field.wide { grid-column: span 2; }

/* the forms of the page's dialogs (a label cell + a control cell per pair): label above the control, the pairs side by side */
:root[data-ui="new"] .t3p-dlg table.missing-rep { display: block; width: 100%; margin: 0 0 12px; }
:root[data-ui="new"] .t3p-dlg table.missing-rep > tbody { display: flex; flex-direction: column; gap: 14px; }
:root[data-ui="new"] .t3p-dlg table.missing-rep > tbody > tr { display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px 16px; }
:root[data-ui="new"] .t3p-dlg table.missing-rep > tbody > tr > td { display: block; padding: 0; width: auto; min-width: 0; }
:root[data-ui="new"] .t3p-dlg table.missing-rep td.td-label label { margin: 0; font-size: 13px; font-weight: 600; color: #4a5a73; }
:root[data-ui="new"] .t3p-dlg table.missing-rep select.form-control,
:root[data-ui="new"] .t3p-dlg table.missing-rep input.form-control:not([type="checkbox"]),
:root[data-ui="new"] .t3p-dlg table.missing-rep textarea.form-control { width: 100% !important; max-width: none !important; }
:root[data-ui="new"] .t3p-dlg .form-horizontal > div:last-child:not(table) { font-size: 13px; font-weight: 600; color: #4a5a73; }
:root[data-ui="new"] .t3p-dlg .form-horizontal > div:last-child:not(table) textarea { margin-top: 6px; width: 100%; }

/* ============================== כרטיס מורה (#!/attendance - components/schedule/TeacherMissing.js) ============================== */
:root[data-ui="new"] .t3p-tcard .t3p-card > .reports-table,
:root[data-ui="new"] .t3p-tcard .t3p-card > div > .reports-table { margin: 0; }

/* the SaveButton component inside a page head / toolbar: sky when there is something to save, mint once saved */
:root[data-ui="new"] .t3p-save .btn {
    height: 40px; padding: 0 16px !important; margin: 0 !important; border-radius: 12px !important; display: inline-flex; align-items: center; gap: 7px;
    font-family: inherit; font-size: 14px !important; font-weight: 700; line-height: 1; box-shadow: none !important; filter: none !important; text-shadow: none;
}
:root[data-ui="new"] .t3p-save .btn-primary { background: #175bb0 !important; border: 1px solid #175bb0 !important; color: #fff !important; box-shadow: 0 8px 18px rgba(23, 91, 176, .24) !important; }
:root[data-ui="new"] .t3p-save .btn-primary:hover { background: #114591 !important; }
:root[data-ui="new"] .t3p-save .btn-success, :root[data-ui="new"] .t3p-save .btn[disabled] { background: #dcf5ee !important; border: 1px solid #9fdcca !important; color: #0a6f5d !important; opacity: 1; cursor: default; }
:root[data-ui="new"] .t3p-save .btn .glyphicon { top: 0; font-size: 13px; }
:root[data-ui="new"] .t3p-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
:root[data-ui="new"] .t3p-card-f { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #eef2f8; }
/* a simple CheckItem as a tidy checkbox + label */
:root[data-ui="new"] .t3p label.checkit { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 36px; font-size: 14px; font-weight: 500; color: #12233f; cursor: pointer; }
:root[data-ui="new"] .t3p label.checkit input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: #175bb0; flex-shrink: 0; }
:root[data-ui="new"] .t3p label.checkit > span { white-space: normal; }

/* ============================== אירועי הערכה שלי (#!/my/assesments - teacher/MyAssesments.js) ============================== */
:root[data-ui="new"] .t3p-period, :root[data-ui="new"] .t3p-period > span { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
:root[data-ui="new"] .t3p .r3-field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
:root[data-ui="new"] .t3p .r3-label { font-size: 13px; font-weight: 600; color: #4a5a73; line-height: 1.3; }
:root[data-ui="new"] .t3p .r3-static { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; background: #f1f4f9; color: #12233f; font-size: 14px; font-weight: 700; }
:root[data-ui="new"] .t3p .r3-field select.form-control { min-width: 150px; margin: 0 !important; }
:root[data-ui="new"] .t3p a.t3p-chip-link { text-decoration: none !important; color: #0a6f5d !important; background: #dcf5ee; font-size: 13px; }
:root[data-ui="new"] .t3p a.t3p-chip-link:hover { background: #cdf0e6; }
:root[data-ui="new"] .t3p-dt { min-width: 0; overflow-x: auto; }

/* ============================== אירוע הערכה - גיליון הציונים (#!/assesment/:id - teacher/Assesment.js) ============================== */
/* details form: fields with the label above, in a responsive grid */
:root[data-ui="new"] .t3p-asses-form .form-horizontal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; align-items: start; margin: 0; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .form-group { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .form-group > [class*="col-"] { float: none; width: auto; padding: 0; min-height: 0; text-align: start; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .form-group > label { margin: 0; font-size: 13px; font-weight: 600; color: #4a5a73; line-height: 1.3; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .form-group .help-block { margin: 0; font-size: 12px; color: #8090a8; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .form-group:has(textarea),
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .form-group:has(.btn),
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .row { grid-column: 1 / -1; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .form-group:has(.btn) { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .form-group:has(.btn) > .col-sm-6 { flex: 1 1 320px; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal .form-control { width: 100% !important; max-width: none !important; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .row > [class*="col-"] { float: none; width: auto; padding: 0; min-height: 0; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal > .row > .col-sm-3 { font-size: 13px; font-weight: 600; color: #4a5a73; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal .btn-xs { height: 36px; padding: 0 12px; border-radius: 10px !important; background: #f1f4f9 !important; border: 0 !important; color: #12233f !important; font-size: 13px; font-weight: 600; box-shadow: none !important; display: inline-flex; align-items: center; gap: 6px; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal .btn-xs:hover { background: #e6efff !important; color: #114591 !important; }
:root[data-ui="new"] .t3p-asses-form .form-horizontal .btn-xs .glyphicon { top: 0; font-size: 11px; }

/* the sheet card: a toolbar that stays in view, the table scrolls inside the card */
:root[data-ui="new"] .t3p-sticky { position: sticky; top: 70px; z-index: 20; background: #fff; margin: -16px -18px 12px; padding: 12px 18px; border-radius: 18px 18px 0 0; border-bottom: 1px solid #eef2f8; }
:root[data-ui="new"] .t3p-acts label.checkit { min-height: 34px; font-size: 13px; }
:root[data-ui="new"] .t3p-btn[aria-pressed="true"] { background: #e6efff; border-color: #b9d3f4; color: #114591 !important; }
:root[data-ui="new"] table.t3p-gsheet { width: 100%; margin: 0; border-collapse: collapse; background: transparent; font-size: 14px; color: #12233f; }
:root[data-ui="new"] table.t3p-gsheet > thead > tr > th {
    background: #f7f9fc !important; color: #4a5a73 !important; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: start;
    padding: 10px 10px !important; border: 0 !important; border-bottom: 1px solid #e6edf6 !important; white-space: nowrap; vertical-align: bottom;
}
:root[data-ui="new"] table.t3p-gsheet > thead > tr > th:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
:root[data-ui="new"] table.t3p-gsheet > thead > tr > th:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
:root[data-ui="new"] table.t3p-gsheet > thead > tr > th sup { display: block; top: 0; font-size: 11px; font-weight: 500; color: #8090a8; line-height: 1.2; }
:root[data-ui="new"] table.t3p-gsheet > thead > tr > th.t3p-score-h { text-align: center; }
:root[data-ui="new"] table.t3p-gsheet > tbody > tr, :root[data-ui="new"] table.t3p-gsheet > tbody > tr.saved, :root[data-ui="new"] table.t3p-gsheet > tbody > tr.has-changes { background: #fff !important; border: 0; }
:root[data-ui="new"] table.t3p-gsheet > tbody > tr:hover { background: #f7f9fc !important; }
:root[data-ui="new"] table.t3p-gsheet > tbody > tr > td { padding: 7px 10px !important; height: 54px; border: 0 !important; border-bottom: 1px solid #eef2f8 !important; vertical-align: middle; white-space: normal; text-align: start; }
:root[data-ui="new"] table.t3p-gsheet > tbody > tr:last-child > td { border-bottom: 0 !important; }
:root[data-ui="new"] table.t3p-gsheet td.st-listed { white-space: nowrap; font-size: 14px; color: #8090a8; min-width: 190px; }
:root[data-ui="new"] table.t3p-gsheet td.st-listed > b { font-weight: 700; color: #12233f; cursor: pointer; }
:root[data-ui="new"] table.t3p-gsheet td.st-listed sup { top: 0; margin-inline-start: 4px; font-size: 11px; font-weight: 600; color: #114591; background: #e6efff; padding: 1px 7px; border-radius: 999px; }
:root[data-ui="new"] table.t3p-gsheet td.st-listed.highlight { background: transparent; }
:root[data-ui="new"] table.t3p-gsheet td.st-listed.highlight sup { color: #8a4a00; background: #fff1df; }
:root[data-ui="new"] table.t3p-gsheet td.st-listed > .wrapper { display: inline-block; position: relative; vertical-align: middle; }
:root[data-ui="new"] table.t3p-gsheet td.st-listed .glyphicon-comment { color: #9fb3cf; font-size: 15px; top: 2px; }
:root[data-ui="new"] table.t3p-gsheet td.st-listed .glyphicon-comment.positive { color: #0a6f5d; }
:root[data-ui="new"] table.t3p-gsheet td.st-listed .glyphicon-comment.negative { color: #b0202d; }
:root[data-ui="new"] table.t3p-gsheet td.st-listed .glyphicon-comment.remark-passive { color: #175bb0; }
:root[data-ui="new"] table.t3p-gsheet input.form-control.score {
    width: 72px !important; min-width: 72px; max-width: 72px; height: 40px !important; padding: 0 6px !important; margin: 0 auto; display: block; text-align: center;
    border-radius: 10px !important; border: 1px solid #d3deee !important; background: #f7f9fc !important; color: #12233f !important; font-size: 16px; font-weight: 700;
}
:root[data-ui="new"] table.t3p-gsheet tr.saved input.form-control.score { border-color: #9fdcca !important; background: #effbf8 !important; }
:root[data-ui="new"] table.t3p-gsheet tr.has-changes input.form-control.score { border-color: #f2b25c !important; background: #fff8ec !important; }
:root[data-ui="new"] table.t3p-gsheet input.form-control.score:focus { border-color: #175bb0 !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(23, 91, 176, .18) !important; outline: none; }
:root[data-ui="new"] table.t3p-gsheet select.form-control { height: 40px !important; min-width: 150px; width: 220px !important; max-width: 100%; border-radius: 10px !important; border: 1px solid #d3deee !important; background-color: #f7f9fc !important; font-size: 13px; line-height: normal !important; margin: 0; }
:root[data-ui="new"] table.t3p-gsheet textarea.form-control { min-width: 220px; border-radius: 10px !important; border: 1px solid #d3deee !important; background: #f7f9fc !important; font-size: 13px; }
:root[data-ui="new"] table.t3p-gsheet input.form-control.tiny { width: 72px !important; height: 40px; border-radius: 10px !important; text-align: center; }
:root[data-ui="new"] table.t3p-gsheet .checkboxes { display: flex; flex-wrap: wrap; gap: 4px; }
:root[data-ui="new"] table.t3p-gsheet .checkboxes > label { float: none; margin: 0; padding: 4px 9px !important; border-radius: 999px; background: #f1f4f9; font-size: 12px; font-weight: 600; white-space: nowrap; }
:root[data-ui="new"] table.t3p-gsheet .checkboxes > label.selected { background: #e6efff; color: #114591; }
:root[data-ui="new"] table.t3p-gsheet td sub { display: block; bottom: 0; font-size: 11px; color: #8090a8; margin-bottom: 2px; }
:root[data-ui="new"] table.t3p-gsheet td .st_name { font-size: 12px; color: #5b6b85; text-decoration: none; }
:root[data-ui="new"] table.t3p-gsheet .inline-lesson-remark { display: flex; flex-direction: column; gap: 6px; }
:root[data-ui="new"] table.t3p-gsheet > tbody > tr > td:last-child { white-space: nowrap; text-align: end; }

/* extra actions: small sections side by side */
:root[data-ui="new"] .t3p-adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; }
:root[data-ui="new"] .t3p-adv-sec { padding: 14px 16px; border-radius: 14px; background: #f7f9fc; border: 1px solid #eef2f8; min-width: 0; }
:root[data-ui="new"] .t3p-adv-sec h3 { margin: 0 0 4px; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.35; color: #12233f; }
:root[data-ui="new"] .t3p-adv-hint { font-size: 13px; color: #5b6b85; margin: 0 0 4px; }
:root[data-ui="new"] .t3p-adv-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 10px; }
:root[data-ui="new"] .t3p-adv-row .t3p-field { flex: 1 1 140px; }
:root[data-ui="new"] .t3p-adv-row .t3p-field:has(input.score) { flex: 0 0 96px; }
:root[data-ui="new"] .t3p-adv-row .form-control { width: 100% !important; max-width: none !important; margin: 0 !important; background: #fff !important; }
:root[data-ui="new"] .t3p-adv-row input.form-control.score { height: 40px; text-align: center; }
:root[data-ui="new"] .t3p-adv-sec.danger { background: #fff; border-color: #f3c4c9; }
:root[data-ui="new"] .t3p-adv-sec.danger h3 { color: #b0202d; }

/* ============================== הודעות (#!/messages - messaging/Messages.js, MessageInbox.js, MessagesSent.js) ============================== */
:root[data-ui="new"] .t3p .msg-container { max-width: none; margin: 0; }
:root[data-ui="new"] .t3p-btn[aria-pressed="true"].primary { background: #114591; }
:root[data-ui="new"] .t3p-msg-list .t3p-card-h .t3p-acts { gap: 6px; }
:root[data-ui="new"] .t3p-msg-list .t3p-pills .checkboxes > label { min-height: 36px; padding: 0 12px; }
:root[data-ui="new"] .t3p-msg-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: #f4f8fe; font-size: 13px; color: #114591; }
:root[data-ui="new"] .t3p-msg-sel > b { font-weight: 700; margin-inline-end: 4px; }
:root[data-ui="new"] .t3p-msg-list > .msg_list > .h5.orange { display: none; }
:root[data-ui="new"] .t3p-msgtable { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; color: #12233f; }
:root[data-ui="new"] .t3p-msgtable > tbody > tr { cursor: pointer; background: #fff; }
:root[data-ui="new"] .t3p-msgtable > tbody > tr:hover { background: #f7f9fc; }
:root[data-ui="new"] .t3p-msgtable > tbody > tr > td { height: 52px; padding: 6px 8px; border: 0; border-bottom: 1px solid #eef2f8; vertical-align: middle; }
:root[data-ui="new"] .t3p-msgtable > tbody > tr:last-child > td { border-bottom: 0; }
:root[data-ui="new"] .t3p-msgtable td.msg-check, :root[data-ui="new"] .t3p-msgtable td.msg-starred { width: 40px; max-width: none; padding: 0 4px; }
:root[data-ui="new"] .t3p-msgtable td.msg-check label.checkit { min-height: 40px; min-width: 32px; justify-content: center; }
:root[data-ui="new"] .t3p-msgtable td.msg-check label.checkit > span { display: none; }
:root[data-ui="new"] .t3p-msgtable td.msg-subject { display: table-cell; }
:root[data-ui="new"] .t3p-msgtable td.msg-subject .t3p-chip { margin-inline-end: 8px; font-size: 11px; padding: 2px 8px; vertical-align: 1px; }
:root[data-ui="new"] .t3p-msgtable td.msg-date-sent { width: 120px; max-width: none; text-align: end; white-space: nowrap; font-size: 13px; color: #5b6b85; }
:root[data-ui="new"] .t3p-msgtable tr.msg-not-seen { background: #fff; }
:root[data-ui="new"] .t3p-msgtable tr.msg-not-seen .t3p-msg-s { font-weight: 700; }
:root[data-ui="new"] .t3p-msgtable tr.msg-not-seen td.msg-date-sent { color: #114591; font-weight: 700; }
:root[data-ui="new"] .t3p-msgtable tr.msg-read .t3p-msg-s { color: #4a5a73; }
:root[data-ui="new"] .t3p-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ec4a5; margin-inline-end: 8px; vertical-align: 2px; }
:root[data-ui="new"] .t3p-star { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 10px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #b4c1d4; cursor: pointer; }
:root[data-ui="new"] .t3p-star:hover { background: #f1f4f9; color: #8a4a00; }
:root[data-ui="new"] .t3p-star.on { color: #e0a100; }
:root[data-ui="new"] .t3p-star.on svg { fill: currentColor; }
:root[data-ui="new"] .t3p-star:focus-visible { outline: 2px solid #175bb0; outline-offset: 1px; }
:root[data-ui="new"] .t3p-msg .pager { display: flex; justify-content: center; margin: 12px 0 0; }
:root[data-ui="new"] .t3p-msg .pager .pagination { margin: 0; }
/* the pager (utils/PagingView.js): ghost page buttons, the current page sky with white text */
:root[data-ui="new"] .t3p-msg .pager .pagination > li > a {
    display: inline-flex; align-items: center; height: 36px; padding: 0 14px; margin: 0 3px; border-radius: 10px !important;
    background: #fff; border: 1px solid #dfe8f4; color: #12233f; font-size: 13px; font-weight: 600; text-decoration: none;
}
:root[data-ui="new"] .t3p-msg .pager .pagination > li > a:hover { background: #f4f8fe; border-color: #b9d3f4; color: #114591; }
:root[data-ui="new"] .t3p-msg .pager .pagination > .active > a,
:root[data-ui="new"] .t3p-msg .pager .pagination > .active > a:hover,
:root[data-ui="new"] .t3p-msg .pager .pagination > .active > a:focus { background: #175bb0 !important; border-color: #175bb0 !important; color: #fff !important; cursor: default; }
/* the open message */
:root[data-ui="new"] .t3p-msg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid #eef2f8; }
:root[data-ui="new"] .t3p-msg-bar > .t3p-acts { margin-inline-start: auto; gap: 6px; }
:root[data-ui="new"] .t3p-msg-subj { margin: 0; font-family: inherit; font-size: 21px; font-weight: 800; line-height: 1.3; color: #12233f; }
:root[data-ui="new"] .t3p-msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 6px 0 14px; font-size: 13px; color: #5b6b85; }
:root[data-ui="new"] .t3p-msg-meta b { color: #12233f; font-weight: 700; }
:root[data-ui="new"] .t3p-msg-date { margin-inline-start: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
:root[data-ui="new"] .t3p-msg-to .label { display: inline-flex; align-items: center; gap: 4px; margin: 2px; padding: 3px 10px; border-radius: 999px; background: #e6efff; color: #114591; font-size: 12px; font-weight: 700; }
:root[data-ui="new"] .t3p-msg-to .label .badge { background: #175bb0 !important; font-size: 11px; padding: 1px 6px; }
:root[data-ui="new"] .t3p-msg-body { padding: 16px 18px !important; border-radius: 14px; background: #f7f9fc !important; border: 1px solid #eef2f8; font-size: 15px; line-height: 1.65; color: #12233f; min-height: 80px; }
:root[data-ui="new"] .t3p-msg-files { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e6edf6; }
:root[data-ui="new"] .t3p-msg-reply { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef2f8; }
:root[data-ui="new"] .t3p-msg-form { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
:root[data-ui="new"] .t3p-msg-form .form-control { width: 100% !important; max-width: none !important; }
:root[data-ui="new"] .t3p-msg-form-acts { display: flex; flex-wrap: wrap; gap: 8px; }
:root[data-ui="new"] .t3p .t3p-radios .checkboxes { display: flex; flex-direction: column; gap: 6px; }
:root[data-ui="new"] .t3p .t3p-radios .checkboxes > label { float: none; display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; white-space: normal; }
:root[data-ui="new"] .t3p .t3p-radios .checkboxes > label > input { width: 18px; height: 18px; margin: 0; accent-color: #175bb0; }
:root[data-ui="new"] .t3p .t3p-radios .clearfix { display: none; }
/* the classic read / signed reports of a sent message inside the page */
:root[data-ui="new"] .t3p-msgs > div > .pad.center, :root[data-ui="new"] .t3p-msgs > div > div > .xprint { margin: 0 0 12px; }

/* ============================== כתיבת הודעה (#!/send-messages and the messages page - messaging/SendMessageByTeacher.js) ============================== */
:root[data-ui="new"] .t3p-composer { display: flex; flex-direction: column; gap: 18px; }
:root[data-ui="new"] .msg-container.t3p-composer { max-width: none; margin: 0; }
:root[data-ui="new"] .t3p .t3p-pills .checkboxes > label.selects-header { display: none; }
:root[data-ui="new"] .t3p-files .files-uploader { margin: 0; }
:root[data-ui="new"] .t3p-files label.l-upload {
    display: inline-flex; align-items: center; height: 36px; padding: 0 12px; margin: 0 0 8px; border-radius: 10px; cursor: pointer;
    background: #fff !important; border: 1px solid #dfe8f4 !important; color: #12233f !important; font-size: 13px; font-weight: 600; box-shadow: none !important;
}
:root[data-ui="new"] .t3p-files label.l-upload:hover { border-color: #b9d3f4 !important; background: #f4f8fe !important; color: #114591 !important; }
:root[data-ui="new"] .t3p-files .filesDropZone { border: 1.5px dashed #c9d6ea !important; border-radius: 14px; background: #f7f9fc; padding: 14px 16px; min-height: 0; color: #5b6b85; font-size: 13px; }
:root[data-ui="new"] .t3p-files label.l-reset { font-size: 13px; color: #b0202d; cursor: pointer; }
:root[data-ui="new"] .t3p-recips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:root[data-ui="new"] .t3p-btn.on { background: #e6efff; border-color: #b9d3f4; color: #114591 !important; }
:root[data-ui="new"] .t3p-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #175bb0; color: #fff; font-size: 12px; font-weight: 700; }
:root[data-ui="new"] button.t3p-chip-btn { border: 0; cursor: pointer; font-family: inherit; }
:root[data-ui="new"] button.t3p-chip-btn:hover { background: #d6e5fb; }
:root[data-ui="new"] .t3p-choose { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef2f8; min-width: 0; overflow-x: auto; }
:root[data-ui="new"] .t3p-subj { margin: 0 0 14px; max-width: 760px; }
:root[data-ui="new"] .t3p-subj .form-control { width: 100% !important; max-width: none !important; }
:root[data-ui="new"] .t3p-compose .sun-editor { border-radius: 12px; overflow: hidden; }
:root[data-ui="new"] .t3p-opts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin-top: 14px; }
:root[data-ui="new"] .t3p-opts select.form-control { min-width: 200px; margin: 0 !important; }
:root[data-ui="new"] .t3p-hint { font-size: 13px; color: #5b6b85; }
:root[data-ui="new"] .t3p-sms { display: flex; flex-direction: column; gap: 10px; }
:root[data-ui="new"] .t3p-sms .form-group { margin: 0; }
:root[data-ui="new"] .t3p-sms textarea.form-control { width: 100% !important; max-width: 760px !important; }
:root[data-ui="new"] .t3p-sms-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
:root[data-ui="new"] .t3p-send-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
:root[data-ui="new"] .t3p-files { margin-top: 14px; }
:root[data-ui="new"] .t3p-send-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef2f8; }
:root[data-ui="new"] .t3p-send-acts .t3p-btn.primary { min-width: 140px; }
:root[data-ui="new"] .t3p-send-acts .glyphicon { top: 0; }
:root[data-ui="new"] .t3p-sent .t3p-empty { padding: 18px 18px 10px; }
:root[data-ui="new"] .t3p-empty-ico.ok { background: #e1f4ea; color: #0b6b4a; }
:root[data-ui="new"] .t3p-center { justify-content: center; }
:root[data-ui="new"] .t3p-terms { padding: 0 4px; font-size: 12px; color: #5b6b85; }
:root[data-ui="new"] .t3p-terms .t3p-lbl { font-size: 12px; }
:root[data-ui="new"] .t3p-terms ol.terms { margin: 6px 0 0; padding-inline-start: 18px; }
:root[data-ui="new"] .t3p-terms ol.terms li { margin: 2px 0; }
:root[data-ui="new"] .t3p-terms a { color: #114591; }

/* ============================== shared bits of the list / grid pages below ============================== */
:root[data-ui="new"] .t3p-static { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; background: #f1f4f9; color: #12233f; font-size: 14px; font-weight: 700; }
:root[data-ui="new"] .t3p-filter-card .t3p-filters { margin: 0; }
:root[data-ui="new"] .t3p-filter-card .t3p-filters select.form-control { width: 100% !important; max-width: none !important; margin: 0 !important; }
:root[data-ui="new"] .t3p-filter-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #eef2f8; }
:root[data-ui="new"] .t3p-filter-opts .info-menu { display: inline-block; }
:root[data-ui="new"] .t3p-filter-opts .info-menu .btn, :root[data-ui="new"] .t3p-events .info-menu .btn, :root[data-ui="new"] .t3p-shnati .info-menu .btn {
    height: 34px; padding: 0 11px; border-radius: 10px !important; background: #fff !important; border: 1px solid #dfe8f4 !important; color: #12233f !important;
    font-size: 13px; font-weight: 600; box-shadow: none !important; display: inline-flex; align-items: center; gap: 6px; margin: 0 !important;
}
:root[data-ui="new"] .t3p-field-btn { justify-content: flex-end; }
:root[data-ui="new"] .t3p-field-btn .t3p-btn { align-self: flex-start; }
:root[data-ui="new"] .t3p-strong { font-weight: 700; }
:root[data-ui="new"] .t3p-btn[disabled]:hover { background: #fff; border-color: #dfe8f4; color: #12233f !important; }
:root[data-ui="new"] .t3p-btn.primary[disabled]:hover { background: #175bb0; border-color: #175bb0; color: #fff !important; }
/* a checkbox as a pill toggle */
:root[data-ui="new"] .t3p label.t3p-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; margin: 0; border-radius: 999px; border: 1px solid #dfe8f4; background: #fff; color: #4a5a73; font-size: 13px; font-weight: 600; cursor: pointer; }
:root[data-ui="new"] .t3p label.t3p-toggle:has(input:checked) { background: #e6efff; border-color: #b9d3f4; color: #114591; }
:root[data-ui="new"] .t3p label.t3p-toggle input { width: 16px; height: 16px; margin: 0; accent-color: #175bb0; }

/* ============================== יומן כיתתי (#!/diary/full, #!/diary/class - teacher/TeachersDiary*.js) ============================== */
:root[data-ui="new"] .t3p-grid-card { padding: 12px; }
:root[data-ui="new"] .t3p-grid-card > .table-responsive { border: 0; margin: 0; border-radius: 12px; }
:root[data-ui="new"] .t3p-grid-card table.diary-table { margin: 0; background: #fff; border: 1px solid #e6edf6 !important; border-radius: 0; }
:root[data-ui="new"] .t3p-grid-card table.diary-table > thead > tr > th {
    background: #f7f9fc !important; color: #4a5a73 !important; font-size: 12px; font-weight: 600; line-height: 1.3; padding: 8px 6px !important;
    border: 1px solid #e6edf6 !important; vertical-align: bottom;
}
:root[data-ui="new"] .t3p-grid-card table.diary-table > tbody > tr,
:root[data-ui="new"] .t3p-grid-card table.diary-table > tbody > tr:nth-of-type(odd) { background: #fff !important; }
:root[data-ui="new"] .t3p-grid-card table.diary-table > tbody > tr:hover > td { background-color: #f7f9fc; }
:root[data-ui="new"] .t3p-grid-card table.diary-table > tbody > tr.selected > td { background-color: #eef5ff; }
:root[data-ui="new"] .t3p-grid-card table.diary-table > tbody > tr > td { border: 1px solid #eef2f8 !important; padding: 6px !important; font-size: 12px; vertical-align: middle; }
:root[data-ui="new"] .t3p-grid-card table.diary-table td.tname { font-size: 13px; font-weight: 700; color: #12233f; white-space: nowrap; background: #fff; }
:root[data-ui="new"] .t3p-grid-card table.diary-table .btn-xs { border-radius: 8px !important; box-shadow: none !important; }
:root[data-ui="new"] .t3p-grid-card > .t3p-card-f { margin-top: 12px; }
/* the day separator columns (th/td.seperate): a thin sky-light line instead of the classic purple-blue band */
:root[data-ui="new"] .t3p-grid-card table.diary-table > thead > tr > th.seperate,
:root[data-ui="new"] .t3p-grid-card table.diary-table > tbody > tr > td.seperate,
:root[data-ui="new"] .t3p-grid-card table.diary-table > tfoot > tr > th.seperate {
    width: 4px; min-width: 4px; max-width: 4px; padding: 0 !important; border: 0 !important; background: #e6efff !important;
}

/* ============================== הזנת ציונים שנתיים (#!/shnati - teacher/AssesmentShnati.1.js) ============================== */
:root[data-ui="new"] .t3p-shnati-h > .h5 { margin: 0; font-size: 17px; font-weight: 800; color: #12233f; }
:root[data-ui="new"] .t3p-shnati .info-menu { display: inline-block; }

/* ============================== אירועים בית ספריים (#!/schoolevents/admin - teacher/SchoolEventsManagment.js) ============================== */
:root[data-ui="new"] .t3p-monthnav { display: flex; align-items: center; gap: 8px; }
:root[data-ui="new"] .t3p-monthnav h2 { min-width: 150px; text-align: center; }
:root[data-ui="new"] .t3p-events .info-menu { display: inline-block; }
:root[data-ui="new"] .t3p-cal-card { padding: 14px 16px; }
:root[data-ui="new"] table.t3p-cal { width: 100%; min-width: 720px; margin: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: #fff; border: 1px solid #e6edf6 !important; border-radius: 14px; overflow: hidden; }
:root[data-ui="new"] table.t3p-cal > thead > tr > th { background: #f7f9fc !important; color: #4a5a73 !important; font-size: 13px; font-weight: 600; text-align: center; padding: 10px 6px !important; border: 0 !important; border-bottom: 1px solid #e6edf6 !important; }
:root[data-ui="new"] table.t3p-cal > tbody > tr > td { height: 104px; padding: 6px 8px !important; border: 0 !important; border-bottom: 1px solid #eef2f8 !important; border-inline-start: 1px solid #eef2f8 !important; vertical-align: top; background: #fff; }
:root[data-ui="new"] table.t3p-cal > tbody > tr > td:first-child { border-inline-start: 0 !important; }
:root[data-ui="new"] table.t3p-cal > tbody > tr:last-child > td { border-bottom: 0 !important; }
:root[data-ui="new"] table.t3p-cal > tbody > tr > td.cal-empty-day { background: #fafbfd; }
:root[data-ui="new"] table.t3p-cal > tbody > tr > td.tday { background: #eef5ff !important; box-shadow: inset 0 0 0 2px #175bb0; }
:root[data-ui="new"] table.t3p-cal td .en-date { font-size: 13px; font-weight: 700; color: #12233f; }
:root[data-ui="new"] table.t3p-cal td.tday .en-date { color: #114591; }
:root[data-ui="new"] table.t3p-cal td .label { display: block; margin: 3px 0 0; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; text-align: start; white-space: normal; line-height: 1.35; }

/* ============================== טופס יצירת קשר (#!/student_contact_form - mentor/StudentContactForm.js) ============================== */
:root[data-ui="new"] .t3p-contact-table td.t3p-phone { direction: ltr; unicode-bidi: isolate; text-align: end; white-space: nowrap; color: #4a5a73; font-variant-numeric: tabular-nums; }
:root[data-ui="new"] .t3p-contact-table > thead > tr > th, :root[data-ui="new"] .t3p-contact-table > tbody > tr > td { padding-inline: 7px; }
:root[data-ui="new"] .t3p-contact-table select.form-control { min-width: 130px; height: 38px; margin: 0; border-radius: 10px; font-size: 13px; }
:root[data-ui="new"] .t3p-contact-table > thead > tr > th { white-space: normal; min-width: 80px; }
:root[data-ui="new"] .t3p-contact-table > tbody > tr > td { white-space: nowrap; }

/* ============================== השיעורים שלי (the dialog of #!/schedule?mylessons=1 - teacher/MyLessons.js) ============================== */
:root[data-ui="new"] .t3p-mylessons { padding: 0; gap: 22px; }
:root[data-ui="new"] .t3p-sec { min-width: 0; }
:root[data-ui="new"] .t3p-sec + .t3p-sec { padding-top: 18px; border-top: 1px solid #eef2f8; }
:root[data-ui="new"] .t3p-sec > .t3p-card-h { margin-bottom: 4px; min-height: 0; }

@media (max-width: 767px) {
    :root[data-ui="new"] .t3p-msg-list .t3p-card-h .t3p-acts { width: 100%; }
    :root[data-ui="new"] .t3p-msgtable td.msg-date-sent { width: 78px; font-size: 12px; }
    :root[data-ui="new"] .t3p-msgtable > tbody > tr > td { padding: 6px 4px; }
    :root[data-ui="new"] .t3p-msg-bar > .t3p-acts { margin-inline-start: 0; width: 100%; }
    :root[data-ui="new"] .t3p-msg-bar .t3p-btn.sm { flex: 1 1 auto; min-height: 40px; }
    :root[data-ui="new"] .t3p-msg-date { margin-inline-start: 0; }
    :root[data-ui="new"] .t3p-msg-subj { font-size: 19px; }
    :root[data-ui="new"] .t3p-recips .t3p-btn { flex: 1 1 auto; }
    :root[data-ui="new"] .t3p-send-acts .t3p-btn { flex: 1 1 0; }
}

@media (max-width: 767px) {
    :root[data-ui="new"] .t3p-save, :root[data-ui="new"] .t3p-save .btn { flex: 1 1 0; justify-content: center; }
    :root[data-ui="new"] .t3p-save .btn { height: 44px; width: 100%; }
    :root[data-ui="new"] .t3p-sticky { position: static; margin: 0 0 12px; padding: 0 0 12px; border-radius: 0; }
    :root[data-ui="new"] .t3p-sticky .t3p-acts .t3p-btn.sm { flex: 0 1 auto; min-height: 40px; }
    :root[data-ui="new"] table.t3p-gsheet td.st-listed { min-width: 150px; white-space: normal; }
    :root[data-ui="new"] .t3p-period, :root[data-ui="new"] .t3p-period > span { width: 100%; }
    :root[data-ui="new"] .t3p-period .r3-field:last-child { flex: 1 1 auto; }
}

@media (max-width: 767px) {
    :root[data-ui="new"] .t3p { gap: 14px; padding-bottom: 16px; }
    :root[data-ui="new"] .t3p-head h1 { font-size: 23px; }
    :root[data-ui="new"] .t3p-card { padding: 14px 12px; border-radius: 16px; }
    :root[data-ui="new"] .t3p-card-h { margin-bottom: 12px; }
    :root[data-ui="new"] .t3p-card-h .t3p-acts { margin-inline-start: 0; width: 100%; }
    :root[data-ui="new"] .t3p-card-h .t3p-acts .t3p-btn { flex: 1 1 auto; }
    :root[data-ui="new"] .t3p-head .t3p-acts { width: 100%; }
    :root[data-ui="new"] .t3p-head .t3p-acts .t3p-btn { flex: 1 1 0; }
    :root[data-ui="new"] .t3p-btn { min-height: 44px; }
    :root[data-ui="new"] .t3p-ibtn { width: 44px; height: 44px; }
    :root[data-ui="new"] .t3p-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0; scrollbar-width: none; }
    :root[data-ui="new"] .t3p-tabs::-webkit-scrollbar { display: none; }
    :root[data-ui="new"] .t3p-tab { padding: 0 12px; font-size: 14px; }
    :root[data-ui="new"] .t3p-filters { grid-template-columns: 1fr; gap: 10px; }
    :root[data-ui="new"] .t3p-field.wide { grid-column: auto; }
    :root[data-ui="new"] .t3p-dlg table.missing-rep > tbody > tr { grid-template-rows: none; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); }
    :root[data-ui="new"] .t3p .t3p-pills .checkboxes > label { min-height: 44px; }
}

/* ============================== the diary's two side cards (#!/schedule - teacher/Schedule.js t3sideCards, new ui: .t3-sc) ============================== */
/* rows of icon + label + chevron (a toggle opens its panel under the row), section titles without colons */
:root[data-ui="new"] .t3 .scheduler-actions.t3-sc {
    float: none !important; width: auto !important; min-width: 0 !important; max-width: none !important; margin: 0 0 14px !important;
    padding: 14px 12px !important; border-radius: 18px !important; border: 1px solid #dfe8f4 !important; box-shadow: none !important; background: #fff;
    font-size: 14px; line-height: 1.4; color: #12233f; z-index: auto;
}
:root[data-ui="new"] .t3-sc-sec + .t3-sc-sec { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef2f8; }
:root[data-ui="new"] .t3-sc-h { margin: 0 6px 6px; font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1.3; color: #12233f; }
:root[data-ui="new"] .t3-sc-list { display: flex; flex-direction: column; gap: 2px; }
:root[data-ui="new"] .t3-sc-row {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px; margin: 0; border: 0; border-radius: 12px; background: transparent;
    color: #2a3a55 !important; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: start; text-decoration: none !important; cursor: pointer;
}
:root[data-ui="new"] .t3-sc-row:hover { background: #f1f5fb; color: #12233f !important; }
:root[data-ui="new"] .t3-sc-row:focus-visible { outline: 2px solid #175bb0; outline-offset: 1px; }
:root[data-ui="new"] .t3-sc-row[aria-expanded="true"] { background: #eef5ff; color: #114591 !important; }
:root[data-ui="new"] .t3-sc-ico { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: #e6efff; color: #114591; display: inline-flex; align-items: center; justify-content: center; }
:root[data-ui="new"] .t3-sc-ico.mint { background: #dcf5ee; color: #0a6f5d; }
:root[data-ui="new"] .t3-sc-ico .p3-ico { display: block; }
:root[data-ui="new"] .t3-sc-tx { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
:root[data-ui="new"] .t3-sc-chev { flex-shrink: 0; display: inline-flex; color: #8090a8; transition: transform .15s; }
:root[data-ui="new"] .t3-sc-row[aria-expanded="true"] .t3-sc-chev { transform: rotate(180deg); color: #114591; }
/* the panels under the toggles (שיבוץ מערכת שעות, אקלים חינוכי, הגדרות תצוגת היומן) */
:root[data-ui="new"] .t3-sc .pedagogical-hours, :root[data-ui="new"] .t3-sc .autowidth-btn, :root[data-ui="new"] .t3-sc .schedule-modes {
    margin: 4px 0 8px; padding: 12px; border-radius: 12px; background: #f7f9fc; border: 1px solid #eef2f8; font-size: 13px; color: #2a3a55; min-width: 0;
}
:root[data-ui="new"] .t3-sc ul.to-schedule { list-style: none; margin: 6px 0 0; padding: 0; }
:root[data-ui="new"] .t3-sc ul.to-schedule > li { margin: 0 0 4px; }
:root[data-ui="new"] .t3-sc .schedule-modes small { display: block; margin: 10px 0 2px; font-size: 12px; color: #5b6b85; }
:root[data-ui="new"] .t3-sc .schedule-modes small .u { text-decoration: none; }
:root[data-ui="new"] .t3-sc label.checkit { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; font-size: 13px; font-weight: 500; color: #12233f; cursor: pointer; }
:root[data-ui="new"] .t3-sc label.checkit input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: #175bb0; flex-shrink: 0; }
:root[data-ui="new"] .t3-sc .pedagogical-hours .btn, :root[data-ui="new"] .t3-sc .schedule-modes .btn, :root[data-ui="new"] .t3-sc .autowidth-btn .btn, :root[data-ui="new"] .t3-sc-imp .btn {
    display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; min-height: 36px !important; height: auto; padding: 6px 12px !important; margin: 4px 0 !important;
    border-radius: 10px !important; background: #fff !important; border: 1px solid #dfe8f4 !important; color: #12233f !important; font-size: 13px !important; font-weight: 600;
    box-shadow: none !important; text-shadow: none; filter: none !important;
}
:root[data-ui="new"] .t3-sc .pedagogical-hours .btn:hover, :root[data-ui="new"] .t3-sc .schedule-modes .btn:hover, :root[data-ui="new"] .t3-sc-imp .btn:hover { background: #f4f8fe !important; border-color: #b9d3f4 !important; color: #114591 !important; }
:root[data-ui="new"] .t3-sc .autowidth-btn .btn-primary { background: #175bb0 !important; border-color: #175bb0 !important; color: #fff !important; }
:root[data-ui="new"] .t3-sc .btn .glyphicon { top: 0; font-size: 11px; }
:root[data-ui="new"] .t3-sc .autowidth-btn .h6 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #12233f; }
:root[data-ui="new"] .t3-sc .autowidth-btn > div { margin: 0 0 8px; }
:root[data-ui="new"] .t3-sc .autowidth-btn .form-control { max-width: 100%; }
:root[data-ui="new"] .t3-sc .autowidth-btn textarea.form-control { width: 100% !important; }
:root[data-ui="new"] .t3-sc .autowidth-btn > hr { display: none; }
:root[data-ui="new"] .t3-sc-imp .center { text-align: start; }

/* a tablet: the two cards side by side under the week (from 1280px they stand beside it, see ui2.css) */
@media (min-width: 768px) and (max-width: 1279px) {
    :root[data-ui="new"] .t3 .t3-diary-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
    :root[data-ui="new"] .t3 .t3-diary-side > .scheduler-actions.t3-sc { margin: 0 !important; }
}

/* the week shows only the days that fit its card (Schedule.js t3FitDays / t3DayRange - a big phone: today and
   tomorrow), so below 900px the grid fills the card instead of scrolling sideways as ui2.css sized it */
@media (max-width: 899px) {
    :root[data-ui="new"] .t3 .teacher-schedule.t3-week table { width: 100% !important; min-width: 0; table-layout: fixed !important; }
    :root[data-ui="new"] .t3 .teacher-schedule.t3-week table td,
    :root[data-ui="new"] .t3 .teacher-schedule.t3-week table th { min-width: 0; max-width: none; overflow-wrap: anywhere !important; }
}

/* ============================== phones: the month calendar, the teacher card's tabs, my assessments' table ============================== */
@media (max-width: 767px) {
    /* אירועים בית ספריים (SchoolEventsManagment.js): the whole week fits the card - narrow day columns, smaller dates and labels */
    :root[data-ui="new"] .t3p-cal-card { padding: 12px 8px; }
    :root[data-ui="new"] table.t3p-cal { min-width: 0; }
    :root[data-ui="new"] table.t3p-cal > thead > tr > th { padding: 8px 1px !important; font-size: 11px; white-space: nowrap; overflow: hidden; }
    :root[data-ui="new"] table.t3p-cal > tbody > tr > td { height: 72px; padding: 3px !important; }
    :root[data-ui="new"] table.t3p-cal .wrapper-day { min-height: 48px; }
    :root[data-ui="new"] table.t3p-cal .data-cell { padding: 15px 0 12px; }
    :root[data-ui="new"] table.t3p-cal td .en-date { font-size: 12px; }
    :root[data-ui="new"] table.t3p-cal td .he-date { font-size: 9px; color: #8090a8; white-space: nowrap; max-width: calc(100% - 2px); overflow: hidden; }
    :root[data-ui="new"] table.t3p-cal td .label { margin: 2px 0 0; padding: 2px 3px; border-radius: 6px; font-size: 9.5px; line-height: 1.25; overflow-wrap: anywhere; }

    /* כרטיס מורה (components/schedule/TeacherMissing.js): the tabs as a two-column grid of pills - every tab in view */
    :root[data-ui="new"] .t3p-tcard .t3p-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: visible; border-bottom: 0; }
    :root[data-ui="new"] .t3p-tcard .t3p-tab {
        justify-content: center; height: auto; min-height: 44px; padding: 6px 10px; margin: 0; border: 1px solid #dfe8f4; border-radius: 12px; background: #fff;
        white-space: normal; text-align: center; line-height: 1.25; font-size: 14px;
    }
    :root[data-ui="new"] .t3p-tcard .t3p-tab[aria-selected="true"] { background: #e6efff; border-color: #b9d3f4; color: #114591; }

    /* אירועי הערכה שלי (MyAssesments.js): the table scrolls inside the card edge to edge, with a shade on the side that has more */
    :root[data-ui="new"] .t3p-myasses .t3p-dt .action-table { padding: 0 !important; }
    :root[data-ui="new"] .t3p-myasses .t3p-dt .t3-tscroll {
        background:
            linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 32px 100% no-repeat local,
            linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 32px 100% no-repeat local,
            radial-gradient(farthest-side at 0 50%, rgba(16, 42, 92, .26), rgba(16, 42, 92, 0)) left center / 16px 100% no-repeat scroll,
            radial-gradient(farthest-side at 100% 50%, rgba(16, 42, 92, .26), rgba(16, 42, 92, 0)) right center / 16px 100% no-repeat scroll;
        padding-bottom: 6px;
    }
    :root[data-ui="new"] .t3p-myasses .t3p-dt .t3-tscroll::-webkit-scrollbar { height: 6px; }
}

/* ============================== ניהול מערכי השיעורים שלי (the dialog of #!/schedule?mylessons=1 - MyLessons.js, ReportTable periodFields) ============================== */
/* the period controls as fields with their labels above, then "הצג נתונים", in one wrapping row */
:root[data-ui="new"] .t3p-mylessons .reports-table-toolsbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 4px 0 14px; }
:root[data-ui="new"] .t3p-mylessons .reports-table-toolsbar > .r3-field { flex: 1 1 150px; max-width: 220px; }
:root[data-ui="new"] .t3p-mylessons .reports-table-toolsbar > .r3-field, :root[data-ui="new"] .t3p-mylessons .reports-table-toolsbar > .r3-field > .r3-label { align-items: stretch; text-align: start; }
/* the classic table keeps 400px free under its date pickers; the first list does not need it - its picker opens over the second */
:root[data-ui="new"] .t3p-mylessons .t3p-sec:not(:last-child) .reports-table.has-inputdate { min-height: 0; }
:root[data-ui="new"] .t3p-mylessons .reports-table-toolsbar > .r3-field .form-control { width: 100% !important; max-width: none !important; margin: 0 !important; }
:root[data-ui="new"] .t3p-mylessons .reports-table-toolsbar > .btn { height: 40px; }
/* no rows: a centered block with a 40px icon circle instead of the bare line under an empty table head */
:root[data-ui="new"] .t3p-mylessons .t3-tscroll:has(td.t3-td-empty) > table > thead { display: none; }
:root[data-ui="new"] .t3p-mylessons .t3-tscroll:has(td.t3-td-empty) > table { width: 100% !important; min-width: 0 !important; }
:root[data-ui="new"] .t3p-mylessons .t3-tscroll > table > tbody > tr > td.t3-td-empty { padding: 26px 16px !important; border: 0 !important; text-align: center; color: #12233f !important; font-size: 15px !important; font-weight: 700 !important; }
:root[data-ui="new"] .t3p-mylessons td.t3-td-empty::before {
    content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%;
    background: #e6efff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114591' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M4 19V5M8 7h7M8 11h5'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
}
@media (max-width: 767px) {
    :root[data-ui="new"] .t3p-mylessons .reports-table-toolsbar > .r3-field { max-width: none; }
    :root[data-ui="new"] .t3p-mylessons .reports-table-toolsbar > .btn { flex: 1 1 100%; min-height: 44px; }
}

/* ============================== the diary home (#!/schedule - teacher/components/DiaryCards.js, Schedule.js) ============================== */
@keyframes t3-home-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 196, 165, .55); } 70% { box-shadow: 0 0 0 7px rgba(46, 196, 165, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 196, 165, 0); } }
:root[data-ui="new"] .t3-pulse { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 999px; background: #2ec4a5; animation: t3-home-pulse 1.6s infinite; }
@media (prefers-reduced-motion: reduce) { :root[data-ui="new"] .t3-pulse { animation: none; } }

/* "עכשיו / השיעור הבא" + "דורש השלמה": one row from 900px, stacked on a phone */
:root[data-ui="new"] .t3 .t3-home-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
:root[data-ui="new"] .t3 .t3-home-row > .t3-card { flex: 1 1 360px; }
:root[data-ui="new"] .t3 .t3-now { gap: 0; padding: 16px; border-radius: 20px; box-shadow: 0 12px 28px rgba(16, 42, 92, .12); }
:root[data-ui="new"] .t3 .t3-now-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #114591; }
:root[data-ui="new"] .t3 .t3-now-chip { margin-inline-start: auto; }
:root[data-ui="new"] .t3 .t3-now-title { margin-top: 8px; font-size: 24px; font-weight: 800; line-height: 1.25; }
:root[data-ui="new"] .t3 .t3-now-sub { margin-top: 2px; font-size: 13px; color: #5b6b85; }
:root[data-ui="new"] .t3 .t3-now-acts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 14px; }
:root[data-ui="new"] .t3 .t3-now-acts .t3-btn { height: 50px; padding: 0 10px; border-radius: 14px; font-size: 16px; }
:root[data-ui="new"] .t3 .t3-btn.soft { background: #eef5ff; border-color: #eef5ff; color: #114591 !important; font-size: 15px; }
:root[data-ui="new"] .t3 .t3-btn.soft:hover { background: #e1edff; }
:root[data-ui="new"] .t3 .t3-att { gap: 0; padding: 4px 14px; }
:root[data-ui="new"] .t3 .t3-att-h { display: none; margin: 10px 0 2px; font-size: 18px; font-weight: 700; color: #12233f; }
:root[data-ui="new"] .t3 .t3-att-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 11px 0; border-bottom: 1px solid #eef2f8; color: #12233f !important; text-decoration: none !important; }
:root[data-ui="new"] .t3 .t3-att-row:last-child { border-bottom: 0; }
:root[data-ui="new"] .t3 .t3-att-tx { flex: 1; min-width: 0; line-height: 1.3; }
:root[data-ui="new"] .t3 .t3-att-tx b { display: block; font-size: 14px; font-weight: 700; }
:root[data-ui="new"] .t3 .t3-att-tx span { display: block; font-size: 12px; color: #5b6b85; overflow-wrap: anywhere; }
:root[data-ui="new"] .t3 .t3-att-chev { display: inline-flex; flex-shrink: 0; color: #8090a8; }
:root[data-ui="new"] .t3 .t3-ibox.bad { background: #fde6e8; color: #b0202d; }
@media (min-width: 900px) {
    :root[data-ui="new"] .t3 .t3-now { padding: 18px; }
    :root[data-ui="new"] .t3 .t3-now-title { font-size: 28px; }
    :root[data-ui="new"] .t3 .t3-now-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
    :root[data-ui="new"] .t3 .t3-now-acts .t3-btn { height: 48px; padding: 0 18px; }
    :root[data-ui="new"] .t3 .t3-att { padding: 6px 18px 4px; }
    :root[data-ui="new"] .t3 .t3-att-h { display: block; }
}

/* "השיעורים שלי" (phones): a יום | שבוע switch, the day arrows, a row per slot with its state at the end */
:root[data-ui="new"] .t3 .t3-today { padding: 14px 14px 4px; }
:root[data-ui="new"] .t3 .t3-today .t3-card-h { padding: 0 0 8px; }
:root[data-ui="new"] .t3 .t3-seg2 { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: #f4f7fb; }
:root[data-ui="new"] .t3 .t3-seg2 > button {
    height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #4a5a73; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
:root[data-ui="new"] .t3 .t3-seg2 > button[aria-selected="true"] { background: #fff; color: #114591; font-weight: 700; box-shadow: 0 1px 3px rgba(16, 42, 92, .12); cursor: default; }
:root[data-ui="new"] .t3 .t3-seg2 > button:focus-visible { outline: 2px solid #175bb0; outline-offset: 1px; }
:root[data-ui="new"] .t3 .t3-today .t3-daynav { padding: 0 0 2px; }
:root[data-ui="new"] .t3 .t3-today .t3-iconbtn { width: 40px; height: 40px; flex-shrink: 0; }
:root[data-ui="new"] .t3 .t3-daynav-tx { flex: 1; text-align: center; font-size: 14px; font-weight: 600; color: #4a5a73; line-height: 1.3; }
:root[data-ui="new"] .t3 .t3-daynav-tx small { display: block; font-size: 12px; font-weight: 500; color: #5b6b85; }
:root[data-ui="new"] .t3 .t3-today .t3-trow { gap: 12px; padding: 10px 0; }
:root[data-ui="new"] .t3 .t3-today .t3-num { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
:root[data-ui="new"] .t3 a.t3-row-tx { color: #12233f !important; text-decoration: none !important; }
:root[data-ui="new"] .t3 .t3-today .t3-row-tx b { font-size: 15px; font-weight: 700; }
:root[data-ui="new"] .t3 .t3-today .t3-row-tx span { font-size: 12.5px; }
:root[data-ui="new"] .t3 .t3-row-tx span[dir] { display: inline; }
:root[data-ui="new"] .t3 .t3-trow.miss .t3-row-tx span { color: #b0202d; }
:root[data-ui="new"] .t3 .t3-today .t3-chip { display: inline-flex; align-items: center; gap: 4px; }
:root[data-ui="new"] .t3 .t3-today .t3-chip.ok { background: #e1f4ea; color: #0b6b4a; }
:root[data-ui="new"] .t3 .t3-btn.t3-mark { flex-shrink: 0; height: 36px; padding: 0 12px; border-radius: 11px; font-size: 13px; gap: 5px; }

/* the shortcut tiles under the day (Sheet.tiles, larger) */
:root[data-ui="new"] .t3 .t3-home-tiles { display: block; margin: 14px 0; }
:root[data-ui="new"] .t3 .t3-home-tiles .t3-sheet-group { margin: 0; }
:root[data-ui="new"] .t3 .t3-home-tiles .t3-sheet-gtitle { margin: 4px 0 10px; font-size: 16px; font-weight: 700; color: #12233f; }
:root[data-ui="new"] .t3 .t3-home-tiles .t3-tiles { gap: 10px; }
:root[data-ui="new"] .t3 .t3-home-tiles .t3-tile { min-height: 112px; gap: 6px; padding: 10px 6px; border-radius: 20px; }
:root[data-ui="new"] .t3 .t3-home-tiles .t3-tile-ic { width: 42px; height: 42px; border-radius: 14px; }
:root[data-ui="new"] .t3 .t3-home-tiles .t3-tile-l { font-size: 13.5px; }
:root[data-ui="new"] .t3 .t3-home-tiles .t3-tile-h { font-size: 11px; }
:root[data-ui="new"] .t3 .t3-home-tiles .t3-tile-n { top: 9px; inset-inline-end: 9px; min-width: 20px; height: 20px; }

/* the weekly diary's cells by state: מולא green (ui2.css), חסרה נוכחות a red ring, עכשיו sky, the next one a sky outline */
:root[data-ui="new"] .t3 .teacher-schedule .scheduled-hour.t3c-missing .label-info { background: #fde6e8 !important; color: #b0202d; box-shadow: inset 0 0 0 1.5px #e8707c; }
:root[data-ui="new"] .t3 .teacher-schedule .scheduled-hour.t3c-now .label-info { background: #175bb0 !important; color: #fff; box-shadow: 0 8px 18px rgba(23, 91, 176, .28); }
:root[data-ui="new"] .t3 .teacher-schedule .scheduled-hour.t3c-next .label-info { background: #fff !important; color: #114591; box-shadow: inset 0 0 0 1.5px #175bb0; }
:root[data-ui="new"] .t3 .teacher-schedule .t3c-st { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
:root[data-ui="new"] .t3 .teacher-schedule .t3c-st .p3-ico { display: block; flex-shrink: 0; }

/* ============================== the test sheet's score keypad (#!/assesment/:id on a phone - teacher/Assesment.js keypad) ============================== */
:root[data-ui="new"] .t3p-asses:has(.t3p-kp) { padding-bottom: 330px; }
:root[data-ui="new"] body:has(.t3p-kp) .t3-tabbar { display: none !important; }
:root[data-ui="new"] .t3p-kp-prog { margin: 0 0 12px; }
:root[data-ui="new"] .t3p-kp-prog-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; color: #5b6b85; }
:root[data-ui="new"] .t3p-kp-prog-l b { font-size: 14px; font-weight: 700; color: #12233f; }
:root[data-ui="new"] .t3p-kp-prog-l .t3p-chip { margin-inline-start: auto; }
/* "הזנת ציונים": opens the keypad on the first student without a score */
:root[data-ui="new"] .t3p-btn.t3p-kp-start { margin-inline-start: auto; background: #2ec4a5; border-color: #2ec4a5; color: #053b33 !important; }
:root[data-ui="new"] .t3p-btn.t3p-kp-start:hover { background: #27b096; border-color: #27b096; color: #053b33 !important; }
:root[data-ui="new"] .t3p-kp-prog-l .t3p-chip + .t3p-kp-start { margin-inline-start: 0; }
:root[data-ui="new"] .t3p-kp-bar { display: block; height: 6px; border-radius: 999px; background: #e8eef7; overflow: hidden; }
:root[data-ui="new"] .t3p-kp-bar > span { display: block; height: 100%; border-radius: 999px; background: #2ec4a5; }
:root[data-ui="new"] table.t3p-gsheet.kp > tbody > tr { cursor: pointer; }
:root[data-ui="new"] table.t3p-gsheet.kp > tbody > tr.kp-on,
:root[data-ui="new"] table.t3p-gsheet.kp > tbody > tr.kp-on:hover { background: #eef5ff !important; outline: 2px solid #175bb0; outline-offset: -2px; }
:root[data-ui="new"] table.t3p-gsheet.kp input.form-control.score { caret-color: transparent; }
:root[data-ui="new"] table.t3p-gsheet.kp > tbody > tr.kp-on input.form-control.score { border: 2px solid #175bb0 !important; background: #fff !important; color: #175bb0 !important; }
:root[data-ui="new"] .t3p-kp {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1035; padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    background: #f4f7fb; border-top: 1px solid #dfe8f4; box-shadow: 0 -10px 28px rgba(16, 42, 92, .10); font-family: "Rubik", system-ui, sans-serif; color: #12233f;
}
:root[data-ui="new"] .t3p-kp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
:root[data-ui="new"] .t3p-kp-who { flex: 1; min-width: 0; line-height: 1.25; }
:root[data-ui="new"] .t3p-kp-who span { display: block; font-size: 12px; color: #5b6b85; }
:root[data-ui="new"] .t3p-kp-who b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-ui="new"] .t3p-kp-val {
    min-width: 76px; height: 46px; padding: 0 10px; box-sizing: border-box; border-radius: 13px; background: #fff; border: 2px solid #175bb0; color: #175bb0;
    font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; direction: ltr;
}
/* "סיום": closes the keypad */
:root[data-ui="new"] .t3p-kp-done {
    flex-shrink: 0; height: 46px; padding: 0 14px; border-radius: 13px; border: 1px solid #dfe8f4; background: #fff; color: #114591;
    font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
:root[data-ui="new"] .t3p-kp-done:focus-visible { outline: 2px solid #175bb0; outline-offset: 2px; }
/* the keys run left to right as on any keypad: 1 2 3 / 4 5 6 / 7 8 9 / הבא 0 ⌫ */
:root[data-ui="new"] .t3p-kp-grid { direction: ltr; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
:root[data-ui="new"] .t3p-kp-k {
    height: 50px; padding: 0; border-radius: 13px; border: 1px solid #dfe8f4; background: #fff; color: #12233f; box-shadow: 0 1px 0 #d5deea;
    font-family: inherit; font-size: 22px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
:root[data-ui="new"] .t3p-kp-k:active { background: #eef5ff; }
:root[data-ui="new"] .t3p-kp-k.next { direction: rtl; background: #175bb0; border-color: #175bb0; color: #fff; font-size: 17px; font-weight: 700; box-shadow: none; }
:root[data-ui="new"] .t3p-kp-k.next:active { background: #114591; }
:root[data-ui="new"] .t3p-kp-k.back { color: #4a5a73; }
:root[data-ui="new"] .t3p-kp-k:focus-visible { outline: 2px solid #175bb0; outline-offset: 2px; }
:root[data-ui="new"] .t3p-kp .p3-ico { display: block; }
@media print { :root[data-ui="new"] .t3p-kp, :root[data-ui="new"] .t3p-kp-prog { display: none !important; } }
