/*
 * School mobile workbench. Scoped to school-admin-shell/workbench only.
 */
.school-workbench-document #content > .row {
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.school-workbench-page .school-mobile-hero,
.school-workbench-page #school-mobile-summary,
.school-workbench-page .school-mobile-table-tools,
.school-workbench-page .school-desktop-table-tools,
.school-workbench-page .school-desktop-pagination,
.school-workbench-page .school-mobile-list,
.school-workbench-page .school-mobile-footer,
.school-workbench-page .school-mobile-drawer {
    display: none;
}

/* School card wallet extension. All selectors remain inside the school workbench. */
.school-workbench-page .school-card-wallet {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #e1e8f3;
    border-radius: 8px;
    background: #fff;
}

.school-workbench-page .school-card-wallet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.school-workbench-page .school-card-wallet-head h2 {
    margin: 0;
    color: #213451;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.school-workbench-page .school-card-wallet-head p {
    margin: 4px 0 0;
    color: #7d899d;
    font-size: 13px;
}

.school-workbench-page .school-card-records-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #cddaf0;
    border-radius: 7px;
    color: #2f6fd7;
    background: #f7faff;
    font-weight: 600;
}

.school-workbench-page .school-card-balance-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(112px, 1fr));
    gap: 10px;
}

.school-workbench-page .school-card-balance-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    min-width: 0;
    min-height: 78px;
    padding: 11px;
    border: 1px solid #e3eaf5;
    border-radius: 7px;
    background: #f9fbff;
}

.school-workbench-page .school-card-balance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: 1 / 3;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: #2e78ed;
    background: #e8f1ff;
}

.school-workbench-page .school-card-balance-item > div {
    min-width: 0;
}

.school-workbench-page .school-card-balance-item strong,
.school-workbench-page .school-card-balance-item small {
    display: block;
    overflow-wrap: anywhere;
}

.school-workbench-page .school-card-balance-item strong {
    color: #344761;
    font-size: 13px;
}

.school-workbench-page .school-card-balance-item small {
    color: #8995a8;
    font-size: 11px;
}

.school-workbench-page .school-card-balance-item > b {
    grid-column: 2;
    color: #1f65d8;
    font-size: 21px;
    line-height: 1.1;
}

.school-workbench-page .school-card-balance-item > b small {
    display: inline;
    margin-left: 2px;
    font-size: 11px;
    font-weight: 400;
}

.school-workbench-page .school-bind-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px minmax(210px, auto);
    gap: 10px;
    align-items: center;
}

.school-workbench-page .school-bind-controls .form-control,
.school-workbench-page .school-bind-controls .btn {
    width: 100%;
    min-height: 42px;
    margin: 0;
}

.school-workbench-page .school-mobile-batch-bar {
    display: none;
}

.school-workbench-page .btn-renew-parent,
.school-workbench-page .btn-unbind-parent {
    min-height: 34px;
    border-radius: 6px;
}

.school-workbench-page [hidden] {
    display: none !important;
}

.school-renew-dialog,
.school-bind-preview,
.school-card-record-dialog {
    padding: 18px;
}

.school-renew-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0;
}

.school-renew-preview span {
    padding: 10px;
    border: 1px solid #e2e9f4;
    border-radius: 7px;
    color: #77849a;
    background: #f8faff;
    text-align: center;
}

.school-renew-preview strong {
    display: block;
    margin-top: 4px;
    color: #263b59;
    font-size: 18px;
}

.school-renew-preview > small {
    grid-column: 1 / -1;
    color: #74839a;
    text-align: center;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .school-workbench-page .school-card-balance-grid {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
}

@media (max-width: 767px) {
    .school-workbench-enabled .school-card-wallet {
        margin: 0 0 14px;
        padding: 14px;
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(45, 82, 137, .08);
    }

    .school-workbench-enabled .school-card-wallet-head {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .school-workbench-enabled .school-card-wallet-head h2 {
        font-size: 17px;
    }

    .school-workbench-enabled .school-card-wallet-head p {
        max-width: 210px;
        line-height: 1.55;
    }

    .school-workbench-enabled .school-card-records-button {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0 11px;
    }

    .school-workbench-enabled .school-card-balance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .school-workbench-enabled .school-card-balance-item {
        min-height: 72px;
        padding: 9px;
    }

    .school-workbench-enabled .school-bind-controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .school-workbench-enabled .school-bind-controls .form-control,
    .school-workbench-enabled .school-bind-controls .btn {
        min-width: 0;
        min-height: 48px;
        font-size: 15px;
    }

    .school-workbench-enabled .school-mobile-batch-bar {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        margin-top: 10px;
    }

    .school-workbench-enabled .school-mobile-batch-bar button {
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid #cfdbed;
        border-radius: 7px;
        color: #405573;
        background: #fff;
    }

    .school-workbench-enabled .school-mobile-batch-start,
    .school-workbench-enabled .school-mobile-batch-confirm {
        color: #fff !important;
        border-color: #3378ed !important;
        background: #3378ed !important;
    }

    .school-workbench-enabled .school-mobile-selected-count {
        flex: 1;
        min-width: 72px;
        color: #52647e;
        text-align: center;
    }

    .school-workbench-enabled .school-mobile-card-selector {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin: 0 4px 0 0;
    }

    .school-workbench-enabled .school-mobile-card-selector input {
        width: 22px;
        height: 22px;
        margin: 0;
        accent-color: #3077ed;
    }

    .school-workbench-enabled .school-mobile-card-button {
        min-height: 44px;
        padding: 0 13px;
        line-height: 42px;
    }

    .school-workbench-enabled.school-mobile-batch-mode .school-parent-card-action .btn {
        display: none;
    }

    .school-workbench-enabled .school-parent-card-action {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .school-renew-dialog,
    .school-bind-preview,
    .school-card-record-dialog {
        padding: 14px;
    }

    .school-renew-preview {
        grid-template-columns: 1fr;
    }

    .school-renew-preview > small {
        grid-column: 1;
    }
}

@media (max-width: 767px) {
    body.school-admin-shell {
        background: #eef5ff;
        overflow-x: hidden;
    }

    body.school-admin-shell .main-header,
    body.school-admin-shell .main-sidebar,
    body.school-admin-shell .control-sidebar,
    body.school-admin-shell .control-sidebar-bg {
        display: none !important;
    }

    body.school-admin-shell .content-wrapper {
        margin-left: 0 !important;
        min-height: 100vh !important;
        background: transparent;
    }

    body.school-admin-shell .content-wrapper iframe {
        display: block;
        width: 100%;
        height: 100vh !important;
        min-height: 100vh;
        border: 0;
    }

    body.school-admin-shell .content-wrapper .content {
        padding: 0 !important;
    }

    .school-workbench-page.school-workbench-enabled {
        min-height: 100vh;
        margin: 0 !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #eef5ff;
    }

    .school-workbench-enabled > .panel-heading {
        display: none;
    }

    .school-workbench-enabled > .panel-body {
        padding: 0 16px 24px;
        background: transparent;
    }

    .school-workbench-enabled .school-mobile-hero {
        position: relative;
        display: block;
        margin: 0 -16px 16px;
        padding: 18px 18px 28px;
        color: #fff;
        background: linear-gradient(135deg, #1976f3 0%, #3c8cf5 48%, #78a9ff 100%);
    }

    .school-mobile-topbar {
        display: flex;
        align-items: center;
        min-height: 44px;
        gap: 12px;
    }

    .school-mobile-topbar > strong {
        flex: 1;
        text-align: center;
        color: #fff;
        font-size: 20px;
        font-weight: 600;
        letter-spacing: 0;
    }

    .school-mobile-menu-toggle,
    .school-mobile-avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: #fff;
        background: rgba(255, 255, 255, .16);
        font-size: 21px;
        text-decoration: none;
    }

    .school-mobile-menu-toggle:focus,
    .school-mobile-avatar:focus {
        color: #fff;
        outline: 3px solid rgba(255, 255, 255, .7);
        outline-offset: 2px;
    }

    .school-mobile-avatar {
        overflow: hidden;
        background: #fff;
    }

    .school-mobile-avatar img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .school-mobile-heading {
        margin-top: 28px;
    }

    .school-mobile-heading h1 {
        margin: 0;
        color: #fff;
        font-size: 30px;
        line-height: 1.25;
        font-weight: 700;
        letter-spacing: 0;
    }

    .school-mobile-heading p {
        margin: 8px 0 0;
        color: rgba(255, 255, 255, .9);
        font-size: 15px;
        line-height: 1.6;
    }

    .school-workbench-enabled .school-mobile-drawer {
        position: absolute;
        z-index: 30;
        top: 72px;
        left: 16px;
        right: 16px;
        display: block;
        padding: 8px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 12px 32px rgba(24, 73, 150, .24);
    }

    .school-workbench-enabled .school-mobile-drawer[hidden] {
        display: none;
    }

    .school-mobile-drawer a {
        display: flex;
        align-items: center;
        min-height: 44px;
        gap: 12px;
        padding: 0 13px;
        border-radius: 9px;
        color: #26364f;
        font-size: 15px;
        text-decoration: none;
    }

    .school-mobile-drawer a + a {
        margin-top: 3px;
    }

    .school-mobile-drawer a:hover,
    .school-mobile-drawer a:focus {
        color: #1769e8;
        background: #eef5ff;
        outline: 0;
    }

    .school-mobile-drawer i {
        width: 20px;
        color: #347ff2;
        text-align: center;
    }

    .school-workbench-enabled #school-summary {
        display: none;
    }

    .school-workbench-enabled #school-mobile-summary {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 0 0 16px;
        padding: 0 0 2px;
        overflow: visible;
        scrollbar-width: none;
    }

    .school-workbench-enabled #school-mobile-summary::-webkit-scrollbar {
        display: none;
    }

    .school-mobile-summary-card {
        min-width: 0;
        min-height: 148px;
        padding: 14px 10px 12px;
        border: 1px solid #e2eafa;
        border-radius: 13px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 8px 22px rgba(46, 87, 158, .1);
    }

    .school-mobile-summary-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin-bottom: 9px;
        border-radius: 50%;
        color: #2d78ef;
        background: #eaf2ff;
        font-size: 15px;
    }

    .school-mobile-summary-card:nth-child(2) .school-mobile-summary-icon {
        color: #6d57e8;
        background: #f0edff;
    }

    .school-mobile-summary-card:nth-child(3) .school-mobile-summary-icon {
        color: #2769d9;
        background: #e8efff;
    }

    .school-mobile-summary-card h2 {
        margin: 0;
        color: #26334c;
        font-size: 13px;
        line-height: 1.35;
        font-weight: 600;
    }

    .school-mobile-summary-count {
        margin-top: 7px;
        color: #1e2d46;
        font-size: 24px;
        line-height: 1.1;
        font-weight: 700;
    }

    .school-mobile-summary-count small {
        margin-left: 3px;
        color: #64728b;
        font-size: 14px;
        font-weight: 400;
    }

    .school-mobile-summary-status {
        display: inline-block;
        margin-top: 7px;
        padding: 2px 6px;
        border-radius: 4px;
        color: #61708a;
        background: #edf2fb;
        font-size: 10px;
        line-height: 1.35;
    }

    .school-mobile-summary-month {
        margin-top: 7px;
        color: #35425b;
        font-size: 11px;
        line-height: 1.35;
        white-space: normal;
    }

    .school-workbench-enabled .school-bind-panel {
        margin: 0 0 16px !important;
        border: 1px solid #e3eaf4;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(46, 87, 158, .08);
    }

    .school-workbench-enabled .school-bind-panel > .panel-heading {
        padding: 20px 18px 0;
        border: 0;
        color: #20385f;
        background: #fff;
        font-size: 23px;
        line-height: 1.35;
        font-weight: 700;
    }

    .school-workbench-enabled .school-bind-panel > .panel-body {
        padding: 18px;
    }

    .school-workbench-enabled .school-bind-panel .form-inline {
        display: block;
    }

    .school-workbench-enabled #school-parent-mobile {
        display: block;
        width: 100% !important;
        height: 54px;
        padding: 0 16px;
        border: 1px solid #d9e2f0;
        border-radius: 11px;
        color: #25344e;
        background: #fff;
        box-shadow: none;
        font-size: 16px;
    }

    .school-workbench-enabled #school-parent-mobile:focus {
        border-color: #2e7cf0;
        box-shadow: 0 0 0 3px rgba(46, 124, 240, .14);
    }

    .school-workbench-enabled #school-bind-parent-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 54px;
        margin: 12px 0 0 !important;
        border: 0;
        border-radius: 11px;
        color: #fff;
        background: linear-gradient(135deg, #3d93f5, #2f63ee);
        box-shadow: 0 8px 18px rgba(45, 109, 238, .22);
        font-size: 16px;
        font-weight: 600;
    }

    .school-workbench-enabled .school-bind-help {
        margin: 14px 0 0;
        color: #7b879c;
        font-size: 13px;
        line-height: 1.8;
    }

    .school-workbench-enabled .school-tabs {
        display: flex;
        margin: 0 0 16px !important;
        padding: 0 17px;
        border: 1px solid #e3eaf4;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(46, 87, 158, .06);
    }

    .school-workbench-enabled .school-tabs > li {
        float: none;
        margin-bottom: 0;
    }

    .school-workbench-enabled .school-tabs > li > a {
        min-height: 54px;
        padding: 16px 10px 13px;
        border: 0 !important;
        border-bottom: 3px solid transparent !important;
        color: #59667e;
        background: transparent !important;
        font-size: 16px;
        line-height: 1.4;
    }

    .school-workbench-enabled .school-tabs > li.active > a,
    .school-workbench-enabled .school-tabs > li > a:focus {
        color: #246fe7;
        border-bottom-color: #2e79f1 !important;
        font-weight: 600;
    }

    .school-workbench-enabled .school-mobile-table-tools {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
        align-items: center;
        margin: 0 0 10px;
    }

    .school-mobile-search {
        position: relative;
        min-width: 0;
    }

    .school-mobile-search > i {
        position: absolute;
        top: 50%;
        left: 13px;
        z-index: 1;
        color: #738099;
        font-size: 15px;
        transform: translateY(-50%);
    }

    .school-mobile-search input {
        display: block;
        width: 100%;
        height: 46px;
        padding: 0 12px 0 37px;
        border: 1px solid #dfe6f0;
        border-radius: 10px;
        color: #283650;
        background: #fff;
        box-shadow: none;
        font-size: 14px;
    }

    .school-mobile-search input:focus {
        border-color: #367ef0;
        box-shadow: 0 0 0 3px rgba(54, 126, 240, .12);
        outline: 0;
    }

    .school-mobile-view-toggle {
        display: inline-flex;
        gap: 4px;
        padding: 3px;
        border: 1px solid #e1e7f0;
        border-radius: 10px;
        background: #fff;
    }

    .school-mobile-view-btn,
    .school-mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 46px;
        padding: 0 10px;
        border: 1px solid transparent;
        border-radius: 8px;
        color: #59667e;
        background: transparent;
        font-size: 15px;
    }

    .school-mobile-view-btn.active {
        color: #226ee7;
        background: #edf4ff;
    }

    .school-mobile-filter-toggle {
        gap: 6px;
        border-color: #e1e7f0;
        background: #fff;
    }

    .school-mobile-view-btn:focus,
    .school-mobile-filter-toggle:focus,
    .school-mobile-filter-option:focus,
    .school-mobile-empty-action:focus,
    .school-mobile-unbind:focus {
        outline: 3px solid rgba(47, 112, 233, .2);
        outline-offset: 1px;
    }

    .school-mobile-filter-panel {
        position: absolute;
        z-index: 10;
        top: 54px;
        right: 0;
        display: flex;
        flex-direction: column;
        min-width: 132px;
        padding: 6px;
        border: 1px solid #e1e7f0;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 10px 22px rgba(38, 70, 127, .16);
    }

    .school-mobile-filter-panel[hidden] {
        display: none;
    }

    .school-mobile-filter-option {
        min-height: 42px;
        padding: 0 10px;
        border: 0;
        border-radius: 7px;
        color: #59667e;
        background: #fff;
        text-align: left;
        font-size: 13px;
    }

    .school-mobile-filter-option.active,
    .school-mobile-filter-option:hover {
        color: #226ee7;
        background: #edf4ff;
    }

    .school-workbench-enabled #bound-table,
    .school-workbench-enabled #unbound-table {
        display: none;
    }

    .school-workbench-enabled .school-mobile-list {
        display: block;
    }

    .school-mobile-list.is-loading,
    .school-mobile-list.is-error,
    .school-mobile-list.is-empty {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 245px;
        padding: 28px 18px;
        border: 1px solid #e4eaf3;
        border-radius: 14px;
        background: rgba(255, 255, 255, .85);
        color: #697790;
        text-align: center;
    }

    .school-mobile-loading i {
        margin-right: 8px;
        color: #2d7cf0;
    }

    .school-mobile-error {
        color: #c65353;
    }

    .school-mobile-empty {
        width: 100%;
    }

    .school-mobile-empty-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 70px;
        height: 70px;
        margin: 0 auto 14px;
        border-radius: 22px;
        color: #5792f3;
        background: #ecf4ff;
        font-size: 29px;
    }

    .school-mobile-empty strong {
        display: block;
        color: #3c4a62;
        font-size: 16px;
        line-height: 1.5;
    }

    .school-mobile-empty p {
        margin: 5px 0 14px;
        color: #8994a8;
        font-size: 13px;
        line-height: 1.6;
    }

    .school-mobile-empty-action {
        min-height: 44px;
        padding: 0 18px;
        border: 1px solid #3a7df0;
        border-radius: 22px;
        color: #2b72e8;
        background: #fff;
        font-size: 14px;
    }

    .school-parent-card {
        padding: 17px;
        border: 1px solid #e3eaf4;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(46, 87, 158, .06);
    }

    .school-parent-card + .school-parent-card {
        margin-top: 10px;
    }

    .school-parent-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .school-parent-card-name {
        min-width: 0;
    }

    .school-parent-card-name strong,
    .school-parent-card-name small,
    .school-parent-card-field span {
        overflow-wrap: anywhere;
    }

    .school-parent-card-name strong {
        display: block;
        color: #243654;
        font-size: 16px;
        line-height: 1.45;
    }

    .school-parent-card-name small {
        display: block;
        margin-top: 3px;
        color: #7b879c;
        font-size: 13px;
        line-height: 1.4;
    }

    .school-parent-card-badge {
        flex: 0 0 auto;
        padding: 4px 8px;
        border-radius: 5px;
        color: #2c73e6;
        background: #edf4ff;
        font-size: 11px;
        line-height: 1.4;
    }

    .school-parent-card-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
    }

    .school-parent-card-field {
        min-width: 0;
    }

    .school-parent-card-field label {
        display: block;
        margin: 0 0 3px;
        color: #8994a8;
        font-size: 11px;
        line-height: 1.4;
        font-weight: 400;
    }

    .school-parent-card-field span {
        display: block;
        color: #38465f;
        font-size: 13px;
        line-height: 1.5;
    }

    .school-parent-card-action {
        display: block !important;
    }

    .school-mobile-unbind,
    .school-mobile-unbound-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0 16px;
        border-radius: 9px;
        font-size: 13px;
    }

    .school-mobile-unbind {
        border: 1px solid #efb1b1;
        color: #c55353;
        background: #fff;
    }

    .school-mobile-unbind:hover {
        border-color: #d86a6a;
        color: #b33b3b;
        background: #fff8f8;
    }

    .school-mobile-unbound-status {
        color: #8994a8;
        background: #f4f6f9;
    }

    .school-parent-card-extra {
        margin-top: 9px;
        padding-top: 9px;
        border-top: 1px dashed #e5eaf2;
        color: #8994a8;
        font-size: 12px;
        line-height: 1.5;
    }

    .school-workbench-enabled .school-mobile-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 20px 0 0;
        color: #8290a7;
        font-size: 12px;
        line-height: 1.5;
    }

    .school-workbench-enabled .school-mobile-footer i {
        color: #5d78a2;
    }

    .school-view-compact .school-parent-card {
        padding: 13px;
        border-radius: 11px;
    }

    .school-view-compact .school-parent-card-grid {
        gap: 8px 11px;
    }

    .school-view-compact .school-parent-card-field label {
        font-size: 10px;
    }

    .school-view-compact .school-parent-card-field span {
        font-size: 12px;
    }

    @media (max-width: 390px) {
        .school-workbench-enabled > .panel-body {
            padding-right: 12px;
            padding-left: 12px;
        }

        .school-workbench-enabled .school-mobile-hero {
            margin-right: -12px;
            margin-left: -12px;
            padding-right: 14px;
            padding-left: 14px;
        }

        .school-mobile-heading h1 {
            font-size: 28px;
        }

        .school-mobile-filter-toggle span {
            display: none;
        }

        .school-parent-card-grid {
            grid-template-columns: minmax(0, 1fr);
        }

        .school-mobile-table-tools {
            grid-template-columns: minmax(0, 1fr) auto;
        }

        .school-mobile-view-toggle {
            grid-column: 1 / -1;
            grid-row: 2;
            justify-content: flex-end;
        }

        .school-mobile-filter-toggle {
            grid-column: 2;
            grid-row: 1;
        }
    }
}

/* Desktop school workbench. This block is intentionally isolated from the mobile workbench. */
@media (min-width: 768px) {
    body.school-admin-shell {
        min-width: 1024px;
        overflow-x: hidden;
        color: #24344f;
        background: #f3f6fb;
        font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    }

    body.school-admin-shell .main-header,
    body.school-admin-shell .main-sidebar,
    body.school-admin-shell .content-wrapper,
    body.school-admin-shell .main-footer {
        transition: none;
    }

    body.school-admin-shell .main-header {
        height: 68px;
        margin-left: 0;
        background: #fff;
        border-bottom: 1px solid #e8edf5;
        box-shadow: 0 2px 12px rgba(36, 67, 112, .04);
    }

    body.school-admin-shell .main-header > .alert {
        display: none !important;
    }

    body.school-admin-shell .main-header .navbar {
        min-height: 68px;
        margin-left: 265px;
        background: #fff;
    }

    body.school-admin-shell .main-sidebar {
        top: 68px;
        width: 265px;
        padding-top: 18px !important;
        background: #081a34 !important;
        box-shadow: 4px 0 18px rgba(8, 27, 59, .08);
    }

    body.school-admin-shell .sidebar {
        padding-top: 0;
        background: #081a34 !important;
    }

    body.school-admin-shell .logo {
        position: relative;
        display: flex;
        align-items: center;
        width: 265px;
        height: 68px;
        padding: 0 22px;
        color: #fff !important;
        background: #081a34 !important;
        text-align: left;
    }

    body.school-admin-shell .logo:before {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-right: 13px;
        border-radius: 13px;
        color: #fff;
        background: linear-gradient(145deg, #4e91ff, #2260dd);
        content: "\f19d";
        font-family: FontAwesome;
        font-size: 22px;
        box-shadow: 0 8px 16px rgba(32, 104, 236, .28);
    }

    body.school-admin-shell .main-header .logo .logo-lg {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        height: 48px;
        color: #fff !important;
        font-size: 0;
        line-height: 1.2;
        white-space: nowrap;
    }

    body.school-admin-shell .logo-lg:before {
        content: "小冰管理系统";
        font-size: 21px;
        font-weight: 700;
    }

    body.school-admin-shell .logo-lg:after {
        margin-top: 5px;
        color: #a7b9d7;
        content: "学校会员管理平台";
        font-size: 12px;
        font-weight: 400;
    }

    body.school-admin-shell .main-header .logo .logo-mini {
        display: none;
    }

    body.school-admin-shell .user-panel {
        min-height: 104px;
        margin: 0;
        padding: 22px 22px 18px;
        border: 0;
        background: #081a34;
    }

    body.school-admin-shell .user-panel > .image {
        width: 58px;
        height: 58px;
    }

    body.school-admin-shell .user-panel > .image img {
        width: 58px;
        height: 58px;
        border: 2px solid rgba(255, 255, 255, .7);
        background: #edf2f9;
    }

    body.school-admin-shell .user-panel > .info {
        left: 94px;
        top: 27px;
        padding: 0;
        color: #fff;
    }

    body.school-admin-shell .user-panel > .info p {
        margin: 0 0 8px;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
    }

    body.school-admin-shell .user-panel > .info .text-success {
        color: #16cf9c !important;
        font-size: 13px;
    }

    body.school-admin-shell .sidebar-form {
        margin: 0 16px 17px;
    }

    body.school-admin-shell .sidebar-form .form-control,
    body.school-admin-shell .sidebar-form .btn {
        height: 48px;
        color: #bac8dd;
        background: #142b49;
        border: 1px solid #1e3859;
        box-shadow: none;
    }

    body.school-admin-shell .sidebar-form .form-control {
        padding-left: 14px;
        border-right: 0;
        border-radius: 9px 0 0 9px;
        font-size: 14px;
    }

    body.school-admin-shell .sidebar-form .form-control::placeholder {
        color: #8295b3;
    }

    body.school-admin-shell .sidebar-form .btn {
        width: 44px;
        border-left: 0;
        border-radius: 0 9px 9px 0;
    }

    body.school-admin-shell .sidebar-form .btn i {
        color: #d8e2f1;
    }

    body.school-admin-shell .sidebar-menu {
        padding: 0 12px;
    }

    body.school-admin-shell .sidebar-menu > li {
        margin-bottom: 8px;
    }

    body.school-admin-shell .sidebar-menu > li > a {
        min-height: 52px;
        padding: 0 17px;
        border-radius: 10px;
        color: #c2d0e5 !important;
        line-height: 52px;
        font-size: 16px;
        font-weight: 600;
    }

    body.school-admin-shell .sidebar-menu > li > a > .fa {
        width: 22px;
        margin-right: 9px;
        color: #dce8fb;
        font-size: 16px;
        text-align: center;
    }

    body.school-admin-shell .sidebar-menu > li.active > a,
    body.school-admin-shell .sidebar-menu > li > a:hover {
        color: #fff !important;
        background: linear-gradient(100deg, #2578f5 0%, #3c4ce5 100%) !important;
        box-shadow: 0 9px 18px rgba(35, 93, 230, .24);
    }

    body.school-admin-shell .sidebar-menu > li.active > a:after {
        float: right;
        color: rgba(255, 255, 255, .9);
        content: "\f054";
        font-family: FontAwesome;
        font-size: 12px;
    }

    body.school-admin-shell .navbar .sidebar-toggle {
        width: 58px;
        height: 68px;
        padding: 0;
        color: #526581;
        text-align: center;
        line-height: 68px;
    }

    body.school-admin-shell .navbar .sidebar-toggle:before {
        content: "\f0c9";
        font-family: FontAwesome;
        font-size: 16px;
    }

    body.school-admin-shell .navbar .sidebar-toggle:before {
        visibility: visible;
    }

    body.school-admin-shell .nav-addtabs > li > a {
        height: 68px;
        padding: 0 20px;
        color: #24344f;
        border: 0;
        line-height: 68px;
        font-size: 16px;
        font-weight: 600;
    }

    body.school-admin-shell .nav-addtabs > li:not(.active):not(.tabdrop) {
        display: none;
    }

    body.school-admin-shell .nav-addtabs > li.active > a,
    body.school-admin-shell .nav-addtabs > li > a:hover {
        color: #24344f;
        background: #f8faff;
    }

    body.school-admin-shell .nav-addtabs > li > a > .fa {
        color: #5d86ed;
    }

    body.school-admin-shell .nav-addtabs > li > a:before {
        color: #5d86ed;
        content: "\f132";
        font-family: FontAwesome;
        margin-right: 8px;
    }

    body.school-admin-shell .nav-addtabs > li > a > .fa {
        display: none;
    }

    body.school-admin-shell .navbar-custom-menu .navbar-nav > li > a {
        height: 68px;
        padding: 0 16px;
        color: #43536d;
        line-height: 68px;
        font-size: 14px;
    }

    body.school-admin-shell .navbar-custom-menu .navbar-nav > li > a:hover,
    body.school-admin-shell .navbar-custom-menu .navbar-nav > li.open > a {
        color: #236be4;
        background: #f7f9fd;
    }

    body.school-admin-shell .navbar-custom-menu .navbar-nav > li > a[data-toggle="fullscreen"] {
        padding-right: 42px;
    }

    body.school-admin-shell .navbar-custom-menu .navbar-nav > li > a[data-toggle="control-sidebar"] {
        visibility: hidden;
        pointer-events: none;
    }

    body.school-admin-shell .navbar-custom-menu .user-menu {
        position: relative;
        margin-left: 4px;
    }

    body.school-admin-shell .navbar-custom-menu .user-menu > a {
        display: flex;
        align-items: center;
        gap: 9px;
        padding-right: 15px;
        padding-left: 16px;
    }

    body.school-admin-shell .navbar-custom-menu .user-menu .user-image {
        width: 34px;
        height: 34px;
        margin: 0;
        border: 1px solid #e2e8f1;
        background: #eff3f8;
    }

    body.school-admin-shell .navbar-custom-menu .user-menu .dropdown-menu {
        border: 0;
        box-shadow: 0 12px 28px rgba(33, 57, 93, .16);
    }

    body.school-admin-shell .content-wrapper {
        min-height: calc(100vh - 68px);
        margin-left: 265px;
        background: #f3f6fb;
    }

    body.school-admin-shell .content-wrapper iframe {
        display: block;
        width: 100%;
        min-height: calc(100vh - 68px);
        border: 0;
    }

    body.school-admin-shell.sidebar-collapse .content-wrapper {
        margin-left: 265px;
    }

    body.school-admin-shell.sidebar-collapse .main-sidebar {
        width: 265px;
    }

    .school-workbench-page.school-workbench-enabled {
        min-height: calc(100vh - 68px);
        margin: 3px -15px -15px !important;
        overflow-x: hidden;
        border: 0;
        border-radius: 0;
        background: #f3f6fb;
        box-shadow: none;
    }

    .school-workbench-enabled > .panel-heading {
        display: none;
    }

    .school-workbench-enabled > .panel-body {
        min-height: calc(100vh - 68px);
        padding: 25px 28px 36px;
        background: #f3f6fb;
    }

    .school-workbench-enabled .school-desktop-summary {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
        margin: 0 0 18px;
    }

    .school-workbench-enabled .school-desktop-summary:before,
    .school-workbench-enabled .school-desktop-summary:after {
        display: none;
    }

    .school-workbench-enabled .school-desktop-summary > [class*="col-"] {
        width: auto;
        padding: 0;
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }

    .school-workbench-enabled .school-desktop-summary .panel {
        position: relative;
        height: 146px;
        min-height: 0;
        margin: 0;
        overflow: hidden;
        border: 0;
        border-radius: 12px;
        color: #fff;
        box-shadow: 0 8px 18px rgba(44, 88, 164, .11);
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(1) .panel {
        background: linear-gradient(110deg, #287cf5 0%, #3d68ea 100%);
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(2) .panel {
        background: linear-gradient(110deg, #7752e8 0%, #b25ce7 100%);
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(3) .panel {
        background: linear-gradient(110deg, #ff7a1b 0%, #ffad20 100%);
    }

    .school-workbench-enabled .school-desktop-summary .panel:after {
        position: absolute;
        right: 18px;
        bottom: -14px;
        color: rgba(255, 255, 255, .13);
        content: "\f0c0";
        font-family: FontAwesome;
        font-size: 95px;
        line-height: 1;
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(2) .panel:after {
        content: "\f132";
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(3) .panel:after {
        content: "\f073";
    }

    .school-workbench-enabled .school-desktop-summary .panel-heading {
        position: relative;
        z-index: 1;
        min-height: 60px;
        padding: 25px 20px 0 120px;
        color: #fff;
        background: transparent;
        border: 0;
        font-size: 18px;
        font-weight: 700;
    }

    .school-workbench-enabled .school-desktop-summary .panel-heading:before {
        position: absolute;
        top: 28px;
        left: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 78px;
        height: 78px;
        border-radius: 50%;
        color: #5489ee;
        background: rgba(255, 255, 255, .93);
        content: "\f0c1";
        font-family: FontAwesome;
        font-size: 32px;
        box-shadow: 0 6px 14px rgba(21, 72, 171, .14);
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(2) .panel-heading:before {
        color: #8a5dea;
        content: "\f132";
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(3) .panel-heading:before {
        color: #fa9220;
        content: "\f073";
    }

    .school-workbench-enabled .school-desktop-summary .panel-body {
        position: relative;
        z-index: 1;
        height: 86px;
        min-height: 0;
        padding: 2px 20px 0 120px;
        color: #fff;
        background: transparent;
        border: 0;
        overflow: hidden;
    }

    .school-workbench-enabled .school-desktop-summary .panel-body strong {
        display: inline-block;
        margin-right: 5px;
        font-size: 30px;
        line-height: 1.05;
    }

    .school-workbench-enabled .school-desktop-summary .panel-body:after {
        display: block;
        margin-top: 6px;
        color: rgba(255, 255, 255, .87);
        content: "已成功绑定的家长账号";
        font-size: 13px;
        line-height: 1.4;
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(2) .panel-body:after {
        content: "历史解绑的家长账号";
    }

    .school-workbench-enabled .school-desktop-summary > div:nth-child(3) .panel-body:after {
        content: "七档卡券当前可用总数";
    }

    .school-workbench-enabled .school-desktop-summary .panel-body .label {
        display: inline-block;
        margin: 0 0 9px;
        padding: 4px 9px;
        color: #c9670d;
        background: rgba(255, 255, 255, .92);
        border-radius: 14px;
        font-size: 12px;
        font-weight: 700;
    }

    .school-workbench-enabled .school-desktop-summary .panel-body p {
        margin: 0;
        color: #fff;
        font-size: 16px;
        line-height: 1.35;
    }

    .school-workbench-enabled .school-bind-panel {
        position: relative;
        min-height: 207px;
        margin: 0 0 20px !important;
        overflow: hidden;
        border: 0;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 7px 20px rgba(40, 72, 122, .08);
    }

    .school-workbench-enabled .school-bind-panel:before {
        position: absolute;
        top: 30px;
        left: 40px;
        width: 174px;
        height: 140px;
        color: rgba(50, 120, 239, .24);
        content: "\f132";
        font-family: FontAwesome;
        font-size: 132px;
        line-height: 1;
        text-align: center;
        text-shadow: 36px 30px 0 rgba(50, 120, 239, .1);
    }

    .school-workbench-enabled .school-bind-panel:after {
        position: absolute;
        right: -10px;
        bottom: -45px;
        color: rgba(45, 111, 233, .1);
        content: "\f132";
        font-family: FontAwesome;
        font-size: 210px;
        line-height: 1;
    }

    .school-workbench-enabled .school-bind-panel > .panel-heading {
        position: relative;
        top: 14px;
        z-index: 1;
        min-height: 60px;
        margin-left: 262px;
        padding: 26px 30px 2px 0;
        color: #1e2d49;
        background: transparent;
        border: 0;
        font-size: 22px;
        font-weight: 700;
    }

    .school-workbench-enabled .school-bind-panel > .panel-body {
        position: relative;
        z-index: 1;
        margin-left: 262px;
        padding: 0 30px 22px 0;
        color: #6b7890;
        background: transparent;
        border: 0;
    }

    .school-workbench-enabled .school-bind-panel > .panel-body:before {
        position: absolute;
        top: -47px;
        left: 0;
        color: #6e7c94;
        content: "绑定后即可享受平台通知、成长数据同步等会员专属服务";
        font-size: 14px;
        line-height: 1.5;
    }

    .school-workbench-enabled .school-bind-panel .form-inline {
        display: flex;
        align-items: center;
        gap: 16px;
        padding-top: 22px;
    }

    .school-workbench-enabled .school-bind-panel #school-parent-mobile {
        width: 286px;
        height: 48px;
        padding: 0 15px;
        border: 1px solid #dbe3ef;
        border-radius: 8px;
        color: #31415d;
        background: #fff;
        box-shadow: none;
        font-size: 14px;
    }

    .school-workbench-enabled .school-bind-panel #school-parent-mobile:focus {
        border-color: #347bf1;
        box-shadow: 0 0 0 3px rgba(52, 123, 241, .12);
        outline: 0;
    }

    .school-workbench-enabled .school-bind-panel #school-bind-parent-btn {
        min-width: 198px;
        height: 48px;
        padding: 0 20px;
        border: 0;
        border-radius: 8px;
        color: #fff;
        background: linear-gradient(100deg, #2e7ff5, #3161e9);
        box-shadow: 0 7px 14px rgba(41, 103, 231, .22);
        font-size: 15px;
        font-weight: 700;
    }

    .school-workbench-enabled .school-bind-panel #school-bind-parent-btn:hover,
    .school-workbench-enabled .school-bind-panel #school-bind-parent-btn:focus {
        color: #fff;
        background: linear-gradient(100deg, #246fe5, #2d50d7);
    }

    .school-workbench-enabled .school-bind-panel .school-bind-help {
        margin: 13px 0 0;
        color: #697790;
        font-size: 13px;
        line-height: 1.5;
    }

    .school-workbench-enabled .school-tabs {
        position: relative;
        z-index: 2;
        margin: 0 !important;
        padding: 0 26px;
        border: 0;
        border-radius: 13px 13px 0 0;
        background: #fff;
        box-shadow: 0 7px 20px rgba(40, 72, 122, .07);
    }

    .school-workbench-enabled .school-tabs > li > a {
        min-width: 92px;
        height: 57px;
        padding: 0 0;
        margin-right: 30px;
        border: 0;
        color: #5c6a82;
        line-height: 57px;
        font-size: 16px;
    }

    .school-workbench-enabled .school-tabs > li.active > a,
    .school-workbench-enabled .school-tabs > li.active > a:hover,
    .school-workbench-enabled .school-tabs > li > a:hover {
        color: #216eea;
        border: 0;
        background: transparent;
    }

    .school-workbench-enabled .school-tabs > li.active > a:after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: #2f7cf1;
        content: "";
    }

    .school-workbench-enabled .school-tab-content {
        min-height: 0;
        padding: 0 26px 16px;
        border-radius: 0 0 13px 13px;
        background: #fff;
        box-shadow: 0 7px 20px rgba(40, 72, 122, .07);
    }

    .school-workbench-enabled .school-desktop-table-tools {
        display: flex;
        position: relative;
        align-items: center;
        min-height: 67px;
        gap: 20px;
        margin: 0 26px;
        padding-top: 24px;
        padding-bottom: 18px;
        background: #fff;
    }

    .school-workbench-enabled .school-desktop-search {
        position: relative;
        display: block;
        flex: 0 0 292px;
        width: 292px;
        margin: 0;
    }

    .school-workbench-enabled .school-desktop-search > i {
        position: absolute;
        top: 50%;
        right: 14px;
        z-index: 1;
        color: #5c6a82;
        font-size: 15px;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .school-workbench-enabled .school-desktop-search input,
    .school-workbench-enabled .school-desktop-expiry-filter select {
        width: 100%;
        height: 42px;
        border: 1px solid #dce4ef;
        border-radius: 8px;
        color: #33435d;
        background: #fff;
        box-shadow: none;
        font-size: 14px;
    }

    .school-workbench-enabled .school-desktop-search input {
        padding: 0 40px 0 14px;
    }

    .school-workbench-enabled .school-desktop-search input:focus,
    .school-workbench-enabled .school-desktop-expiry-filter select:focus {
        border-color: #4a86ee;
        box-shadow: 0 0 0 3px rgba(56, 126, 238, .1);
        outline: 0;
    }

    .school-workbench-enabled .school-desktop-expiry-filter {
        display: block;
        flex: 0 0 203px;
        width: 203px;
        margin: 0;
    }

    .school-workbench-enabled .school-desktop-expiry-filter select {
        padding: 0 34px 0 14px;
    }

    .school-workbench-enabled .school-desktop-tool-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    .school-workbench-enabled .school-desktop-tool-button,
    .school-workbench-enabled .school-desktop-batch-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 42px;
        border: 1px solid #dce4ef;
        border-radius: 8px;
        color: #40516d;
        background: #fff;
        box-shadow: none;
        font-size: 14px;
    }

    .school-workbench-enabled .school-desktop-tool-button {
        width: 43px;
        padding: 0;
    }

    .school-workbench-enabled .school-desktop-tool-button:hover,
    .school-workbench-enabled .school-desktop-tool-button:focus {
        color: #216eea;
        border-color: #bfd3f6;
        background: #f4f8ff;
        outline: 0;
    }

    .school-workbench-enabled .school-desktop-batch-button {
        min-width: 130px;
        gap: 8px;
        padding: 0 16px;
        color: #fff;
        background: #1e3558;
        border-color: #1e3558;
        font-weight: 700;
    }

    .school-workbench-enabled .school-desktop-batch-button:hover,
    .school-workbench-enabled .school-desktop-batch-button:focus {
        color: #fff;
        background: #152a49;
        outline: 0;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-toolbar {
        display: none;
    }

    .school-workbench-enabled .school-tab-content .tab-pane {
        min-height: 0;
    }

    .school-workbench-enabled .school-desktop-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 61px;
        gap: 12px;
        padding: 12px 0 0;
        color: #7b879d;
        font-size: 13px;
    }

    .school-workbench-enabled .school-desktop-pagination > select,
    .school-workbench-enabled .school-desktop-pagination > input {
        height: 34px;
        border: 1px solid #dce4ef;
        border-radius: 7px;
        color: #40516d;
        background: #fff;
        box-shadow: none;
        font-size: 13px;
    }

    .school-workbench-enabled .school-desktop-pagination > select {
        width: 110px;
        padding: 0 8px;
    }

    .school-workbench-enabled .school-desktop-pagination > input {
        width: 48px;
        padding: 0 8px;
        text-align: center;
    }

    .school-workbench-enabled .school-desktop-pagination > select:focus,
    .school-workbench-enabled .school-desktop-pagination > input:focus {
        border-color: #4a86ee;
        box-shadow: 0 0 0 3px rgba(56, 126, 238, .1);
        outline: 0;
    }

    .school-workbench-enabled .school-desktop-page-buttons {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .school-workbench-enabled .school-desktop-page-buttons button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        border: 1px solid transparent;
        border-radius: 7px;
        color: #7b879d;
        background: #f5f7fb;
        font-size: 14px;
    }

    .school-workbench-enabled .school-desktop-page-buttons button.active {
        color: #fff;
        background: #2f74ec;
        box-shadow: 0 5px 10px rgba(47, 116, 236, .2);
    }

    .school-workbench-enabled .school-desktop-page-buttons button:disabled {
        cursor: not-allowed;
        opacity: .55;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-toolbar {
        min-height: 67px;
        padding-top: 17px;
        margin: 0;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-toolbar:after {
        display: none;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-toolbar .search {
        width: 292px;
        margin: 0;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-toolbar .search .form-control {
        height: 42px;
        border: 1px solid #dce4ef;
        border-radius: 8px;
        color: #33435d;
        box-shadow: none;
        font-size: 14px;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-toolbar .search .form-control:focus {
        border-color: #4a86ee;
        box-shadow: 0 0 0 3px rgba(56, 126, 238, .1);
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-toolbar .columns {
        margin: 0;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-toolbar .columns > .btn,
    .school-workbench-enabled .bootstrap-table .fixed-table-toolbar .columns > .keep-open > .btn {
        min-width: 43px;
        height: 42px;
        margin-left: 8px;
        padding: 0 12px;
        border: 1px solid #dce4ef;
        border-radius: 8px;
        color: #40516d;
        background: #fff;
        box-shadow: none;
        line-height: 40px;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-toolbar .columns > .btn:hover,
    .school-workbench-enabled .bootstrap-table .fixed-table-toolbar .columns > .keep-open > .btn:hover {
        color: #216eea;
        border-color: #bfd3f6;
        background: #f4f8ff;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-container {
        border: 1px solid #e3e9f2;
        border-radius: 9px;
        box-shadow: none;
    }

    .school-workbench-enabled .bootstrap-table .table {
        margin-bottom: 0;
        color: #32425e;
        font-size: 14px;
    }

    .school-workbench-enabled .bootstrap-table .table thead th {
        height: 50px;
        padding: 0 10px;
        color: #293b57;
        background: #f8faff;
        border-bottom: 1px solid #e3e9f2;
        font-size: 14px;
        font-weight: 700;
        vertical-align: middle;
    }

    .school-workbench-enabled .bootstrap-table .table tbody td {
        height: 48px;
        padding: 10px;
        border-color: #edf1f6;
        vertical-align: middle;
    }

    .school-workbench-enabled .bootstrap-table .table tbody tr:hover td {
        background: #f8fbff;
    }

    .school-workbench-enabled .bootstrap-table .table .btn-unbind-parent {
        min-height: 34px;
        padding: 0 12px;
        border-radius: 7px;
        font-size: 12px;
        line-height: 32px;
    }

    .school-workbench-enabled .bootstrap-table .no-records-found td {
        height: 174px !important;
        padding: 18px !important;
        color: transparent;
        font-size: 0;
        vertical-align: middle;
    }

    .school-workbench-enabled .bootstrap-table .no-records-found td:before,
    .school-workbench-enabled .bootstrap-table .no-records-found td:after {
        display: none;
    }

    .school-workbench-enabled .school-desktop-empty {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        min-height: 136px;
        color: #4b5b75;
        font-size: 14px;
        line-height: 1.6;
    }

    .school-workbench-enabled .school-desktop-empty > i {
        margin-bottom: 10px;
        color: #c9d5e9;
        font-size: 42px;
        line-height: 1;
    }

    .school-workbench-enabled .school-desktop-empty > strong {
        color: #4b5b75;
        font-size: 14px;
        font-weight: 400;
    }

    .school-workbench-enabled .school-desktop-empty > span {
        margin-top: 4px;
        color: #8b96aa;
        font-size: 13px;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-pagination {
        min-height: 50px;
        padding-top: 15px;
        color: #7b879d;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-pagination .pagination-detail,
    .school-workbench-enabled .bootstrap-table .fixed-table-pagination .pagination {
        margin-top: 0;
        margin-bottom: 0;
    }

    .school-workbench-enabled .bootstrap-table .fixed-table-pagination .page-number {
        border-radius: 6px;
    }

    .school-workbench-enabled.school-desktop-table-compact .bootstrap-table .table thead th {
        height: 43px;
    }

    .school-workbench-enabled.school-desktop-table-compact .bootstrap-table .table tbody td {
        height: 40px;
        padding-top: 7px;
        padding-bottom: 7px;
    }
}

/* Keep the school workbench palette independent from the active FastAdmin skin. */
@media (max-width: 767px) {
    .school-workbench-page.school-workbench-enabled,
    .school-workbench-enabled > .panel-body {
        background: #eef5ff !important;
    }

    .school-workbench-enabled .school-mobile-hero {
        color: #fff !important;
        background: linear-gradient(135deg, #1976f3 0%, #3c8cf5 48%, #78a9ff 100%) !important;
    }

    .school-workbench-enabled .school-mobile-topbar > strong,
    .school-workbench-enabled .school-mobile-heading h1,
    .school-workbench-enabled .school-mobile-heading p,
    .school-workbench-enabled .school-mobile-menu-toggle {
        color: #fff !important;
    }

    .school-workbench-enabled .school-mobile-summary-card,
    .school-workbench-enabled .school-bind-panel,
    .school-workbench-enabled .school-bind-panel > .panel-heading,
    .school-workbench-enabled .school-bind-panel > .panel-body,
    .school-workbench-enabled .school-tabs,
    .school-workbench-enabled .school-mobile-search input,
    .school-workbench-enabled .school-mobile-view-toggle,
    .school-workbench-enabled .school-mobile-filter-toggle,
    .school-workbench-enabled .school-parent-card {
        background: #fff !important;
    }

    .school-workbench-enabled #school-bind-parent-btn {
        color: #fff !important;
        background: linear-gradient(135deg, #3d93f5, #2f63ee) !important;
    }

    .school-workbench-enabled .school-tabs > li.active > a,
    .school-workbench-enabled .school-tabs > li > a:focus {
        color: #246fe7 !important;
        border-bottom-color: #2e79f1 !important;
    }

    .school-workbench-enabled .school-mobile-summary-icon {
        color: #2d78ef !important;
        background: #eaf2ff !important;
    }

    .school-workbench-enabled .school-mobile-summary-card:nth-child(2) .school-mobile-summary-icon {
        color: #6d57e8 !important;
        background: #f0edff !important;
    }

    .school-workbench-enabled .school-mobile-summary-card:nth-child(3) .school-mobile-summary-icon {
        color: #2769d9 !important;
        background: #e8efff !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.school-admin-shell,
    body.school-admin-shell .wrapper {
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden;
    }

    body.school-admin-shell .main-sidebar,
    body.school-admin-shell .control-sidebar,
    body.school-admin-shell .control-sidebar-bg,
    body.school-admin-shell .main-header .logo {
        display: none !important;
    }

    body.school-admin-shell .main-header .navbar,
    body.school-admin-shell .content-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    .school-workbench-enabled > .panel-body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .school-workbench-enabled .school-desktop-summary {
        gap: 12px;
    }

    .school-workbench-enabled .school-desktop-summary .panel {
        height: 164px;
    }

    .school-workbench-enabled .school-desktop-summary .panel-heading {
        min-height: 62px;
        padding: 24px 12px 0 82px;
        font-size: 17px;
    }

    .school-workbench-enabled .school-desktop-summary .panel-heading:before {
        top: 24px;
        left: 14px;
        width: 56px;
        height: 56px;
        font-size: 25px;
    }

    .school-workbench-enabled .school-desktop-summary .panel-body {
        height: 102px;
        padding: 3px 12px 8px 82px;
        overflow: visible;
    }

    .school-workbench-enabled .school-desktop-summary .panel-body strong {
        font-size: 27px;
    }

    .school-workbench-enabled .school-bind-panel {
        min-height: 250px;
    }

    .school-workbench-enabled .school-bind-panel:before {
        display: none;
    }

    .school-workbench-enabled .school-bind-panel > .panel-heading {
        margin-left: 0;
        padding-right: 24px;
        padding-left: 24px;
    }

    .school-workbench-enabled .school-bind-panel > .panel-body {
        margin-left: 0;
        padding-right: 24px;
        padding-left: 24px;
    }

    .school-workbench-enabled .school-bind-panel .form-inline.school-bind-controls {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 180px;
        gap: 10px;
    }

    .school-workbench-enabled .school-bind-panel #school-parent-mobile {
        width: 100%;
        min-width: 0;
    }

    .school-workbench-enabled .school-bind-panel #school-bind-parent-btn {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .school-workbench-enabled .school-desktop-table-tools {
        flex-wrap: wrap;
        gap: 10px 12px;
        padding-top: 18px;
    }

    .school-workbench-enabled .school-desktop-search {
        flex: 1 1 300px;
        width: auto;
        min-width: 0;
    }

    .school-workbench-enabled .school-desktop-expiry-filter {
        flex: 0 0 220px;
        width: 220px;
    }

    .school-workbench-enabled .school-desktop-tool-actions {
        flex: 1 0 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

/* Final wallet overrides follow the original desktop/mobile workbench rules. */
@media (max-width: 767px) {
    .school-workbench-page.school-workbench-enabled > .row {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .school-workbench-enabled .school-bind-panel .form-inline.school-bind-controls {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .school-workbench-enabled .school-bind-panel #school-bind-card-type {
        display: block;
        width: 100% !important;
        height: 54px;
        margin: 0 !important;
        padding: 0 14px;
        border: 1px solid #d9e2f0;
        border-radius: 11px;
        background: #fff;
        font-size: 16px;
    }

    .school-workbench-enabled .school-bind-panel #school-bind-parent-btn {
        margin: 0 !important;
    }

    .school-workbench-enabled .school-mobile-table-tools .school-mobile-batch-bar {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
    }

    .school-workbench-enabled .school-parent-card-action {
        display: flex !important;
    }
}

@media (min-width: 768px) {
    .school-workbench-enabled .school-bind-panel .form-inline.school-bind-controls {
        display: flex;
    }

    .school-workbench-enabled .school-bind-panel #school-bind-card-type {
        flex: 0 0 180px;
        width: 180px;
        height: 48px;
        margin: 0;
        border: 1px solid #dbe3ef;
        border-radius: 8px;
    }

    .school-workbench-enabled .school-bind-panel #school-bind-parent-btn {
        flex: 0 0 auto;
        width: auto;
    }
}
