.admin-body {
    min-height: 100vh;
    background: #f3f7fa;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    background: #092734;
    color: #fff;
    padding: 24px;
}

.admin-brand-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    min-height: 86px;
    margin: 0 0 30px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 34px rgba(0, 0, 0, 0.16);
}

.admin-logo {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.admin-brand-logo span {
    color: #fff;
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

.admin-nav {
    display: grid;
    gap: 10px;
    margin-top: 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.admin-nav-sub {
    display: grid;
    gap: 6px;
    margin: -4px 0 2px 20px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-nav-sub a {
    min-height: 38px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.admin-main {
    min-width: 0;
    padding: 28px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 7px 12px 7px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.admin-user-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #0f6680;
    font-size: 1rem;
}

.admin-user-meta {
    display: grid;
    gap: 1px;
    text-align: left;
    line-height: 1.1;
}

.admin-user-meta strong {
    color: #102030;
    font-size: 0.94rem;
}

.admin-user-meta small {
    color: #637083;
    font-size: 0.78rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    text-transform: capitalize;
}

.metric-card {
    padding: 24px;
}

.metric-card span {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

.metric-card strong {
    display: block;
    color: var(--color-primary);
    font-size: 2rem;
}

.admin-table {
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--color-border);
}

.payment-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 30px;
}

.payment-summary-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 8px 14px;
    color: #0b315c;
    border: 1px solid #bfdae7;
    border-radius: var(--radius-sm);
    background: #eef8fc;
    font-size: 1.12rem;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
}

.admin-payments-table {
    font-size: 0.94rem;
}

.admin-payments-table th {
    padding: 14px 12px;
    color: #061d2c;
    background: #fbfdff;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
}

.admin-payments-table td {
    padding: 13px 12px;
    color: #102030;
    vertical-align: middle;
}

.admin-payments-table tbody tr:hover {
    background: #f7fbfd;
}

.admin-payments-table td:nth-child(1) strong {
    color: #0f6680;
}

.admin-payments-table td:nth-child(2) {
    font-weight: var(--font-weight-semibold);
}

.payment-type-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    color: #263746;
    border-radius: 999px;
    background: #eef5f8;
    font-size: 0.86rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.15;
}

.admin-section-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.admin-section-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    color: #35475a;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
}

.admin-section-tabs .nav-link .tab-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.admin-section-tabs .nav-link span {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    padding: 0 7px;
    color: #0b315c;
    border-radius: 999px;
    background: #d8e7ff;
    font-size: var(--font-size-xs);
}

.admin-section-tabs .nav-link.active {
    color: #fff;
    background: var(--color-primary);
}

.admin-section-tabs .nav-link.active span {
    color: #0b315c;
    background: #ffdb72;
}

.admin-tab-content {
    min-height: 420px;
}

.admin-code-sample {
    overflow-x: auto;
    padding: 14px;
    color: #dbeafe;
    border-radius: var(--radius-sm);
    background: #092734;
    font-size: var(--font-size-sm);
    line-height: 1.55;
}

.admin-school-list-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.93rem;
}

.membership-tab-toolbar {
    display: flex;
    flex: 1 1 640px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.member-search {
    flex: 1 1 auto;
    min-width: 280px;
    max-width: none;
}

.member-search .input-group {
    min-height: 38px;
}

.member-search .input-group-text {
    color: #0f6680;
    background: #f5fbfd;
}

.member-search .form-control:focus {
    border-color: var(--color-border);
    box-shadow: none;
    outline: 0;
}

.member-search .btn:focus,
.member-search .btn:focus-visible {
    box-shadow: none;
    outline: 0;
}

.school-list-heading {
    flex: 0 0 auto;
}

.school-search-result {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    color: #0f6680;
    font-size: 0.82rem;
    font-weight: var(--font-weight-semibold);
}

.membership-tab-toolbar > .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.admin-school-list-table th,
.admin-school-list-table td {
    padding: 10px;
}

.admin-school-list-table th:nth-child(1),
.admin-school-list-table td:nth-child(1) {
    width: 25%;
}

.admin-school-list-table th:nth-child(2),
.admin-school-list-table td:nth-child(2) {
    width: 12%;
}

.admin-school-list-table th:nth-child(3),
.admin-school-list-table td:nth-child(3) {
    width: 23%;
}

.admin-school-list-table th:nth-child(4),
.admin-school-list-table td:nth-child(4) {
    width: 9%;
}

.admin-school-list-table th:nth-child(5),
.admin-school-list-table td:nth-child(5) {
    width: 12%;
}

.admin-school-list-table th:nth-child(6),
.admin-school-list-table td:nth-child(6) {
    width: 9%;
}

.admin-school-list-table th:nth-child(7),
.admin-school-list-table td:nth-child(7) {
    width: 10%;
}

.school-list-school-cell {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.school-list-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.school-list-school-details {
    min-width: 0;
}

.school-list-school-details strong,
.school-list-school-details small,
.admin-school-list-table td {
    overflow-wrap: anywhere;
}

.admin-school-logo {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    color: #0b315c;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.admin-school-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.admin-applications-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.94rem;
}

.admin-applications-table th {
    padding: 12px 10px;
    color: #061d2c;
    font-size: 0.92rem;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
}

.admin-applications-table td {
    padding: 10px;
    vertical-align: middle;
}

.admin-applications-table th:first-child,
.admin-applications-table td:first-child {
    padding-left: 12px;
}

.application-school-column {
    width: 42%;
    min-width: 0;
}

.admin-applications-table th:nth-child(2),
.admin-applications-table td:nth-child(2) {
    width: 8%;
}

.admin-applications-table th:nth-child(3),
.admin-applications-table td:nth-child(3) {
    width: 16%;
}

.admin-applications-table th:nth-child(4),
.admin-applications-table td:nth-child(4) {
    width: 10%;
}

.admin-applications-table th:nth-child(5),
.admin-applications-table td:nth-child(5) {
    width: 8%;
}

.admin-applications-table th:nth-child(6),
.admin-applications-table td:nth-child(6) {
    width: 16%;
}

.application-school-cell {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.application-school-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.application-school-logo-empty {
    color: #0f6680;
    background: #f5fbfd;
    font-size: 1.15rem;
}

.application-school-details {
    min-width: 0;
}

.application-school-name {
    display: block;
    margin-bottom: 4px;
    color: #061d2c;
    font-size: 1rem;
    line-height: 1.2;
}

.application-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    color: #516070;
    font-size: 0.86rem;
    line-height: 1.35;
}

.application-meta-grid span {
    max-width: 260px;
    min-width: 120px;
    overflow-wrap: anywhere;
}

.application-meta-grid b,
.application-address b {
    color: #283746;
    font-weight: var(--font-weight-semibold);
}

.application-address {
    margin-top: 3px;
    color: #516070;
    font-size: 0.86rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.application-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.application-link-row a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid #cfe3ee;
    border-radius: 999px;
    background: #f5fbfd;
    color: #0f6680;
    font-size: 0.82rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.application-link-row a:hover {
    border-color: #0f6680;
    background: #e7f6fa;
}

.application-soft-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef5f8;
    color: #263746;
    font-size: 0.86rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.15;
}

.application-payment-cell {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-applications-table .membership-date-line {
    white-space: normal;
}

.admin-applications-table .badge {
    white-space: normal;
}

.application-action-cell {
    overflow-wrap: anywhere;
}

.application-action-cell .membership-actions {
    gap: 6px;
    min-width: 0;
}

.application-action-cell .membership-actions .btn {
    width: 100%;
    min-height: 36px;
    padding-right: 8px;
    padding-left: 8px;
    white-space: normal;
}

.application-action-cell form {
    min-width: 0;
    width: 100%;
}

.application-action-cell form .d-flex .btn,
#changes-pane table td form .d-flex .btn {
    flex: 1;
    white-space: nowrap !important;
    padding-left: 6px;
    padding-right: 6px;
}

.application-payment-cell {
    line-height: 1.35;
}

.application-payment-cell strong,
.application-payment-cell small {
    display: block;
}

.application-payment-cell small {
    color: #516070;
    overflow-wrap: anywhere;
}

.application-action-cell .text-muted {
    display: block;
    margin-top: 4px;
    line-height: 1.35;
}

.admin-payment-cell {
    white-space: nowrap;
}

.admin-payment-cell span:first-child {
    display: inline-block;
    margin-right: 8px;
}

.admin-school-list-table .admin-payment-cell span:first-child {
    display: block;
    margin-right: 0;
    margin-bottom: 4px;
}

.admin-school-list-table .admin-payment-cell .badge {
    display: inline-flex;
}

.membership-date-line {
    display: block;
    white-space: nowrap;
}

.membership-date-line small {
    display: block;
    margin-top: 2px;
}

.school-renewal-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 20px 22px;
    color: #422900;
    border: 2px solid #f2b705;
    border-left-width: 8px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, #fff2b8 0%, #fff8de 100%);
    box-shadow: 0 16px 32px rgba(127, 83, 0, 0.14);
}

.school-renewal-alert.is-overdue {
    color: #6d1111;
    border-color: #dc3545;
    background: linear-gradient(90deg, #ffe0e4 0%, #fff4f5 100%);
}

.school-renewal-alert-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #b56b00;
    box-shadow: 0 10px 20px rgba(181, 107, 0, 0.28);
}

.school-renewal-alert.is-overdue .school-renewal-alert-icon {
    background: #dc3545;
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.24);
}

.school-renewal-alert-content {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    min-width: 0;
    font-size: 1rem;
}

.school-renewal-alert-content strong {
    font-size: 1.08rem;
}

.school-renewal-days {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    color: #3d2700;
    border: 1px solid rgba(181, 107, 0, 0.28);
    border-radius: 999px;
    background: #fff;
    font-weight: var(--font-weight-bold);
}

.school-renewal-alert.is-overdue .school-renewal-days {
    color: #6d1111;
    border-color: rgba(220, 53, 69, 0.3);
}

.school-payment-info-card {
    overflow: hidden;
    margin-bottom: 22px;
    border-color: #c8dce5;
    box-shadow: 0 18px 42px rgba(21, 94, 117, 0.1);
}

.school-payment-info-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #cfe1e9;
    background:
        linear-gradient(135deg, rgba(21, 94, 117, 0.1), rgba(234, 179, 8, 0.08)),
        #ffffff;
}

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

.school-payment-fee {
    min-height: 118px;
    padding: 16px;
    border: 1px solid rgba(21, 94, 117, 0.16);
    border-radius: var(--radius-sm);
    background: #fbfdff;
}

.school-payment-fee span,
.school-payment-office span {
    display: block;
    color: var(--color-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

.school-payment-fee strong {
    display: block;
    margin-top: 7px;
    color: var(--color-primary-dark);
    font-size: 1.45rem;
    line-height: 1.2;
}

.school-payment-fee small {
    display: block;
    margin-top: 4px;
    color: #65758a;
    font-weight: var(--font-weight-semibold);
}

.school-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.school-payment-method {
    padding: 24px;
    background: #fff;
}

.school-payment-method-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.school-payment-method-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--color-primary);
    border: 1px solid rgba(21, 94, 117, 0.16);
    border-radius: var(--radius-sm);
    background: #eef8fb;
    font-size: 1.1rem;
}

.school-payment-method-title h3 {
    margin: 0;
    color: #10212f;
    font-size: 1.05rem;
    font-weight: var(--font-weight-bold);
}

.school-payment-list {
    display: grid;
    gap: 10px;
    padding-left: 1.15rem;
    margin: 0;
    color: #415066;
}

.school-payment-list li::marker {
    color: var(--color-secondary);
}

.school-bank-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.school-bank-details div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid #e1edf2;
    border-radius: var(--radius-sm);
    background: #fbfdff;
}

.school-bank-details dt {
    color: var(--color-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

.school-bank-details dd {
    margin: 0;
    color: #10212f;
    font-weight: var(--font-weight-bold);
    overflow-wrap: anywhere;
}

.school-payment-note {
    margin-top: 14px;
    color: #65758a;
    font-size: var(--font-size-sm);
}

.school-payment-office {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 1px;
    background: var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.school-payment-office > div {
    padding: 16px 24px;
    background: #fbfdff;
}

.school-payment-office span i {
    color: var(--color-primary);
}

.school-payment-office strong {
    display: block;
    margin-top: 5px;
    color: var(--color-primary-dark);
    font-size: 0.98rem;
    line-height: 1.45;
}

.school-payment-branch-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: #6b4a00;
    background: #fff8dd;
    font-weight: var(--font-weight-semibold);
}

.school-payment-branch-note i {
    color: var(--color-secondary);
}

.school-renewal-payment-card {
    margin-bottom: 22px;
    border-color: #c8dce5;
    box-shadow: 0 18px 42px rgba(21, 94, 117, 0.1);
}

.school-renewal-payment-card form {
    padding: 24px;
}

.admin-upi-payment-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    min-height: 84px;
    padding: 12px 14px;
    border: 1px solid #d8e7ff;
    border-radius: var(--radius-sm);
    background: #f4f8fb;
}

.admin-upi-payment-card span {
    color: var(--color-accent);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

.admin-upi-payment-card strong {
    color: #0b315c;
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-upi-payment-card small {
    grid-column: 1 / -1;
    color: #536273;
    font-size: 0.76rem;
    line-height: 1.35;
}

.school-receipts-card {
    overflow: hidden;
    border-color: #c8dce5;
    box-shadow: 0 18px 42px rgba(21, 94, 117, 0.12);
}

.school-receipts-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid #cfe1e9;
    background:
        linear-gradient(135deg, rgba(21, 94, 117, 0.1), rgba(234, 179, 8, 0.08)),
        #ffffff;
}

.school-receipts-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 70px;
    min-height: 48px;
    padding: 8px 14px;
    color: #0f6375;
    border: 1px solid rgba(21, 94, 117, 0.22);
    border-radius: var(--radius-sm);
    background: #eef8fb;
    font-weight: var(--font-weight-bold);
}

.school-receipts-count i {
    color: var(--color-secondary);
}

.school-receipts-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-border);
}

.school-receipts-summary-item {
    padding: 16px 24px;
    background: #fbfdff;
}

.school-receipts-summary-item span {
    display: block;
    color: var(--color-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

.school-receipts-summary-item strong {
    display: block;
    margin-top: 5px;
    color: var(--color-primary-dark);
    font-size: 1.05rem;
}

.school-receipts-table {
    min-width: 820px;
}

.school-receipts-table th {
    color: var(--color-primary-dark);
    background: #edf6f8;
    font-size: var(--font-size-sm);
}

.school-receipts-table tbody tr {
    transition: background var(--transition-base);
}

.school-receipts-table tbody tr:hover {
    background: #fbf8eb;
}

.school-receipt-no {
    color: #10212f;
}

.school-receipt-amount {
    color: var(--color-primary);
}

.school-receipt-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: capitalize;
}

.school-receipt-status.is-paid {
    color: #0f5132;
    background: #dff5e8;
    border: 1px solid #a8dfbf;
}

.school-receipt-status.is-failed {
    color: #842029;
    background: #fde4e7;
    border: 1px solid #f3b4bd;
}

.school-receipt-status.is-pending {
    color: #7a5200;
    background: #fff3cd;
    border: 1px solid #f4d47a;
}

.receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 170px;
}

.receipt-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
}

.receipt-actions .btn-outline-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-color: #0d6efd;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #0d6efd;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0d6efd;
    --bs-btn-active-border-color: #0d6efd;
}

.receipt-actions .btn-outline-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #198754;
    --bs-btn-border-color: #198754;
    --bs-btn-hover-color: #198754;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #198754;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #198754;
    --bs-btn-active-border-color: #198754;
}

.admin-banner-slide {
    height: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.admin-banner-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
}

.membership-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 150px;
}

.membership-actions form {
    margin: 0;
}

.admin-school-list-table .membership-actions {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-school-list-table .membership-actions .btn {
    justify-content: center;
    width: 100%;
    padding-right: 8px;
    padding-left: 8px;
    white-space: nowrap;
}

.admin-pagination-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: var(--color-muted);
    border-top: 1px solid var(--color-border);
    background: #fff;
    font-size: var(--font-size-sm);
}

.admin-pagination-row > span {
    flex: 1 1 220px;
}

.admin-pagination-row nav {
    max-width: 100%;
    overflow-x: auto;
}

.admin-pagination-row .pagination {
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.admin-pagination-row .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 6px 10px;
    color: #0b315c;
    border-color: #dce8ef;
    border-radius: var(--radius-sm);
    background: #fff;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

.admin-pagination-row .page-item:first-child .page-link,
.admin-pagination-row .page-item:last-child .page-link {
    min-width: 74px;
}

.admin-pagination-row .page-item.active .page-link {
    color: #fff;
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.admin-pagination-row .page-item.disabled .page-link {
    color: #8a97a6;
    border-color: #e7eef3;
    background: #f7fbfd;
}

.admin-pagination-row .admin-page-ellipsis .page-link {
    min-width: 30px;
    padding-right: 6px;
    padding-left: 6px;
}

.admin-edit-list {
    display: grid;
    gap: 14px;
}

.admin-edit-item {
    padding: 20px;
}

.admin-added-events-table-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.admin-added-events-table-card .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.admin-added-events-table {
    min-width: 860px;
}

.admin-added-events-table thead th {
    padding: 14px 16px;
    color: #0b315c;
    border-bottom: 1px solid #dce8ef;
    background: #f8fbfd;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

.admin-added-events-table tbody td {
    padding: 15px 16px;
    border-bottom: 1px solid #e4edf3;
    vertical-align: middle;
}

.admin-added-event-row:hover td {
    background: #fbfdff;
}

.admin-added-event-title {
    display: block;
    color: #082f49;
    font-size: 1.02rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-faq-answer-preview {
    max-width: 560px;
    color: #334155;
    font-size: var(--font-size-sm);
    line-height: 1.45;
}

.admin-added-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.admin-added-events-table .admin-added-event-meta {
    margin-top: 0;
}

.admin-added-event-meta span,
.admin-added-event-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #dce8ef;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    white-space: nowrap;
}

.admin-added-event-meta i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.admin-added-event-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-added-event-icon-btn {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.admin-added-event-icon-btn i {
    line-height: 1;
}

.admin-added-event-status {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-added-event-status.is-draft {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.admin-added-event-status.is-closed {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.admin-event-registrations-table th {
    padding: 14px 16px;
    color: #061d2c;
    background: #fbfdff;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
}

.admin-event-registrations-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e4edf3;
    vertical-align: middle;
}

.admin-event-registrations-table tbody tr:hover {
    background: #fbfdff;
}

.admin-event-registrations-table td strong {
    color: #082f49;
}

.admin-event-registration-status-cell .badge {
    margin-bottom: 8px;
}

.admin-event-registration-status-form {
    display: grid;
    grid-template-columns: minmax(96px, 1fr) auto;
    gap: 6px;
    max-width: 220px;
}

.admin-added-event-edit-row[hidden] {
    display: none;
}

.admin-added-event-edit-row > td {
    padding: 18px 20px 20px;
    background: #fbfdff;
    box-shadow: inset 0 1px 0 #edf4f7;
}

.admin-added-event-edit-row .admin-event-form textarea.form-control {
    min-height: 92px;
}

.admin-added-event-save {
    display: flex;
    justify-content: flex-end;
}

.admin-delete-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.admin-delete-row.admin-added-event-delete {
    margin: 0;
    padding: 0;
    border: 0;
}

.event-metric-card {
    position: relative;
    overflow: hidden;
}

.event-metric-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--color-secondary);
}

.admin-event-form .form-label {
    color: #0b315c;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.admin-event-form .form-control,
.admin-event-form .form-select {
    min-height: 46px;
    border-color: #dce8ef;
    border-radius: var(--radius-sm);
}

.admin-event-form textarea.form-control {
    min-height: 118px;
}

.admin-event-form .form-control:focus,
.admin-event-form .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(21, 94, 117, 0.14);
}

.membership-edit-dialog {
    --bs-modal-width: min(1180px, calc(100vw - 48px));
}

.membership-edit-form {
    overflow: hidden;
    border: 1px solid rgba(21, 94, 117, 0.16);
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 70px rgba(9, 39, 52, 0.24);
}

.membership-edit-header {
    position: relative;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    color: #fff;
    border-bottom: 0;
    background:
        linear-gradient(110deg, rgba(9, 39, 52, 0.98), rgba(21, 94, 117, 0.94)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 34px 34px;
}

.membership-edit-header::after {
    content: "";
    position: absolute;
    right: 66px;
    bottom: -48px;
    width: 138px;
    height: 138px;
    border: 22px solid rgba(234, 179, 8, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.membership-edit-header > * {
    position: relative;
    z-index: 1;
}

.membership-edit-header-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    color: #0b315c;
    border-radius: var(--radius-sm);
    background: #ffdb72;
    font-size: 1.12rem;
}

.membership-edit-kicker {
    display: block;
    color: #ffdb72;
    font-size: 0.72rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-transform: uppercase;
}

.membership-edit-header .modal-title {
    margin: 5px 0 2px;
    color: #fff;
    font-size: 1.34rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
}

.membership-edit-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: var(--font-size-sm);
}

.membership-edit-header .btn-close {
    width: 36px;
    height: 36px;
    margin: 0 0 0 auto;
    padding: 0;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.membership-edit-body {
    max-height: min(68vh, 620px);
    padding: 16px 20px 18px;
    background:
        linear-gradient(180deg, rgba(244, 248, 251, 0.78), #fff 132px),
        #fff;
}

.membership-edit-grid {
    align-items: end;
}

.membership-edit-grid > [class*="col-"] {
    min-width: 0;
}

.membership-edit-grid .form-label {
    margin-bottom: 4px;
    color: #0b315c;
    font-size: 0.82rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
}

.membership-edit-grid .form-control,
.membership-edit-grid .form-select {
    min-height: 40px;
    padding: 7px 12px;
    border-color: #dce8ef;
    border-radius: var(--radius-sm);
    background-color: #fbfdff;
    font-size: 0.94rem;
}

.membership-edit-grid .form-control[type="file"] {
    padding: 6px 10px;
}

.membership-edit-grid textarea.form-control {
    min-height: 68px;
}

.membership-edit-grid .form-control:focus,
.membership-edit-grid .form-select:focus {
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 0.18rem rgba(21, 94, 117, 0.14);
}

.membership-edit-grid .form-control[readonly] {
    color: #344054;
    background-color: #f3f8fb;
}

.membership-edit-footer {
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid #dbe8ef;
    background: #fbfdff;
}

.membership-edit-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 15px;
}

.school-profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 26px;
    color: #fff;
    border-radius: var(--radius-sm);
    background:
        linear-gradient(110deg, rgba(9, 39, 52, 0.98), rgba(21, 94, 117, 0.94)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 42px 42px;
    box-shadow: 0 20px 46px rgba(9, 39, 52, 0.18);
}

.school-profile-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -92px;
    width: 240px;
    height: 240px;
    border: 34px solid rgba(234, 179, 8, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.school-profile-identity,
.school-profile-status {
    position: relative;
    z-index: 1;
}

.school-profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.school-profile-logo {
    display: grid;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    place-items: center;
    overflow: hidden;
    color: #0b315c;
    border: 2px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.school-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.school-profile-logo i {
    font-size: 2rem;
}

.school-profile-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #ffdb72;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

.school-profile-hero h2 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.12;
}

.school-profile-hero p {
    max-width: 780px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.school-profile-status {
    display: grid;
    min-width: 210px;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.school-profile-status small {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

.school-profile-status strong {
    color: #fff;
    font-size: 1.1rem;
}

.school-profile-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 28px;
    padding: 5px 11px;
    color: #0b4b31;
    border: 1px solid #9fdcb8;
    border-radius: 999px;
    background: #dff5e8;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-transform: capitalize;
}

.school-profile-status-pill.is-inactive,
.school-profile-status-pill.is-pending {
    color: #7a5200;
    border-color: #f4d47a;
    background: #fff3cd;
}

.school-profile-card {
    overflow: hidden;
    padding: 26px 30px;
    border-color: #cfe1e9;
    box-shadow: 0 18px 42px rgba(21, 94, 117, 0.1);
}

.school-profile-current {
    background:
        linear-gradient(180deg, rgba(244, 248, 251, 0.72) 0, #fff 140px),
        #fff;
}

.school-profile-current h2,
.school-profile-form h2,
.school-profile-requests h2 {
    margin: 8px 0 8px;
    color: #0b315c;
    font-size: 1.34rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
}

.school-profile-detail-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.school-profile-detail-list li {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-height: 44px;
    padding: 12px 0;
    border-bottom: 1px solid #e5eef3;
}

.school-profile-detail-list li:last-child {
    border-bottom: 0;
}

.school-profile-detail-list li > span:first-child {
    color: #667085;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

.school-profile-detail-list strong {
    min-width: 0;
    color: #10212f;
    font-size: 0.98rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.school-profile-detail-list a {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
}

.school-profile-form-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: -26px -30px 24px;
    padding: 26px 30px 24px;
    border-bottom: 1px solid #dbe8ef;
    background: linear-gradient(135deg, rgba(21, 94, 117, 0.08), rgba(234, 179, 8, 0.1)), #fff;
}

.school-profile-form-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    color: #0b315c;
    border-radius: var(--radius-sm);
    background: #ffdb72;
    font-size: 1.18rem;
}

.school-profile-form-head p {
    margin: 0;
    color: #536273;
}

.school-profile-form .form-label {
    color: #0b315c;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.school-profile-form .form-control {
    min-height: 48px;
    border-color: #dce8ef;
    border-radius: var(--radius-sm);
    background: #fbfdff;
}

.school-profile-form textarea.form-control {
    min-height: 102px;
}

.school-profile-form .form-control:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(21, 94, 117, 0.14);
}

.school-profile-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding-inline: 20px;
}

.school-profile-requests {
    border-color: #cfe1e9;
    box-shadow: 0 18px 42px rgba(21, 94, 117, 0.1);
}

.school-profile-requests-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #dbe8ef;
    background: #fbfdff;
}

.school-profile-requests-head > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: #0b315c;
    border-radius: var(--radius-sm);
    background: #d8e7ff;
}

.school-profile-requests-head h2 {
    margin: 0;
}

.school-profile-requests-head p {
    margin: 3px 0 0;
    color: #536273;
    font-size: var(--font-size-sm);
}

.school-profile-requests thead th {
    color: #0b315c;
    background: #edf6f8;
    font-size: var(--font-size-sm);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #092734, #155e75);
}

.login-box {
    width: min(100%, 430px);
    padding: 34px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.login-box-wide {
    width: min(100%, 520px);
}

.login-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.login-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 22px;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #f4f8fb;
}

.login-mode-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    color: #35475a;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.login-mode-tabs a.active {
    color: #fff;
    background: var(--color-primary);
}

@media (max-width: 991px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-topbar,
    .membership-tab-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .admin-user-pill,
    .member-search,
    .membership-tab-toolbar .btn {
        width: 100%;
        max-width: none;
    }

    .school-payment-info-head,
    .school-payment-methods,
    .school-payment-office {
        grid-template-columns: 1fr;
    }

    .school-payment-fee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-receipts-summary {
        grid-template-columns: 1fr;
    }

    .admin-pagination-row {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-pagination-row > span {
        flex-basis: auto;
    }

    .admin-pagination-row .pagination {
        justify-content: flex-start;
    }

    .payment-summary-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .admin-payments-table,
    .admin-payments-table thead,
    .admin-payments-table tbody,
    .admin-payments-table tr,
    .admin-payments-table th,
    .admin-payments-table td {
        display: block;
        width: 100%;
    }

    .admin-payments-table thead {
        display: none;
    }

    .admin-payments-table tbody {
        display: grid;
        gap: 10px;
    }

    .admin-payments-table tr {
        overflow: hidden;
        border: 1px solid #dce8ef;
        border-radius: var(--radius-sm);
        background: #fff;
    }

    .admin-payments-table td {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        align-items: start;
        gap: 8px;
        padding: 8px 10px;
        border-bottom: 1px solid #edf3f6;
        overflow-wrap: anywhere;
    }

    .admin-payments-table td:last-child {
        border-bottom: 0;
    }

    .admin-payments-table td::before {
        color: #516070;
        font-size: 0.78rem;
        font-weight: var(--font-weight-bold);
        text-transform: uppercase;
    }

    .admin-payments-table td:nth-child(1)::before {
        content: "Receipt";
    }

    .admin-payments-table td:nth-child(2)::before {
        content: "Payer";
    }

    .admin-payments-table td:nth-child(3)::before {
        content: "Type";
    }

    .admin-payments-table td:nth-child(4)::before {
        content: "Amount";
    }

    .admin-payments-table td:nth-child(5)::before {
        content: "Status";
    }

    .admin-payments-table td:nth-child(6)::before {
        content: "Date";
    }

    .admin-applications-table {
        table-layout: auto;
    }

    .admin-applications-table,
    .admin-applications-table thead,
    .admin-applications-table tbody,
    .admin-applications-table tr,
    .admin-applications-table th,
    .admin-applications-table td,
    .admin-applications-table td.application-school-column,
    .admin-applications-table td:nth-child(n),
    .admin-applications-table th:nth-child(n) {
        display: block;
        width: 100% !important;
    }

    .admin-applications-table thead {
        display: none;
    }

    .admin-applications-table tbody {
        display: block;
    }

    .admin-applications-table tr {
        display: block !important;
        margin-bottom: 16px;
        overflow: hidden;
        border: 1px solid #dce8ef;
        border-radius: var(--radius-md, 6px);
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }

    .admin-applications-table td {
        padding: 8px 10px;
        border-bottom: 1px solid #edf3f6;
    }

    .admin-applications-table td.application-school-column {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        padding: 12px 14px;
    }

    .admin-applications-table td:last-child {
        border-bottom: 0;
    }

    .admin-applications-table td:not(.application-school-column) {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        align-items: start;
        gap: 8px;
    }

    .admin-applications-table td:not(.application-school-column)::before {
        color: #516070;
        font-size: 0.78rem;
        font-weight: var(--font-weight-bold);
        text-transform: uppercase;
    }

    .admin-applications-table td:nth-child(2)::before {
        content: "Type";
    }

    .admin-applications-table td:nth-child(3)::before {
        content: "Payment";
    }

    .admin-applications-table td:nth-child(4)::before {
        content: "Date";
    }

    .admin-applications-table td:nth-child(5)::before {
        content: "Status";
    }

    .admin-applications-table td:nth-child(6)::before {
        content: "Action";
    }

    .application-school-cell {
        gap: 10px;
    }

    .application-school-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .application-meta-grid {
        gap: 2px 10px;
    }

    .application-meta-grid span {
        min-width: min(100%, 138px);
    }

    .admin-applications-table .application-action-cell .membership-actions {
        display: flex;
        flex-direction: row;
        gap: 6px;
        width: auto;
    }

    .admin-applications-table .application-action-cell .membership-actions form,
    .admin-applications-table .application-action-cell .membership-actions .btn {
        width: auto !important;
        display: inline-block;
        flex: 0 0 auto;
    }

    .admin-applications-table .application-action-cell .membership-actions .btn {
        font-size: 0 !important;
        padding: 8px 12px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-applications-table .application-action-cell .membership-actions .btn i {
        font-size: 1rem !important;
        margin: 0 !important;
    }

    .admin-school-list-table {
        table-layout: auto;
    }

    .admin-school-list-table,
    .admin-school-list-table thead,
    .admin-school-list-table tbody,
    .admin-school-list-table tr,
    .admin-school-list-table th,
    .admin-school-list-table td,
    .admin-school-list-table td:nth-child(n),
    .admin-school-list-table th:nth-child(n) {
        display: block;
        width: 100% !important;
    }

    .admin-school-list-table thead {
        display: none;
    }

    .admin-school-list-table tbody {
        display: block;
    }

    .admin-school-list-table tr {
        display: block !important;
        margin-bottom: 16px;
        overflow: hidden;
        border: 1px solid #dce8ef;
        border-radius: var(--radius-md, 6px);
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }

    .admin-school-list-table td {
        padding: 8px 10px;
        border-bottom: 1px solid #edf3f6;
    }

    .admin-school-list-table td:first-child {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        padding: 12px 14px;
    }

    .admin-school-list-table td:last-child {
        border-bottom: 0;
    }

    .admin-school-list-table td:not(:first-child) {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        align-items: start;
        gap: 8px;
    }

    .admin-school-list-table td:not(:first-child)::before {
        color: #516070;
        font-size: 0.78rem;
        font-weight: var(--font-weight-bold);
        text-transform: uppercase;
    }

    .admin-school-list-table td:nth-child(2)::before {
        content: "Principal";
    }

    .admin-school-list-table td:nth-child(3)::before {
        content: "Contact";
    }

    .admin-school-list-table td:nth-child(4)::before {
        content: "Published";
    }

    .admin-school-list-table td:nth-child(5)::before {
        content: "Renewal";
    }

    .admin-school-list-table td:nth-child(6)::before {
        content: "Payment";
    }

    .admin-school-list-table .admin-payment-cell {
        display: flex !important;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .admin-school-list-table .admin-payment-cell span:first-child {
        display: inline-block !important;
        margin-bottom: 0;
    }

    .admin-school-list-table td:nth-child(7)::before {
        content: "Action";
    }

    .admin-school-list-table td:nth-child(7) .membership-actions {
        display: flex;
        flex-direction: row;
        gap: 6px;
        width: auto;
    }

    .admin-school-list-table td:nth-child(7) .membership-actions form,
    .admin-school-list-table td:nth-child(7) .membership-actions .btn {
        width: auto !important;
        display: inline-block;
        flex: 0 0 auto;
    }

    .admin-school-list-table td:nth-child(7) .membership-actions .btn {
        font-size: 0 !important;
        padding: 8px 12px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-school-list-table td:nth-child(7) .membership-actions .btn i {
        font-size: 1rem !important;
        margin: 0 !important;
    }

    .school-profile-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .school-profile-status {
        width: 100%;
    }

    .membership-edit-dialog {
        --bs-modal-width: calc(100vw - 24px);
    }

    .membership-edit-body {
        max-height: 70vh;
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 575px) {
    .admin-added-event-save {
        justify-content: stretch;
    }

    .admin-added-event-save .btn {
        width: 100%;
    }

    .school-payment-info-head,
    .school-payment-method,
    .school-payment-office > div,
    .school-payment-branch-note {
        padding-right: 18px;
        padding-left: 18px;
    }

    .school-payment-fee-grid,
    .school-bank-details div {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 18px;
    }

    .school-profile-hero,
    .school-profile-card {
        padding: 20px;
    }

    .school-profile-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .school-profile-logo {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .school-profile-detail-list li {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .school-profile-form-head {
        margin: -20px -20px 20px;
        padding: 20px;
    }

    .school-profile-submit {
        width: 100%;
    }

    .membership-edit-header {
        align-items: flex-start;
        padding: 16px;
    }

    .membership-edit-header-icon {
        display: none;
    }

    .membership-edit-header .modal-title {
        font-size: 1.18rem;
    }

    .membership-edit-footer {
        align-items: stretch;
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
        padding: 12px 16px;
    }

    .membership-edit-footer .btn {
        width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }

    .metric-card {
        padding: 16px 12px;
    }

    .metric-card strong {
        font-size: 1.6rem;
    }

    .login-page {
        padding: 16px 12px;
    }

    .login-box {
        padding: 24px 18px;
    }

    .login-mode-tabs {
        padding: 4px;
        gap: 4px;
        margin-bottom: 18px;
    }

    .login-mode-tabs a {
        font-size: 0.82rem;
        gap: 4px;
        min-height: 38px;
    }
}
