/* ============================================================
   MRI REGISTRATION & MONITORING SYSTEM
   portal.css
   CLEAN RESPONSIVE VERSION
   ============================================================ */

:root {
    --primary: #6530b7;
    --primary-dark: #54249d;
    --primary-light: #f4eefb;
    --sidebar-width: 255px;
    --topbar-height: 68px;
    --body-bg: #f4f6fa;
    --surface: #ffffff;
    --text: #202939;
    --muted: #788293;
    --border: #e2e7ee;
    --success: #159a65;
    --warning: #e99b17;
    --danger: #d74b4b;
    --info: #3478d4;
    --radius: 12px;
    --shadow: 0 5px 18px rgba(23,31,49,.07);
}


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

html {
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    color: var(--text);
    background: var(--body-bg);
    overflow-x: hidden;
}

form {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

a {
    color: inherit;
}


/* ============================================================
   PORTAL LAYOUT
   ============================================================ */

.portal-layout {
    width: 100%;
    min-height: 100vh;
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.portal-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient( 180deg, #54249d 0%, #6530b7 50%, #743bc0 100% );
    box-shadow: 4px 0 18px rgba(46,22,82,.13);
    transition: transform .25s ease;
}


/* ============================================================
   SIDEBAR BRAND
   ============================================================ */

.sidebar-brand {
    min-height: 78px;
    padding: 17px 18px;
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.brand-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #ffffff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.16);
    font-size: 18px;
}

.brand-text {
    min-width: 0;
}

    .brand-text strong {
        display: block;
        color: #ffffff;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.25;
    }

    .brand-text span {
        display: block;
        margin-top: 3px;
        color: rgba(255,255,255,.68);
        font-size: 9px;
    }


/* ============================================================
   SIDEBAR NAVIGATION
   ============================================================ */

.sidebar-navigation {
    flex: 1;
    min-height: 0;
    padding: 15px 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

    .sidebar-navigation::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar-navigation::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.20);
        border-radius: 10px;
    }

    .sidebar-navigation > div {
        width: 100%;
    }

.sidebar-section-title {
    padding: 12px 11px 6px;
    color: rgba(255,255,255,.50);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}


/* ============================================================
   SIDEBAR MENU
   ============================================================ */

.sidebar-menu-item {
    width: 100%;
    min-height: 42px;
    margin-bottom: 4px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.86);
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

    .sidebar-menu-item:link,
    .sidebar-menu-item:visited {
        color: rgba(255,255,255,.86);
        text-decoration: none !important;
    }

    .sidebar-menu-item:hover {
        color: #ffffff;
        background: rgba(255,255,255,.13);
        text-decoration: none !important;
    }

    .sidebar-menu-item.active {
        color: #ffffff;
        background: rgba(255,255,255,.16);
        box-shadow: inset 3px 0 0 rgba(255,255,255,.90);
    }

.menu-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.82);
    font-size: 13px;
}

.sidebar-menu-item:hover .menu-icon,
.sidebar-menu-item.active .menu-icon {
    color: #ffffff;
}


/* ============================================================
   SIDEBAR FOOTER
   ============================================================ */

.sidebar-footer {
    padding: 14px 18px 16px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.06);
}

    .sidebar-footer strong {
        display: block;
        color: rgba(255,255,255,.85);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.4;
    }

    .sidebar-footer span {
        display: block;
        margin-top: 3px;
        color: rgba(255,255,255,.50);
        font-size: 9px;
    }


/* ============================================================
   MAIN AREA
   ============================================================ */

.portal-main {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: margin-left .25s ease, width .25s ease;
}


/* ============================================================
   TOPBAR
   ============================================================ */

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    height: var(--topbar-height);
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(20,30,48,.035);
}

.topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.sidebar-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3e7ed;
    border-radius: 9px;
    color: #6030a5;
    background: #ffffff;
    cursor: pointer;
    font-size: 14px;
}

    .sidebar-toggle:hover {
        background: #f8f4fc;
        border-color: #d9caea;
    }

.portal-title {
    overflow: hidden;
    color: #283345;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   TOPBAR USER
   ============================================================ */

.topbar-user {
    position: relative;
    flex: 0 0 auto;
}

.user-profile-button {
    min-height: 43px;
    padding: 5px 9px 5px 6px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #e3e7ed;
    border-radius: 10px;
    color: #283345;
    background: #ffffff;
    cursor: pointer;
    font-family: inherit;
}

    .user-profile-button:hover {
        border-color: #d9caea;
        background: #fcfaff;
    }

.user-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient( 135deg, #6530b7, #8950ce );
    font-size: 12px;
    font-weight: 700;
}

.user-info {
    min-width: 105px;
    display: block;
    text-align: left;
}

    .user-info strong {
        display: block;
        max-width: 165px;
        overflow: hidden;
        color: #2b3545;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-info small {
        display: block;
        margin-top: 2px;
        color: #8a93a0;
        font-size: 9px;
        line-height: 1.2;
    }

.user-arrow {
    margin-left: 3px;
    color: #8d96a4;
    font-size: 10px;
}


/* ============================================================
   ACCOUNT DROPDOWN
   ============================================================ */

.account-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1500;
    width: 220px;
    padding: 8px;
    border: 1px solid #e4e7ed;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(22,30,46,.15);
}

    .account-dropdown.show {
        display: block;
    }

.account-dropdown-title {
    padding: 8px 9px 7px;
    color: #9566c6;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.account-separator {
    height: 1px;
    margin: 6px 4px;
    background: #eceef2;
}

.account-menu-item {
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 7px;
    color: #3b4554;
    background: transparent;
    text-decoration: none !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

    .account-menu-item:link,
    .account-menu-item:visited {
        color: #3b4554;
        text-decoration: none !important;
    }

    .account-menu-item i {
        width: 18px;
        color: #7540b9;
        text-align: center;
    }

    .account-menu-item:hover {
        color: #3b4554;
        background: #f6f1fb;
        text-decoration: none !important;
    }

.account-logout {
    color: #bd3e3e !important;
}

    .account-logout i {
        color: #bd3e3e;
    }


/* ============================================================
   CONTENT
   ============================================================ */

.portal-content {
    width: 100%;
    min-height: calc(100vh - var(--topbar-height));
    padding: 20px;
}

.page-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}


/* ============================================================
   12 COLUMN RESPONSIVE GRID
   ============================================================ */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -7px;
    margin-right: -7px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-left: 7px;
    padding-right: 7px;
}

.col-1 {
    width: 8.333333%;
}

.col-2 {
    width: 16.666667%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.333333%;
}

.col-5 {
    width: 41.666667%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.333333%;
}

.col-8 {
    width: 66.666667%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.333333%;
}

.col-11 {
    width: 91.666667%;
}

.col-12 {
    width: 100%;
}


@media (min-width: 768px) {

    .col-md-1 {
        width: 8.333333%;
    }

    .col-md-2 {
        width: 16.666667%;
    }

    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.333333%;
    }

    .col-md-5 {
        width: 41.666667%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-7 {
        width: 58.333333%;
    }

    .col-md-8 {
        width: 66.666667%;
    }

    .col-md-9 {
        width: 75%;
    }

    .col-md-10 {
        width: 83.333333%;
    }

    .col-md-11 {
        width: 91.666667%;
    }

    .col-md-12 {
        width: 100%;
    }
}


@media (min-width: 1200px) {

    .col-lg-1 {
        width: 8.333333%;
    }

    .col-lg-2 {
        width: 16.666667%;
    }

    .col-lg-3 {
        width: 25%;
    }

    .col-lg-4 {
        width: 33.333333%;
    }

    .col-lg-5 {
        width: 41.666667%;
    }

    .col-lg-6 {
        width: 50%;
    }

    .col-lg-7 {
        width: 58.333333%;
    }

    .col-lg-8 {
        width: 66.666667%;
    }

    .col-lg-9 {
        width: 75%;
    }

    .col-lg-10 {
        width: 83.333333%;
    }

    .col-lg-11 {
        width: 91.666667%;
    }

    .col-lg-12 {
        width: 100%;
    }
}


/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
    margin-bottom: 18px;
}

    .page-header h1,
    .page-header h2 {
        margin: 0 0 5px;
        color: #202939;
        font-weight: 750;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header h2 {
        font-size: 19px;
    }

    .page-header p {
        margin: 0;
        color: var(--muted);
        font-size: 11px;
    }


/* ============================================================
   CARDS
   ============================================================ */

.card,
.portal-card {
    width: 100%;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.card-header {
    min-height: 53px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    margin: 0;
    color: #273142;
    font-size: 13px;
    font-weight: 750;
}

    .card-title i {
        margin-right: 7px;
        color: var(--primary);
    }

.card-subtitle {
    margin-top: 4px;
    color: #8a93a0;
    font-size: 10px;
}

.card-body {
    padding: 16px;
}


/* ============================================================
   DASHBOARD HERO - COMPACT
   ============================================================ */

.dashboard-hero {
    position: relative;
    min-height: 125px;
    margin-bottom: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient( 135deg, #54249d 0%, #7135c2 55%, #8b50d0 100% );
    box-shadow: 0 8px 22px rgba(83,36,157,.14);
}

    .dashboard-hero::before {
        content: "";
        position: absolute;
        width: 230px;
        height: 130px;
        right: -60px;
        top: -90px;
        border-radius: 50%;
        background: rgba(255,255,255,.07);
    }

    .dashboard-hero::after {
        content: "";
        position: absolute;
        width: 170px;
        height: 120px;
        right: 130px;
        bottom: -95px;
        border-radius: 50%;
        background: rgba(255,255,255,.055);
    }

.dashboard-hero-left {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.dashboard-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    padding: 4px 9px;
    border-radius: 20px;
    color: rgba(255,255,255,.90);
    background: rgba(255,255,255,.12);
    font-size: 8px;
    font-weight: 700;
}

.dashboard-hero h1 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.dashboard-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.80);
    font-size: 10px;
    line-height: 1.45;
}


/* ============================================================
   HERO STAT
   ============================================================ */

.hero-stat {
    margin-top: 9px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255,255,255,.15);
    font-size: 12px;
}

.hero-stat span {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 8px;
}

.hero-stat strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.1;
}


/* ============================================================
   HERO ILLUSTRATION
   ============================================================ */

.dashboard-hero-right {
    position: relative;
    z-index: 2;
    width: 155px;
    flex: 0 0 155px;
}

.hero-illustration {
    position: relative;
    width: 140px;
    height: 95px;
    margin: auto;
}

.hero-main-icon {
    position: absolute;
    left: 41px;
    top: 18px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #7135c2;
    background: #ffffff;
    font-size: 23px;
    box-shadow: 0 9px 22px rgba(38,16,72,.18);
}

.hero-small-icon {
    position: absolute;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255,255,255,.17);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 10px;
}

.hero-small-one {
    left: 5px;
    top: 9px;
}

.hero-small-two {
    right: 3px;
    top: 5px;
}

.hero-small-three {
    right: 8px;
    bottom: 3px;
}


/* ============================================================
   DASHBOARD SECTION HEADER
   ============================================================ */

.dashboard-section-header {
    margin-bottom: 14px;
}

    .dashboard-section-header h2 {
        margin: 0 0 4px;
        color: #202939;
        font-size: 18px;
        font-weight: 750;
    }

    .dashboard-section-header p {
        margin: 0;
        color: var(--muted);
        font-size: 10px;
    }


/* ============================================================
   DASHBOARD STAT CARDS
   ============================================================ */

.stat-card {
    position: relative;
    width: 100%;
    min-height: 112px;
    margin-bottom: 14px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.stat-card-label {
    max-width: calc(100% - 65px);
    color: #808a98;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
}

.stat-card-value {
    margin-top: 8px;
    color: #252f3f;
    font-size: 26px;
    font-weight: 800;
}

.stat-card-caption {
    margin-top: 5px;
    max-width: calc(100% - 65px);
    color: #8a93a0;
    font-size: 10px;
    line-height: 1.4;
}

.stat-card-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 18px;
}


/* ============================================================
   DASHBOARD CARD ICON COLORS
   ============================================================ */

.stat-icon-purple {
    background: linear-gradient( 135deg, #7438c8, #914fda );
}

.stat-icon-orange {
    background: linear-gradient( 135deg, #e99012, #f5aa25 );
}

.stat-icon-blue {
    background: linear-gradient( 135deg, #286ed4, #438be8 );
}

.stat-icon-green {
    background: linear-gradient( 135deg, #159a65, #29b77b );
}


/* ============================================================
   DASHBOARD CHARTS
   ============================================================ */

.dashboard-chart-row {
    margin-top: 2px;
}

.dashboard-chart-card {
    height: calc(100% - 14px);
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
}

    .chart-wrapper canvas {
        max-width: 100%;
        max-height: 100%;
    }

.chart-wrapper-doughnut {
    max-width: 350px;
    margin: 0 auto;
}


/* ============================================================
   REGISTRATION WORKFLOW
   ============================================================ */

.registration-workflow {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 5px;
}

.workflow-item {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 145px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #e5e8ee;
    border-radius: 12px;
    background: #ffffff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .workflow-item:hover {
        transform: translateY(-2px);
        border-color: #d9caea;
        box-shadow: 0 8px 20px rgba(45,31,70,.08);
    }

.workflow-number {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #6530b7;
    background: #f2ebfa;
    font-size: 9px;
    font-weight: 800;
}

.workflow-step-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient( 135deg, #6530b7, #8750cb );
    font-size: 18px;
    box-shadow: 0 7px 15px rgba(101,48,183,.18);
}

.workflow-content strong {
    display: block;
    color: #293344;
    font-size: 12px;
    font-weight: 750;
}

.workflow-content span {
    display: block;
    margin-top: 5px;
    color: #87909d;
    font-size: 10px;
    line-height: 1.4;
}

.workflow-connector {
    flex: 0 0 25px;
    color: #b7a0d4;
    font-size: 15px;
    text-align: center;
}

.workflow-final {
    border-color: #cfe8db;
    background: linear-gradient( 180deg, #ffffff, #f8fcfa );
}

    .workflow-final .workflow-step-icon {
        background: linear-gradient( 135deg, #159a65, #27b77c );
        box-shadow: 0 7px 15px rgba(21,154,101,.18);
    }

    .workflow-final .workflow-number {
        color: #148459;
        background: #e8f7ef;
    }

.workflow-orange {
    background: linear-gradient( 135deg, #e99012, #f5aa25 );
}

.workflow-blue {
    background: linear-gradient( 135deg, #286ed4, #438be8 );
}

.workflow-green {
    background: linear-gradient( 135deg, #159a65, #29b77b );
}

.workflow-number-orange {
    color: #b96a00;
    background: #fff1d9;
}

.workflow-number-blue {
    color: #235fae;
    background: #e5f0ff;
}


/* ============================================================
   FORMS
   ============================================================ */

.form-group {
    margin-bottom: 14px;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        color: #465062;
        font-size: 10px;
        font-weight: 700;
    }

.form-control,
.input,
.select {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #dce1e8;
    border-radius: 7px;
    outline: none;
    color: #2d3748;
    background: #ffffff;
    font-family: inherit;
    font-size: 11px;
}

textarea.form-control,
textarea.input {
    height: auto;
    min-height: 80px;
    padding-top: 9px;
    padding-bottom: 9px;
    resize: vertical;
}

.form-control:focus,
.input:focus,
.select:focus {
    border-color: #7b46bd;
    box-shadow: 0 0 0 3px rgba(123,70,189,.08);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    min-height: 38px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 7px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient( 135deg, #6530b7, #824bc7 );
}

.btn-success {
    color: #ffffff;
    background: var(--success);
}

.btn-danger {
    color: #ffffff;
    background: var(--danger);
}

.btn-warning {
    color: #ffffff;
    background: var(--warning);
}

.btn-secondary {
    color: #4b5563;
    background: #edf0f4;
}


/* ============================================================
   TABLES
   ============================================================ */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

    .table th {
        padding: 10px 11px;
        color: #ffffff;
        background: #6840a1;
        border-bottom: 1px solid #dfe4eb;
        font-size: 10px;
        font-weight: 700;
        text-align: left;
        white-space: nowrap;
    }

    .table td {
        padding: 10px 11px;
        border-bottom: 1px solid #edf0f4;
        color: #465062;
        font-size: 10px;
        vertical-align: middle;
    }

    .table tr:hover td {
        background: #faf8fd;
    }


/* ============================================================
   BADGES
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
}

.badge-success {
    color: #10704a;
    background: #e8f7ef;
}

.badge-warning {
    color: #936100;
    background: #fff4d8;
}

.badge-danger {
    color: #a72d2d;
    background: #ffecec;
}

.badge-info {
    color: #275d9e;
    background: #eaf3ff;
}


/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 650;
}

    .alert:empty {
        display: none;
    }

.alert-success {
    color: #14613f;
    background: #eaf8f0;
    border: 1px solid #bce7ce;
}

.alert-danger,
.alert-error {
    color: #a72c2c;
    background: #fff0f0;
    border: 1px solid #f0c3c3;
}

.alert-warning {
    color: #895b00;
    background: #fff8e8;
    border: 1px solid #f2da9b;
}

.alert-info {
    color: #275d9e;
    background: #eaf3ff;
    border: 1px solid #c9dcf5;
}


/* ============================================================
   DESKTOP SIDEBAR COLLAPSE
   ============================================================ */

@media (min-width: 992px) {

    body.sidebar-collapsed .portal-sidebar {
        transform: translateX( calc(-1 * var(--sidebar-width)) );
    }

    body.sidebar-collapsed .portal-main {
        width: 100%;
        margin-left: 0;
    }
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .registration-workflow {
        flex-wrap: wrap;
    }

    .workflow-item {
        flex: 1 1 calc(50% - 30px);
    }

    .workflow-connector {
        display: none;
    }
}


@media (max-width: 991px) {

    .portal-sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-collapsed .portal-sidebar {
        transform: translateX(0);
    }

    .portal-main {
        width: 100%;
        margin-left: 0;
    }

    .portal-content {
        padding: 18px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .portal-topbar {
        height: auto;
        min-height: 64px;
        padding: 10px 14px;
    }

    .portal-content {
        padding: 14px;
    }

    .user-info {
        display: none;
    }

    .user-profile-button {
        padding: 5px 7px;
    }

    .user-arrow {
        display: none;
    }

    .account-dropdown {
        right: 0;
        width: 210px;
    }

    .card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 19px;
    }

    [class*="col-md-"],
    [class*="col-lg-"] {
        width: 100%;
    }


    /* HERO */

    .dashboard-hero {
        min-height: auto;
        padding: 16px;
    }

    .dashboard-hero-right {
        display: none;
    }

    .dashboard-hero h1 {
        font-size: 19px;
    }

    .dashboard-hero p {
        font-size: 10px;
    }

    .hero-stat {
        margin-top: 9px;
    }


    /* CHART */

    .chart-wrapper {
        height: 235px;
    }


    /* WORKFLOW */

    .registration-workflow {
        display: block;
        padding: 5px 0;
    }

    .workflow-item {
        width: 100%;
        min-height: 125px;
        margin-bottom: 12px;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .portal-content {
        padding: 11px;
    }

    .card-body {
        padding: 13px;
    }

    .portal-title {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stat-card {
        min-height: 105px;
        padding: 14px;
    }

    .stat-card-value {
        font-size: 23px;
    }

    .stat-card-icon {
        right: 13px;
        width: 43px;
        height: 43px;
        font-size: 16px;
    }

    .dashboard-hero {
        border-radius: 12px;
    }

        .dashboard-hero h1 {
            font-size: 18px;
        }

    .chart-wrapper {
        height: 220px;
    }
}




/* ============================================================
   MRI CENTRE REGISTRATION PAGE
   ============================================================ */

.centre-registration-page {
    padding-bottom: 25px;
}


    /* PAGE HEADER */

    .centre-registration-page .registration-page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 18px;
    }

        .centre-registration-page .registration-page-header h1 {
            margin: 0 0 6px 0;
            font-size: 24px;
            font-weight: 700;
            color: #172b4d;
        }

        .centre-registration-page .registration-page-header p {
            margin: 0;
            font-size: 12px;
            color: #667085;
        }


    /* STATUS */

    .centre-registration-page .registration-status {
        min-width: 160px;
        text-align: right;
    }

    .centre-registration-page .registration-status-label {
        display: block;
        margin-bottom: 5px;
        font-size: 10px;
        color: #667085;
    }

    .centre-registration-page .registration-status-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 112px;
        min-height: 28px;
        padding: 5px 13px;
        border-radius: 20px;
        background: #fff1c2;
        color: #9a6700;
        font-size: 10px;
        font-weight: 700;
    }


    /* SECTION CARD */

    .centre-registration-page .registration-section {
        margin-bottom: 14px;
        overflow: hidden;
    }

    .centre-registration-page .registration-section-header {
        padding: 14px 18px 11px;
        border-bottom: 1px solid #edf0f5;
    }

        .centre-registration-page .registration-section-header h3 {
            margin: 0 0 4px 0;
            font-size: 14px;
            font-weight: 700;
            color: #172b4d;
        }

            .centre-registration-page .registration-section-header h3 i {
                width: 20px;
                margin-right: 5px;
                color: #7137d1;
            }

        .centre-registration-page .registration-section-header p {
            margin: 0;
            font-size: 10px;
            color: #7a869a;
        }

    .centre-registration-page .registration-section-body {
        padding: 16px 18px 18px;
    }


    /* FORM GRID */

    .centre-registration-page .registration-form-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 14px;
    }

        .centre-registration-page .registration-form-grid.two-column {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

    .centre-registration-page .registration-field-full {
        grid-column: 1 / -1;
    }

    .centre-registration-page .registration-field-span-2 {
        grid-column: span 2;
    }


    /* FIELD */

    .centre-registration-page .registration-field label {
        display: block;
        margin: 0 0 5px 0;
        font-size: 10px;
        font-weight: 600;
        color: #344054;
    }

    .centre-registration-page .registration-field .required {
        color: #e5484d;
    }


    /* IMPORTANT:
   Do not redefine .form-control globally */

    .centre-registration-page .registration-field .form-control {
        width: 100%;
        height: 36px;
        min-height: 36px;
        box-sizing: border-box;
        padding: 7px 10px;
        border: 1px solid #d9e0ea;
        border-radius: 6px;
        background: #fff;
        font-size: 11px;
    }

    .centre-registration-page .registration-field textarea.form-control {
        height: auto;
        min-height: 70px;
        resize: vertical;
    }


    /* PREFILLED */

    .centre-registration-page .registration-prefilled {
        background: #f6f8fc !important;
        color: #344054 !important;
    }

    .centre-registration-page .registration-field-note {
        display: block;
        margin-top: 4px;
        font-size: 9px;
        color: #98a2b3;
    }


    /* BUTTON AREA */

    .centre-registration-page .registration-buttons {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 9px;
        margin-top: 16px;
        padding-top: 15px;
        border-top: 1px solid #e7ebf1;
    }


/* RESPONSIVE */

@media (max-width: 1100px) {

    .centre-registration-page .registration-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .centre-registration-page .registration-field-span-2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {

    .centre-registration-page .registration-page-header {
        display: block;
    }

    .centre-registration-page .registration-status {
        margin-top: 12px;
        text-align: left;
    }

    .centre-registration-page .registration-form-grid,
    .centre-registration-page .registration-form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .centre-registration-page .registration-field-span-2,
    .centre-registration-page .registration-field-full {
        grid-column: auto;
    }
}



/* =========================================================
   GOVERNMENT BRANDING
   ========================================================= */

.brand-government-logo {
    background: #ffffff !important;
    padding: 5px !important;
    overflow: hidden;
}

    .brand-government-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }


/* TOPBAR BRAND */

.portal-government-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar-logos {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

    .topbar-logos img {
        height: 34px;
        width: auto;
        max-width: 90px;
        object-fit: contain;
    }

.topbar-logo-divider {
    display: block;
    width: 1px;
    height: 28px;
    background: #dce2ec;
}

.portal-title-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .portal-title-text strong {
        color: #12213d;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.25;
    }

    .portal-title-text span {
        margin-top: 2px;
        color: #718096;
        font-size: 9px;
        font-weight: 600;
    }


/* SIDEBAR FOOTER */

.sidebar-footer small {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    opacity: 0.65;
}


/* COLLAPSED SIDEBAR */

body.sidebar-collapsed .brand-government-logo img {
    width: 32px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .topbar-logos {
        display: none;
    }

    .portal-title-text span {
        display: none;
    }
}

@media (max-width: 600px) {

    .portal-title-text strong {
        font-size: 11px;
    }
}