/* =====================================
   GLOBAL
===================================== */

.mms-dashboard-portal {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    font-family: 'Segoe UI', sans-serif;
}

/* =====================================
   SIDEBAR
===================================== */

.mms-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #111827, #1f2937);
    color: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.mms-sidebar h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff
}

.mms-sidebar ul {
    list-style: none;
    padding: 0;
}

.mms-sidebar ul li {
    margin-bottom: 14px;
}

.mms-sidebar ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
}

.mms-sidebar ul li a:hover {
    color: #00c3aa;
}

/* =====================================
   MAIN CONTENT
===================================== */

.mms-main-content {
    flex: 1;
}

/* =====================================
   PROFILE CARD
===================================== */

.mms-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.mms-profile-avatar {
    width: 70px;
    height: 70px;
    background: #1a73e8;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mms-profile-info h2 {
    margin: 0;
    font-size: 20px;
}

.mms-profile-info p {
    margin: 4px 0;
    color: #555;
}

/* =========================
   STUDENT PAYMENT BADGE
========================= */

.mms-payment-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 20px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
}

.mms-payment-paid {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.mms-payment-unpaid {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* =====================================
   MONTH/YEAR FORM INLINE & STYLIZED
===================================== */

.mms-month-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: #1a73e836;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.mms-month-form label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.mms-month-form select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.mms-month-form button {
    padding: 12px 35px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.mms-month-form button:hover {
    background: #155ab6;
}

/* Mobile tweak */
@media (max-width: 500px) {
    .mms-month-form {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 15px;
    }
    .mms-month-form button {
        width: 100%;
    }
}

/* ====================================
   STUDENT SEARCH BAR
===================================== */
.mms-search-input {
    width: 100%;
    padding: 10px 12px !important;
    margin-bottom: 25px !important;
    border-radius: 8px;
    border: 1px solid #ddd;
    height: 40px;
}

@media (max-width: 768px) {
    .mms-search-input {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 12px;
		margin-bottom: 10px !important;
    }
}

/* ================================
   SUMMARY STAT BAR AT TOP 
===============================*/
.mms-summary {
    display: flex;
    gap: 15px;
	margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mms-summary-card {
    flex: 1;
    min-width: 150px;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: solid;
    border-width: 1px;
    border-color: lightgray;
}

.mms-summary-card strong {
    display: block;
    font-size: 22px;
    margin-bottom: 5px;
}

/* =====================================
   SUMMARY CARD IN TEACHERS PORTAL
===================================== */
.mms-summary-card-paid {
    border-left: 4px solid #22c55e;
}

.mms-summary-card-paid strong {
    color: #16a34a;
}

.mms-summary-card-unpaid {
    border-left: 4px solid #ef4444;
}

.mms-summary-card-unpaid strong {
    color: #dc2626;
}

/* =========================
   STUDENT PORTAL SUMMARY CARDS
========================= */

.mms-student-summary-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin: 20px 0 24px;
}

.mms-student-summary-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 18px 20px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
	transition: 0.2s ease;
}

.mms-student-summary-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.mms-student-summary-label {
	font-size: 13px;
	color: #64748b;
	font-weight: 600;
	margin-bottom: 8px;
}

.mms-student-summary-value {
	font-size: 28px;
	line-height: 1.1;
	font-weight: 700;
	color: #0f172a;
}

.mms-student-summary-green {
	color: #16a34a;
}

.mms-student-summary-red {
	color: #dc2626;
}

.mms-student-summary-purple {
	color: #7c3aed;
}

.mms-student-summary-yellow {
	color: #d97706;
}

/* Reschedule status */
.mms-log-item.reschedule {
    border-left: 4px solid #8b5cf6;
    background: #f5f3ff;
}

.mms-log-status.mms-status-reschedule,
.mms-weekly-entry.mms-reschedule {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}
/* =====================================
   ATTENDANCE TABLE
===================================== */

.mms-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.mms-table th,
.mms-table td {
    padding: 12px 14px;
    text-align: left;
}

.mms-table th {
    background: #f3f4f6;
    font-weight: 600;
}

.mms-table tr:nth-child(even) {
    background: #f9fafb;
}

/* Status Colors */

.mms-table td[style*="green"] {
    background: #0f9d58 !important;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
}

.mms-table td[style*="red"] {
    background: #d93025 !important;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
}

.mms-table td[style*="orange"] {
    background: #fbbc04 !important;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
}

/* =========================
   PRIMARY BUTTON
========================= */

.mms-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.mms-primary-btn:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.mms-primary-btn:active {
    transform: translateY(0);
}

.mms-primary-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16), 0 8px 18px rgba(37, 99, 235, 0.28);
}

/* Override aggressive theme styles */
.mms-primary-btn,
.mms-primary-btn:focus,
.mms-primary-btn:visited {
    color: #ffffff !important;
    background: #2563eb !important;
    border: none !important;
}

/* Full width inside form (optional but looks better) */
.mms-manual-lesson-actions .mms-primary-btn {
    width: 100%;
}

/* =====================================
   CHART
===================================== */

.mms-student-chart-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
	margin-top: 24px;
	height: 380px;
}

.mms-student-chart-card h3 {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

/* =====================================
   PAYMENT COLUMN IN TEACHERS PORTAL
===================================== */

.mms-payment-form select {
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
}

.mms-payment-form select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,.15);
    outline: none;
}


.mms-payment-toggle {
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 90px;
}

.mms-payment-toggle.paid {
    background: #22c55e;
    color: #fff;
}

.mms-payment-toggle.unpaid {
    background: #ef4444;
    color: #fff;
}

.mms-payment-toggle:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* =====================================
   CUSTOM LOGIN SYSTEM
===================================== */

.mms-login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a73e8, #0f9d58);
    padding: 20px;
}

.mms-login-card {
    width: 420px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
    animation: mmsFadeIn 0.4s ease-in-out;
}

.mms-login-brand h2 {
    margin-bottom: 5px;
    font-size: 24px;
}

.mms-login-brand p {
    margin-bottom: 25px;
    color: #666;
}

.mms-custom-login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.2s;
}

.mms-custom-login-form input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

.mms-custom-login-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.mms-custom-login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26,115,232,0.3);
}

.mms-login-error {
    background: #fdecea;
    color: #d93025;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Animation */

@keyframes mmsFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */

@media (max-width: 500px) {
    .mms-login-card {
        width: 100%;
        padding: 25px;
    }
}

/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 900px) {

    .mms-dashboard-portal {
        flex-direction: column;
    }

    .mms-sidebar {
        width: 100%;
        border-radius: 12px;
    }

    .mms-status-cards {
        flex-direction: column;
    }

    .mms-profile-card {
        flex-direction: column;
        text-align: center;
    }

    .mms-profile-avatar {
        margin-bottom: 10px;
    }

    .mms-table {
        font-size: 14px;
    }
}

/* ===========================
   ADMIN DASHBOARD
=========================== */

.mms-admin-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.mms-admin-header h2 {
    margin-bottom: 5px;
}

.mms-admin-header p {
    color: #777;
    margin-bottom: 25px;
}

.mms-admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.mms-admin-table th {
    text-align: left;
    padding: 14px;
    background: #f5f7fa;
    font-weight: 600;
}

.mms-admin-table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
}

.mms-progress-bar {
    background: #e9edf3;
    border-radius: 50px;
    overflow: hidden;
    height: 24px;
    position: relative;
}

.mms-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,#4CAF50,#2ecc71);
    color: #fff;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
    font-weight: 600;
}

.mms-progress-bar.mms-good span {
    background: #28a745;
}

.mms-progress-bar.mms-medium span {
    background: #ffc107;
    color: #000;
}

.mms-progress-bar.mms-low span {
    background: #dc3545;
}

@media (max-width: 768px) {
    .mms-admin-wrapper {
        padding: 20px;
    }

    .mms-admin-table table,
    .mms-admin-table thead,
    .mms-admin-table tbody,
    .mms-admin-table th,
    .mms-admin-table td,
    .mms-admin-table tr {
        display: block;
    }

    .mms-admin-table tr {
        margin-bottom: 15px;
        background: #fafafa;
        padding: 15px;
        border-radius: 12px;
    }

    .mms-admin-table th {
        display: none;
    }

    .mms-admin-table td {
        border: none;
        padding: 6px 0;
    }
}

/* ===============================
   STUDENT DRILL DOWN
================================ */

.mms-student-row {
    cursor: pointer;
    transition: 0.2s ease;
}

.mms-student-row:hover {
    background: #f6f7fa;
}

/* Desktop safe layout */
.mms-log-row {
    display: none;
}

.mms-log-wrapper {
    padding: 15px;
}

.mms-log-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    gap: 15px;
    align-items: center;
}

.mms-log-item.attended {
    border-left: 4px solid #2ecc71;
}

.mms-log-item.absent {
    border-left: 4px solid #e74c3c;
}

.mms-log-type {
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
}

.mms-type-regular {
	background: #3498db; /* blue */
}

.mms-type-extra {
	background: #27ae60; /* green */
}

.mms-type-catchup {
	background: #f39c12; /* orange */
}

/* When active, show table row */
.mms-log-row.mms-show-log {
    display: table-row;
}
/* Animated content inside */
.mms-log-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
/* When active */
.mms-log-row.mms-show-log .mms-log-content {
    max-height: 800px;
    opacity: 1;
}

.mms-student-row {
    cursor: pointer;
}

.mms-student-name {
    font-weight: 600;
}

.mms-arrow {
    float: right;
    transition: transform 0.3s ease;
}

.mms-student-row.active .mms-arrow {
    transform: rotate(180deg);
}

/* Mobile compatibility */
@media (max-width: 768px) {
    .mms-log-row.mms-show-log {
        display: block;
    }
}

/* =========================
   MOBILE CARD VIEW
========================= */

@media (max-width: 768px) {

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

    /* Hide table header */
    .mms-admin-table thead {
        display: none;
    }

    /* Student Card */
    .mms-student-row {
        background: #ffffff;
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        cursor: pointer;
        transition: 0.3s ease;
    }

    .mms-student-row:hover {
        transform: translateY(-2px);
    }

    /* Remove normal table layout */
    .mms-student-row td {
        border: none;
        padding: 6px 0;
    }

    /* Label style */
    .mms-student-row td:nth-child(1)::before {
        content: "Student: ";
        font-weight: 600;
        color: #666;
    }

    .mms-student-row td:nth-child(2)::before {
        content: "Total Classes: ";
        font-weight: 600;
        color: #666;
    }

    .mms-student-row td:nth-child(3)::before {
        content: "Present: ";
        font-weight: 600;
        color: #666;
    }

    .mms-student-row td:nth-child(4)::before {
        content: "Attendance: ";
        font-weight: 600;
        color: #666;
    }

    /* Drill-down row */
    .mms-log-row {
        display: none !important;
        margin-top: -10px;
        margin-bottom: 15px;
        padding: 10px 15px;
        background: #f9fafc;
        border-radius: 10px;
    }

    .mms-log-row.mms-show-log {
        display: block !important;
    }

    .mms-log-row td {
        border: none;
        padding: 0;
    }

    /* Log items */
    .mms-log-item {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
        font-size: 14px;
    }

    .mms-log-item:last-child {
        border-bottom: none;
    }
}

/* MANUAL LESSON INLINE FORM */
.mms-manual-lesson-card {
    margin-bottom: 24px;
}

.mms-manual-lesson-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.mms-manual-lesson-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 12px;
}

.mms-manual-lesson-form > div {
    display: flex;
    flex-direction: column;
    min-width: 110px;
    flex: 1 1 70px;
}

.mms-manual-lesson-form label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: #475569;
    font-weight: 600;
    line-height: 1.2;
}

.mms-manual-lesson-form input,
.mms-manual-lesson-form select {
    display: block;
    height: 40px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.mms-manual-lesson-form input:focus,
.mms-manual-lesson-form select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,.15);
    outline: none;
}

.mms-manual-lesson-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-width: 150px;
}

.mms-manual-lesson-actions .mms-primary-btn {
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-weight: 600;
    width: auto;
    min-width: 140px;
    white-space: nowrap;
}

.mms-manual-lesson-form select[name="lesson_type"] {
    min-width: 160px;
}

.mms-manual-lesson-form input[name="lesson_minutes"] {
    min-width: 90px;
    max-width: 110px;
}

@media (max-width: 1200px) {
    .mms-manual-lesson-form {
        flex-wrap: wrap;
    }
}

@media (max-width: 960px) {
    .mms-manual-lesson-form {
        flex-direction: column;
        align-items: stretch;
    }

    .mms-manual-lesson-form > div,
    .mms-manual-lesson-actions {
        width: 100%;
        max-width: 100%;
    }

    .mms-manual-lesson-actions .mms-primary-btn {
        width: 100%;
    }
}
/* ATTENDANCE DASHBOARD NOTICES */
.mms-admin-wrapper .mms-admin-notice {
    margin: 0 0 18px 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    background: #ffffff;
}

.mms-admin-wrapper .mms-admin-notice p {
    margin: 0;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
}

.mms-admin-wrapper .notice-success.mms-admin-notice {
    background: #f0fdf4;
    border-color: #bbf7d0;
    border-left-color: #16a34a;
}

.mms-admin-wrapper .notice-success.mms-admin-notice p {
    color: #166534;
}

.mms-admin-wrapper .notice-error.mms-admin-notice {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #dc2626;
}

.mms-admin-wrapper .notice-error.mms-admin-notice p {
    color: #991b1b;
}

.mms-admin-wrapper .mms-admin-notice .notice-dismiss {
    top: 10px;
    right: 10px;
}

.mms-admin-wrapper .mms-admin-notice .notice-dismiss:before {
    color: #64748b;
}

.mms-admin-wrapper .mms-admin-notice .notice-dismiss:hover:before {
    color: #0f172a;
}

.mms-month-form select[name="payment_filter"] {
    min-width: 120px;
}

/* =========================
   TEACHER LOGIN
========================= */

.mms-login-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.mms-login-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 32px 28px;
    text-align: center;
}

.mms-login-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.mms-login-subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    color: #64748b;
}

.mms-login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mms-login-form input[type="text"],
.mms-login-form input[type="password"],
.mms-login-form input[type="email"] {
    width: 100%;
    height: 46px;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    box-sizing: border-box;
}

.mms-login-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.mms-password-wrap {
    position: relative;
}

.mms-password-wrap input {
    padding-right: 72px;
}

.mms-show-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.mms-login-form button[type="submit"] {
    height: 46px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.mms-login-form button[type="submit"]:hover {
    background: #1d4ed8;
}

.mms-login-links {
    margin-top: 6px;
    text-align: center;
}

.mms-login-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.mms-login-links a:hover {
    text-decoration: underline;
}

.mms-login-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.mms-login-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Hide WP admin bar space on front end for non-admins */
html {
    margin-top: 0 !important;
}

#wpadminbar {
    display: none !important;
}

/* =========================
   TEACHER PORTAL NAV
========================= */

.mms-teacher-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	margin-bottom: 18px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	flex-wrap: wrap;
}

.mms-teacher-nav-left {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.mms-teacher-nav-left,
.mms-teacher-nav-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mms-teacher-nav-link {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 14px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	color: #334155;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	transition: all 0.2s ease;
}

.mms-teacher-nav-link:hover {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1d4ed8;
}

.mms-teacher-nav-link.active {
	background: #e0e7ff;
	border-color: #c7d2fe;
	color: #3730a3;
}

.mms-teacher-nav-user {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	min-height: 40px;
}

.mms-teacher-nav-user-avatar {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: #e0e7ff;
	color: #3730a3;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.mms-teacher-nav-user-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.mms-teacher-nav-user-name {
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
}

.mms-teacher-nav-user-role {
	font-size: 12px;
	color: #64748b;
}

.mms-logout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 22px 22px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	background: #111827;
	color: #ffffff;
	border: 1px solid #111827;
	transition: all 0.2s ease;
}

.mms-logout-btn:hover {
	background: #1f2937;
	border-color: #1f2937;
	color: #ffffff;
}

@media (max-width: 782px) {
	.mms-teacher-nav-left {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		width: 100%;
	}

	.mms-teacher-nav-left a {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.mms-teacher-nav-right {
		justify-content: space-between;
		width: stretch;
	}

	.mms-teacher-nav-user {
		flex: 1 1 auto;
		min-width: 0;
	}

	.mms-logout-btn {
		flex-shrink: 0;
	}
}

/* =========================
   STUDENT SIDEBAR LOGOUT BUTTON
========================= */

.mms-sidebar-logout {
    margin-top: 16px;
}

.mms-sidebar-logout a.mms-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s ease;
}

.mms-sidebar-logout a.mms-logout-btn:hover {
    background: #dc2626;
}

/* Optional: override sidebar link styles */
.mms-sidebar ul li a.mms-logout-btn {
    background: #ef4444;
    border: none;
}
/* =========================
   LESSON TYPE BADGES
========================= */

.mms-log-type {
	display: inline;
	align-items: center;
	justify-content: center;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

/* Regular */
.mms-type-regular {
	background: #e0f2fe;
	color: #075985;
	border: 1px solid #bae6fd;
}

/* Extra 60 */
.mms-type-extra,
.mms-type-extra_60 {
	background: #ede9fe;
	color: #5b21b6;
	border: 1px solid #ddd6fe;
}

/* Extra 40 */
.mms-type-extra_40 {
	background: #f3e8ff;
	color: #6b21a8;
	border: 1px solid #e9d5ff;
}

/* Catch-Up 20 */
.mms-type-catchup,
.mms-type-catchup_20 {
	background: #ecfccb;
	color: #3f6212;
	border: 1px solid #d9f99d;
}

/* Catch-Up 40 */
.mms-type-catchup_40 {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}
/* =========================
   LESSON TYPE DROPDOWN
========================= */

.mms-lesson-type-select {
	width: 100%;
	max-width: 260px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid #dbe2ea;
	background: #ffffff;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s ease;
}

/* Hover */
.mms-lesson-type-select:hover {
	border-color: #94a3b8;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Focus */
.mms-lesson-type-select:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* Optional: make dropdown arrow nicer */
.mms-lesson-type-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2364748b' viewBox='0 0 20 20'%3E%3Cpath d='M5.25 7.5l4.75 5 4.75-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	padding-right: 36px;
}
.mms-lesson-type-select option {
	font-weight: 500;
}
.mms-lesson-type-select {
	width: 100%;
	max-width: 260px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid #dbe2ea;
	background: #ffffff;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s ease;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2364748b' viewBox='0 0 20 20'%3E%3Cpath d='M5.25 7.5l4.75 5 4.75-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	padding-right: 36px;
}

.mms-lesson-type-select:hover {
	border-color: #94a3b8;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.mms-lesson-type-select:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* =========================
   DATE / CALENDAR INPUTS
========================= */
input[type="date"],
#mms_week_start,
input[name="attendance_date"] {
    height: 42px;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;

}

input[type="date"]:focus,
#mms_week_start:focus,
input[name="attendance_date"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

input[type="date"]::-webkit-calendar-picker-indicator,
#mms_week_start::-webkit-calendar-picker-indicator,
input[name="attendance_date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.85;
}

/* =========================
   MOBILE DATE FIELD POSITION
========================= */

@media (max-width: 768px) {

    .mms-month-form,
    .mms-date-form,
    .mms-daily-filter-form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .mms-month-form label,
    .mms-date-form label,
    .mms-daily-filter-form label {
        width: 100%;
    }

    .mms-month-form input[type="date"],
    .mms-date-form input[type="date"],
    .mms-daily-filter-form input[type="date"],
    .mms-month-form select,
    .mms-date-form select,
    .mms-daily-filter-form select,
    .mms-month-form button,
    .mms-date-form button,
    .mms-daily-filter-form button {
        width: 100%;
    }
}
/* Daily Attendance date form */

.mms-attendance-date-form label {
    margin: 0;
}

.mms-attendance-date-form input[type="date"],
.mms-attendance-date-form button,
.mms-attendance-date-form select {
    box-sizing: border-box;
	border-radius: 6px;
	padding: 0 25px;
}

/* Mobile: move the calendar field down / stack fields */
@media (max-width: 768px) {
    .mms-attendance-date-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .mms-attendance-date-form label,
    .mms-attendance-date-form input[type="date"],
    .mms-attendance-date-form button,
    .mms-attendance-date-form select {
        width: 100%;
    }
}

/* =========================
   DAILY ATTENDANCE DATE BAR
========================= */
.mms-attendance-date-form {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
	align-items: flex-end;
}
.mms-date-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.mms-date-picker input[type="date"] {
    height: 42px;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}
/* Mobile layout */
@media (max-width: 768px) {

    .mms-attendance-date-form {
        flex-direction: column;
        align-items: stretch;
    }

    .mms-date-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .mms-date-picker {
        width: 100%;
    }

    .mms-date-picker input[type="date"] {
        width: 100%;
    }
}

/* =========================
   FULL-WIDTH PORTAL LAYOUTS
========================= */
/*
.mms-admin-wrapper,
.mms-dashboard-portal,
.mms-weekly-dashboard-wrap,
.mms-daily-attendance-wrap,
.mms-portal-page-wrap {
    width: 100%;
    max-width: 100% !important;
    margin-left: 15px;
    margin-right: 15px;
    box-sizing: border-box;
} */

/* Wider tables */
.mms-admin-table,
.mms-table-wrapper,
.mms-weekly-dashboard-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* =========================
   STUDENT SIDEBAR LIST
========================= */
.mms-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mms-sidebar ul li {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.mms-sidebar ul li::marker {
    content: '';
}
/* Try to break out of narrow theme containers 
.mms-dashboard-portal,
.mms-admin-wrapper,
.mms-portal-page-wrap,
.mms-daily-attendance-wrap {
    max-width: none !important;
}*/

/* =========================
   WEEKLY TIMETABLE SHORTCODE
========================= */

.mms-weekly-timetable-page-wrap {
	width: calc(100% - 30px);
	max-width: none !important;
	margin-left: 15px;
	margin-right: 15px;
	box-sizing: border-box;
}
.mms-timetable-screen-wrap {
	width: 100%;
}
/* Fit table area to screen height */
.mms-timetable-scroll {
	width: 100%;
	overflow: auto;
	max-height: calc(100vh - 260px);
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
}
/* Desktop tweak */
@media (min-width: 1200px) {
	.mms-timetable-scroll {
		max-height: calc(100vh - 220px);
	}
}
/* Smaller screens */
@media (max-width: 768px) {
	.mms-timetable-scroll {
		max-height: calc(100vh - 180px);
	}
}
.mms-weekly-timetable-table {
	width: 100%;
	min-width: 1000px;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
}
.mms-weekly-timetable-table th,
.mms-weekly-timetable-table td {
	padding: 12px;
	border-right: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: top;
}
.mms-weekly-timetable-table thead th {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #f8fafc;
	font-weight: 700;
}
.mms-timetable-sticky-time {
	position: sticky;
	left: 0;
	z-index: 6;
	background: #f8fafc !important;
	min-width: 135px;
	font-weight: 700;
}
.mms-weekly-timetable-table thead .mms-timetable-sticky-time {
	z-index: 7;
}
.mms-timetable-cell {
	min-width: 150px;
}
.mms-timetable-entry {
	display: block;
	padding: 6px 8px;
	margin-bottom: 6px;
	border-radius: 8px;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}
.mms-timetable-empty {
	color: #94a3b8;
	font-size: 14px;
}
.mms-timetable-no-data {
	text-align: center;
	padding: 24px;
	color: #64748b;
}
/* Match Schedule page color feel */
.mms-day-monday {
	background: #fefce8;
}
.mms-day-tuesday {
	background: #eff6ff;
}
.mms-day-wednesday {
	background: #f0fdf4;
}
.mms-day-thursday {
	background: #faf5ff;
}
.mms-day-friday {
	background: #fff7ed;
}
.mms-day-saturday {
	background: #fdf2f8;
}
.mms-day-sunday {
	background: #f8fafc;
}

/* =========================
   DAILY ATTENDANCE TABLE
========================= */

.mms-daily-attendance-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 240px);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.mms-daily-attendance-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: separate;
    border-spacing: 0;
}

.mms-daily-attendance-table th,
.mms-daily-attendance-table td {
    padding: 12px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    background: #ffffff;
    background-clip: padding-box;
}

/* Sticky header row */
.mms-daily-attendance-table thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f8fafc !important;
    font-weight: 700;
}

/* FIRST COLUMN = Name column sticky */
.mms-daily-attendance-table thead th:first-child,
.mms-daily-attendance-table tbody td:first-child {
    position: sticky !important;
    left: 0 !important;
    min-width: 220px;
    width: 220px;
    max-width: 220px;
}

/* Header first column */
.mms-daily-attendance-table thead th:first-child {
    z-index: 40 !important;
    background: #f8fafc !important;
    box-shadow: 2px 0 0 #e2e8f0;
}

/* Body first column */
.mms-daily-attendance-table tbody td:first-child {
    z-index: 30 !important;
    background: #ffffff !important;
    box-shadow: 2px 0 0 #e2e8f0;
}

/* Force separator before Type column */
.mms-daily-attendance-table .mms-type-col {
    border-left: 1px solid #e2e8f0 !important;
}

.mms-daily-attendance-table th:last-child,
.mms-daily-attendance-table td:last-child {
    border-right: 1px solid #e2e8f0 !important;
}

/* =========================
   WEEKLY ATTENDANCE PAGE
========================= */

.mms-weekly-attendance-date-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mms-weekly-date-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mms-weekly-date-picker input[type="date"] {
    height: 42px;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.mms-weekly-attendance-table-wrap {
    width: 100%;
    overflow-x: auto !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 240px);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.mms-weekly-attendance-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed;
}

.mms-weekly-attendance-table th,
.mms-weekly-attendance-table td {
    padding: 12px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    background: #ffffff;
    background-clip: padding-box;
}

/* sticky header */
.mms-weekly-attendance-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    background: #f8fafc !important;
    font-weight: 700;
}

/* sticky first column */
.mms-weekly-attendance-table thead th:first-child,
.mms-weekly-attendance-table tbody td:first-child {
    position: sticky !important;
    left: 0 !important;
    min-width: 220px;
    width: 220px;
    max-width: 220px;
}

.mms-weekly-attendance-table thead th:first-child {
    z-index: 60 !important;
    background: #f8fafc !important;
    box-shadow: 2px 0 0 #e2e8f0;
}

.mms-weekly-attendance-table tbody td:first-child {
    z-index: 40 !important;
    background: #ffffff !important;
    box-shadow: 2px 0 0 #e2e8f0;
}

/* Weekly entry badges */
.mms-weekly-entry {
    display: block;
    padding: 6px 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.mms-weekly-entry.mms-attended {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.mms-weekly-entry.mms-absent {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.mms-weekly-entry.mms-reschedule {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.mms-weekly-entry.mms-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Mobile */
@media (max-width: 768px) {
    .mms-weekly-attendance-date-form {
        flex-direction: column;
        align-items: stretch;
		padding-top: 15px;
        padding-bottom: 0 !important;
        padding-left: 15px;
        padding-right: 15px;
        border-radius: 12px;
    }

    .mms-weekly-date-picker {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 14px;
		display: inline-flex !important;
        justify-content: center;
		align-items: center;
    }

    .mms-weekly-date-picker input[type="date"] {
        width: 100%;
    }

    .mms-weekly-attendance-table-wrap {
        max-height: calc(100vh - 180px);
    }
	.mms-weekly-attendance-date-form .button {
		width: stretch;
	}	
}

/* Match Select Week Start styling */
.mms-weekly-date-picker select {
	height: 40px;
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	background: #fff;
	font-size: 14px;
	min-width: 180px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state (same feel as date picker) */
.mms-weekly-date-picker select:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
	outline: none;
}

/* Align label + select nicely */
.mms-weekly-date-picker {
	display: flex;
	gap: 4px;
	flex-direction: row;
    flex-wrap: nowrap;
}

/* Layout consistency (row alignment) */
.mms-weekly-attendance-date-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #d7e1f9;
    padding: 15px;
    border-radius: 12px;
}

/* Match button alignment */
.mms-weekly-attendance-date-form .button {
	height: 40px;
	padding: 0 28px;
    border-radius: 6px;
}

/* Unified filter field (Weekly + Daily consistency) */
.mms-filter-field {
    display: flex;
    flex-direction: row;
    gap: 6px;
    min-width: 180px;
    flex-wrap: nowrap;
    align-items: center;
}

/* Label styling */
.mms-filter-field label {
	font-size: 13px;
	font-weight: 500;
	color: #374151;
}

/* Select + Date input styling */
.mms-select-field,
.mms-filter-field input[type="date"] {
	height: 40px;
	padding: 0 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: #111827;
	transition: all 0.2s ease;
}

/* Focus state */
.mms-select-field:focus,
.mms-filter-field input[type="date"]:focus {
	border-color: #6366f1;
	outline: none;
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* Match layout spacing with Weekly Attendance */
.mms-attendance-date-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    background: #d7e1f9;
    padding: 15px;
    border-radius: 12px;
}

/* View button in daily attendance page */
.mms-btn {
	height: 40px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	border: none;
	cursor: pointer;
}

.mms-btn-secondary {
	background: #2563eb;
	color: #ffffff;
}

.mms-btn-secondary:hover {
	background: #314ed4;
}

/* ===================
TOAST POPUP
====================== */
.mms-toast {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #333;
	color: #fff;
	padding: 12px 18px;
	border-radius: 6px;
	opacity: 0;
	transform: translateY(-20px);
	transition: all 0.3s ease;
	z-index: 9999;
	font-size: 14px;
}

.mms-toast.show {
	opacity: 1;
	transform: translateY(0);
}

.mms-toast-success {
	background: #28a745;
}

.mms-toast-error {
	background: #dc3545;
}

/* ========================
INVOICE
============================*/
/* Invoice Button Wrapper */
.mms-sidebar-invoice {
    margin-top: 20px;
	margin-bottom: 20px;
	margin-left: 0 !important;
}
/* Invoice Button Style (matches logout) */
.mms-sidebar-invoice a.mms-invoice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
	margin-left: 0;
    border-radius: 10px;
    background: #2563eb; /* Blue instead of red */
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s ease;
}
/* Hover */
.mms-sidebar-invoice a.mms-invoice-btn:hover {
    background: #1d4ed8;
}
/* PRINT ONLY THE INVOICE AND AVOID THE PART OF THE STUDENT PORTAL */
@media print {
    body * {
        visibility: hidden;
    }
    .mms-invoice-wrapper,
    .mms-invoice-wrapper * {
        visibility: visible;
    }
    .mms-invoice-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
}
.mms-invoice-btn {
    margin-left: 10px;
}
/* BASE */
.mms-invoice-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* HEADER */
.mms-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 20px;
}
.mms-logo {
    width: 160px;
    margin-bottom: 15px;
}
.mms-company-info p {
    margin: 2px 0;
    font-size: 13px;
    color: #6b7280;
}
.mms-invoice-right h1 {
    font-size: 32px;
    margin: 0;
    font-weight: 700;
}
.mms-invoice-meta p {
    margin: 4px 0;
    font-size: 13px;
    color: #6b7280;
}
/* GRID */
.mms-invoice-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}
.mms-invoice-grid h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 5px;
}
.mms-invoice-grid p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}
/* TABLE */
.mms-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.mms-invoice-table th {
    text-align: left;
    font-size: 12px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}
.mms-invoice-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.text-right {
    text-align: right;
}
/* SUMMARY */
.mms-invoice-summary {
    margin-top: 30px;
    max-width: 300px;
    margin-left: auto;
}
.mms-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: 14px;
}
.mms-summary-row.total {
    font-weight: 700;
    font-size: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
    padding-top: 10px;
}

/* Invoice Table Header - Black Style */
.mms-invoice-table thead tr {
    background: #000;
}

.mms-invoice-table thead th {
    color: #fff;
    background: #1e293b;
    font-weight: 600;
    padding: 12px;
}

/* FOOTER */
.mms-invoice-footer {
    margin-top: 40px;
    font-size: 13px;
    color: #6b7280;
    border-top: 1px solid #f1f1f1;
    padding-top: 15px;
}
/* PAYMENT STATUS */
.mms-invoice-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}.mms-status.paid {
    background: #dcfce7;
    color: #166534;
	padding: 0 10px;
	border-radius: 4px;
}
.mms-status.unpaid {
    background: #fef3c7;
    color: #92400e;
	padding: 0 10px;
	border-radius: 4px;	
}
/* LESSONS BREAKDOWN TABLE */
.mms-breakdown-table {
    margin-top: 30px;
}

.mms-breakdown-table h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.mms-breakdown-table table {
    width: 100%;
    border-collapse: collapse;
}

.mms-breakdown-table th {
    background: #fff;
    padding: 10px;
    text-align: left;
}

.mms-breakdown-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* HIDE BROWSER HEADER AND FOOTER TEXT IN SAVE AS PDF */
@media print {
    /* Hide browser header/footer (works in Chrome/Edge mostly) */
    @page {
        margin: 10mm;
    }
    /* Hide URL, date, page number (browser-controlled) */
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    /* Optional: hide anything unwanted */
    .no-print {
        display: none !important;
    }
}