/* Phase 2A readability pass. Loaded AFTER mis-overview.css and mis-modern-shell.css.
   Scoped to the opt-in shell: no changes to legacy MIS pages. */
.mis-modern-shell { font-size: 15px; line-height: 1.55; }
.mis-modern-shell .mis-side__group-title { font-size: 12px; letter-spacing: 1.6px; }
.mis-modern-shell .mis-side__link { font-size: 15px; line-height: 1.45; }
.mis-modern-shell .mis-crumb { font-size: 14px; }
.mis-modern-shell .mis-profile-button,
.mis-modern-shell .mis-account__name,
.mis-modern-shell .mis-auth-links a { font-size: 14px; }
.mis-modern-shell .mis-heading p { font-size: 16px; }
.mis-modern-shell .mis-eyebrow,
.mis-modern-shell .mis-section__eyebrow,
.mis-modern-shell .mis-welcome__kicker { font-size: 12px; }
.mis-modern-shell .mis-plain-link { font-size: 14px; }
.mis-modern-shell .mis-welcome p { font-size: 15px; }
.mis-modern-shell .mis-welcome__button { font-size: 14px; }
.mis-modern-shell .mis-welcome__meta { font-size: 13px; }
.mis-modern-shell .mis-metric span { font-size: 13px; }
.mis-modern-shell .mis-section h2 { font-size: 23px; }
.mis-modern-shell .mis-count,
.mis-modern-shell .mis-section__note { font-size: 13px; }
.mis-modern-shell .mis-system-card h3 { font-size: 16px; }
.mis-modern-shell .mis-system-card p { font-size: 14px; }
.mis-modern-shell .mis-status,
.mis-modern-shell .mis-system-card__caption { font-size: 12px; }
.mis-modern-shell .mis-system-action { font-size: 14px; }
.mis-modern-shell .mis-section--other .mis-system-card h3 { font-size: 15px; }
.mis-modern-shell .mis-switch { font-size: 14px; }
/* Prevent long text from crowding small screens. */
.mis-modern-shell .mis-system-card p,
.mis-modern-shell .mis-welcome p { overflow-wrap: anywhere; }
@media (max-width: 575px) {
  .mis-modern-shell .mis-auth-links a { font-size: 13px; }
  .mis-modern-shell .mis-system-card h3 { font-size: 15px; }
  .mis-modern-shell .mis-system-action { white-space: normal; text-align: right; }
}


/* ========================================================
   DuKKia Phase 2A - Mobile navigation refinement
   Applies to phones and narrow screens only.
   Desktop navigation remains unchanged.
   ======================================================== */

@media (max-width: 750px) {

    /* Keep the DuKKia brand and navigation in one row */
    .mis-modern-shell .mis-side {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 12px 16px;
    }

    .mis-modern-shell .mis-brand {
        flex: 0 0 auto;
        padding: 0;
        font-size: 25px;
    }

    /* Keep Overview visible */
    .mis-modern-shell .mis-side__nav {
        flex: 0 1 auto;
        min-width: 0;
        overflow: visible;
    }

        /* Hide the remaining workspace links on mobile.
       They remain available on desktop. */
        .mis-modern-shell .mis-side__nav
        .mis-side__link:not([href^="/OfficeIndex"]) {
            display: none !important;
        }

        /* Compact Overview button */
        .mis-modern-shell .mis-side__nav .mis-side__link {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 10px;
            font-size: 14px;
            white-space: nowrap;
        }

    /* Keep the Helpdesk shortcut */
    .mis-modern-shell .mis-side__bottom {
        display: flex;
        flex: 0 0 auto;
        padding: 0;
        margin: 0;
        border: 0;
    }

        .mis-modern-shell .mis-side__bottom > a:not([href^="/SupportTickets"]),
        .mis-modern-shell .mis-side__bottom form {
            display: none !important;
        }

        /* Compact Help & Support to its icon on small screens */
        .mis-modern-shell .mis-side__bottom
        a[href^="/SupportTickets"] {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            font-size: 0;
            white-space: nowrap;
        }

            .mis-modern-shell .mis-side__bottom
            a[href^="/SupportTickets"] i {
                font-size: 19px;
                width: 20px;
            }
}



/* DuKKia MIS — Active Systems readability improvements */

/* Module description */
.mis-modern-shell #misActiveCards .mis-system-card p {
    font-size: 16px;
    line-height: 1.6;
}

/* Module status badge */
.mis-modern-shell #misActiveCards .mis-status {
    font-size: 14px;
    font-weight: 700;
}

/* Ready to open */
.mis-modern-shell #misActiveCards .mis-system-card__caption {
    font-size: 15px;
    font-weight: 500;
}

/* Open system action */
.mis-modern-shell #misActiveCards .mis-system-action {
    font-size: 16px;
    font-weight: 800;
}

    /* Arrow spacing */
    .mis-modern-shell #misActiveCards .mis-system-action i {
        margin-left: 8px;
    }



/* ====================================================
   DuKKia MIS — Other Systems readability improvements
   ==================================================== */

/* Section heading */
.mis-modern-shell .mis-section--other .mis-section__eyebrow {
    font-size: 14px;
    font-weight: 700;
}

.mis-modern-shell .mis-section--other h2 {
    font-size: 25px;
    font-weight: 750;
}

/* Module descriptions */
.mis-modern-shell .mis-section--other .mis-system-card p {
    font-size: 16px;
    line-height: 1.6;
}

/* Module status badges */
.mis-modern-shell .mis-section--other .mis-status {
    font-size: 14px;
    font-weight: 700;
}

/* View Subscription action */
.mis-modern-shell .mis-section--other .mis-system-action {
    font-size: 16px;
    font-weight: 800;
}

    .mis-modern-shell .mis-section--other .mis-system-action i {
        margin-left: 8px;
    }

/* Bottom security and assistance message */
.mis-modern-shell .mis-bottom-note {
    font-size: 16px;
    line-height: 1.7;
}

    /* Need assistance link */
    .mis-modern-shell .mis-bottom-note a {
        font-size: inherit;
        font-weight: 700;
    }


/* Other Systems — View Subscription button */

.mis-modern-shell #misOtherCards button.mis-system-action {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

    /* Arrow spacing */
    .mis-modern-shell #misOtherCards button.mis-system-action i {
        font-size: 16px;
        margin-left: 8px;
    }


/* ==============================================
   DuKKia MIS — Summary cards typography
   ============================================== */

/* Active systems, Available modules, Other systems */
.mis-modern-shell .mis-summary .mis-metric span {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

/* Summary figures */
.mis-modern-shell .mis-summary .mis-metric strong {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

/* Smaller screens */
@media (max-width: 767px) {
    .mis-modern-shell .mis-summary .mis-metric span {
        font-size: 14px;
    }

    .mis-modern-shell .mis-summary .mis-metric strong {
        font-size: 27px;
    }
}
