/* Shared application UI primitives */
.app-paper {
    direction: rtl;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 24px;
    overflow: hidden;
    color: #17202a;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .06);
}
.page-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: .75rem;
}

.page-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.page-actions svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.app-max-600,
.max600 {
    max-width: 600px;
}

.app-max-700,
.max700 {
    max-width: 700px;
}

.app-max-800,
.max800 {
    max-width: 800px;
}

.app-max-900,
.max900 {
    max-width: 900px;
}

.app-max-980,
.max980 {
    max-width: 980px;
}

.app-max-990,
.max990 {
    max-width: 990px;
}

.app-max-1000,
.max1000 {
    max-width: 1000px;
}

.app-max-1040,
.max1040 {
    max-width: 1040px;
}

.app-max-1060,
.max1060 {
    max-width: 1060px;
}

.app-max-1080,
.max1080 {
    max-width: 1080px;
}

.app-max-1100,
.max1100 {
    max-width: 1100px;
}

.app-max-1120,
.max1120 {
    max-width: 1120px;
}

.app-max-1180,
.max1180 {
    max-width: 1180px;
}

.app-max-1200,
.max1200 {
    max-width: 1200px;
}

.app-max-1300,
.max1300 {
    max-width: 1300px;
}

.app-max-1400,
.max1400 {
    max-width: 1400px;
}

.app-page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 32px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: linear-gradient(135deg, rgba(18, 128, 132, .10), rgba(255, 255, 255, .94));
}
.app-page {
    --users-border: #d6e3ea;
    --users-soft: #f4f9fb;
    --users-accent: #087ea4;
    --users-ink: #0d2f3f;
    font-size: 12px;
    background-color: white;
}


.app-page-head {
    position: relative;
    width: 100%;
    padding: 10px;
    background-color: #0476aa;
    color: #ffffff;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.app-toolbar {
    margin: 20px 32px 10px;
    margin: 5px 15px;
    padding: 16px;
/*    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 0;
    background: #ffffff;*/
}

.app-content-panel {
    margin-block: 1rem;
    padding: 1rem;
/*    border: 1px solid #d9e2e9;
*/   
background: #ffffff;
}

.app-content-title {
    margin-bottom: .85rem;
    color: #123;
    font-size: 13px;
    font-weight: 700;
}

.app-tabs {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.app-tabs button {
    min-width: 120px;
    padding: .45rem .9rem;
    border: 1px solid #cbd9e2;
    background: #ffffff;
    color: #123;
    font-size: 13px;
    font-weight: 600;
}

.app-tabs button.active {
    border-color: #087fac;
    background: #087fac;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .14);
}

.app-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: .75rem;
    justify-content: end;
}

.app-filter-cell {
    grid-column: span 1;
}

.app-filter-new-row {
    grid-column-start: 1;
}

.app-filter-grid label {
    font-weight: 700;
    color: #263943;
}

.app-floating-field {
    position: relative;
    display: block;
    padding-top: .45rem;
}

.app-floating-field .app-field-label {
    position: absolute;
    top: 0;
    right: .75rem;
    z-index: 2;
    padding: 0 .25rem;
    background: #ffffff;
    color: #b91c1c;
    font-size: .76rem;
    line-height: 1;
    font-weight: 500;
}

.app-floating-field .app-field-label.required::before {
    content: "*";
    margin-left: .15rem;
    color: #b91c1c;
}

    .app-floating-field .form-control,
    .app-floating-field .form-select {
        min-height: 40px;
        border-radius: 0;
        border-color: #bfc7cf;
        background-color: #ffffff;
        font-weight: 800;
        font-size: 12px;
        color: #000000ad;
    }

.app-floating-field .form-control:focus,
.app-floating-field .form-select:focus {
    border-color: #5b8db8;
    box-shadow: 0 0 0 .12rem rgba(91, 141, 184, .16);
}

.app-floating-field .form-select {
    padding-left: 2.25rem;
    background-position: left .75rem center;
}

.app-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: 1rem;
}

.app-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1rem;
    margin-bottom: -7px;
}


.app-search-button {
    min-width: 106px;
    min-height: 32px;
    padding: .32rem 1.45rem;
    border: 0;
    border-radius: 2px;
    background: #2196f3;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .28);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color .16s ease, box-shadow .16s ease, transform .12s ease;
}

.app-search-button:hover {
    background: #1e88e5;
    box-shadow: 0 3px 6px rgba(15, 23, 42, .30);
}

.app-search-button:focus,
.app-search-button:focus-visible,
.app-search-button:active,
.app-search-button:active:focus {
    background: #1e88e5;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .28);
    outline: 0;
}

.app-search-button:active {
    transform: translateY(1px);
}

.app-outline-button {
    min-width: 104px;
    min-height: 32px;
    padding: .32rem .95rem;
    border: 1px solid #b8cbd5;
    border-radius: 2px;
    background: #ffffff;
    color: #263a49;
    box-shadow: none;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.app-outline-button:hover:not(:disabled),
.app-outline-button:focus-visible:not(:disabled) {
    border-color: #0b83b4;
    background: #eef8fc;
    color: #087fa9;
    box-shadow: 0 0 0 2px rgba(11, 131, 180, .12);
    outline: 0;
}

.app-outline-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.app-return-button {
    min-width: 106px;
    min-height: 32px;
    padding: .32rem 1.25rem;
    border: 0;
    border-radius: 2px;
    background: #64748b;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .22);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color .16s ease, box-shadow .16s ease, transform .12s ease;
}

.app-return-button:hover,
.app-return-button:focus,
.app-return-button:focus-visible,
.app-return-button:active,
.app-return-button:active:focus {
    background: #475569;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .24);
    outline: 0;
}

.app-return-button:active {
    transform: translateY(1px);
}

.app-name-cell {
    min-width: 220px;
}

.app-results-bar input {
    max-width: 320px;
}

.app-data-table-wrap {
    margin-top: .75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    overflow: visible;
}

.app-data-table-wrap.table-responsive {
    overflow-x: visible;
    overflow-y: visible;
}

.app-data-table {
    --app-data-table-text-color: #27333f;
    --bs-table-color: var(--app-data-table-text-color);
    --bs-table-striped-color: var(--app-data-table-text-color);
    --bs-table-hover-color: var(--app-data-table-text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12.4px;
    font-weight: 600;
    margin: 0;
    min-width: 860px;
}

.app-data-table th {
    color: #244047;
    font-weight: 600;
    white-space: nowrap;
}

.app-data-table > :not(caption) > * > * {
    color: var(--app-data-table-text-color);
    font-weight: 600;
}

.app-data-table td {
    color: var(--app-data-table-text-color);
    font-weight: 600;
}

/* Shared cell spacing for every displayed table. */
/*table:not(.no-standard-cell-padding) > :not(caption) > * > * {
    padding: 10px 12px !important;
}*/

.app-row-actions-cell {
    width: 72px;
    min-width: 72px;
    padding-right: .25rem !important;
    padding-left: .25rem !important;
    position: relative;
}

.app-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 60px;
}

.app-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #0476aa;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.app-row-action:hover,
.app-row-action:focus-visible {
    background: rgba(4, 118, 170, .10);
    color: #035f88;
    outline: none;
}

.app-icon-button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d8e7ef;
    background: #f8fbfd;
    color: #263746;
    font-size: 18px;
    line-height: 1;
}

.app-icon-button:hover,
.app-icon-button:focus-visible {
    border-color: #99c7dc;
    background: #eaf6fb;
    color: #087fac;
    outline: 0;
}

.app-icon-button.danger {
    color: #ef3e46;
    border-color: #f4c3c7;
}

.app-icon-button.danger:hover,
.app-icon-button.danger:focus-visible {
    border-color: #ef9ca4;
    background: #fff0f1;
    color: #c92f39;
}

.app-action-icon {
    width: 14px;
    height: 14px;
    display: block;
    fill: currentColor;
}

.app-row-menu {
    position: relative;
    display: inline-flex;
}

.app-row-menu > summary {
    list-style: none;
}

.app-row-menu > summary::-webkit-details-marker {
    display: none;
}

.app-row-menu-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 3000;
    display: none;
    min-width: 132px;
    padding: .35rem 0;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-row-menu[open] .app-row-menu-list {
    display: block;
}

.app-row-menu-list button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: .45rem .75rem;
    color: #243443;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.app-row-menu-list button:hover,
.app-row-menu-list button:focus-visible {
    background: rgba(4, 118, 170, .10);
    color: #035f88;
    outline: none;
}

.app-floating-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2990;
    background: transparent;
}

.app-floating-row-menu {
    position: fixed;
    z-index: 3000;
    min-width: 132px;
    padding: .35rem 0;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-floating-row-menu button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: .45rem .75rem;
    color: #243443;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.app-floating-row-menu button:hover,
.app-floating-row-menu button:focus-visible {
    background: rgba(4, 118, 170, .10);
    color: #035f88;
    outline: none;
}

.app-panel-message {
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 1rem;
    font-weight: 800;
}

.app-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .42);
}

.app-modal-card {
    width: min(560px, 100%);
    background: #fff;
    border: 1px solid #d8e7ef;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .22);
}

.app-modal-header,
.app-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid #e2eef5;
}

.app-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #263746;
}

.app-modal-body {
    padding: 1rem;
    color: #263746;
}

.app-modal-body p {
    margin: 0 0 .75rem;
}

.app-modal-actions {
    justify-content: center;
    border-top: 1px solid #e2eef5;
    border-bottom: 0;
}

.app-helper-text {
    margin-top: .75rem;
    color: #52616b;
    font-weight: 800;
}

.app-phone-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 8px;
    white-space: nowrap;
}

.app-phone-ok {
    color: #047857;
    border-color: #a7f3d0;
}

.app-phone-missing {
    background: #f8fafc;
    color: #64748b;
    border-color: #cbd5e1;
}

.app-phone-invalid {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.app-phone-inactive {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.gyab-page {
    position: relative;
    overflow: visible;
}

.gyab-page .app-page-hero {
    display: block;
}

.app-snackbar {
    position: fixed;
    top: 64px;
    left: 24px;
    z-index: 4000;
    width: min(calc(100vw - 32px), 460px);
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1rem .85rem 1.15rem;
    border: 1px solid rgba(15, 23, 42, .10);
    border-right: 5px solid #64748b;
    border-radius: 4px;
    background: #334155;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .22), 0 4px 10px rgba(15, 23, 42, .14);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: right;
    animation: app-snackbar-in .18s ease-out both;
}

.app-snackbar::before {
    content: "";
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #64748b;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .22);
}

.app-snackbar strong {
    flex: 1;
    color: #ffffff;
}

.app-snackbar-close {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1;
}

.app-snackbar-close:hover,
.app-snackbar-close:focus-visible {
    background: rgba(255, 255, 255, .25);
    color: #ffffff;
    outline: none;
}

.app-snackbar.alert-success {
    border-right-color: #047857;
    background: #047857;
}

.app-snackbar.alert-success::before {
    background: #047857;
}

.app-snackbar.alert-danger {
    border-right-color: #b91c1c;
    background: #b91c1c;
}

.app-snackbar.alert-danger::before {
    background: #b91c1c;
}

.app-snackbar.alert-warning {
    border-right-color: #a16207;
    background: #a16207;
}

.app-snackbar.alert-warning::before {
    background: #a16207;
}

.app-snackbar.alert-info {
    border-right-color: #334155;
    background: #334155;
}

.app-snackbar.alert-info::before {
    background: #64748b;
}

.app-snackbar.app-snackbar-success,
.app-snackbar.success {
    border-right-color: #047857;
    background: #047857;
}

.app-snackbar.app-snackbar-success::before,
.app-snackbar.success::before {
    background: #047857;
}

.app-snackbar.app-snackbar-danger,
.app-snackbar.app-snackbar-error,
.app-snackbar.danger,
.app-snackbar.error {
    border-right-color: #b91c1c;
    background: #b91c1c;
}

.app-snackbar.app-snackbar-danger::before,
.app-snackbar.app-snackbar-error::before,
.app-snackbar.danger::before,
.app-snackbar.error::before {
    background: #b91c1c;
}

.app-snackbar.app-snackbar-warning,
.app-snackbar.warning {
    border-right-color: #a16207;
    background: #a16207;
}

.app-snackbar.app-snackbar-warning::before,
.app-snackbar.warning::before {
    background: #a16207;
}

.app-snackbar.app-snackbar-info,
.app-snackbar.info {
    border-right-color: #334155;
    background: #334155;
}

.app-snackbar.app-snackbar-info::before,
.app-snackbar.info::before {
    background: #64748b;
}

.app-snackbar.users-role-blocked-alert {
    border-right-color: #7c2d12;
    background: #7c2d12;
}

.app-snackbar.users-role-blocked-alert::before {
    background: #f97316;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .30);
}

@keyframes app-snackbar-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 520px) {
    .app-snackbar {
        top: 58px;
        left: 12px;
        width: calc(100vw - 24px);
    }
}

.gyab-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: .75rem;
    align-items: end;
}

.gyab-search-alert {
    grid-column: 1 / -1;
    margin: .25rem 0 0;
    font-weight: 800;
}

.gyab-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .52);
}

.gyab-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(4, 118, 170, .18);
    border-top-color: #0476aa;
    border-radius: 999px;
    animation: gyab-spin .8s linear infinite;
}

@keyframes gyab-spin {
    to {
        transform: rotate(360deg);
    }
}

.gyab-table-wrap {
    width: min(calc(100% - 64px), 500px);
    max-width: 500px;
    margin: 18px auto 24px;
    overflow-x: hidden;
    border: 1px solid #d9e2ea;
    background: #ffffff;
}

.gyab-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #27333f;
    font-size: 12.4px;
    font-weight: 600;
    text-align: center;
}

.gyab-table th {
    padding: .38rem .24rem;
    border: 1px solid #d9e2ea;
    background: #0476aa;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

.gyab-table td {
    padding: .34rem .24rem;
    border: 1px solid #d9e2ea;
    font-weight: 600;
    vertical-align: middle;
}

.gyab-no-col {
    width: 30px;
}

.gyab-check-col {
    width: 58px;
}

.gyab-time-col {
    width: 58px;
}

.gyab-late-col {
    width: 46px;
}

.gyab-count-col {
    width: 38px;
}

.gyab-table tr.norm {
    background: #ffffff;
}

.gyab-table tr.DayGyab {
    background: #e5e7eb;
}

.gyab-table tr.recorded {
    background: bisque;
}

.gyab-table tr.ExistingSameStatus {
    background: #fed7aa;
}

.gyab-table tr.HasEst {
    background: #e0f2fe;
}

.gyab-table tr.HasOdor {
    background: #dcfce7;
}

.gyab-table tr.Horob {
    background: #fecaca;
}

.gyab-table tr.HorobActive,
.gyab-table tr.ClassGyabHorob {
    background: #fed7aa;
}

.gyab-table tr.bold td {
    font-weight: 600;
}

.gyab-select-all,
.gyab-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .18rem;
    margin: 0;
    white-space: nowrap;
}

.gyab-select-all span {
    display: none;
}

.gyab-select-all input,
.gyab-check input {
    width: 14px;
    height: 14px;
    accent-color: #0476aa;
}

.gyab-student-name {
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.gyab-time-cell,
.gyab-late-cell,
.gyab-count-cell {
    width: auto;
}

.gyab-time-input {
    width: 50px;
    min-width: 0;
    text-align: center;
    font-size: .78rem;
    font-weight: 800;
}

.gyab-selected-count {
    color: #0476aa;
    font-weight: 900;
}

.gyab-save-button {
    display: block;
    min-width: 116px;
    margin: 16px auto 20px;
    border: 0;
    border-radius: 2px;
    background: #2196f3;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .28);
    font-size: 13px;
    font-weight: 900;
}

.student-message-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 16px;
    align-items: start;
    margin: 20px 32px 0;
}

.student-message-main-panel {
    max-width: 100%;
}

.student-message-panel {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
    padding: 16px;
}

.student-message-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #243443;
    font-size: 13px;
    font-weight: 600;
}

.student-message-panel-head span {
    color: #5f7180;
    font-size: 12.4px;
    font-weight: 600;
}

.student-message-simulation-alert {
    margin: -4px 0 14px;
    padding: 7px 10px;
    border: 1px solid #d8c9a3;
    background: #fff8df;
    color: #7a5200;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.student-message-channel-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.student-message-channel-field {
    position: relative;
    padding-top: 0;
}

.student-message-channel-field > .app-field-label {
    position: static;
    display: block;
    margin: 0 4px 4px 0;
    padding: 0;
    background: transparent;
    color: #b91c1c;
    font-size: .78rem;
    line-height: 1.2;
    font-weight: 800;
}

.student-message-channel-field > .app-field-label.required::before {
    content: "*";
    margin-left: .15rem;
    color: #b91c1c;
}

.student-message-channel-cards {
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
    width: 100%;
}

.student-message-balance {
    position: absolute;
    left: 40px;
    bottom: 43px;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 6px 8px;
    background: #d9e2ea;
    color: #6f0000;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .16); 
}


.student-message-channel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 128px;
    min-height: 40px;
    padding: 6px 22px;
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.student-message-channel-cards .student-message-channel {
    flex: 1 1 0;
    min-width: 0;
    min-height: 39px;
    white-space: nowrap;
    border-color: #b9c7d4;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, .04);
}

.student-message-channel-cards .student-message-channel:first-child {
    border-radius: 0 2px 2px 0;
}

.student-message-channel-cards .student-message-channel:last-child {
    border-right: 0;
    border-radius: 2px 0 0 2px;
}

.student-message-channel input {
    accent-color: #0476aa;
}

.student-message-channel:focus {
    outline: none;
}

.student-message-channel:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .72), 0 0 0 .12rem rgba(4, 118, 170, .18);
}

.student-message-channel-select {
    font-weight: 800;
}

.student-message-channel.active {
    border-color: #0476aa;
    background: #0476aa;
    color: #ffffff;
}

.student-message-channel.disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.student-message-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.student-message-top-box {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.student-message-top-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    align-items: end;
}

.student-message-date-picker-cell {
    min-width: 0;
}

.student-message-date-picker-cell > .app-field-label {
    display: none;
}

.student-message-date-picker-cell .gyab-date-time {
    margin-bottom: 0 !important;
}

.student-message-composer {
    margin-top: 14px;
    position: relative;
}

.student-message-composer .app-floating-field {
    display: block;
}

.student-message-textarea {
    min-height: 200px !important;
    padding-bottom: 48px;
    resize: vertical;
    line-height: 1.75;
}

.student-message-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    position: absolute;
    right: 3px;
    bottom: 3px;
    z-index: 2;
  /*  padding: 3px;*/
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 3px;
    background: #05658f;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .24);
}

.student-message-tools button,
.student-message-tool-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    font-size: 12.4px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.student-message-tools svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: .25;
    pointer-events: none;
}

.student-message-tools button:hover,
.student-message-tools button:focus,
.student-message-tool-label:hover,
.student-message-tool-label:focus-within,
.student-message-tools .active {
    background: rgba(255, 255, 255, .24);
    outline: 0;
}

.student-message-tools button:disabled,
.student-message-tool-label.disabled {
    color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .04);
    cursor: not-allowed;
}

.student-message-tool-label.disabled {
    pointer-events: none;
}

.student-message-attachment-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #d9e2ec;
    background: #f8fafc;
    color: #334155;
    font-size: 12.4px;
    font-weight: 700;
}

.student-message-attachment-pill button {
    border: 0;
    background: transparent;
    color: #b91c1c;
    font-size: 12.4px;
    font-weight: 800;
}

.student-message-token-panel {
    align-self: stretch;
}

.student-message-token-grid {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 11.8px;
    font-weight: 600;
}

.student-message-token-grid span,
.student-message-token-grid strong {
    padding: 6px 6px;
    border-bottom: 1px solid #e2e8f0;
}

.student-message-token-grid span {
    direction: ltr;
    text-align: center;
    color: #0476aa;
    background: #f8fafc;
}

.student-message-token-grid strong {
    font-weight: 600;
}

.student-message-actions,
.student-message-send-row {
    margin-top: 18px;
}

.student-message-send-progress {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 4px 10px;
    background: #f0fdf4;
    color: #334155;
    font-size: 12.4px;
    font-weight: 700;
    margin-top: -14px;
    margin-bottom: -10px;
}

.student-message-send-progress-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.2;
}

.student-message-send-progress-track {
    width: 100%;
    height: 5px;
    overflow: hidden;
    background: rgba(148, 163, 184, .28);
}

.student-message-send-progress-track span {
    display: block;
    height: 100%;
    background: #0ea5e9;
    transition: width .25s ease;
}

.student-message-send-progress-note {
    color: #52606d;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
}

.student-message-send-progress-note a {
    color: #0476aa;
    font-weight: 800;
    text-decoration: none;
}

.student-message-send-progress-note a:hover,
.student-message-send-progress-note a:focus-visible {
    text-decoration: underline;
}

.student-message-send-progress.active {
/*    border-color: #93c5fd;
    background: #eff6ff;
    color: #075985;*/
}

.student-message-send-progress.done {
/*    border-color: #86efac;
    background: #f0fdf4;
    color: #047857;*/
}

.student-message-send-progress.done .student-message-send-progress-track span {
    background: #10b981;
}

.student-message-send-progress.warning {
    border-color: #facc15;
    background: #fefce8;
    color: #92400e;
}

.student-message-send-progress.warning .student-message-send-progress-track span {
    background: #f59e0b;
}

.student-message-results-bar {
    margin-top: 18px;
}

.student-message-table-wrap {
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
}

.student-message-table {
    min-width: 620px;
}

.student-message-table th:first-child,
.student-message-table td:first-child {
    width: 38px;
    min-width: 38px;
}

.student-message-table th:nth-child(2),
.student-message-table td:nth-child(2) {
    width: 40px;
    min-width: 40px;
}

.student-message-name {
    min-width: 220px;
    text-align: right;
}

.student-message-phone {
    direction: ltr;
    color: #007a55 !important;
    font-weight: 700 !important;
}

.student-message-send-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 3px 8px;
    border: 1px solid #d8e0e8;
    background: #f8fafc;
    color: #52606d;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.student-message-send-status.queued {
    border-color: #d8c9a3;
    background: #fff8df;
    color: #7a5200;
}

.student-message-send-status.sending {
    border-color: #a7d4ef;
    background: #eaf7ff;
    color: #075985;
}

.student-message-send-status.sent {
    border-color: #9bd7b8;
    background: #e9f9f0;
    color: #047044;
}

.student-message-send-status.failed {
    border-color: #f1a7a7;
    background: #fff0f0;
    color: #b42318;
}

.student-message-send-status.duplicate {
    border-color: #d6d9de;
    background: #f0f2f5;
    color: #687484;
}

.student-message-selected > * {
    background: bisque !important;
}

.month-gyab-page .app-page-head {
    margin-bottom: 1rem;
}

@media (max-width: 760px) {
    .month-gyab-page > .app-page-hero {
        padding: 0 !important;
    }

    .app-paper {
        width: 100%;
        border-right: 0;
        border-left: 0;
    }

    .app-page-hero,
    .app-toolbar,
    .app-page-hero,
    .app-results-bar,
    .app-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .app-page-hero.app-page-hero.app-page-hero {
        position: relative !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        gap: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        box-sizing: border-box;
    }

    .app-page-hero > :has(.app-page-head) {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .app-page-hero .app-page-head.app-page-head.app-page-head {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 10px !important;
        background: #0476aa !important;
        color: #ffffff !important;
        text-align: center !important;
        font-family: Arial, sans-serif !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        line-height: normal !important;
        border-radius: 0 !important;
        box-sizing: border-box;
    }

    .app-toolbar.app-toolbar.app-toolbar {
        width: auto !important;
        max-width: none !important;
        margin: 6px !important;
        padding: 8px !important;
        box-sizing: border-box;
    }

    /* Keep every data table inside the viewport and allow horizontal swiping. */
    :where(.table-responsive, .app-data-table-wrap):has(table) {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    table:not(.no-horizontal-scroll) {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    table:not(.no-standard-cell-padding) > :not(caption) > * > * {
        padding: 6px 8px !important;
    }

    .app-filter-grid {
        grid-template-columns: 1fr;
    }

    .app-filter-cell,
    .app-filter-new-row {
        grid-column: 1;
    }

    .app-results-bar input {
        max-width: 100%;
    }

    .student-message-shell {
        grid-template-columns: 1fr;
        margin-right: 12px;
        margin-left: 12px;
    }

    .student-message-grid {
        grid-template-columns: 1fr;
    }

    .student-message-top-grid {
        grid-template-columns: 1fr;
    }

    .student-message-panel-head,
    .student-message-channel-row {
        align-items: stretch;
        flex-direction: column;
    }

    .student-message-channel {
        width: 100%;
    }

    .student-message-actions,
    .student-message-results-bar,
    .student-message-send-row {
        margin-right: 12px;
        margin-left: 12px;
    }

    .student-message-table-wrap {
        width: min(calc(100% - 24px), 780px);
    }

    .student-message-table {
        min-width: 540px;
    }

    .gyab-search-grid {
        grid-template-columns: 1fr;
    }

    .gyab-table-wrap {
        width: min(calc(100% - 24px), 500px);
        margin-right: auto;
        margin-left: auto;
    }

    .gyab-table th,
    .gyab-table td {
        padding: .28rem .18rem;
    }

    .gyab-no-col {
        width: 26px;
    }

    .gyab-check-col {
        width: 52px;
    }

    .gyab-time-col {
        width: 50px;
    }

    .gyab-late-col {
        width: 42px;
    }

    .gyab-count-col {
        width: 34px;
    }

    .gyab-time-input {
        width: 44px;
        padding-right: .15rem;
        padding-left: .15rem;
        font-size: .78rem;
    }

    .gyab-select-all,
    .gyab-check {
        gap: .15rem;
    }

    .gyab-select-all input,
    .gyab-check input {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 420px) {
    .gyab-table-wrap {
        width: min(calc(100% - 12px), 500px);
        margin-right: auto;
        margin-left: auto;
    }

    .gyab-table {
        font-size: 12.4px;
    }

    .gyab-table th,
    .gyab-table td {
        padding: .24rem .12rem;
    }

    .gyab-no-col {
        width: 24px;
    }

    .gyab-check-col {
        width: 46px;
    }

    .gyab-time-col {
        width: 44px;
    }

    .gyab-late-col {
        width: 36px;
    }

    .gyab-count-col {
        width: 30px;
    }

    .gyab-time-input {
        width: 38px;
        font-size: 12.4px;
    }
}

.saf-shoba-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 1rem;
    padding: 1rem;
}

.saf-shoba-card {
    border: 1px solid #dbe5ec;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
    min-width: 0;
}

.saf-shoba-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid #e6edf2;
    background: #f8fbfc;
}

.saf-shoba-section-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #123044;
}

.saf-shoba-section-head p {
    margin: .25rem 0 0;
    font-size: 12.4px;
    color: #617282;
}

.saf-shoba-count {
    flex: 0 0 auto;
    min-width: 58px;
    padding: .28rem .55rem;
    text-align: center;
    color: #08749c;
    background: #eef9fc;
    border: 1px solid #cdeaf2;
    font-size: 12px;
    font-weight: 700;
}

.saf-add-strip {
    display: grid;
    gap: .75rem;
    padding: 1rem;
    border-bottom: 1px solid #e8eef3;
}

.saf-add-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.saf-add-button {
    align-self: end;
    min-width: 104px;
    height: 34px;
}

.saf-add-strip .saf-add-button {
    grid-column: 1 / -1;
    justify-self: center;
}

.saf-table-wrap {
    overflow-x: auto;
    padding: 1rem;
}

.saf-table {
    min-width: 700px;
}

.saf-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
    padding: 1rem;
}

.saf-mini-card {
    border: 1px solid #dbe5ec;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
    min-width: 0;
    border-radius: 3px;
}

.saf-mini-card.is-selected {
    border-color: #82c9de;
    background: #f3fbfd;
    box-shadow: 0 0 0 1px rgba(8, 127, 176, .12);
}

.saf-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .75rem;
    border-bottom: 1px solid #e6edf2;
    background: #f8fbfc;
}

.saf-mini-title {
    border: 0;
    background: transparent;
    padding: 0;
    color: #123044;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.saf-mini-title:hover {
    color: #087fb0;
}

.saf-mini-head span {
    flex: 0 0 auto;
    color: #08749c;
    font-size: 11.5px;
    font-weight: 700;
}

.saf-mini-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: .65rem .75rem;
    padding: .85rem .75rem .7rem;
}

.saf-mini-fields .span-2 {
    grid-column: 1 / -1;
}

.saf-mini-fields .form-control,
.saf-mini-fields .form-select {
    min-height: 32px;
    border-radius: 0;
    font-size: 12.4px;
    font-weight: 600;
}

.saf-mini-actions {
    display: grid;
    grid-template-columns: repeat(3, 34px);
    justify-content: end;
    gap: .25rem;
    padding: .45rem .6rem .6rem;
    border-top: 1px solid #edf2f5;
}

.saf-card-action {
    min-height: 28px;
    border: 1px solid #cdeaf2;
    background: #f4fbfd;
    color: #08749c;
    font-size: 12.4px;
    font-weight: 800;
}

.saf-card-action:hover {
    background: #e6f6fb;
}

.saf-card-action.save {
    border-color: #bfddce;
    background: #f1fbf6;
    color: #087f5b;
}

.saf-card-action.save:hover {
    background: #e0f6eb;
}

.saf-card-action.danger {
    border-color: #f0c6c6;
    background: #fff7f7;
    color: #b91c1c;
}

.saf-card-action.danger:hover {
    background: #fde8e8;
}

.shoba-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
}

.shoba-table th:nth-child(1),
.shoba-table td:nth-child(1) {
    width: 40px;
}

.shoba-table th:nth-child(2),
.shoba-table td:nth-child(2) {
    width: 90px;
}

.shoba-table th:nth-child(4),
.shoba-table td:nth-child(4) {
    width: 74px;
}

.shoba-table th,
.shoba-table td,
.shoba-table .form-control,
.shoba-table .form-select {
    text-align: center;
}

.shoba-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 .25rem;
}

.shoba-actions .icon-action {
    margin-inline: 1px;
}

.saf-table th,
.saf-table td {
    vertical-align: middle;
}

.saf-table .form-control,
.saf-table .form-select,
.saf-add-strip .form-control,
.saf-add-strip .form-select,
.shoba-add-panel .form-control,
.shoba-add-panel .form-select {
    min-height: 34px;
    border-radius: 0;
    font-size: 12.4px;
    font-weight: 600;
}

.saf-table .active-row > td {
    background: #eef9fc;
}

.saf-link-button {
    border: 1px solid #b9dbe8;
    background: #f4fbfd;
    color: #08749c;
    min-width: 64px;
    min-height: 28px;
    font-size: 12.4px;
    font-weight: 700;
}

.saf-link-button:hover {
    background: #e7f6fa;
}

.saf-row-actions {
    white-space: nowrap;
    text-align: center;
    padding-inline: .15rem !important;
}

.icon-action {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #677783;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    margin-inline: auto;
    border-radius: 0;
}

.icon-action:hover {
    color: #087fb0;
    background: #eef9fc;
}

.action-svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.icon-action.danger {
    color: #ef4444;
}

.icon-action.danger:hover {
    color: #b91c1c;
    background: #fde8e8;
}

.icon-action.save {
    color: #087fb0;
}

.icon-action.save:hover {
    color: #075f86;
}

.icon-action.add {
    color: #fff;
    background: #0b86b7;
    border: 0;
    width: 72px;
    border-radius: 0;
}

.icon-action.add:hover {
    background: #08749c;
}

.icon-action.view {
    color: #0b7898;
    font-size: 13px;
}

.icon-action.view:hover {
    background: #dff3f9;
}

.app-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .35);
}

.app-confirm-dialog {
    width: min(420px, 100%);
    border: 1px solid #d6e2ea;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
    padding: 1rem;
    text-align: right;
}

.app-confirm-title {
    color: #123044;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: .55rem;
}

.app-confirm-message {
    color: #4b5f70;
    font-size: 12.8px;
    font-weight: 600;
    line-height: 1.8;
}

.app-confirm-actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1rem;
}

.app-dialog-button {
    min-width: 84px;
    border-radius: 0;
    font-size: 12.4px;
    font-weight: 700;
}

.selected-saf-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 1rem 1rem 0;
    padding: .65rem .75rem;
    border: 1px solid #cdeaf2;
    background: #f3fbfd;
}

.selected-saf-banner span {
    color: #607382;
    font-size: 12px;
}

.selected-saf-banner strong {
    color: #123044;
    font-size: 13px;
}

.shoba-add-panel {
    margin: 1rem 1rem 0;
    padding: .85rem;
    border: 1px solid #dbe8ee;
    background: #fbfdfe;
}

.shoba-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .75rem;
}

.shoba-add-row .compact-number {
    max-width: none;
    width: 100%;
}

.shoba-add-row + .shoba-add-row {
    margin-top: .75rem;
}

.shoba-add-row-bottom {
    grid-template-columns: 1fr;
}

.shoba-add-actions {
    display: flex;
    justify-content: center;
    margin-top: .75rem;
}

.shoba-add-submit {
    height: 34px;
    min-width: 116px;
    border-radius: 0;
    font-size: 12.4px;
    font-weight: 700;
}

.saf-shoba-empty,
.saf-shoba-warning {
    margin: 1rem;
    padding: 1rem;
    text-align: center;
    border: 1px dashed #cbd9e2;
    color: #617282;
    background: #fafcfd;
    font-size: 12.4px;
    font-weight: 600;
}

.saf-shoba-empty.tall {
    min-height: 280px;
    display: grid;
    place-items: center;
}

.saf-shoba-warning {
    border-style: solid;
    color: #9a5b00;
    background: #fff8e8;
}

.compact-number {
    /*max-width: 40px;*/
    margin-inline: auto;
    text-align: center;
    padding-inline: .2rem;
}

@media (max-width: 1180px) {
    .saf-shoba-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .saf-shoba-shell {
        padding: .75rem;
    }

    .saf-add-strip {
        grid-template-columns: 1fr;
    }

    .saf-add-button {
        justify-self: center;
    }
}



