/* Morris Moor shared styles */

body {
    margin: 0;
    font-family: 'Dia', Arial, sans-serif;
}

/* Header */
.mm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #D9D9D9;
}
.mm-logo {
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 1px;
    color: #272727;
}
.mm-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mm-nav-link {
    font-size: 15px;
    font-weight: bold;
    color: #272727;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
}
.mm-nav-link:hover,
.mm-nav-link-active {
    color: #FF6900;
    background-color: #FFF3EB;
}

.mm-header-btn,
.mm-login-btn {
    background-color: #FF6900;
    color: #FFFFFF;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: 'Dia', Arial, sans-serif;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* Landing hero */
.mm-hero {
    background-color: #272727;
    color: #FFFFFF;
    padding: 100px 40px;
    text-align: center;
}
.mm-hero h1 {
    font-weight: bold;
    font-size: 48px;
    margin-bottom: 16px;
}
.mm-hero p {
    font-size: 18px;
    color: #D9D9D9;
    max-width: 600px;
    margin: 0 auto 32px;
}
.mm-hero-cta {
    background-color: #FF6900;
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* ── Landing page ─────────────────────────────────────────────────────────── */

.mm-lp-eyebrow {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FF6900;
    margin: 0 0 20px;
}

.mm-lp-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FF6900;
    background-color: #FFF3EB;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.mm-lp-tag-dark {
    background-color: rgba(255, 105, 0, 0.15);
    color: #FF6900;
}

/* Hero */
.mm-lp-hero {
    height: calc(100vh - 72px);
    min-height: 560px;
    max-height: 840px;
    background-color: #1C1C1C;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.mm-lp-hero-inner {
    padding: 80px 60px 80px 80px;
    z-index: 1;
}
.mm-lp-hero-title {
    font-size: 64px;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 1.05;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}
.mm-lp-hero-sub {
    font-size: 17px;
    color: #A0A0A0;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 0 40px;
}
.mm-lp-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.mm-lp-btn-primary {
    background-color: #FF6900;
    color: #FFFFFF;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.15s;
}
.mm-lp-btn-primary:hover {
    background-color: #E55E00;
    color: #FFFFFF;
}
.mm-lp-btn-outline {
    background-color: transparent;
    color: #FFFFFF;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.15s;
}
.mm-lp-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
}

/* Hero tile grid (right side) */
.mm-lp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 100%;
    align-self: stretch;
}
.mm-lp-hero-tile {
    transition: opacity 0.3s;
}
.mm-lp-tile-1 { background-color: #2A2A2A; }
.mm-lp-tile-2 { background-color: #FF6900; opacity: 0.85; }
.mm-lp-tile-3 { background-color: #333333; }
.mm-lp-tile-4 { background-color: #1C1C1C; border: 1px solid #2E2E2E; }

/* Intro strip */
.mm-lp-intro {
    background-color: #FFFFFF;
    padding: 80px 80px;
}
.mm-lp-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.mm-lp-intro-left h2 {
    font-size: 40px;
    font-weight: bold;
    color: #1C1C1C;
    line-height: 1.15;
    margin: 0;
}
.mm-lp-intro-right p {
    font-size: 16px;
    color: #555555;
    line-height: 1.8;
    margin: 0 0 20px;
}
.mm-lp-intro-right p:last-child { margin-bottom: 0; }

/* Section header */
.mm-lp-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}
.mm-lp-section-header h2 {
    font-size: 36px;
    font-weight: bold;
    color: #1C1C1C;
    margin: 0 0 16px;
    line-height: 1.2;
}
.mm-lp-section-header p {
    font-size: 16px;
    color: #666666;
    line-height: 1.7;
    margin: 0;
}

/* Event spaces */
.mm-lp-spaces {
    background-color: #F7F7F7;
    padding: 80px 80px;
}
.mm-lp-spaces-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.mm-lp-space-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.mm-lp-space-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}
.mm-lp-space-img {
    height: 220px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.mm-lp-space-img-1 {
    background: linear-gradient(160deg, #2E2E2E 0%, #1C1C1C 50%, #3A2010 100%);
}
.mm-lp-space-img-2 {
    background: linear-gradient(160deg, #1C2A3A 0%, #1C1C1C 50%, #2A1C0A 100%);
}
.mm-lp-space-img-3 {
    background: linear-gradient(160deg, #1A2E20 0%, #1C1C1C 50%, #2E2010 100%);
}
.mm-lp-space-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 3px;
}
.mm-lp-space-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mm-lp-space-body h3 {
    font-size: 20px;
    font-weight: bold;
    color: #1C1C1C;
    margin: 0 0 10px;
}
.mm-lp-space-body p {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin: 0 0 16px;
    flex: 1;
}
.mm-lp-space-meta {
    font-size: 13px;
    color: #999999;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
}
.mm-lp-space-link {
    font-size: 14px;
    font-weight: bold;
    color: #FF6900;
    text-decoration: none;
}
.mm-lp-space-link:hover { text-decoration: underline; }

/* Stats bar */
.mm-lp-stats {
    background-color: #1C1C1C;
    padding: 60px 80px;
}
.mm-lp-stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.mm-lp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}
.mm-lp-stat-num {
    font-size: 52px;
    font-weight: bold;
    color: #FF6900;
    line-height: 1;
    margin-bottom: 8px;
}
.mm-lp-stat-label {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888888;
}
.mm-lp-stat-divider {
    width: 1px;
    height: 60px;
    background-color: #333333;
    flex-shrink: 0;
}

/* Why us */
.mm-lp-why {
    background-color: #FFFFFF;
    padding: 80px 80px;
}
.mm-lp-why-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.mm-lp-why-card {
    padding: 32px 24px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    border-top: 3px solid #FF6900;
}
.mm-lp-why-icon {
    font-size: 18px;
    color: #FF6900;
    margin-bottom: 16px;
}
.mm-lp-why-card h3 {
    font-size: 17px;
    font-weight: bold;
    color: #1C1C1C;
    margin: 0 0 12px;
}
.mm-lp-why-card p {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin: 0;
}

/* Bottom CTA */
.mm-lp-cta {
    background-color: #FF6900;
    padding: 80px 40px;
    text-align: center;
}
.mm-lp-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}
.mm-lp-cta h2 {
    font-size: 40px;
    font-weight: bold;
    color: #FFFFFF;
    margin: 0 0 16px;
}
.mm-lp-cta p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 36px;
    line-height: 1.6;
}
.mm-lp-cta-btn {
    background-color: #FFFFFF;
    color: #FF6900;
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.15s;
}
.mm-lp-cta-btn:hover {
    background-color: #F0F0F0;
    color: #FF6900;
}

/* Landing page responsive */
@media (max-width: 1024px) {
    .mm-lp-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mm-lp-spaces-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mm-lp-spaces-grid .mm-lp-space-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
        width: 100%;
    }
}
@media (max-width: 860px) {
    .mm-lp-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .mm-lp-hero-grid { display: none; }
    .mm-lp-hero-inner {
        padding: 80px 24px;
        text-align: center;
    }
    .mm-lp-hero-title { font-size: 44px; }
    .mm-lp-hero-actions { justify-content: center; }
    .mm-lp-intro { padding: 60px 24px; }
    .mm-lp-intro-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .mm-lp-spaces { padding: 60px 24px; }
    .mm-lp-spaces-grid { grid-template-columns: 1fr; }
    .mm-lp-spaces-grid .mm-lp-space-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    .mm-lp-stats { padding: 48px 24px; }
    .mm-lp-stats-inner { flex-wrap: wrap; gap: 40px; }
    .mm-lp-stat-divider { display: none; }
    .mm-lp-stat { flex: 0 0 40%; }
    .mm-lp-why { padding: 60px 24px; }
    .mm-lp-why-grid { grid-template-columns: 1fr; }
}

/* ── Enquiry page ──────────────────────────────────────────────────────────── */
/* Enquiry page */
.mm-enquiry-hero {
    background-color: #272727;
    color: #FFFFFF;
    padding: 80px 40px 72px;
    text-align: center;
}
.mm-enquiry-hero-eyebrow {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FF6900;
    margin: 0 0 16px;
}
.mm-enquiry-hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin: 0 0 16px;
}
.mm-enquiry-hero-sub {
    font-size: 17px;
    color: #B0B0B0;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.mm-enquiry-body {
    background-color: #F7F7F7;
    padding: 60px 20px 80px;
}
.mm-enquiry-card {
    background-color: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 40px 36px;
}
.mm-enquiry-form .input {
    margin-bottom: 0;
}
.mm-enquiry-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.mm-enquiry-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.mm-enquiry-row .mm-enquiry-field {
    margin-bottom: 0;
}
.mm-enquiry-field label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #272727;
    margin-bottom: 6px;
}
.mm-enquiry-field input,
.mm-enquiry-field select,
.mm-enquiry-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Dia', Arial, sans-serif;
    color: #272727;
    box-sizing: border-box;
    background-color: #FFFFFF;
}
.mm-enquiry-field input:focus,
.mm-enquiry-field select:focus,
.mm-enquiry-field textarea:focus {
    outline: none;
    border-color: #FF6900;
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.12);
}
.mm-enquiry-field .input.error input,
.mm-enquiry-field .input.error select,
.mm-enquiry-field .input.error textarea {
    border-color: #E53935;
    background-color: #FFF5F5;
}
.mm-enquiry-field .error-message {
    color: #E53935;
    font-size: 13px;
    margin-top: 4px;
}
.mm-enquiry-footer {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #D9D9D9;
}
@media (max-width: 600px) {
    .mm-enquiry-hero {
        padding: 60px 24px 56px;
    }
    .mm-enquiry-hero h1 {
        font-size: 32px;
    }
    .mm-enquiry-card {
        padding: 28px 20px 24px;
    }
    .mm-enquiry-row {
        grid-template-columns: 1fr;
    }
    .mm-enquiry-row .mm-enquiry-field {
        margin-bottom: 20px;
    }
}

/* Auth (login) page — split screen */
.mm-auth-split {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 5fr 6fr;
}

.mm-auth-panel-brand {
    position: relative;
    overflow: hidden;
    background-color: #1C1C1C;
    background-image: radial-gradient(circle at 20% 90%, rgba(255, 105, 0, 0.22), transparent 55%);
    color: #FFFFFF;
    padding: 72px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mm-auth-panel-brand::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -140px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.mm-auth-panel-brand::after {
    content: '';
    position: absolute;
    top: -90px;
    right: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(255, 105, 0, 0.35);
}
.mm-auth-eyebrow {
    position: relative;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FF6900;
    margin: 0 0 24px;
}
.mm-auth-brand-title {
    position: relative;
    font-size: 56px;
    font-weight: bold;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}
.mm-auth-brand-sub {
    position: relative;
    font-size: 16px;
    color: #A0A0A0;
    line-height: 1.7;
    max-width: 380px;
    margin: 0;
}
.mm-auth-brand-stats {
    position: relative;
    display: flex;
    gap: 40px;
    margin-top: 48px;
}
.mm-auth-brand-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mm-auth-brand-stat-num {
    font-size: 28px;
    font-weight: bold;
    color: #FF6900;
    line-height: 1;
}
.mm-auth-brand-stat-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888888;
}

.mm-auth-panel-form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 48px;
}
.mm-auth-form-wrap {
    width: 100%;
    max-width: 380px;
}
.mm-auth-form-title {
    font-size: 30px;
    font-weight: bold;
    color: #1C1C1C;
    margin: 0 0 8px;
}
.mm-auth-form-sub {
    font-size: 15px;
    color: #666666;
    margin: 0 0 32px;
}
.mm-auth-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.mm-auth-field label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #272727;
    margin-bottom: 6px;
}
.mm-auth-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Dia', Arial, sans-serif;
    color: #272727;
    box-sizing: border-box;
    background-color: #FFFFFF;
}
.mm-auth-field input:focus {
    outline: none;
    border-color: #FF6900;
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.12);
}
.mm-auth-submit {
    width: 100%;
    margin-top: 4px;
}
.mm-auth-form-note {
    margin: 20px 0 0;
    font-size: 13px;
    color: #999999;
    text-align: center;
}

@media (max-width: 900px) {
    .mm-auth-split {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .mm-auth-panel-brand {
        padding: 56px 32px;
    }
    .mm-auth-brand-title {
        font-size: 40px;
    }
    .mm-auth-brand-stats {
        margin-top: 36px;
        gap: 28px;
    }
    .mm-auth-panel-form {
        padding: 48px 24px 64px;
    }
}
@media (max-width: 480px) {
    .mm-auth-brand-stats {
        gap: 20px;
    }
}

/* Form / content sections */
.mm-dashboard-section {
    max-width: 720px;
    margin: 60px auto;
    padding: 0 20px;
}
.mm-dashboard-section h1 {
    color: #272727;
    font-size: 32px;
    margin-bottom: 12px;
}
.mm-dashboard-note {
    color: #272727;
    font-size: 16px;
    margin: 0;
}

.mm-required-note {
    color: #272727;
    font-size: 14px;
    margin-bottom: 20px;
}
.mm-required-star {
    color: #FF6900;
    font-weight: bold;
}

.mm-password-wrap {
    position: relative;
}
.mm-password-wrap input {
    padding-right: 64px;
}
.mm-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #FF6900;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    font-family: 'Dia', Arial, sans-serif;
}

.mm-submit-btn {
    background-color: #FF6900;
    color: #FFFFFF;
    border: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Dia', Arial, sans-serif;
}

/* Footer */
.mm-footer {
    border-top: 1px solid #D9D9D9;
    padding: 24px 40px;
    text-align: center;
    color: #272727;
    font-size: 14px;
}
.mm-footer p {
    margin: 0;
}

/* Inline flash (login / dashboard / enquiry via layout) */
.mm-flash {
    margin-bottom: 20px;
}
.mm-flash .message {
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid #D9D9D9;
    margin: 0 0 12px;
    color: #272727;
}
.mm-flash .message.success {
    border-color: #2E7D32;
    background-color: #E8F5E9;
}
.mm-flash .message.error {
    border-color: #E53935;
    background-color: #FFF5F5;
}
.mm-flash .message.warning {
    border-color: #F9A825;
    background-color: #FFF8E1;
}
.mm-flash .message.info {
    border-color: #D9D9D9;
    background-color: #F5F5F5;
}

/* Optional Flash modal — used by element/mm_flash_modal.php when enabled */
.mm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(39, 39, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.mm-modal-box {
    background: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.mm-modal-box div[class*="message"] {
    margin: 0 0 20px;
    font-size: 16px;
    color: #272727;
}
.mm-modal-close {
    background-color: #FF6900;
    color: #FFFFFF;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Dia', Arial, sans-serif;
}

.input.error input,
.input.error select,
.input.error textarea {
    border-color: #E53935;
    border-width: 2px;
    background-color: #FFF5F5;
}
.error-message {
    color: #E53935;
    font-weight: bold;
    font-size: 13px;
    margin-top: 6px;
}

/* Internal layout (staff/admin shell) */
body.mm-internal {
    background-color: #F7F7F7;
}

.mm-internal-wrapper {
    min-height: 100vh;
}

.mm-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background-color: #FFFFFF;
    border-right: 1px solid #D9D9D9;
    z-index: 200;
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.mm-sidebar-brand {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 0 20px;
    box-sizing: border-box;
    border-bottom: 1px solid #D9D9D9;
}

.mm-sidebar-subtitle {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666666;
}

.mm-sidebar-nav {
    padding: 16px 12px;
}

.mm-sidebar-label {
    margin: 0 0 8px 8px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999999;
}

.mm-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mm-sidebar-menu li {
    margin-bottom: 4px;
}

.mm-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    color: #272727;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.mm-sidebar-link i {
    font-size: 18px;
    color: #666666;
}

.mm-sidebar-link:hover,
.mm-sidebar-link.is-active {
    background-color: #FFF3EB;
    color: #FF6900;
}

.mm-sidebar-link:hover i,
.mm-sidebar-link.is-active i {
    color: #FF6900;
}

.mm-internal-body {
    margin-left: 240px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mm-internal-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 0 24px;
    box-sizing: border-box;
    background-color: #FFFFFF;
    border-bottom: 1px solid #D9D9D9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mm-sidebar-toggle {
    display: none;
    border: 1px solid #D9D9D9;
    background: #FFFFFF;
    color: #272727;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.mm-internal-topbar-title {
    flex: 1;
    font-size: 18px;
    font-weight: bold;
    color: #272727;
}

.mm-internal-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mm-internal-user {
    font-size: 14px;
    color: #666666;
}

.mm-internal-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mm-internal-main {
    flex: 1;
    padding: 24px;
}

.mm-internal-content {
    width: 100%;
    max-width: none;
}

.mm-internal-content h1 {
    color: #272727;
    font-size: 28px;
    margin: 0 0 8px;
}

.mm-internal-content .mm-page-note {
    color: #666666;
    font-size: 15px;
    margin: 0 0 24px;
}

/* Internal page header (Dashboard welcome banner + list-page headers) */
.mm-dash-welcome,
.mm-page-header {
    background-color: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-left: 4px solid #FF6900;
    border-radius: 4px;
    padding: 24px 28px;
    margin-bottom: 24px;
}
.mm-dash-eyebrow,
.mm-page-eyebrow {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FF6900;
    margin: 0 0 10px;
}
.mm-dash-welcome h1,
.mm-page-header h1 {
    margin: 0 0 6px;
}
.mm-dash-welcome .mm-page-note,
.mm-page-header .mm-page-note {
    margin: 0;
}

.mm-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.mm-stat-card {
    background-color: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    padding: 20px;
}

.mm-stat-card-accent {
    border-left: 4px solid #FF6900;
}

.mm-stat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #FFF3EB;
    color: #FF6900;
    font-size: 18px;
    margin-bottom: 16px;
}

.mm-stat-card-label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: bold;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mm-stat-card-value {
    margin: 0;
    font-size: 36px;
    font-weight: bold;
    line-height: 1.1;
    color: #272727;
}

.mm-stat-card-accent .mm-stat-card-value {
    color: #FF6900;
}

.mm-stat-card-note {
    margin: 8px 0 0;
    font-size: 14px;
    color: #666666;
}

.mm-table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.mm-table-card-header .mm-table-card-title {
    margin: 0;
}

.mm-table-card-link {
    font-size: 14px;
    font-weight: bold;
    color: #FF6900;
    text-decoration: none;
    white-space: nowrap;
}

.mm-table-card-link:hover {
    text-decoration: underline;
}

.mm-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    text-transform: capitalize;
}

.mm-status-new {
    background-color: #FFF3EB;
    color: #FF6900;
}

.mm-status-replied {
    background-color: #EEF6FF;
    color: #2563EB;
}

.mm-status-closed {
    background-color: #F3F4F6;
    color: #666666;
}

.mm-simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mm-simple-list li {
    padding: 12px 0;
    border-bottom: 1px solid #D9D9D9;
    color: #272727;
    font-size: 15px;
}

.mm-table-card {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    box-sizing: border-box;
}

.mm-table-card-body {
    padding: 16px;
}

.mm-table-card-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: bold;
    color: #272727;
}

.mm-table-responsive {
    overflow-x: auto;
}

.mm-table-wrap {
    background-color: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    overflow-x: auto;
}

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

.mm-data-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: bold;
    color: #272727;
    background-color: #F7F7F7;
    border-bottom: 1px solid #D9D9D9;
    white-space: nowrap;
}

.mm-data-table tbody td {
    padding: 12px 16px;
    color: #272727;
    border-bottom: 1px solid #D9D9D9;
    vertical-align: top;
}

.mm-data-table tbody tr:last-child td {
    border-bottom: none;
}

.mm-data-table tbody tr:hover td {
    background-color: #FFFBF7;
}

.mm-table-empty {
    text-align: center;
    color: #666666;
    padding: 24px 16px !important;
}

.mm-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mm-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: #FF6900;
    text-decoration: none;
}

.mm-table-action:hover {
    background-color: #FFF3EB;
    color: #FF6900;
}

.mm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* CRUD card (view / edit / add) */
.mm-crud-card {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    box-sizing: border-box;
}

.mm-crud-card-body {
    padding: 20px;
}

.mm-crud-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.mm-crud-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #272727;
}

.mm-crud-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mm-crud-card-fields {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.mm-crud-field {
    min-width: 0;
}

.mm-crud-field-col-1 { grid-column: span 1; }
.mm-crud-field-col-2 { grid-column: span 2; }
.mm-crud-field-col-3 { grid-column: span 3; }
.mm-crud-field-col-4 { grid-column: span 4; }
.mm-crud-field-col-5 { grid-column: span 5; }
.mm-crud-field-col-6 { grid-column: span 6; }
.mm-crud-field-col-7 { grid-column: span 7; }
.mm-crud-field-col-8 { grid-column: span 8; }
.mm-crud-field-col-9 { grid-column: span 9; }
.mm-crud-field-col-10 { grid-column: span 10; }
.mm-crud-field-col-11 { grid-column: span 11; }
.mm-crud-field-col-12 { grid-column: span 12; }

.mm-crud-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #272727;
}

.mm-crud-field-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: 'Dia', Arial, sans-serif;
    color: #272727;
    background-color: #FFFFFF;
}

.mm-crud-field-control[readonly],
.mm-crud-field-control:disabled {
    background-color: #F7F7F7;
    color: #272727;
    cursor: default;
}

.mm-crud-field-control.mm-field-invalid {
    border-color: #E53935;
}

.mm-field-error {
    margin: 6px 0 0;
    font-size: 13px;
    color: #E53935;
}

.mm-crud-card-append {
    margin-top: 16px;
}

.mm-crud-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #D9D9D9;
}

.mm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: 'Dia', Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.mm-btn-primary {
    background-color: #FF6900;
    color: #FFFFFF;
    border-color: #FF6900;
}

.mm-btn-primary:hover {
    background-color: #E55E00;
    border-color: #E55E00;
    color: #FFFFFF;
}

.mm-btn-secondary {
    background-color: #FFFFFF;
    color: #272727;
    border-color: #D9D9D9;
}

.mm-btn-secondary:hover {
    background-color: #F7F7F7;
    color: #272727;
}

.mm-btn-danger {
    background-color: #E53935;
    color: #FFFFFF;
    border-color: #E53935;
}

.mm-btn-danger:hover {
    background-color: #C62828;
    border-color: #C62828;
    color: #FFFFFF;
}

@media (max-width: 700px) {
    .mm-stat-grid {
        grid-template-columns: 1fr;
    }

    .mm-crud-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mm-crud-field-col-1,
    .mm-crud-field-col-2,
    .mm-crud-field-col-3,
    .mm-crud-field-col-4,
    .mm-crud-field-col-5,
    .mm-crud-field-col-6,
    .mm-crud-field-col-7,
    .mm-crud-field-col-8,
    .mm-crud-field-col-9,
    .mm-crud-field-col-10,
    .mm-crud-field-col-11,
    .mm-crud-field-col-12 {
        grid-column: span 12;
    }

    .mm-crud-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .mm-crud-card-footer .mm-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .mm-sidebar {
        transform: translateX(-100%);
    }

    .mm-internal-wrapper.mm-sidebar-open .mm-sidebar {
        transform: translateX(0);
    }

    .mm-internal-body {
        margin-left: 0;
    }

    .mm-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mm-internal-user {
        display: none;
    }
}
