
.zsm-fe {
    --zsm-bg: #f5f7fb;
    --zsm-card: #ffffff;
    --zsm-text: #17243d;
    --zsm-muted: #68758a;
    --zsm-border: #dde3ed;
    --zsm-blue: #2f63f5;
    --zsm-purple: #7c3aed;
    --zsm-green: #18a957;
    --zsm-orange: #f97316;
    --zsm-red: #ef4444;
    max-width: 1220px;
    margin: 28px auto 60px;
    color: var(--zsm-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.zsm-fe * {
    box-sizing: border-box;
}

.zsm-fe-hero {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    padding: 34px 38px;
    border-radius: 22px;
    background: linear-gradient(135deg, #10254e, #1f4f9e);
    color: #fff;
    box-shadow: 0 16px 38px rgba(23, 36, 61, .15);
}

.zsm-fe-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    opacity: .75;
}

.zsm-fe-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
}

.zsm-fe-hero p {
    margin: 10px 0 0;
    max-width: 620px;
    color: rgba(255,255,255,.82);
    font-size: 16px;
}

.zsm-fe-user {
    min-width: 190px;
    text-align: right;
}

.zsm-fe-user span,
.zsm-fe-user strong {
    display: block;
}

.zsm-fe-user span {
    font-size: 12px;
    opacity: .72;
}

.zsm-fe-user strong {
    margin: 3px 0 9px;
}

.zsm-fe-user a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    opacity: .9;
}

.zsm-fe-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 16px 0 30px;
    padding: 10px;
    border: 1px solid var(--zsm-border);
    border-radius: 14px;
    background: #fff;
}

.zsm-fe-nav a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 9px;
    color: #34445f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}

.zsm-fe-nav a:hover {
    background: #eef4ff;
    color: var(--zsm-blue);
}

.zsm-fe-section-head,
.zsm-fe-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.zsm-fe-section-head {
    margin-bottom: 15px;
}

.zsm-fe-section-head h2,
.zsm-fe-section-head p {
    margin: 0;
}

.zsm-fe-section-head p {
    margin-top: 3px;
    color: var(--zsm-muted);
}

.zsm-fe-month {
    display: flex;
    gap: 7px;
}

.zsm-fe-month select,
.zsm-fe-month input,
.zsm-fe-month button {
    min-height: 40px;
    border: 1px solid #cfd7e5;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
}

.zsm-fe-month input {
    width: 92px;
}

.zsm-fe-month button {
    border-color: var(--zsm-blue);
    background: var(--zsm-blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.zsm-fe-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 24px;
}

.zsm-fe-card {
    min-height: 112px;
    padding: 20px;
    border: 1px solid var(--zsm-border);
    border-left: 5px solid var(--zsm-blue);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(23, 36, 61, .05);
}

.zsm-fe-card span,
.zsm-fe-card strong {
    display: block;
}

.zsm-fe-card span {
    color: #49566c;
    font-size: 13px;
    font-weight: 700;
}

.zsm-fe-card strong {
    margin-top: 10px;
    font-size: 26px;
}

.zsm-fe-card-purple { border-left-color: var(--zsm-purple); }
.zsm-fe-card-green { border-left-color: var(--zsm-green); }
.zsm-fe-card-orange { border-left-color: var(--zsm-orange); }
.zsm-fe-card-red { border-left-color: var(--zsm-red); }

.zsm-fe-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.zsm-fe-panel {
    padding: 22px;
    border: 1px solid var(--zsm-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(23, 36, 61, .045);
}

.zsm-fe-panel h3 {
    margin: 0;
    font-size: 18px;
}

.zsm-fe-panel-head {
    margin-bottom: 14px;
}

.zsm-fe-panel-head a {
    color: var(--zsm-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.zsm-fe-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f5;
}

.zsm-fe-list > div:last-child {
    border-bottom: 0;
}

.zsm-fe-list span strong,
.zsm-fe-list span small {
    display: block;
}

.zsm-fe-list span small {
    margin-top: 2px;
    color: var(--zsm-muted);
    font-size: 12px;
}

.zsm-fe-status {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.zsm-fe-status-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.zsm-fe-status-reviewed {
    background: #fef3c7;
    color: #92400e;
}

.zsm-fe-status-enrolled {
    background: #dcfce7;
    color: #166534;
}

.zsm-fe-wide {
    margin-top: 16px;
}

.zsm-fe-table-wrap {
    overflow-x: auto;
}

.zsm-fe table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.zsm-fe th,
.zsm-fe td {
    padding: 11px 10px;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
}

.zsm-fe th {
    color: #59657a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.zsm-fe-actions {
    margin-top: 16px;
    padding: 22px;
    border-radius: 15px;
    background: #eef4ff;
}

.zsm-fe-actions h3 {
    margin: 0 0 13px;
}

.zsm-fe-actions > div {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.zsm-fe-actions a,
.zsm-fe-access a {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #b8c8e8;
    border-radius: 8px;
    background: #fff;
    color: #2452b8;
    text-decoration: none;
    font-weight: 750;
}

.zsm-fe-actions a.primary {
    border-color: var(--zsm-blue);
    background: var(--zsm-blue);
    color: #fff;
}

.zsm-fe-empty {
    color: var(--zsm-muted);
}

.zsm-fe-access {
    max-width: 560px;
    margin: 50px auto;
    padding: 28px;
    border: 1px solid #dce3ef;
    border-radius: 15px;
    background: #fff;
    text-align: center;
}

.zsm-fe-access strong {
    font-size: 20px;
}

.zsm-fe-access p {
    color: #667085;
}

@media (max-width: 1050px) {
    .zsm-fe-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .zsm-fe {
        margin-top: 14px;
    }

    .zsm-fe-hero,
    .zsm-fe-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .zsm-fe-user {
        text-align: left;
    }

    .zsm-fe-cards,
    .zsm-fe-grid {
        grid-template-columns: 1fr 1fr;
    }

    .zsm-fe-month {
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .zsm-fe-cards,
    .zsm-fe-grid {
        grid-template-columns: 1fr;
    }

    .zsm-fe-hero {
        padding: 26px 22px;
        border-radius: 16px;
    }

    .zsm-fe-panel {
        padding: 18px;
    }
}


.zsm-fe-nav a.active {
    background: #e7efff;
    color: var(--zsm-blue);
}

.zsm-fe-section-head-top {
    margin-top: 6px;
}

.zsm-fe-back-button {
    display: inline-block;
    padding: 9px 13px;
    border: 1px solid #cbd7ef;
    border-radius: 8px;
    background: #fff;
    color: #2855b7;
    text-decoration: none;
    font-weight: 750;
}

.zsm-fe-notice {
    margin-bottom: 15px;
    padding: 13px 15px;
    border-radius: 9px;
    border-left: 4px solid #18a957;
    background: #ecfdf3;
    color: #166534;
}

.zsm-fe-notice-error {
    border-left-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.zsm-fe-registration-filters {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 170px auto auto;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
}

.zsm-fe-registration-filters input,
.zsm-fe-registration-filters select,
.zsm-fe-registration-filters button {
    min-height: 42px;
    border: 1px solid #ccd5e3;
    border-radius: 8px;
    background: #fff;
    padding: 0 11px;
}

.zsm-fe-registration-filters button {
    border-color: var(--zsm-blue);
    background: var(--zsm-blue);
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.zsm-fe-registration-filters > a {
    color: #4b5e7c;
    text-decoration: none;
    font-weight: 700;
}

.zsm-fe-registration-table td {
    vertical-align: top;
}

.zsm-fe-registration-table td small {
    display: block;
    margin-top: 3px;
    color: var(--zsm-muted);
}

.zsm-fe-registration-actions {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 330px;
}

.zsm-fe-registration-actions form {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0;
}

.zsm-fe-registration-actions select,
.zsm-fe-registration-actions button,
.zsm-fe-registration-actions a,
.zsm-fe-detail-actions a {
    min-height: 34px;
    border: 1px solid #bdcae1;
    border-radius: 7px;
    background: #fff;
    color: #2452b8;
    padding: 6px 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.zsm-fe-registration-actions button {
    cursor: pointer;
}

.zsm-fe-registration-actions button.danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.zsm-fe-registration-detail {
    margin-bottom: 16px;
    border-left: 5px solid var(--zsm-blue);
}

.zsm-fe-registration-detail .zsm-fe-panel-head p {
    margin: 4px 0 0;
    color: var(--zsm-muted);
}

.zsm-fe-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin: 16px 0 20px;
}

.zsm-fe-detail-grid > div {
    padding: 13px;
    border: 1px solid #e1e7f0;
    border-radius: 9px;
    background: #f8fafc;
}

.zsm-fe-detail-grid span,
.zsm-fe-detail-grid strong {
    display: block;
}

.zsm-fe-detail-grid span {
    margin-bottom: 4px;
    color: var(--zsm-muted);
    font-size: 12px;
}

.zsm-fe-registration-students h4 {
    margin-bottom: 8px;
}

.zsm-fe-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

@media (max-width: 900px) {
    .zsm-fe-registration-filters {
        grid-template-columns: 1fr 1fr;
    }

    .zsm-fe-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .zsm-fe-registration-filters,
    .zsm-fe-detail-grid {
        grid-template-columns: 1fr;
    }

    .zsm-fe-registration-actions {
        min-width: 0;
        align-items: stretch;
        flex-direction: column;
    }

    .zsm-fe-registration-actions form {
        align-items: stretch;
    }
}


.zsm-fe-student-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(220px, .9fr) 150px auto auto;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
}

.zsm-fe-student-filters input,
.zsm-fe-student-filters select,
.zsm-fe-student-filters button {
    min-height: 42px;
    border: 1px solid #ccd5e3;
    border-radius: 8px;
    background: #fff;
    padding: 0 11px;
}

.zsm-fe-student-filters button {
    border-color: var(--zsm-blue);
    background: var(--zsm-blue);
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.zsm-fe-student-filters > a {
    color: #4b5e7c;
    text-decoration: none;
    font-weight: 700;
}

.zsm-fe-students-table td {
    vertical-align: top;
}

.zsm-fe-students-table td small {
    display: block;
    margin-top: 3px;
    color: var(--zsm-muted);
}

.zsm-fe-medical-flag {
    color: #b45309 !important;
    font-weight: 700;
}

.zsm-fe-row-button {
    display: inline-block;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #bdcae1;
    border-radius: 7px;
    color: #2452b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.zsm-fe-student-editor {
    margin-bottom: 16px;
    border-left: 5px solid var(--zsm-blue);
}

.zsm-fe-student-editor .zsm-fe-panel-head p {
    margin: 4px 0 0;
    color: var(--zsm-muted);
}

.zsm-fe-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.zsm-fe-field label,
.zsm-fe-field small {
    display: block;
}

.zsm-fe-field label {
    margin-bottom: 6px;
    font-weight: 750;
    color: #273650;
}

.zsm-fe-field small {
    margin-top: 5px;
    color: var(--zsm-muted);
    line-height: 1.35;
}

.zsm-fe-field input,
.zsm-fe-field select,
.zsm-fe-field textarea {
    width: 100%;
    min-height: 43px;
    border: 1px solid #ccd5e3;
    border-radius: 8px;
    background: #fff;
    padding: 9px 11px;
    color: #17243d;
    font: inherit;
}

.zsm-fe-field input[readonly] {
    background: #f4f6fa;
    color: #566176;
}

.zsm-fe-field textarea {
    resize: vertical;
}

.zsm-fe-span-2 {
    grid-column: span 2;
}

.zsm-fe-tuition-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.zsm-fe-tuition-row input {
    flex: 1;
}

.zsm-fe-tuition-row button {
    flex: 0 0 auto;
    border: 1px solid #bdcae1;
    border-radius: 8px;
    background: #fff;
    color: #2452b8;
    padding: 0 12px;
    font-weight: 750;
    cursor: pointer;
}

.zsm-fe-form-actions {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 18px;
}

.zsm-fe-form-actions button,
.zsm-fe-form-actions a {
    display: inline-block;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #bdcae1;
    border-radius: 8px;
    background: #fff;
    color: #2452b8;
    text-decoration: none;
    font-weight: 750;
}

.zsm-fe-form-actions button.primary {
    border-color: var(--zsm-blue);
    background: var(--zsm-blue);
    color: #fff;
    cursor: pointer;
}

.zsm-fe-status-inactive {
    background: #f1f5f9;
    color: #64748b;
}

@media (max-width: 1050px) {
    .zsm-fe-student-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .zsm-fe-form-grid,
    .zsm-fe-student-filters {
        grid-template-columns: 1fr;
    }

    .zsm-fe-span-2 {
        grid-column: span 1;
    }

    .zsm-fe-tuition-row {
        flex-direction: column;
    }
}


.zsm-fe-family-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.zsm-fe-family-topbar > div {
    display: flex;
    gap: 8px;
}

.zsm-fe-family-topbar > a,
.zsm-fe-family-topbar div a {
    text-decoration: none;
}

.zsm-fe-primary-link {
    display: inline-block;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 7px;
    background: var(--zsm-blue);
    color: #fff !important;
    font-weight: 750;
}

.zsm-fe-family-title {
    margin-bottom: 16px;
}

.zsm-fe-family-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 16px;
}

.zsm-fe-family-details {
    margin: 14px 0 0;
}

.zsm-fe-family-details > div {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e3e8f0;
}

.zsm-fe-family-details > div:last-child {
    border-bottom: 0;
}

.zsm-fe-family-details dt {
    color: var(--zsm-muted);
}

.zsm-fe-family-details dd {
    margin: 0;
    font-weight: 650;
}

.zsm-fe-month-picker {
    display: flex;
    gap: 7px;
}

.zsm-fe-month-picker select,
.zsm-fe-month-picker input,
.zsm-fe-month-picker button {
    min-height: 38px;
    border: 1px solid #ccd5e3;
    border-radius: 7px;
    background: #fff;
    padding: 0 9px;
}

.zsm-fe-month-picker input {
    width: 92px;
}

.zsm-fe-month-picker button {
    color: #2452b8;
    font-weight: 750;
    cursor: pointer;
}

.zsm-fe-family-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.zsm-fe-family-summary > div {
    padding: 14px;
    border: 1px solid #dce3ee;
    border-radius: 9px;
    background: #f8fafc;
}

.zsm-fe-family-summary span,
.zsm-fe-family-summary strong {
    display: block;
}

.zsm-fe-family-summary span {
    color: var(--zsm-muted);
    font-size: 13px;
}

.zsm-fe-family-summary strong {
    margin-top: 5px;
    font-size: 20px;
}

.zsm-fe-family-status-paid {
    color: #15803d;
}

.zsm-fe-family-status-partial {
    color: #c2410c;
}

.zsm-fe-family-status-unpaid {
    color: #dc2626;
}

.zsm-fe-muted {
    color: var(--zsm-muted);
    font-size: 13px;
}

.zsm-fe-family-search {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
}

.zsm-fe-family-search input {
    flex: 1;
    min-height: 42px;
    border: 1px solid #ccd5e3;
    border-radius: 8px;
    padding: 0 11px;
}

.zsm-fe-family-search button {
    min-height: 42px;
    border: 1px solid var(--zsm-blue);
    border-radius: 8px;
    background: var(--zsm-blue);
    color: #fff;
    padding: 0 16px;
    font-weight: 750;
    cursor: pointer;
}

.zsm-fe-family-search a {
    color: #4b5e7c;
    font-weight: 700;
    text-decoration: none;
}

.zsm-fe-empty-box {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
    padding: 28px;
    border: 1px dashed #c9d5e7;
    border-radius: 10px;
    background: #f8fafc;
}

.zsm-fe-empty-box span {
    color: var(--zsm-muted);
}

.zsm-fe-family-editor {
    margin-bottom: 16px;
    border-left: 5px solid var(--zsm-blue);
}

@media (max-width: 900px) {
    .zsm-fe-family-grid {
        grid-template-columns: 1fr;
    }

    .zsm-fe-family-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .zsm-fe-family-topbar,
    .zsm-fe-family-search,
    .zsm-fe-month-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .zsm-fe-family-topbar > div {
        flex-wrap: wrap;
    }

    .zsm-fe-family-summary {
        grid-template-columns: 1fr;
    }

    .zsm-fe-month-picker input {
        width: 100%;
    }
}


/* ---------------------------------------------------------
   Receipt-only printing
   --------------------------------------------------------- */
@media print {
    @page {
        margin: 0.45in;
        size: auto;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    /* Hide the website/theme chrome around the School Admin portal. */
    body > *:not(:has(.zsm-receipt-screen)) {
        display: none !important;
    }

    /* Inside the portal, print only the receipt area. */
    .zsm-fe > *:not(.zsm-receipt-screen) {
        display: none !important;
    }

    .zsm-receipt-toolbar,
    .zsm-receipt-toolbar *,
    .no-print {
        display: none !important;
    }

    .zsm-receipt-screen {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .zsm-receipt {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
    }

    .zsm-receipt-head,
    .zsm-receipt-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .zsm-receipt-head {
        padding-bottom: 14px !important;
    }

    .zsm-receipt-section {
        padding: 14px 0 !important;
    }

    .zsm-receipt-head h1 {
        font-size: 24px !important;
    }

    .zsm-receipt-section h2 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .zsm-receipt-summary,
    .zsm-receipt-account-status,
    .zsm-receipt-grid {
        gap: 8px !important;
    }

    .zsm-receipt-summary > div,
    .zsm-receipt-account-status > div {
        padding: 10px !important;
    }

    .zsm-receipt-summary strong {
        font-size: 17px !important;
    }

    .zsm-receipt-table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .zsm-receipt-table th,
    .zsm-receipt-table td {
        padding: 7px 9px !important;
        border: 1px solid #bbb !important;
    }

    .zsm-receipt-footer {
        padding-top: 14px !important;
    }

    /* Prevent browser/theme link formatting from cluttering receipts. */
    .zsm-receipt a {
        color: #000 !important;
        text-decoration: none !important;
    }
}


/* Receipt-only printing v3.2.5 */
#zsm-print-receipt-clone {
    display: none;
}

@media print {
    @page {
        size: auto;
        margin: 0.35in;
    }

    body.zsm-receipt-print-mode {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.zsm-receipt-print-mode > * {
        display: none !important;
    }

    body.zsm-receipt-print-mode > #zsm-print-receipt-clone {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-head,
    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-head {
        padding-bottom: 10px !important;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-section {
        padding: 10px 0 !important;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-head h1 {
        margin: 0 0 3px !important;
        font-size: 22px !important;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-section h2 {
        margin: 0 0 7px !important;
        font-size: 15px !important;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-grid,
    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-summary,
    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-account-status {
        gap: 6px !important;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-summary > div,
    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-account-status > div {
        padding: 8px !important;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-summary strong {
        font-size: 16px !important;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-table th,
    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-table td {
        padding: 6px 8px !important;
        border: 1px solid #bbb !important;
    }

    body.zsm-receipt-print-mode #zsm-print-receipt-clone .zsm-receipt-footer {
        padding-top: 10px !important;
    }
}


.zsm-fe-teacher-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr);
    gap: 16px;
    align-items: start;
}

.zsm-fe-add-teacher .zsm-fe-field {
    margin-top: 12px;
}

.zsm-fe-teacher-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 340px;
}

.zsm-fe-teacher-actions a,
.zsm-fe-teacher-actions button,
.zsm-fe-assignment-toolbar button,
.zsm-fe-roster-toolbar a,
.zsm-fe-roster-toolbar button {
    display: inline-block;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #bdcae1;
    border-radius: 7px;
    background: #fff;
    color: #2452b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.zsm-fe-teacher-actions form {
    margin: 0;
}

.zsm-fe-teacher-actions button.danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.zsm-fe-assignment-toolbar {
    display: flex;
    gap: 8px;
    margin: 14px 0;
}

.zsm-fe-teacher-assign,
.zsm-fe-teacher-editor {
    margin-bottom: 16px;
    border-left: 5px solid var(--zsm-blue);
}

.zsm-fe-teacher-assign .zsm-fe-panel-head p {
    margin: 4px 0 0;
    color: var(--zsm-muted);
}

.zsm-fe-roster-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.zsm-fe-roster-toolbar button {
    border-color: var(--zsm-blue);
    background: var(--zsm-blue);
    color: #fff;
}

.zsm-fe-teacher-roster {
    padding: 28px;
    border: 1px solid var(--zsm-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(23, 36, 61, .045);
}

.zsm-fe-roster-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 18px;
    border-bottom: 2px solid #e5e7eb;
}

.zsm-fe-roster-head h1 {
    margin: 0 0 4px;
    font-size: 28px;
}

.zsm-fe-roster-head p {
    margin: 0;
    color: var(--zsm-muted);
}

.zsm-fe-roster-teacher {
    min-width: 230px;
    text-align: right;
}

.zsm-fe-roster-teacher span,
.zsm-fe-roster-meta span {
    display: block;
    color: var(--zsm-muted);
}

.zsm-fe-roster-teacher strong {
    display: block;
    margin: 4px 0;
    font-size: 19px;
}

.zsm-fe-roster-meta {
    display: flex;
    gap: 12px;
    margin: 17px 0;
}

.zsm-fe-roster-meta > div {
    min-width: 150px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.zsm-fe-roster-meta strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.zsm-fe-roster-program {
    margin-top: 22px;
}

.zsm-fe-roster-program h2 {
    margin-bottom: 9px;
    font-size: 18px;
}

.zsm-fe-roster-table {
    width: 100%;
    border-collapse: collapse;
}

.zsm-fe-roster-table th,
.zsm-fe-roster-table td {
    padding: 9px 11px;
    border: 1px solid #d8dee8;
    text-align: left;
}

#zsm-print-roster-clone {
    display: none;
}

@media (max-width: 1000px) {
    .zsm-fe-teacher-layout {
        grid-template-columns: 1fr;
    }

    .zsm-fe-teacher-actions {
        min-width: 0;
    }
}

@media (max-width: 680px) {
    .zsm-fe-roster-head,
    .zsm-fe-roster-toolbar {
        flex-direction: column;
    }

    .zsm-fe-roster-teacher {
        min-width: 0;
        text-align: left;
    }
}

@media print {
    body.zsm-roster-print-mode {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.zsm-roster-print-mode > * {
        display: none !important;
    }

    body.zsm-roster-print-mode > #zsm-print-roster-clone {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.zsm-roster-print-mode #zsm-print-roster-clone .zsm-fe-teacher-roster {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    body.zsm-roster-print-mode #zsm-print-roster-clone .zsm-fe-roster-program {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.zsm-roster-print-mode #zsm-print-roster-clone .zsm-fe-roster-table th,
    body.zsm-roster-print-mode #zsm-print-roster-clone .zsm-fe-roster-table td {
        border: 1px solid #aaa !important;
    }
}
\n\n/* ---------------------------------------------------------\n   Front-End School Admin Login\n   --------------------------------------------------------- */\n.zsm-login-page {\n    max-width: 980px;\n    margin: 52px auto 70px;\n    padding: 0 18px;\n    font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n    color: #17243d;\n}\n.zsm-login-card {display:grid;grid-template-columns:minmax(0,.95fr) minmax(360px,1.05fr);overflow:hidden;border:1px solid #dce3ee;border-radius:22px;background:#fff;box-shadow:0 18px 45px rgba(23,36,61,.12);}\n.zsm-login-brand {display:flex;flex-direction:column;justify-content:center;min-height:520px;padding:48px;background:linear-gradient(145deg,#10254e,#2455a4);color:#fff;}\n.zsm-login-kicker {margin-bottom:12px;font-size:12px;font-weight:800;letter-spacing:.13em;opacity:.72;}\n.zsm-login-brand h1 {margin:0;color:#fff;font-size:42px;line-height:1.05;}\n.zsm-login-brand p {max-width:360px;margin:14px 0 0;color:rgba(255,255,255,.82);font-size:16px;line-height:1.55;}\n.zsm-login-form-wrap {padding:48px;}\n.zsm-login-form-wrap h2 {margin:0;font-size:30px;}\n.zsm-login-subtext {margin:8px 0 26px;color:#6b778b;}\n#zsm-login-form p {margin:0 0 16px;}\n#zsm-login-form label {display:block;margin-bottom:7px;color:#2d3a52;font-weight:750;}\n#zsm-login-form input[type=\"text\"],#zsm-login-form input[type=\"password\"] {width:100%;min-height:46px;border:1px solid #cdd6e4;border-radius:9px;background:#fff;padding:10px 12px;color:#17243d;font:inherit;box-sizing:border-box;}\n#zsm-login-form input[type=\"text\"]:focus,#zsm-login-form input[type=\"password\"]:focus {border-color:#2f63f5;outline:2px solid rgba(47,99,245,.12);outline-offset:0;}\n#zsm-login-form .login-remember label {display:inline-flex;align-items:center;gap:8px;font-weight:600;}\n#zsm-login-form .login-remember input {margin:0;}\n#zsm-login-form .login-submit {margin-top:20px;}\n#zsm-login-form .button-primary {width:100%;min-height:46px;border:0;border-radius:9px;background:#2f63f5;color:#fff;font-size:15px;font-weight:800;cursor:pointer;}\n#zsm-login-form .button-primary:hover {background:#2452d2;}\n.zsm-login-links {margin-top:6px;}\n.zsm-login-links a {color:#2f63f5;text-decoration:none;font-weight:700;}\n.zsm-login-security-note {display:flex;flex-direction:column;gap:3px;margin-top:28px;padding:14px 16px;border:1px solid #dce3ee;border-radius:10px;background:#f7f9fc;}\n.zsm-login-security-note strong {font-size:13px;}\n.zsm-login-security-note span {color:#6b778b;font-size:12px;line-height:1.4;}\n@media (max-width:780px){.zsm-login-card{grid-template-columns:1fr}.zsm-login-brand{min-height:220px;padding:34px 28px}.zsm-login-brand h1{font-size:34px}.zsm-login-form-wrap{padding:34px 28px}}\n@media (max-width:480px){.zsm-login-page{margin-top:20px;padding:0 10px}.zsm-login-card{border-radius:16px}.zsm-login-brand,.zsm-login-form-wrap{padding-left:22px;padding-right:22px}}\n

/* v3.4.1 login reliability */
.zsm-login-error{margin:0 0 18px;padding:12px 14px;border:1px solid #fecaca;border-radius:8px;background:#fff1f2;color:#b42318;font-size:14px;font-weight:650;}


/* ---------------------------------------------------------
   v3.4.2 — Islamic Admin Login Polish
   --------------------------------------------------------- */
.zsm-login-shell {
    position: relative;
    min-height: 100vh;
    margin: -20px calc(50% - 50vw) 0;
    padding: 70px 20px 44px;
    overflow: hidden;
    background:
        linear-gradient(rgba(248, 244, 235, .84), rgba(248, 244, 235, .9)),
        url("../images/zayd-admin-islamic-bg.png") center center / cover no-repeat;
}

.zsm-login-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 15%, rgba(255,255,255,.72), transparent 35%),
        linear-gradient(180deg, rgba(6,32,74,.06), rgba(255,255,255,.08));
    pointer-events: none;
}

.zsm-login-page {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
}

.zsm-login-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(215, 200, 170, .9);
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 60px rgba(23,36,61,.20);
    backdrop-filter: blur(4px);
}

.zsm-login-brand {
    min-height: 0;
    padding: 34px 46px 18px;
    background: transparent;
    color: #14233d;
    text-align: center;
}

.zsm-login-mark {
    width: 84px;
    height: 84px;
    margin: 0 auto 12px;
    border: 3px solid #153b72;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #f7fbff);
    box-shadow: inset 0 0 0 7px #eef4fb;
    color: #153b72;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 24px;
}

.zsm-login-mark strong {
    font-size: 26px;
    line-height: 1;
}

.zsm-login-kicker {
    display: block;
    margin-bottom: 7px;
    color: #1c55a8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.zsm-login-brand h1 {
    margin: 0;
    color: #13284b;
    font-size: 44px;
    line-height: 1.05;
    font-family: Georgia, "Times New Roman", serif;
}

.zsm-login-ornament {
    margin: 12px 0 8px;
    color: #d7a74d;
    font-size: 15px;
}

.zsm-login-brand p {
    max-width: none;
    margin: 0;
    color: #516077;
    font-size: 15px;
}

.zsm-login-form-wrap {
    padding: 8px 46px 38px;
}

.zsm-login-title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 6px 0 8px;
}

.zsm-login-title-row span {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d7a74d);
}

.zsm-login-title-row span:last-child {
    background: linear-gradient(90deg, #d7a74d, transparent);
}

.zsm-login-title-row h2 {
    margin: 0;
    color: #13284b;
    font-size: 28px;
    font-family: Georgia, "Times New Roman", serif;
}

.zsm-login-subtext {
    margin: 0 0 24px;
    color: #6c778a;
    text-align: center;
    font-size: 14px;
}

#zsm-login-form p {
    margin-bottom: 16px;
}

#zsm-login-form label {
    color: #1d2d47;
    font-size: 13px;
    font-weight: 800;
}

#zsm-login-form input[type="text"],
#zsm-login-form input[type="password"] {
    min-height: 48px;
    border: 1px solid #c7d3e3;
    border-radius: 9px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.03);
}

#zsm-login-form .login-remember {
    margin-top: 4px;
}

#zsm-login-form .login-remember label {
    color: #283a57;
    font-weight: 650;
}

#zsm-login-form .button-primary {
    min-height: 50px;
    border-radius: 8px;
    background: linear-gradient(180deg, #0e64c8, #0a54ad);
    box-shadow: 0 5px 14px rgba(14,100,200,.20);
    font-size: 16px;
}

#zsm-login-form .button-primary:hover {
    background: linear-gradient(180deg, #0d5dbb, #084a99);
}

.zsm-login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 20px 0 14px;
    color: #8b95a6;
    font-size: 12px;
}

.zsm-login-divider::before,
.zsm-login-divider::after {
    content: "";
    height: 1px;
    background: #e2e7ef;
}

.zsm-login-links {
    text-align: center;
}

.zsm-login-links a {
    color: #0d5ebd;
    font-weight: 800;
}

.zsm-login-security-note {
    display: block;
    margin-top: 26px;
    padding: 14px 16px;
    border: 1px solid #d8e3f1;
    border-radius: 10px;
    background: #edf5ff;
    color: #28466f;
    line-height: 1.45;
}

.zsm-login-security-note strong {
    display: inline;
    margin-right: 4px;
    color: #173c73;
}

.zsm-login-security-note span {
    display: inline;
    color: #46617f;
}

.zsm-login-footer {
    margin-top: 14px;
    color: #6f7b8c;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 640px) {
    .zsm-login-shell {
        padding: 32px 12px 30px;
    }

    .zsm-login-card {
        border-radius: 16px;
    }

    .zsm-login-brand {
        padding: 26px 22px 14px;
    }

    .zsm-login-brand h1 {
        font-size: 36px;
    }

    .zsm-login-form-wrap {
        padding: 8px 22px 28px;
    }
}


/* =========================================================
   v3.4.3 — Madrasatu Zayd Global Navy / Gold / Cream Theme
   ========================================================= */
.zsm-fe {
    --zsm-bg: #fbf8f1;
    --zsm-card: #fffdf8;
    --zsm-text: #12284b;
    --zsm-muted: #667085;
    --zsm-border: #e4d7bb;
    --zsm-blue: #123d73;
    --zsm-purple: #c8942f;
    --zsm-green: #c8942f;
    --zsm-orange: #d6a441;
    --zsm-red: #9d3d35;
}

.zsm-fe-hero {
    background: linear-gradient(135deg, #0d2d55, #173f72);
    border: 1px solid #cda24d;
    box-shadow: 0 16px 38px rgba(13,45,85,.16);
}

.zsm-fe-nav {
    border-color: #e1d3b5;
    background: #fffdf8;
}

.zsm-fe-nav a {
    color: #17365f;
}

.zsm-fe-nav a:hover,
.zsm-fe-nav a.active {
    background: #f7edd8;
    color: #0d2d55;
}

.zsm-fe-nav a.active {
    box-shadow: inset 0 -2px 0 #c8942f;
}

.zsm-fe-card,
.zsm-fe-panel {
    border-color: #e4d7bb;
    background: #fffdf8;
}

.zsm-fe-card-blue,
.zsm-fe-card-purple,
.zsm-fe-card-green,
.zsm-fe-card-orange {
    border-left-color: #c8942f !important;
}

.zsm-fe-card-red {
    border-left-color: #9d3d35 !important;
}

.zsm-fe-status-new,
.zsm-fe-status-reviewed,
.zsm-fe-status-enrolled,
.zsm-fe-status-active,
.zsm-fe-status-inactive {
    background: #f7edd8 !important;
    color: #17365f !important;
    border: 1px solid #e2c98e;
}

.zsm-fe-notice {
    border-left-color: #c8942f;
    background: #fff8e8;
    color: #17365f;
}

.zsm-fe-button,
.zsm-fe .button-primary,
.zsm-fe button[type="submit"],
.zsm-fe input[type="submit"] {
    background: #123d73;
    border-color: #123d73;
    color: #fff;
}

.zsm-fe-button:hover,
.zsm-fe .button-primary:hover,
.zsm-fe button[type="submit"]:hover,
.zsm-fe input[type="submit"]:hover {
    background: #0d2d55;
    border-color: #c8942f;
    color: #fff;
}

.zsm-fe a {
    color: #174d8b;
}

.zsm-fe table thead th {
    background: #f8f1e3;
    color: #17365f;
}

.zsm-fe input:focus,
.zsm-fe select:focus,
.zsm-fe textarea:focus {
    border-color: #c8942f !important;
    box-shadow: 0 0 0 2px rgba(200,148,47,.14);
    outline: none;
}

/* Public website navigation: automatically-added Admin item. */
.zsm-public-admin-link > a {
    display: inline-block;
    padding: 8px 16px !important;
    border: 1px solid #c8942f !important;
    border-radius: 7px;
    background: #123d73 !important;
    color: #fff8e8 !important;
    font-weight: 750;
    text-decoration: none;
}
.zsm-public-admin-link > a:hover {
    background: #0d2d55 !important;
    color: #f2c76e !important;
}

/* Login branding refinements. */
.zsm-login-brand h1 {
    color: #12284b;
    font-size: clamp(34px, 5vw, 44px);
}
.zsm-login-kicker,
.zsm-login-ornament {
    color: #c8942f;
}
#zsm-login-form .button-primary {
    background: linear-gradient(180deg, #123d73, #0d2d55);
    border: 1px solid #c8942f;
}
#zsm-login-form .button-primary:hover {
    background: #0a274b;
}
.zsm-login-security-note {
    border-color: #e1c98f;
    background: #fff8e8;
}
.zsm-login-security-note strong,
.zsm-login-security-note span {
    color: #17365f;
}

/* Hide the WordPress page title around the portal where common themes expose it. */
body:has(.zsm-login-shell) .entry-title,
body:has(.zsm-login-shell) .wp-block-post-title,
body:has(.zsm-fe) .entry-title,
body:has(.zsm-fe) .wp-block-post-title {
    display: none !important;
}


/* v3.4.4 — Public Admin Nav sizing */
.zsm-public-admin-link > a {
    padding: 7px 14px !important;
    line-height: 1.25 !important;
    min-height: 0 !important;
}


/* v3.4.5 — Admin Users (login design intentionally untouched) */
.zsm-fe-user-management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
    gap: 16px;
    align-items: start;
}

.zsm-fe-add-user .zsm-fe-field {
    margin-top: 12px;
}

.zsm-fe-user-management-grid td small {
    display: block;
    margin-top: 3px;
    color: var(--zsm-muted);
}

.zsm-fe-user-management-grid td form {
    margin: 0;
}

.zsm-fe-user-management-grid td button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #c8942f;
    border-radius: 7px;
    background: #fff8e8;
    color: #123d73;
    font-weight: 750;
    cursor: pointer;
}

.zsm-fe-role-guide {
    margin-top: 16px;
}

.zsm-fe-role-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.zsm-fe-role-cards > div {
    padding: 16px;
    border: 1px solid #e4d7bb;
    border-radius: 10px;
    background: #fff8e8;
}

.zsm-fe-role-cards strong,
.zsm-fe-role-cards span {
    display: block;
}

.zsm-fe-role-cards strong {
    color: #123d73;
    margin-bottom: 5px;
}

.zsm-fe-role-cards span {
    color: #667085;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .zsm-fe-user-management-grid,
    .zsm-fe-role-cards {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   v3.4.6 — APPROVED LOGIN DESIGN
   DO NOT REDESIGN WITHOUT EXPLICIT APPROVAL.
   Navy + Gold Islamic theme with approved mosque/book emblem.
   ========================================================= */

body:has(.zsm-approved-login-shell) .entry-title,
body:has(.zsm-approved-login-shell) .wp-block-post-title,
body:has(.zsm-approved-login-shell) header.entry-header,
body:has(.zsm-approved-login-shell) .page-header {
    display: none !important;
}

.zsm-approved-login-shell {
    position: relative;
    min-height: 100vh;
    margin: 0 calc(50% - 50vw);
    padding: 72px 20px 34px;
    background:
        linear-gradient(rgba(255,250,240,.12), rgba(255,250,240,.12)),
        url("../images/madrasatu-zayd-approved-login-bg.png") center top / cover no-repeat;
    color: #102b52;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

.zsm-approved-login-card {
    position: relative;
    z-index: 2;
    width: min(640px, calc(100vw - 34px));
    margin: 0 auto;
    border: 1px solid #e1c37c;
    border-radius: 25px;
    background: rgba(255,253,249,.985);
    box-shadow: 0 24px 55px rgba(30,44,64,.16);
    overflow: hidden;
}

.zsm-approved-login-brand {
    padding: 40px 46px 14px;
    text-align: center;
}

.zsm-approved-login-logo {
    display: block;
    width: 142px;
    height: auto;
    margin: 0 auto 6px;
    object-fit: contain;
}

.zsm-approved-login-kicker {
    margin-top: 2px;
    color: #c58a21;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .18em;
}

.zsm-approved-login-brand h1 {
    margin: 14px 0 10px;
    color: #102b52;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 50px;
    line-height: .98;
    font-weight: 700;
    letter-spacing: -.02em;
}

.zsm-approved-login-brand p {
    margin: 13px 0 0;
    color: #2d4563;
    font-size: 16px;
}

.zsm-approved-gold-divider,
.zsm-approved-footer-ornament {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    width: 210px;
    margin: 14px auto 0;
    color: #d39a2d;
}

.zsm-approved-gold-divider span,
.zsm-approved-footer-ornament span {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d39a2d);
}

.zsm-approved-gold-divider span:last-child,
.zsm-approved-footer-ornament span:last-child {
    background: linear-gradient(90deg, #d39a2d, transparent);
}

.zsm-approved-login-form-wrap {
    padding: 6px 48px 38px;
}

.zsm-approved-signin-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    margin: 4px 0 9px;
}

.zsm-approved-signin-title span {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d39a2d);
}

.zsm-approved-signin-title span:last-child {
    background: linear-gradient(90deg, #d39a2d, transparent);
}

.zsm-approved-signin-title h2 {
    margin: 0;
    color: #102b52;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 33px;
    line-height: 1;
}

.zsm-approved-login-subtext {
    margin: 0 0 25px;
    color: #2d4563;
    text-align: center;
    font-size: 15px;
}

.zsm-approved-login-shell #zsm-login-form p {
    margin: 0 0 17px;
}

.zsm-approved-login-shell #zsm-login-form label {
    display: block;
    margin: 0 0 7px;
    color: #102b52;
    font-size: 14px;
    font-weight: 800;
}

.zsm-approved-login-shell #zsm-login-form input[type="text"],
.zsm-approved-login-shell #zsm-login-form input[type="password"] {
    width: 100%;
    min-height: 57px;
    box-sizing: border-box;
    border: 1px solid #aebfd3;
    border-radius: 9px;
    background: #fff;
    color: #102b52;
    padding: 12px 15px;
    font: inherit;
    box-shadow: inset 0 1px 2px rgba(16,43,82,.025);
}

.zsm-approved-login-shell #zsm-login-form input[type="text"]:focus,
.zsm-approved-login-shell #zsm-login-form input[type="password"]:focus {
    border-color: #d39a2d;
    outline: 2px solid rgba(211,154,45,.15);
}

.zsm-approved-login-shell #zsm-login-form .login-remember {
    margin-top: 1px;
    margin-bottom: 18px;
}

.zsm-approved-login-shell #zsm-login-form .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #102b52;
    font-size: 14px;
    font-weight: 650;
}

.zsm-approved-login-shell #zsm-login-form .login-remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #123d73;
}

.zsm-approved-login-shell #zsm-login-form .login-submit {
    margin: 0;
}

.zsm-approved-login-shell #zsm-login-form .button-primary {
    width: 100%;
    min-height: 62px;
    border: 2px solid #d39a2d;
    border-radius: 11px;
    background: linear-gradient(90deg, #0c2f5b, #123f75);
    color: #efbd5c;
    font-size: 21px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(12,47,91,.16);
}

.zsm-approved-login-shell #zsm-login-form .button-primary:hover {
    background: #0b2b53;
    color: #ffd37a;
}

.zsm-approved-or-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 25px 0 18px;
    color: #53657a;
    font-size: 13px;
}

.zsm-approved-or-divider span {
    height: 1px;
    background: #d7dce3;
}

.zsm-approved-login-links {
    text-align: center;
}

.zsm-approved-login-links a {
    color: #102b52;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
}

.zsm-approved-login-links a:hover {
    color: #c58a21;
}

.zsm-approved-security-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 27px;
    padding: 17px 18px;
    border: 1px solid #e0bd6b;
    border-radius: 11px;
    background: #fff7e7;
    color: #102b52;
    line-height: 1.45;
}

.zsm-approved-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 2px solid #123d73;
    border-radius: 50%;
    color: #123d73;
    font-size: 18px;
    font-weight: 900;
}

.zsm-approved-security-note strong {
    color: #102b52;
}

.zsm-approved-security-note span {
    color: #2d4563;
}

.zsm-approved-login-footer {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100vw - 30px));
    margin: 16px auto 0;
    text-align: center;
    color: #102b52;
}

.zsm-approved-login-footer p {
    margin: 7px 0 0;
    font-size: 13px;
}

.zsm-approved-login-footer .zsm-approved-footer-ornament {
    width: 220px;
    margin-top: 0;
}

.zsm-login-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #c85a4e;
    border-radius: 8px;
    background: #fff4f1;
    color: #8f2e26;
    font-size: 14px;
    font-weight: 650;
}

/* Keep the approved visual intact on standard desktop screens.
   On small screens, preserve the same navy/gold style without horizontal overflow. */
@media (max-width: 700px) {
    .zsm-approved-login-shell {
        padding: 24px 10px 26px;
        background-position: center top;
    }

    .zsm-approved-login-card {
        width: min(100%, 560px);
        border-radius: 18px;
    }

    .zsm-approved-login-brand {
        padding: 28px 22px 10px;
    }

    .zsm-approved-login-logo {
        width: 112px;
    }

    .zsm-approved-login-brand h1 {
        font-size: 38px;
    }

    .zsm-approved-login-form-wrap {
        padding: 6px 22px 28px;
    }

    .zsm-approved-signin-title h2 {
        font-size: 29px;
    }
}


/* =========================================================
   v3.4.7 — Approved Login Cleanup
   Keep the approved login card unchanged.
   Remove duplicated background content and normal site footer.
   ========================================================= */

.zsm-approved-login-shell {
    min-height: 100vh;
    padding-bottom: 34px;
    background:
        linear-gradient(180deg, rgba(255,250,240,.82), rgba(255,250,240,.96));
}

/* Rebuild only the decorative mosque/lantern side scenery from the
   approved design. The center remains clean so no ghost text/card repeats. */
.zsm-approved-login-shell::before,
.zsm-approved-login-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(27vw, 320px);
    background-repeat: no-repeat;
    background-size: cover;
    opacity: .95;
    pointer-events: none;
    z-index: 0;
}

.zsm-approved-login-shell::before {
    left: 0;
    background-image: url("../images/madrasatu-zayd-login-left.png");
    background-position: left top;
}

.zsm-approved-login-shell::after {
    right: 0;
    background-image: url("../images/madrasatu-zayd-login-right.png");
    background-position: right top;
}

/* Soft center arch/cream treatment without reusing the screenshot card. */
.zsm-approved-login-shell {
    background-color: #fbf5e8;
}

.zsm-approved-login-shell > * {
    position: relative;
    z-index: 2;
}

/* Hide the normal website footer and surrounding theme chrome only
   when the approved School Admin login is present. */
body:has(.zsm-approved-login-shell) footer,
body:has(.zsm-approved-login-shell) .site-footer,
body:has(.zsm-approved-login-shell) #colophon,
body:has(.zsm-approved-login-shell) .wp-site-blocks > footer,
body:has(.zsm-approved-login-shell) .footer,
body:has(.zsm-approved-login-shell) .footer-widgets {
    display: none !important;
}

/* Remove extra bottom space some themes reserve for a footer. */
body:has(.zsm-approved-login-shell),
body:has(.zsm-approved-login-shell) #page,
body:has(.zsm-approved-login-shell) .site,
body:has(.zsm-approved-login-shell) main,
body:has(.zsm-approved-login-shell) .site-main,
body:has(.zsm-approved-login-shell) .entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure only one approved login footer is visible. */
.zsm-approved-login-footer {
    display: block !important;
    margin-bottom: 0 !important;
}

/* Keep the approved card entirely above any theme decoration. */
.zsm-approved-login-card {
    position: relative;
    z-index: 3;
}

/* Mobile: reduce decorative side panels without changing the card design. */
@media (max-width: 760px) {
    .zsm-approved-login-shell::before,
    .zsm-approved-login-shell::after {
        width: 18vw;
        opacity: .55;
    }
}


/* =========================================================
   v3.4.8 — Signed-in header visibility fix
   ========================================================= */
.zsm-fe-hero .zsm-fe-user,
.zsm-fe-hero .zsm-fe-user *,
.zsm-fe-hero .zsm-fe-userbar,
.zsm-fe-hero .zsm-fe-userbar * {
    color: #fff8e8 !important;
}

.zsm-fe-hero .zsm-fe-user a,
.zsm-fe-hero .zsm-fe-userbar a {
    color: #f1c96f !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 750;
}

.zsm-fe-hero .zsm-fe-user a:hover,
.zsm-fe-hero .zsm-fe-userbar a:hover {
    color: #ffffff !important;
}

.zsm-fe-hero .zsm-fe-user strong,
.zsm-fe-hero .zsm-fe-userbar strong {
    color: #ffffff !important;
}


/* =========================================================
   v3.4.9 — Locked admin header refinements
   - Smaller dashboard portal title
   - Login page intentionally unchanged
   ========================================================= */
.zsm-fe-hero h1,
.zsm-fe-hero .zsm-fe-title {
    font-size: clamp(28px, 2.7vw, 42px) !important;
    line-height: 1.12 !important;
}


/* Approved public-header logo presentation */
.zsm-site-logo,
.zsm-header-logo {
    max-height: 118px;
    width: auto;
    object-fit: contain;
}


/* v3.5.0 — Simple Teacher Attendance */
.zsm-attendance-head { margin: 24px 0 14px; }
.zsm-attendance-head h2 { margin: 4px 0; color: #123d73; font-size: 30px; }
.zsm-attendance-head p { margin: 0; color: #667085; }
.zsm-attendance-picker { margin-bottom: 16px; }
.zsm-attendance-picker-grid {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 14px;
    align-items: end;
}
.zsm-attendance-picker-grid label { font-weight: 750; color: #123d73; }
.zsm-attendance-picker-grid select,
.zsm-attendance-picker-grid input {
    display: block; width: 100%; margin-top: 6px; min-height: 44px;
    border: 1px solid #d9c89f; border-radius: 8px; background: #fff; padding: 8px 10px;
}
.zsm-attendance-list { border-top: 1px solid #eadfc7; }
.zsm-attendance-row {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 14px 4px; border-bottom: 1px solid #eee5d2;
}
.zsm-attendance-student { display: flex; align-items: center; gap: 12px; color: #123d73; }
.zsm-attendance-number {
    display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
    border-radius: 50%; background: #fff8e8; border: 1px solid #d9b45d; font-weight: 800;
}
.zsm-attendance-options { display: flex; gap: 8px; }
.zsm-attendance-options label {
    display: inline-flex; align-items: center; gap: 6px; min-width: 100px;
    padding: 9px 12px; border: 1px solid #d9c89f; border-radius: 8px;
    background: #fffdf8; color: #123d73; font-weight: 750; cursor: pointer;
}
.zsm-attendance-options input { accent-color: #123d73; }
.zsm-attendance-save { display: flex; justify-content: flex-end; margin-top: 18px; }
.zsm-attendance-save button { min-width: 180px; }
@media (max-width: 760px) {
    .zsm-attendance-picker-grid { grid-template-columns: 1fr; }
    .zsm-attendance-row { align-items: flex-start; flex-direction: column; }
    .zsm-attendance-options { width: 100%; }
    .zsm-attendance-options label { flex: 1; justify-content: center; }
}

/* v3.5.2 — Existing staff role change */
.zsm-user-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.zsm-role-change-form { display:flex; gap:7px; align-items:center; }
.zsm-role-change-form select {
    min-height:38px; max-width:215px; padding:6px 8px;
    border:1px solid #d9c89f; border-radius:7px;
    background:#fffdf8; color:#123d73;
}
@media (max-width:760px) {
    .zsm-role-change-form { width:100%; flex-direction:column; align-items:stretch; }
    .zsm-role-change-form select { max-width:none; width:100%; }
}


/* v3.5.3 — Admin Attendance Reports */
.zsm-attendance-report-filters { margin-bottom: 16px; }
.zsm-attendance-report-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}
.zsm-attendance-report-grid label {
    color: #123d73;
    font-weight: 750;
}
.zsm-attendance-report-grid input,
.zsm-attendance-report-grid select {
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 6px;
    box-sizing: border-box;
    border: 1px solid #d9c89f;
    border-radius: 7px;
    background: #fffdf8;
    padding: 7px 9px;
}
.zsm-attendance-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.zsm-attendance-summary > div {
    padding: 16px;
    border: 1px solid #dfc98f;
    border-radius: 10px;
    background: #fff8e8;
}
.zsm-attendance-summary span,
.zsm-attendance-summary strong {
    display: block;
}
.zsm-attendance-summary span {
    color: #667085;
    font-size: 12px;
}
.zsm-attendance-summary strong {
    margin-top: 4px;
    color: #123d73;
    font-size: 24px;
}
.zsm-attendance-status {
    display: inline-block;
    min-width: 70px;
    padding: 5px 10px;
    border-radius: 999px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}
.zsm-attendance-status.present {
    background: #f7edd8;
    border: 1px solid #d9b45d;
    color: #123d73;
}
.zsm-attendance-status.absent {
    background: #fff0ed;
    border: 1px solid #dca398;
    color: #8f2e26;
}
@media (max-width: 1100px) {
    .zsm-attendance-report-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}
@media (max-width: 640px) {
    .zsm-attendance-report-grid,
    .zsm-attendance-summary {
        grid-template-columns: 1fr;
    }
}


/* v3.5.4 — Front-end Classes / Groups management */
.zsm-fe-class-layout {
    display: grid;
    grid-template-columns: minmax(0,1.8fr) minmax(300px,.75fr);
    gap: 16px;
    align-items: start;
}
.zsm-fe-add-class label,
.zsm-fe-class-form-grid label {
    display: block;
    color: #123d73;
    font-weight: 750;
    margin-top: 12px;
}
.zsm-fe-add-class input,
.zsm-fe-add-class select,
.zsm-fe-class-form-grid input,
.zsm-fe-class-form-grid select {
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 6px;
    box-sizing: border-box;
    border: 1px solid #d9c89f;
    border-radius: 7px;
    background: #fffdf8;
    padding: 7px 9px;
}
.zsm-fe-class-form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(220px,1fr));
    gap: 12px 16px;
}
.zsm-fe-class-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.zsm-fe-class-actions a,
.zsm-fe-class-actions button,
.zsm-class-check-toolbar button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #d2ae58;
    border-radius: 7px;
    background: #fff8e8;
    color: #123d73;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}
.zsm-fe-class-actions form { margin: 0; }
.zsm-fe-class-actions form button { color: #8f2e26; }
.zsm-fe-class-layout td small {
    display: block;
    margin-top: 4px;
    color: #667085;
}
.zsm-class-ready {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.zsm-class-ready.ready {
    background: #f7edd8;
    border: 1px solid #d9b45d;
    color: #123d73;
}
.zsm-class-ready.not-ready {
    background: #fff4e5;
    border: 1px solid #e0bd6b;
    color: #8a5c0a;
}
.zsm-class-check-toolbar {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px;
}
.zsm-class-assignment-panel { margin-bottom: 16px; }

@media (max-width: 980px) {
    .zsm-fe-class-layout,
    .zsm-fe-class-form-grid {
        grid-template-columns: 1fr;
    }
}


/* v3.6.1 — Manual New Registration */
.zsm-fe-head-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.zsm-fe-primary-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background: #123d73;
    border: 1px solid #c99122;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
}
.zsm-fe-new-registration {
    margin-bottom: 20px;
}
.zsm-fe-new-registration h4 {
    color: #123d73;
    margin: 18px 0 8px;
}
.zsm-fe-registration-parent-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}
.zsm-fe-field-wide {
    grid-column: 1 / -1;
}
.zsm-fe-registration-children-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}
.zsm-fe-registration-children-head h4 {
    margin-bottom: 3px;
}
.zsm-fe-registration-children-head p {
    margin: 0;
    color: #667085;
}
.zsm-fe-registration-child-list {
    display: grid;
    gap: 12px;
}
.zsm-fe-registration-child {
    border: 1px solid #e2cf9f;
    border-radius: 10px;
    background: #fffdf8;
    padding: 14px;
}
.zsm-fe-registration-child-title {
    color: #123d73;
    font-weight: 800;
    margin-bottom: 8px;
}
.zsm-fe-registration-child-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr .6fr 1.5fr .8fr;
    gap: 10px;
}
.zsm-fe-registration-child-grid .zsm-fe-field-wide {
    grid-column: 1 / -1;
}
.zsm-fe-new-registration input,
.zsm-fe-new-registration select,
.zsm-fe-new-registration textarea {
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 980px) {
    .zsm-fe-registration-parent-grid,
    .zsm-fe-registration-child-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}
@media (max-width: 620px) {
    .zsm-fe-registration-parent-grid,
    .zsm-fe-registration-child-grid {
        grid-template-columns: 1fr;
    }
}


/* v3.6.2 — Progressive student entry */
.zsm-fe-registration-child.is-hidden {
    display: none;
}
.zsm-fe-registration-child-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.zsm-fe-registration-child-header .zsm-fe-registration-child-title {
    margin-bottom: 0;
}
.zsm-fe-remove-student {
    border: 1px solid #d9b45d;
    border-radius: 7px;
    background: #fff8e8;
    color: #8f2e26;
    min-height: 34px;
    padding: 5px 10px;
    font-weight: 750;
    cursor: pointer;
}
.zsm-fe-add-student-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 4px;
    flex-wrap: wrap;
}
.zsm-fe-secondary-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #c99122;
    border-radius: 8px;
    background: #fff8e8;
    color: #123d73;
    font-weight: 800;
    cursor: pointer;
}
.zsm-fe-secondary-button:disabled {
    opacity: .6;
    cursor: default;
}
#zsm-registration-student-count {
    color: #667085;
    font-size: 13px;
}


/* v3.6.6 — Teacher account linkage */
#zsm-teacher-link-field {
    padding: 10px 0 2px;
}
#zsm-teacher-link-field small {
    display: block;
    margin-top: 6px;
    color: #667085;
    line-height: 1.4;
}


/* v3.6.7 — Front-end Master Roster */
.zsm-fe-master-roster-panel {
    padding: 22px;
}
.zsm-fe-master-filters {
    display: grid;
    grid-template-columns: minmax(230px, 1.4fr) repeat(4, minmax(150px, .8fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 24px;
}
.zsm-fe-master-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.zsm-fe-secondary-link {
    display: inline-flex;
    min-height: 42px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #123d73 !important;
    font-weight: 800;
    text-decoration: none !important;
}
.zsm-fe-print-roster {
    margin-left: auto;
}
.zsm-fe-master-roster {
    border-top: 1px solid #e5d4ab;
    padding-top: 24px;
}
.zsm-fe-master-roster-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid #d9e0ea;
}
.zsm-fe-master-roster-head h2 {
    margin: 0 0 5px;
}
.zsm-fe-master-roster-head p {
    margin: 0;
    color: #667085;
}
.zsm-fe-master-roster-date {
    text-align: right;
}
.zsm-fe-master-roster-date span,
.zsm-fe-master-teacher-head span,
.zsm-fe-master-class-count span {
    display: block;
    color: #64748b;
    font-size: 12px;
}
.zsm-fe-master-roster-date strong {
    display: block;
    margin-top: 3px;
    font-size: 16px;
}
.zsm-fe-master-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 200px));
    gap: 12px;
    padding: 20px 0;
    border-bottom: 2px solid #cdd8e6;
}
.zsm-fe-master-summary > div {
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    background: #f8fafc;
    padding: 14px;
}
.zsm-fe-master-summary span {
    display: block;
    color: #64748b;
    font-size: 13px;
}
.zsm-fe-master-summary strong {
    display: block;
    margin-top: 4px;
    color: #123d73;
    font-size: 22px;
}
.zsm-fe-master-teacher-section {
    padding: 24px 0 6px;
    border-bottom: 2px solid #d5deea;
}
.zsm-fe-master-teacher-section:last-child {
    border-bottom: 0;
}
.zsm-fe-master-teacher-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 12px;
}
.zsm-fe-master-teacher-head h3 {
    margin: 2px 0 0;
    color: #102f5e;
    font-size: 24px;
}
.zsm-fe-master-teacher-phone {
    text-align: right;
}
.zsm-fe-master-class-block {
    overflow: hidden;
    margin: 12px 0 18px;
    border: 1px solid #d4dce7;
    border-radius: 10px;
    background: #fff;
}
.zsm-fe-master-class-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 13px 15px;
    background: #f8fafc;
    border-bottom: 1px solid #d4dce7;
}
.zsm-fe-master-class-title h4 {
    margin: 0 0 3px;
    color: #123d73;
    font-size: 18px;
}
.zsm-fe-master-class-title p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}
.zsm-fe-master-class-count {
    min-width: 72px;
    text-align: right;
}
.zsm-fe-master-class-count strong {
    display: block;
    margin-top: 2px;
    font-size: 20px;
    color: #123d73;
}
.zsm-fe-master-empty-class {
    margin: 0;
    padding: 18px 15px;
    color: #667085;
}
.zsm-fe-master-table {
    margin: 0;
    width: 100%;
    border-collapse: collapse;
}
.zsm-fe-master-table th,
.zsm-fe-master-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e4e9f0;
    text-align: left;
    vertical-align: top;
}
.zsm-fe-master-table th {
    background: #fbf5e8;
    color: #123d73;
    font-size: 12px;
}
.zsm-fe-master-table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 1050px) {
    .zsm-fe-master-filters {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
    .zsm-fe-master-search {
        grid-column: 1 / -1;
    }
    .zsm-fe-print-roster {
        margin-left: 0;
    }
}
@media (max-width: 650px) {
    .zsm-fe-master-filters {
        grid-template-columns: 1fr;
    }
    .zsm-fe-master-search {
        grid-column: auto;
    }
    .zsm-fe-master-summary {
        grid-template-columns: 1fr;
    }
    .zsm-fe-master-roster-head,
    .zsm-fe-master-teacher-head,
    .zsm-fe-master-class-title {
        align-items: flex-start;
        flex-direction: column;
    }
    .zsm-fe-master-roster-date,
    .zsm-fe-master-teacher-phone,
    .zsm-fe-master-class-count {
        text-align: left;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }
    .zsm-fe-master-roster,
    .zsm-fe-master-roster * {
        visibility: visible !important;
    }
    .zsm-fe-master-roster {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border-top: 0;
        padding: 0;
    }
    .zsm-fe-master-teacher-section,
    .zsm-fe-master-class-block {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .zsm-fe-master-roster-head {
        margin-top: 0;
    }
}

/* v3.6.8 — Front-end class details */
.zsm-class-detail-title{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;border-bottom:1px solid #d9e1ec;padding-bottom:22px;margin-bottom:20px}.zsm-class-detail-title h2{margin:4px 0 4px}.zsm-class-detail-title p{margin:0}.zsm-class-detail-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.zsm-class-detail-actions a,.zsm-class-detail-actions button{display:inline-block;border:1px solid #d6a335;border-radius:8px;background:#fffaf0;color:#073c78;font-weight:700;padding:10px 13px;text-decoration:none;cursor:pointer}.zsm-class-detail-actions button{font:inherit}.zsm-class-detail-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}.zsm-class-detail-stats>div{background:#f7f9fc;border:1px solid #d9e1ec;border-radius:10px;padding:14px}.zsm-class-detail-stats span{display:block;color:#66758d;font-size:12px;margin-bottom:6px}.zsm-class-detail-stats strong{display:block;color:#062e62}.zsm-class-detail-schedule{padding:12px 14px;background:#fffaf0;border:1px solid #ead3a0;border-radius:8px}.zsm-class-roster-heading{display:flex;align-items:end;justify-content:space-between;margin-top:24px}.zsm-class-roster-heading h3{margin-bottom:2px}.zsm-class-roster-heading p{margin-top:0}.print-only{display:none}@media(max-width:900px){.zsm-class-detail-title{display:block}.zsm-class-detail-actions{justify-content:flex-start;margin-top:16px}.zsm-class-detail-stats{grid-template-columns:1fr 1fr}}@media print{.no-print,.zsm-fe-header,.zsm-fe-nav{display:none!important}.print-only{display:block}.zsm-class-detail-panel{box-shadow:none!important;border:none!important}.zsm-class-detail-stats{grid-template-columns:repeat(5,1fr)}body{background:#fff!important}}


/* v3.6.9 — Class roster print visibility fix
   The Master Roster print rule hides body * globally. Re-enable the Class Detail
   panel explicitly when printing a class roster, while keeping portal chrome hidden. */
@media print {
    .zsm-class-detail-panel,
    .zsm-class-detail-panel * {
        visibility: visible !important;
    }

    .zsm-class-detail-panel {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 18px !important;
        box-shadow: none !important;
        border: 0 !important;
        background: #fff !important;
    }

    .zsm-class-detail-panel .no-print,
    .zsm-fe-header,
    .zsm-fe-nav,
    .zsm-fe-section-head.no-print {
        display: none !important;
    }

    .zsm-class-detail-panel .print-only {
        display: block !important;
    }

    .zsm-class-detail-panel .zsm-fe-table-wrap {
        overflow: visible !important;
    }

    .zsm-class-detail-panel table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .zsm-class-detail-panel th,
    .zsm-class-detail-panel td {
        border: 1px solid #cfd7e2 !important;
        padding: 8px 9px !important;
        color: #000 !important;
        background: #fff !important;
    }

    .zsm-class-detail-panel .zsm-class-detail-stats {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 8px !important;
    }

    .zsm-class-detail-panel .zsm-class-detail-stats > div {
        box-shadow: none !important;
        background: #fff !important;
        border: 1px solid #cfd7e2 !important;
    }

    .zsm-class-detail-panel .zsm-fe-status {
        color: #000 !important;
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
    }

    @page {
        margin: 0.5in;
    }
}


/* v3.6.10 — Reliable Class Roster Printing
   Use the same clone-to-body strategy already proven for teacher rosters and receipts.
   This bypasses theme/receipt/master-roster print rules that otherwise hide portal content. */
#zsm-print-class-roster-clone {
    display: none;
}

@media print {
    body.zsm-class-roster-print-mode {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.zsm-class-roster-print-mode > * {
        display: none !important;
    }

    body.zsm-class-roster-print-mode > #zsm-print-class-roster-clone {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
    }

    body.zsm-class-roster-print-mode > #zsm-print-class-roster-clone,
    body.zsm-class-roster-print-mode > #zsm-print-class-roster-clone * {
        visibility: visible !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone .zsm-class-detail-panel {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone .no-print {
        display: none !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone .print-only {
        display: block !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone .zsm-class-detail-title {
        display: block !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid #999 !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone .zsm-class-detail-title h2 {
        margin: 3px 0 4px !important;
        color: #000 !important;
        font-size: 24px !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone .zsm-fe-kicker,
    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone p,
    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone span,
    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone strong {
        color: #000 !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone .zsm-class-detail-stats {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 7px !important;
        margin: 12px 0 14px !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone .zsm-class-detail-stats > div {
        padding: 8px !important;
        border: 1px solid #aaa !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone .zsm-class-roster-heading {
        margin-top: 12px !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone .zsm-fe-table-wrap {
        overflow: visible !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone table {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 11px !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone thead {
        display: table-header-group !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone th,
    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone td {
        display: table-cell !important;
        padding: 6px 7px !important;
        border: 1px solid #999 !important;
        background: #fff !important;
        color: #000 !important;
        text-align: left !important;
    }

    body.zsm-class-roster-print-mode #zsm-print-class-roster-clone .zsm-fe-status {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #000 !important;
    }

    @page {
        margin: 0.45in;
        size: portrait;
    }
}

/* v3.6.23: dedicated logged-out admin portal */
body.zsm-admin-login-page header,
body.zsm-admin-login-page footer,
body.zsm-admin-login-page .site-header,
body.zsm-admin-login-page .site-footer,
body.zsm-admin-login-page #masthead,
body.zsm-admin-login-page #colophon,
body.zsm-admin-login-page .wp-site-blocks > header,
body.zsm-admin-login-page .wp-site-blocks > footer,
body.zsm-admin-login-page .elementor-location-header,
body.zsm-admin-login-page .elementor-location-footer {
    display: none !important;
}
body.zsm-admin-login-page { margin: 0 !important; }
body.zsm-admin-login-page .site,
body.zsm-admin-login-page .site-content,
body.zsm-admin-login-page #content,
body.zsm-admin-login-page #primary,
body.zsm-admin-login-page main,
body.zsm-admin-login-page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.zsm-admin-login-page .zsm-admin-wrap {
    margin-top: 0 !important;
    padding-top: 12px !important;
}
body.zsm-admin-login-page .zsm-login-shell { margin-top: 0 !important; }


/* =========================================================
   v3.6.24 — TRUE STANDALONE ADMIN SIGN-IN
   Public theme header/footer markup never renders on logged-out portal.
   Approved navy/gold visual is preserved; vertical spacing is tightened
   so username, password, remember-me and sign-in are visible on desktop.
   ========================================================= */
html:has(body.zsm-admin-login-standalone),
body.zsm-admin-login-standalone {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
    background: #fbf5e8 !important;
}

body.zsm-admin-login-standalone #wpadminbar {
    display: none !important;
}

body.zsm-admin-login-standalone .zsm-approved-login-shell {
    min-height: 100vh;
    margin: 0 !important;
    padding: 12px 18px 16px !important;
    box-sizing: border-box;
}

body.zsm-admin-login-standalone .zsm-approved-login-card {
    width: min(620px, calc(100vw - 32px));
    border-radius: 22px;
}

body.zsm-admin-login-standalone .zsm-approved-login-brand {
    padding: 16px 40px 6px;
}

body.zsm-admin-login-standalone .zsm-approved-login-logo {
    width: 94px;
    margin-bottom: 2px;
}

body.zsm-admin-login-standalone .zsm-approved-login-kicker {
    font-size: 12px;
    letter-spacing: .17em;
}

body.zsm-admin-login-standalone .zsm-approved-login-brand h1 {
    margin: 8px 0 5px;
    font-size: 39px;
    line-height: .98;
}

body.zsm-admin-login-standalone .zsm-approved-gold-divider {
    width: 180px;
    margin-top: 8px;
}

body.zsm-admin-login-standalone .zsm-approved-login-brand p {
    margin-top: 7px;
    font-size: 14px;
}

body.zsm-admin-login-standalone .zsm-approved-login-form-wrap {
    padding: 2px 42px 22px;
}

body.zsm-admin-login-standalone .zsm-approved-signin-title {
    margin: 1px 0 5px;
}

body.zsm-admin-login-standalone .zsm-approved-signin-title h2 {
    font-size: 29px;
}

body.zsm-admin-login-standalone .zsm-approved-login-subtext {
    margin-bottom: 12px;
    font-size: 14px;
}

body.zsm-admin-login-standalone .zsm-login-error {
    margin-bottom: 10px;
    padding: 9px 12px;
}

body.zsm-admin-login-standalone .zsm-approved-login-shell #zsm-login-form p {
    margin-bottom: 10px;
}

body.zsm-admin-login-standalone .zsm-approved-login-shell #zsm-login-form label {
    margin-bottom: 4px;
    font-size: 13px;
}

body.zsm-admin-login-standalone .zsm-approved-login-shell #zsm-login-form input[type="text"],
body.zsm-admin-login-standalone .zsm-approved-login-shell #zsm-login-form input[type="password"] {
    min-height: 46px;
    padding: 9px 13px;
}

body.zsm-admin-login-standalone .zsm-approved-login-shell #zsm-login-form .login-remember {
    margin-top: 0;
    margin-bottom: 10px;
}

body.zsm-admin-login-standalone .zsm-approved-login-shell #zsm-login-form .button-primary {
    min-height: 52px;
    font-size: 19px;
}

body.zsm-admin-login-standalone .zsm-approved-or-divider {
    margin: 13px 0 9px;
}

body.zsm-admin-login-standalone .zsm-approved-login-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

body.zsm-admin-login-standalone .zsm-approved-login-links a {
    font-size: 13px;
}

body.zsm-admin-login-standalone .zsm-approved-back-site {
    color: #53657a;
    font-weight: 650;
}

body.zsm-admin-login-standalone .zsm-approved-security-note {
    margin-top: 12px;
    padding: 10px 13px;
    gap: 10px;
    font-size: 12px;
}

body.zsm-admin-login-standalone .zsm-approved-shield {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 15px;
}

body.zsm-admin-login-standalone .zsm-approved-login-footer {
    margin-top: 8px;
}

body.zsm-admin-login-standalone .zsm-approved-login-footer .zsm-approved-footer-ornament {
    width: 175px;
}

body.zsm-admin-login-standalone .zsm-approved-login-footer p {
    margin-top: 4px;
    font-size: 11px;
}

@media (max-height: 740px) and (min-width: 701px) {
    body.zsm-admin-login-standalone .zsm-approved-security-note,
    body.zsm-admin-login-standalone .zsm-approved-login-footer {
        display: none !important;
    }

    body.zsm-admin-login-standalone .zsm-approved-login-brand {
        padding-top: 10px;
    }

    body.zsm-admin-login-standalone .zsm-approved-login-logo {
        width: 82px;
    }

    body.zsm-admin-login-standalone .zsm-approved-login-brand h1 {
        font-size: 35px;
    }
}

@media (max-width: 700px) {
    body.zsm-admin-login-standalone .zsm-approved-login-shell {
        padding: 10px 8px 18px !important;
    }

    body.zsm-admin-login-standalone .zsm-approved-login-brand {
        padding: 18px 20px 6px;
    }

    body.zsm-admin-login-standalone .zsm-approved-login-logo {
        width: 90px;
    }

    body.zsm-admin-login-standalone .zsm-approved-login-brand h1 {
        font-size: 34px;
    }

    body.zsm-admin-login-standalone .zsm-approved-login-form-wrap {
        padding: 2px 20px 20px;
    }
}


/* v3.6.25 — locked two-line school name */
.zsm-approved-login-brand h1.zsm-approved-school-name {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}
.zsm-approved-school-name .zsm-school-name-line1,
.zsm-approved-school-name .zsm-school-name-line2 {
    display: block;
    text-align: center;
    line-height: .98;
}
body.zsm-admin-login-standalone .zsm-approved-school-name .zsm-school-name-line1 {
    font-size: 44px;
    letter-spacing: -.025em;
}
body.zsm-admin-login-standalone .zsm-approved-school-name .zsm-school-name-line2 {
    font-size: 28px;
    letter-spacing: -.015em;
    margin-top: 4px;
}
@media (max-height: 740px) and (min-width: 701px) {
    body.zsm-admin-login-standalone .zsm-approved-school-name .zsm-school-name-line1 {
        font-size: 40px;
    }
    body.zsm-admin-login-standalone .zsm-approved-school-name .zsm-school-name-line2 {
        font-size: 25.5px;
    }
}
@media (max-width: 700px) {
    body.zsm-admin-login-standalone .zsm-approved-school-name .zsm-school-name-line1 {
        font-size: 38px;
    }
    body.zsm-admin-login-standalone .zsm-approved-school-name .zsm-school-name-line2 {
        font-size: 24px;
    }
}
@media (max-width: 420px) {
    body.zsm-admin-login-standalone .zsm-approved-school-name .zsm-school-name-line1 {
        font-size: 34px;
    }
    body.zsm-admin-login-standalone .zsm-approved-school-name .zsm-school-name-line2 {
        font-size: 21px;
    }
}


/* =========================================================
   v3.6.26 — LOCKED BLENDED LOGIN COMPOSITION
   - Center the login composition vertically and horizontally.
   - Remove the outer cream/gold rectangular card treatment.
   - Let the login content blend directly into the approved arch background.
   - Preserve the approved two-line school name and all login behavior.
   ========================================================= */
body.zsm-admin-login-standalone .zsm-approved-login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px !important;
}

body.zsm-admin-login-standalone .zsm-approved-login-card {
    width: min(620px, calc(100vw - 32px));
    margin: 0 auto;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

body.zsm-admin-login-standalone .zsm-approved-login-brand,
body.zsm-admin-login-standalone .zsm-approved-login-form-wrap {
    background: transparent !important;
}

body.zsm-admin-login-standalone .zsm-approved-login-footer {
    margin-top: 12px;
}

/* The small security notice remains readable but visually lighter so the
   login itself, rather than another rectangular panel, stays dominant. */
body.zsm-admin-login-standalone .zsm-approved-security-note {
    background: rgba(255, 247, 231, .48);
    box-shadow: none;
}

@media (max-height: 760px) and (min-width: 701px) {
    body.zsm-admin-login-standalone .zsm-approved-login-shell {
        justify-content: flex-start;
        padding-top: 12px !important;
    }
}

@media (max-width: 700px) {
    body.zsm-admin-login-standalone .zsm-approved-login-shell {
        justify-content: flex-start;
        padding: 14px 10px 20px !important;
    }
}


/* v3.6.27 — Teacher Attendance History */
.zsm-teacher-attendance-history { margin-top: 18px; }
.zsm-teacher-history-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin: 16px 0;
}
.zsm-teacher-history-filter label { font-weight: 750; color: #123d73; }
.zsm-teacher-history-filter input {
    display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
    border: 1px solid #cfd8e6; border-radius: 8px; background: #fff;
}
.zsm-teacher-history-summary {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 18px;
}
.zsm-teacher-history-summary > div {
    border: 1px solid #eadfc7; border-left: 4px solid #c99121;
    border-radius: 10px; padding: 13px 16px; background: #fffdf8;
}
.zsm-teacher-history-summary span { display: block; color: #667085; font-size: 13px; }
.zsm-teacher-history-summary strong { display: block; margin-top: 4px; color: #0b2f5b; font-size: 24px; }
.zsm-teacher-history-day { border-top: 1px solid #eadfc7; padding: 16px 0; }
.zsm-teacher-history-day-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: #123d73; }
.zsm-teacher-history-day-head span { color: #667085; }
.zsm-teacher-history-table th:last-child, .zsm-teacher-history-table td:last-child { width: 150px; }
@media (max-width: 700px) {
    .zsm-teacher-history-filter, .zsm-teacher-history-summary { grid-template-columns: 1fr; }
    .zsm-teacher-history-day-head { flex-direction: column; }
    .zsm-teacher-history-table-wrap { overflow-x: auto; }
}


/* v3.6.28 — Compact teacher attendance history by date */
.zsm-teacher-history-days {
    display: grid;
    gap: 10px;
}
.zsm-teacher-history-day {
    border: 1px solid #eadfc7;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    background: #fffdf8;
}
.zsm-teacher-history-day-head {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 14px 16px;
}
.zsm-history-date strong {
    color: #0b2f5b;
    font-size: 16px;
}
.zsm-history-day-totals {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.zsm-history-present-count,
.zsm-history-absent-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}
.zsm-history-present-count {
    background: #eef8e9;
    color: #176b32;
}
.zsm-history-absent-count {
    background: #fff0ee;
    color: #a52a22;
}
.zsm-history-toggle {
    min-width: 122px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #17477e;
    border-radius: 7px;
    background: #17477e;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.zsm-history-toggle:hover,
.zsm-history-toggle:focus {
    filter: brightness(.95);
}
.zsm-teacher-history-table-wrap {
    border-top: 1px solid #eadfc7;
    padding: 0 16px 16px;
}
.zsm-teacher-history-table-wrap[hidden] {
    display: none !important;
}
@media (max-width: 760px) {
    .zsm-teacher-history-day-head {
        grid-template-columns: 1fr;
    }
    .zsm-history-day-totals {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


/* =========================================================
   v3.6.33 — Compact portal header + registration cleanup
   ========================================================= */
.zsm-fe-hero {
    padding: 24px 30px !important;
    min-height: 0 !important;
}

.zsm-fe-hero h1,
.zsm-fe-hero .zsm-fe-title {
    font-size: clamp(24px, 2.1vw, 30px) !important;
    line-height: 1.08 !important;
    margin: 0 !important;
}

.zsm-fe-hero p {
    margin-top: 7px !important;
    font-size: 14px !important;
}

.zsm-fe-kicker {
    margin-bottom: 6px !important;
}

@media (max-width: 700px) {
    .zsm-fe-hero {
        padding: 20px 22px !important;
    }

    .zsm-fe-hero h1,
    .zsm-fe-hero .zsm-fe-title {
        font-size: 24px !important;
    }
}


/* =========================================================
   v3.6.34 — Admin Users layout refinement
   Staff Accounts first; Add Staff User below.
   This removes the cramped side-by-side layout while preserving
   all account-management behavior.
   ========================================================= */
.zsm-admin-users-grid,
.zsm-fe-admin-users-grid,
.zsm-admin-user-layout,
.zsm-fe-user-admin-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    align-items: start !important;
}

/* Let both panels use the full portal width. */
.zsm-admin-users-grid > *,
.zsm-fe-admin-users-grid > *,
.zsm-admin-user-layout > *,
.zsm-fe-user-admin-grid > * {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Give the account table breathing room and avoid the cramped action column. */
.zsm-admin-users-grid .zsm-fe-table,
.zsm-fe-admin-users-grid .zsm-fe-table,
.zsm-admin-user-layout .zsm-fe-table,
.zsm-fe-user-admin-grid .zsm-fe-table {
    width: 100% !important;
}

/* Add Staff User form becomes a clean multi-column form on desktop. */
.zsm-admin-users-grid form .zsm-fe-form-grid,
.zsm-fe-admin-users-grid form .zsm-fe-form-grid,
.zsm-admin-user-layout form .zsm-fe-form-grid,
.zsm-fe-user-admin-grid form .zsm-fe-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px 18px !important;
}

/* Password and role fields can comfortably span two columns. */
.zsm-admin-users-grid form .zsm-fe-form-grid > .zsm-span-2,
.zsm-fe-admin-users-grid form .zsm-fe-form-grid > .zsm-span-2,
.zsm-admin-user-layout form .zsm-fe-form-grid > .zsm-span-2,
.zsm-fe-user-admin-grid form .zsm-fe-form-grid > .zsm-span-2 {
    grid-column: span 2 !important;
}

@media (max-width: 1000px) {
    .zsm-admin-users-grid form .zsm-fe-form-grid,
    .zsm-fe-admin-users-grid form .zsm-fe-form-grid,
    .zsm-admin-user-layout form .zsm-fe-form-grid,
    .zsm-fe-user-admin-grid form .zsm-fe-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 650px) {
    .zsm-admin-users-grid form .zsm-fe-form-grid,
    .zsm-fe-admin-users-grid form .zsm-fe-form-grid,
    .zsm-admin-user-layout form .zsm-fe-form-grid,
    .zsm-fe-user-admin-grid form .zsm-fe-form-grid {
        grid-template-columns: 1fr !important;
    }

    .zsm-admin-users-grid form .zsm-fe-form-grid > *,
    .zsm-fe-admin-users-grid form .zsm-fe-form-grid > *,
    .zsm-admin-user-layout form .zsm-fe-form-grid > *,
    .zsm-fe-user-admin-grid form .zsm-fe-form-grid > * {
        grid-column: auto !important;
    }
}


/* =========================================================
   v3.6.35 — Admin Users vertical layout
   Targets the ACTUAL wrapper: .zsm-fe-user-management-grid
   ========================================================= */
.zsm-fe-user-management-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

.zsm-fe-user-management-grid > .zsm-fe-panel {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Staff table gets the full available width. */
.zsm-fe-user-management-grid .zsm-fe-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
}

.zsm-fe-user-management-grid .zsm-fe-table-wrap table {
    width: 100% !important;
    min-width: 0 !important;
}

/* Give the action column room so controls do not feel squeezed. */
.zsm-fe-user-management-grid .zsm-user-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}

.zsm-fe-user-management-grid .zsm-role-change-form {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.zsm-fe-user-management-grid .zsm-role-change-form select {
    width: auto !important;
    min-width: 190px !important;
}

/* Add Staff User: clean horizontal form below Staff Accounts. */
.zsm-fe-add-user form {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 18px !important;
    row-gap: 14px !important;
    align-items: start !important;
}

.zsm-fe-add-user form > .zsm-fe-field {
    margin-top: 0 !important;
    min-width: 0 !important;
}

.zsm-fe-add-user form > .zsm-fe-field:nth-of-type(5),
.zsm-fe-add-user form > .zsm-fe-field:nth-of-type(6) {
    grid-column: span 2 !important;
}

.zsm-fe-add-user form > #zsm-teacher-link-field {
    grid-column: 1 / -1 !important;
}

.zsm-fe-add-user form > script {
    display: none !important;
}

.zsm-fe-add-user form > .zsm-fe-form-actions {
    grid-column: 1 / -1 !important;
    margin-top: 0 !important;
}

@media (max-width: 950px) {
    .zsm-fe-add-user form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .zsm-fe-add-user form {
        grid-template-columns: 1fr !important;
    }

    .zsm-fe-add-user form > .zsm-fe-field,
    .zsm-fe-add-user form > #zsm-teacher-link-field,
    .zsm-fe-add-user form > .zsm-fe-form-actions {
        grid-column: 1 !important;
    }

    .zsm-fe-user-management-grid .zsm-role-change-form {
        flex-wrap: wrap !important;
    }

    .zsm-fe-user-management-grid .zsm-role-change-form select {
        min-width: 0 !important;
        width: 100% !important;
    }
}


/* v3.6.36 — Staff account Delete action */
.zsm-user-actions .zsm-delete-staff-button {
    background: #c93434 !important;
    border-color: #c93434 !important;
    color: #fff !important;
}

.zsm-user-actions .zsm-delete-staff-button:hover,
.zsm-user-actions .zsm-delete-staff-button:focus {
    background: #a92323 !important;
    border-color: #a92323 !important;
}

.zsm-user-actions .zsm-delete-staff-form {
    margin: 0 !important;
}


/* =========================================================
   v3.6.37 — Keep Admin User actions on one row
   Role selector + Change Role + Disable/Enable + Delete
   ========================================================= */
.zsm-user-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
}

.zsm-user-actions form {
    margin: 0 !important;
}

.zsm-user-actions .zsm-role-change-form {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
}

.zsm-user-actions .zsm-role-change-form select {
    min-width: 215px !important;
    width: 215px !important;
}

.zsm-user-actions button {
    white-space: nowrap !important;
}

@media (max-width: 980px) {
    .zsm-user-actions {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 700px) {
    .zsm-user-actions .zsm-role-change-form {
        flex-wrap: wrap !important;
    }

    .zsm-user-actions .zsm-role-change-form select {
        min-width: 0 !important;
        width: 100% !important;
    }
}


/* =========================================================
   v3.6.38 — Admin Users action cell: true single-row desktop layout
   ========================================================= */

/* Give the final table column enough space for all four controls. */
.zsm-fe-user-management-grid .zsm-fe-table th:last-child,
.zsm-fe-user-management-grid .zsm-fe-table td:last-child {
    width: 470px !important;
    min-width: 470px !important;
}

/* Slightly tighten the other columns so the action area has breathing room. */
.zsm-fe-user-management-grid .zsm-fe-table th:nth-child(1),
.zsm-fe-user-management-grid .zsm-fe-table td:nth-child(1) {
    width: 150px !important;
}

.zsm-fe-user-management-grid .zsm-fe-table th:nth-child(2),
.zsm-fe-user-management-grid .zsm-fe-table td:nth-child(2) {
    width: 190px !important;
}

.zsm-fe-user-management-grid .zsm-fe-table th:nth-child(3),
.zsm-fe-user-management-grid .zsm-fe-table td:nth-child(3) {
    width: 145px !important;
}

.zsm-fe-user-management-grid .zsm-fe-table th:nth-child(4),
.zsm-fe-user-management-grid .zsm-fe-table td:nth-child(4) {
    width: 130px !important;
}

.zsm-fe-user-management-grid .zsm-fe-table th:nth-child(5),
.zsm-fe-user-management-grid .zsm-fe-table td:nth-child(5) {
    width: 95px !important;
}

/* Actual control row. */
.zsm-user-actions-single-row {
    display: grid !important;
    grid-template-columns: 215px auto auto auto !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: start !important;
    width: max-content !important;
    max-width: none !important;
}

.zsm-user-actions-single-row .zsm-role-change-form {
    display: contents !important;
}

.zsm-user-actions-single-row .zsm-role-change-form select {
    grid-column: 1 !important;
    width: 215px !important;
    min-width: 215px !important;
    max-width: 215px !important;
}

.zsm-user-actions-single-row .zsm-role-change-form button {
    grid-column: 2 !important;
}

.zsm-user-actions-single-row > form:nth-of-type(2) {
    grid-column: 3 !important;
}

.zsm-user-actions-single-row > form:nth-of-type(3) {
    grid-column: 4 !important;
}

.zsm-user-actions-single-row form,
.zsm-user-actions-single-row button {
    margin: 0 !important;
    white-space: nowrap !important;
}

/* Tablet/mobile can wrap gracefully. */
@media (max-width: 1100px) {
    .zsm-fe-user-management-grid .zsm-fe-table th:last-child,
    .zsm-fe-user-management-grid .zsm-fe-table td:last-child {
        width: auto !important;
        min-width: 0 !important;
    }

    .zsm-user-actions-single-row {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }

    .zsm-user-actions-single-row .zsm-role-change-form {
        display: flex !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
}


/* =========================================================
   v3.6.39 — Classes / Groups vertical layout
   Classes / Groups full width on top; Add Class / Group below.
   ========================================================= */

/* Known Classes page two-column wrappers used by the frontend admin. */
.zsm-fe-class-management-grid,
.zsm-fe-classes-grid,
.zsm-class-management-grid,
.zsm-fe-classes-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

.zsm-fe-class-management-grid > *,
.zsm-fe-classes-grid > *,
.zsm-class-management-grid > *,
.zsm-fe-classes-layout > * {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Let the class table use the full portal width. */
.zsm-fe-class-management-grid .zsm-fe-table-wrap,
.zsm-fe-classes-grid .zsm-fe-table-wrap,
.zsm-class-management-grid .zsm-fe-table-wrap,
.zsm-fe-classes-layout .zsm-fe-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
}

/* Add Class form: clean two-column arrangement when it sits below the table. */
.zsm-fe-add-class form,
.zsm-fe-add-group form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 18px !important;
    align-items: start !important;
}

.zsm-fe-add-class form > *,
.zsm-fe-add-group form > * {
    min-width: 0 !important;
}

.zsm-fe-add-class form .zsm-fe-form-actions,
.zsm-fe-add-group form .zsm-fe-form-actions {
    grid-column: 1 / -1 !important;
}

@media (max-width: 700px) {
    .zsm-fe-add-class form,
    .zsm-fe-add-group form {
        grid-template-columns: 1fr !important;
    }

    .zsm-fe-add-class form .zsm-fe-form-actions,
    .zsm-fe-add-group form .zsm-fe-form-actions {
        grid-column: 1 !important;
    }
}


/* =========================================================
   v3.6.40 — Classes / Groups layout correction
   Exact wrapper: .zsm-fe-class-layout
   ========================================================= */
.zsm-fe-class-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

.zsm-fe-class-layout > .zsm-fe-panel {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Classes / Groups panel stays first and uses full width. */
.zsm-fe-class-layout > .zsm-fe-panel:first-child {
    grid-column: 1 / -1 !important;
}

/* Add Class / Group panel is placed below and uses full width. */
.zsm-fe-class-layout > .zsm-fe-add-class {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
}

/* Existing form grid becomes a clean two-column form below the table. */
.zsm-fe-class-layout .zsm-fe-add-class .zsm-fe-class-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 18px !important;
    width: 100% !important;
}

.zsm-fe-class-layout .zsm-fe-add-class .zsm-fe-class-form-grid > * {
    min-width: 0 !important;
}

.zsm-fe-class-layout .zsm-fe-add-class .zsm-fe-form-actions {
    grid-column: 1 / -1 !important;
}

@media (max-width: 700px) {
    .zsm-fe-class-layout .zsm-fe-add-class .zsm-fe-class-form-grid {
        grid-template-columns: 1fr !important;
    }

    .zsm-fe-class-layout .zsm-fe-add-class .zsm-fe-form-actions {
        grid-column: 1 !important;
    }
}


/* =========================================================
   v3.6.41 — Teachers vertical layout
   Teachers full width on top; Add Teacher below.
   ========================================================= */
.zsm-fe-teacher-layout,
.zsm-teacher-layout,
.zsm-fe-teachers-layout,
.zsm-fe-teacher-management-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

.zsm-fe-teacher-layout > *,
.zsm-teacher-layout > *,
.zsm-fe-teachers-layout > *,
.zsm-fe-teacher-management-grid > * {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Teachers table gets full width. */
.zsm-fe-teacher-layout .zsm-fe-table-wrap,
.zsm-teacher-layout .zsm-fe-table-wrap,
.zsm-fe-teachers-layout .zsm-fe-table-wrap,
.zsm-fe-teacher-management-grid .zsm-fe-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
}

/* Add Teacher form becomes a clean two-column form below the table. */
.zsm-fe-add-teacher form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 18px !important;
    align-items: start !important;
}

.zsm-fe-add-teacher form > * {
    min-width: 0 !important;
}

.zsm-fe-add-teacher .zsm-fe-form-actions {
    grid-column: 1 / -1 !important;
}

@media (max-width: 700px) {
    .zsm-fe-add-teacher form {
        grid-template-columns: 1fr !important;
    }

    .zsm-fe-add-teacher .zsm-fe-form-actions {
        grid-column: 1 !important;
    }
}

/* v3.6.42 Attendance Reports — approved Design 2 */
.zsm-attendance-report-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.zsm-attendance-print-button{background:#fff!important;color:#123d73!important;border:1px solid #c8d5e7!important;padding:12px 18px!important;border-radius:8px!important;font-weight:700!important}
.zsm-attendance-report-grid{display:grid!important;grid-template-columns:1.15fr 1fr 1fr 1.15fr 1.15fr auto!important;gap:14px!important;align-items:end!important}
.zsm-attendance-report-grid label{display:flex!important;flex-direction:column!important;gap:7px!important;font-weight:700!important}
.zsm-attendance-dashboard-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.zsm-attendance-dashboard-summary>div{background:#fff;border:1px solid #e7d5ad;border-radius:12px;padding:17px 20px;box-shadow:0 5px 14px rgba(25,54,90,.05)}
.zsm-attendance-dashboard-summary span{display:block;color:#64748b;font-size:13px;margin-bottom:7px}.zsm-attendance-dashboard-summary strong{font-size:26px;color:#082e60}
.zsm-attendance-legend{display:flex;gap:8px;flex-wrap:wrap}.zsm-attendance-legend span{padding:7px 11px;border-radius:8px;font-size:12px;font-weight:700}
.zsm-attendance-legend .present{background:#edf8ed;color:#17723a}.zsm-attendance-legend .absent{background:#fff0ee;color:#b42318}.zsm-attendance-legend .none{background:#f3f4f6;color:#667085}
.zsm-attendance-matrix-wrap{width:100%;overflow-x:auto;border:1px solid #d9e0e8;border-radius:9px}.zsm-attendance-matrix{width:100%;border-collapse:separate;border-spacing:0;min-width:900px;background:#fff}
.zsm-attendance-matrix th,.zsm-attendance-matrix td{border-right:1px solid #dfe5ec;border-bottom:1px solid #e5e9ef;padding:11px 10px;text-align:center;white-space:nowrap}
.zsm-attendance-matrix th{background:#f7f1e4;color:#0b3568;text-transform:uppercase;font-size:12px}.zsm-attendance-matrix th small{display:block;margin-top:4px;text-transform:none;font-weight:500;color:#64748b}
.zsm-attendance-matrix .student-col{text-align:left;min-width:205px;position:sticky;left:0;z-index:2;background:#fff}.zsm-attendance-matrix thead .student-col{z-index:3;background:#f7f1e4}.zsm-attendance-matrix .student-col small{display:block;margin-top:3px;color:#667085;font-weight:400}
.zsm-attendance-matrix .date-col{min-width:68px}.zsm-attendance-matrix .attendance-cell{font-weight:800}.zsm-attendance-matrix .is-present{background:#edf8ed;color:#16733b}.zsm-attendance-matrix .is-absent{background:#fff0ee;color:#b42318}.zsm-attendance-matrix .is-none{color:#98a2b3;background:#fafafa}
.zsm-attendance-matrix .student-present{color:#17723a;font-weight:800}.zsm-attendance-matrix .student-absent{color:#b42318;font-weight:800}.zsm-attendance-matrix .student-percent{min-width:125px;color:#0b4ca3}
.zsm-attendance-progress{display:block;height:6px;background:#e9edf3;border-radius:99px;margin-top:6px;overflow:hidden}.zsm-attendance-progress i{display:block;height:100%;background:#2f70c9;border-radius:99px}
@media(max-width:1050px){.zsm-attendance-report-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.zsm-attendance-dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.zsm-attendance-report-grid{grid-template-columns:1fr!important}.zsm-attendance-dashboard-summary{grid-template-columns:1fr 1fr}}
@media print{.zsm-fe-nav,.zsm-fe-back-button,.zsm-attendance-print-button,.zsm-attendance-report-filters{display:none!important}.zsm-attendance-matrix-wrap{overflow:visible!important;border:0!important}.zsm-attendance-matrix{min-width:0!important;font-size:9px}.zsm-attendance-matrix th,.zsm-attendance-matrix td{padding:5px!important}}


/* =========================================================
   v3.6.43 — Compact Attendance rows
   Admin Attendance Reports + Teacher Attendance History
   ========================================================= */

/* ADMIN ATTENDANCE REPORT
   Reduce vertical height so more students fit on one screen. */
.zsm-attendance-matrix th,
.zsm-attendance-matrix td {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    line-height: 1.15 !important;
}

.zsm-attendance-matrix .student-col {
    min-height: 0 !important;
}

.zsm-attendance-matrix .student-col strong {
    font-size: 13px !important;
    line-height: 1.15 !important;
}

.zsm-attendance-matrix .attendance-cell,
.zsm-attendance-matrix .student-present,
.zsm-attendance-matrix .student-absent,
.zsm-attendance-matrix .student-percent {
    font-size: 12px !important;
}

.zsm-attendance-progress {
    height: 5px !important;
    margin-top: 4px !important;
}

/* TEACHER ATTENDANCE HISTORY
   Use the same compact row density when a teacher expands a saved date. */
.zsm-teacher-history-table th,
.zsm-teacher-history-table td {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    line-height: 1.15 !important;
}

.zsm-teacher-history-table td strong {
    font-size: 13px !important;
}

.zsm-teacher-history-table .zsm-attendance-status {
    padding: 4px 9px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
}

/* Keep the compact date-summary rows tidy too. */
.zsm-teacher-history-day-head {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}

.zsm-history-present-count,
.zsm-history-absent-count {
    min-height: 30px !important;
    padding: 4px 9px !important;
    font-size: 12px !important;
}

.zsm-history-toggle {
    min-height: 34px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* Compact the teacher's current attendance-taking roster slightly as well,
   without shrinking the Present / Absent controls too much. */
.zsm-teacher-attendance-list .zsm-attendance-row,
.zsm-fe-attendance-list .zsm-attendance-row {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

@media (max-width: 700px) {
    .zsm-attendance-matrix th,
    .zsm-attendance-matrix td,
    .zsm-teacher-history-table th,
    .zsm-teacher-history-table td {
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }
}


/* =========================================================
   v3.6.44 — Teacher Attendance History: approved Design 2
   ========================================================= */
.zsm-teacher-history-design2 {
    margin-top: 18px !important;
}

.zsm-teacher-history-filter-design2 {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto !important;
    gap: 14px !important;
    align-items: end !important;
    margin: 16px 0 18px !important;
}

.zsm-teacher-history-filter-design2 label {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    font-weight: 700 !important;
}

.zsm-teacher-history-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.zsm-teacher-history-dashboard-summary > div {
    background: #fff;
    border: 1px solid #e7d5ad;
    border-radius: 12px;
    padding: 15px 18px;
    box-shadow: 0 5px 14px rgba(25,54,90,.05);
}

.zsm-teacher-history-dashboard-summary span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 6px;
}

.zsm-teacher-history-dashboard-summary strong {
    color: #082e60;
    font-size: 24px;
}

.zsm-teacher-history-matrix-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin: 8px 0 12px;
}

.zsm-teacher-history-matrix-head h3 {
    margin: 0 0 3px;
}

.zsm-teacher-history-matrix-head p {
    margin: 0;
    color: #667085;
}

.zsm-teacher-attendance-matrix .row-number-col {
    width: 48px;
    min-width: 48px;
    text-align: center;
}

.zsm-teacher-attendance-matrix th,
.zsm-teacher-attendance-matrix td {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

@media (max-width: 900px) {
    .zsm-teacher-history-dashboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zsm-teacher-history-matrix-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .zsm-teacher-history-filter-design2 {
        grid-template-columns: 1fr !important;
    }

    .zsm-teacher-history-dashboard-summary {
        grid-template-columns: 1fr 1fr;
    }
}

/* Dashboard refresh - v3.6.59 */
.zsm-fe-dashboard-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin: 4px 0 18px;
}

.zsm-fe-dashboard-head h2 {
    margin: 0;
    font-size: 31px;
    line-height: 1.05;
    color: #082856;
}

.zsm-fe-dashboard-head p {
    margin: 7px 0 0;
    color: #68758a;
}

.zsm-fe-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.zsm-fe-dashboard-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 118px;
    padding: 18px;
    border: 1px solid #e3d4b8;
    border-radius: 16px;
    background: #fffdfa;
    box-shadow: 0 6px 16px rgba(57, 43, 18, .045);
}

.zsm-fe-dashboard-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -4px;
}

.zsm-fe-dashboard-stat > div > span,
.zsm-fe-dashboard-stat > div > strong {
    display: block;
}

.zsm-fe-dashboard-stat > div > span {
    color: #263b5e;
    font-size: 13px;
    font-weight: 800;
}

.zsm-fe-dashboard-stat > div > strong {
    margin-top: 7px;
    color: #082856;
    font-size: 31px;
    line-height: 1;
}

.zsm-fe-dashboard-stat-active .zsm-fe-dashboard-stat-icon { background: #e5f6e9; color: #187c43; }
.zsm-fe-dashboard-stat-inactive .zsm-fe-dashboard-stat-icon { background: #f9e6e3; color: #a9382e; }
.zsm-fe-dashboard-stat-total .zsm-fe-dashboard-stat-icon { background: #e8f0fb; color: #174e8e; }
.zsm-fe-dashboard-stat-family .zsm-fe-dashboard-stat-icon { background: #fbf0da; color: #a06b0b; letter-spacing: 0; }

.zsm-fe-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
    gap: 18px;
    align-items: stretch;
}

.zsm-fe-dashboard-layout .zsm-fe-panel {
    border-color: #e3d4b8;
    background: #fffdfa;
    box-shadow: 0 6px 16px rgba(57, 43, 18, .04);
}

.zsm-fe-dashboard-layout .zsm-fe-panel-head > span {
    color: #6a7890;
    font-size: 12px;
}

.zsm-fe-program-panel {
    min-height: 430px;
}

.zsm-fe-program-content {
    display: grid;
    grid-template-columns: minmax(210px, .9fr) minmax(220px, 1.1fr);
    gap: 28px;
    align-items: center;
    min-height: 340px;
}

.zsm-fe-donut {
    position: relative;
    width: min(250px, 88%);
    aspect-ratio: 1;
    margin: 12px auto;
    border-radius: 50%;
}

.zsm-fe-donut::after {
    content: '';
    position: absolute;
    inset: 23%;
    border-radius: 50%;
    background: #fffdfa;
}

.zsm-fe-donut-center {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #082856;
}

.zsm-fe-donut-center strong {
    font-size: 32px;
    line-height: 1;
}

.zsm-fe-donut-center span {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 800;
}

.zsm-fe-program-legend > div {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto auto;
    gap: 9px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #eee6d8;
}

.zsm-fe-program-legend > div:last-child { border-bottom: 0; }

.zsm-fe-program-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.zsm-fe-program-name {
    color: #294263;
    line-height: 1.35;
}

.zsm-fe-program-legend strong {
    color: #082856;
}

.zsm-fe-program-legend small {
    color: #8a7761;
}

.zsm-fe-dashboard-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.zsm-fe-tuition-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.zsm-fe-tuition-card {
    padding: 14px 13px;
    border: 1px solid #d8e1eb;
    border-radius: 11px;
}

.zsm-fe-tuition-card span,
.zsm-fe-tuition-card strong,
.zsm-fe-tuition-card small {
    display: block;
}

.zsm-fe-tuition-card span {
    font-size: 12px;
    font-weight: 800;
}

.zsm-fe-tuition-card strong {
    margin-top: 5px;
    color: #082856;
    font-size: 20px;
}

.zsm-fe-tuition-card small {
    margin-top: 3px;
    color: #738096;
    font-size: 11px;
}

.zsm-fe-tuition-card.is-collected { background: #edf9f0; border-color: #cce8d3; color: #197345; }
.zsm-fe-tuition-card.is-outstanding { background: #eef5fc; border-color: #ccdff2; color: #245c9b; }
.zsm-fe-tuition-card.is-unpaid { background: #fcf0ee; border-color: #efd2cd; color: #a7372f; }
.zsm-fe-tuition-card.is-unpaid strong { color: #a52d26; }

.zsm-fe-dashboard-compact-panel {
    padding-top: 19px;
    padding-bottom: 14px;
}

.zsm-fe-dashboard-list a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #eee6d8;
    color: #082856;
    text-decoration: none;
}

.zsm-fe-dashboard-list a:last-child { border-bottom: 0; }

.zsm-fe-dashboard-list a:hover strong { text-decoration: underline; }

.zsm-fe-dashboard-list span strong,
.zsm-fe-dashboard-list span small {
    display: block;
}

.zsm-fe-dashboard-list span small {
    margin-top: 3px;
    color: #7a8798;
    font-size: 12px;
}

.zsm-fe-dashboard-list b {
    flex: 0 0 auto;
    color: #082856;
    font-size: 12px;
}

.zsm-fe-dashboard-actions {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #e3d4b8;
    border-radius: 16px;
    background: #fffdfa;
    box-shadow: 0 6px 16px rgba(57, 43, 18, .04);
}

.zsm-fe-dashboard-actions h3 {
    margin: 0 0 14px;
    color: #082856;
    font-size: 18px;
}

.zsm-fe-dashboard-actions > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.zsm-fe-dashboard-actions a {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 10px;
    border: 1px solid #e2d5bf;
    border-radius: 12px;
    background: #fbf5e9;
    color: #133a69;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
}

.zsm-fe-dashboard-actions a:nth-child(2) { background: #eef5fc; border-color: #cedef0; }
.zsm-fe-dashboard-actions a:nth-child(3) { background: #f5f0fb; border-color: #ded2ee; }
.zsm-fe-dashboard-actions a:nth-child(4) { background: #edf8f0; border-color: #cfe5d5; }
.zsm-fe-dashboard-actions a:nth-child(5) { background: #fbf5e9; }

.zsm-fe-dashboard-actions a:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 13px rgba(8, 40, 86, .08);
}

.zsm-fe-dashboard-actions a strong {
    font-size: 23px;
    line-height: 1;
}

.zsm-fe-dashboard-actions a span {
    font-size: 12px;
}

@media (max-width: 1050px) {
    .zsm-fe-dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zsm-fe-dashboard-layout { grid-template-columns: 1fr; }
    .zsm-fe-program-panel { min-height: auto; }
    .zsm-fe-dashboard-actions > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .zsm-fe-dashboard-head { flex-direction: column; align-items: stretch; }
    .zsm-fe-program-content { grid-template-columns: 1fr; min-height: auto; }
    .zsm-fe-tuition-cards { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .zsm-fe-dashboard-stats { grid-template-columns: 1fr; }
    .zsm-fe-dashboard-actions > div { grid-template-columns: 1fr 1fr; }
}
