﻿/* Clinic Home Dashboard */

.clinic-home-wrapper {
    min-height: 100vh;
    background-image:
        radial-gradient(circle at top left, rgba(20, 184, 166, .16), transparent 34rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, .12), transparent 30rem),
        linear-gradient(rgba(244, 247, 251, 0.92), rgba(244, 247, 251, 0.92));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body>#mainContent>.clinic-home-wrapper,
body>#mainContent:has(.clinic-home-wrapper) {
    margin-left: 0 !important;
}

/* Header */
.clinic-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.clinic-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.clinic-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.clinic-header-logo-center {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 2px dashed rgba(6, 182, 212, 0.25);
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: rgba(6, 182, 212, 0.4);
    text-align: center;
    line-height: 1.1;
}

.clinic-header-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border: 2px dashed rgba(6, 182, 212, 0.25);
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: rgba(6, 182, 212, 0.4);
    text-align: center;
    line-height: 1.1;
}

.clinic-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 118, 110, .1);
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, .18);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.clinic-welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--patient-heading);
    margin: 0 0 0.25rem 0;
}

.clinic-subtitle {
    color: var(--patient-muted);
    margin: 0;
    font-size: 1rem;
}

.clinic-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.clinic-logout-link {
    color: var(--patient-heading);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(5px);
    transition: all 0.2s;
}

.clinic-logout-link:hover {
    background-color: rgba(255, 255, 255, 1);
    color: var(--patient-accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Container */
.clinic-container {
    position: relative;
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

/* Header container — smaller padding than modules container */
.clinic-header-container {
    margin-top: 30px;
    margin-bottom: 0;
    padding: 24px 30px;
}

/* Mesto za logo — u pozadini centralnog dela */
.clinic-logo-watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 2px dashed rgba(6, 182, 212, 0.10);
    border-radius: 24px;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(6, 182, 212, 0.15);
    text-align: center;
}

.clinic-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: #94a3b8;
    opacity: 0.15;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Module grid */
.moduli-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* Module cards */
.modul-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.35s ease-in-out;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(148, 163, 184, .22);
    color: inherit;
    text-align: center;
    min-height: 210px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.modul-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: currentColor;
    opacity: 0.85;
    transition: height 0.35s ease, opacity 0.35s ease;
    z-index: 0;
}

.modul-btn:hover::before {
    height: 100%;
    opacity: 0.12;
}

.modul-btn i {
    font-size: 2.8rem;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
}

.modul-btn:hover i {
    transform: scale(1.15);
}

.modul-btn h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.modul-desc {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: var(--patient-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Module colors — bela pozadina, obojena gornja ivica, hover razlivanje */
.infopult-modul {
    color: #0f766e;
}

.kabineti-modul {
    color: #0d6efd;
}

.admin-modul {
    color: #dc3545;
}

.apoteka-modul {
    color: #6f42c1;
}

.lab-modul {
    color: #0aa5c2;
}

.intervencije-modul {
    color: #e8590c;
}

.android-app-modul {
    color: #159c78;
}

.android-lekari-modul {
    color: #6610f2;
}

.predikcije-modul {
    color: #fd7e14;
}

.cloud-modul {
    color: #4263eb;
}

.modul-btn:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: currentColor;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10), 0 0 0 2px currentColor, 0 8px 24px color-mix(in srgb, currentColor 25%, transparent);
}

.modul-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.modul-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.modul-card .modul-btn {
    flex: 1;
}

.modul-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.85rem;
    z-index: 5;
    transition: color 0.2s ease, background 0.2s ease;
}

.modul-info-btn:hover {
    color: #0d6efd;
    background: rgba(255, 255, 255, 1);
}

.modul-card {
    position: relative;
    border: none;
}

.modul-usage-list {
    margin: 0;
    padding: 0 0 0 8px;
    list-style: none;
}

.modul-usage-list li {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.5;
    padding: 3px 0 3px 16px;
    position: relative;
}

.modul-usage-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .clinic-welcome-title {
        font-size: 1.35rem;
    }

    .clinic-container {
        margin: 15px auto;
        padding: 20px;
        border-radius: 16px;
    }

    .clinic-header-container {
        padding: 18px 20px;
    }

    .moduli-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modul-btn {
        padding: 28px 18px;
        min-height: 170px;
        border-radius: 14px;
    }

    .modul-btn i {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .modul-btn h3 {
        font-size: 1.15rem;
    }

    .modul-desc {
        font-size: 0.78rem;
    }

    .clinic-logo-placeholder {
        font-size: 1rem;
    }
}

/* Admin section */
.clinic-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--patient-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.moduli-admin-grid .modul-btn {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
}

.moduli-admin-grid .modul-btn:hover {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fca5a5;
}

/* ====================================================================
   PUTANJA PACIJENTA — Journey sekcije
   ==================================================================== */
.journey-section {
    margin-bottom: 1.5rem;
    padding: 1rem 0 0.5rem 0;
    border-top: 2px solid rgba(20, 184, 166, 0.15);
}

.journey-section:first-child {
    border-top: none;
    padding-top: 0;
}

.journey-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.journey-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.journey-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    margin-left: 38px;
}

.journey-subsection {
    margin-left: 38px;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(241, 245, 249, 0.6);
    border-radius: 10px;
    border-left: 3px solid #94a3b8;
}

.journey-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.journey-admin {
    border-top: 2px solid rgba(220, 38, 38, 0.15);
}

.journey-admin .journey-title {
    color: #b91c1c;
}

.journey-admin .journey-number {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
}

.journey-admin .journey-desc {
    color: #991b1b;
}

[data-bs-theme="dark"] .journey-section {
    border-top-color: rgba(20, 184, 166, 0.25);
}

[data-bs-theme="dark"] .journey-title {
    color: #5eead4;
}

[data-bs-theme="dark"] .journey-desc {
    color: #94a3b8;
}

[data-bs-theme="dark"] .journey-subsection {
    background: rgba(30, 41, 59, 0.6);
    border-left-color: #475569;
}

[data-bs-theme="dark"] .journey-subtitle {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .journey-admin {
    border-top-color: rgba(239, 68, 68, 0.25);
}

[data-bs-theme="dark"] .journey-admin .journey-title {
    color: #fca5a5;
}

/* ====================================================================
   MIKROSERVISI HEALTH — Status indikatori za 16 mikroservisa
   ==================================================================== */

.ms-health-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    backdrop-filter: blur(8px);
}

.ms-health-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f766e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ms-health-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ms-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ms-badge-total {
    background: rgba(37, 99, 235, 0.1);
    color: #1e40af;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.ms-badge-healthy {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.ms-badge-degraded {
    background: rgba(202, 138, 4, 0.1);
    color: #a16207;
    border: 1px solid rgba(202, 138, 4, 0.2);
}

.ms-badge-unhealthy {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.ms-refresh-btn {
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.ms-refresh-btn:hover {
    background: rgba(15, 118, 110, 0.2);
    transform: scale(1.05);
}

.ms-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.ms-health-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ms-health-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: background 0.3s;
}

.ms-status-healthy {
    border-color: rgba(22, 163, 74, 0.3);
}

.ms-status-healthy::before {
    background: #16a34a;
}

.ms-status-degraded {
    border-color: rgba(202, 138, 4, 0.3);
}

.ms-status-degraded::before {
    background: #ca8a04;
}

.ms-status-unhealthy {
    border-color: rgba(220, 38, 38, 0.3);
    opacity: 0.85;
}

.ms-status-unhealthy::before {
    background: #dc2626;
}

.ms-status-unknown {
    border-color: rgba(107, 114, 128, 0.2);
}

.ms-status-unknown::before {
    background: #9ca3af;
}

.ms-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ms-card-icon {
    font-size: 1.1rem;
    color: #0f766e;
    width: 20px;
    text-align: center;
}

.ms-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
    flex: 1;
}

.ms-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: ms-pulse 2s infinite;
}

.ms-dot-healthy {
    background: #16a34a;
    box-shadow: 0 0 6px rgba(22, 163, 74, 0.5);
}

.ms-dot-degraded {
    background: #ca8a04;
    box-shadow: 0 0 6px rgba(202, 138, 4, 0.5);
}

.ms-dot-unhealthy {
    background: #dc2626;
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
}

.ms-dot-unknown {
    background: #9ca3af;
}

@keyframes ms-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.ms-card-desc {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.ms-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.ms-port {
    font-family: 'Courier New', monospace;
    color: #9ca3af;
    font-weight: 600;
}

.ms-status-text {
    font-weight: 600;
    font-size: 0.75rem;
}

/* Dark mode */
[data-bs-theme="dark"] .ms-health-header {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(15, 118, 110, 0.25);
}

[data-bs-theme="dark"] .ms-health-card {
    background: rgba(30, 41, 59, 0.9);
}

[data-bs-theme="dark"] .ms-card-name {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .ms-card-desc {
    color: #94a3b8;
}

[data-bs-theme="dark"] .ms-card-icon {
    color: #2dd4bf;
}

[data-bs-theme="dark"] .ms-health-title {
    color: #2dd4bf;
}

/* ====================================================================
   DASHBOARD V3.0 — 8 GLAVNIH POLJA (premium glassmorphism)
   ==================================================================== */

/* Font override — Century Gothic */
.clinic-home-wrapper,
.clinic-home-wrapper * {
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, 'Segoe UI', system-ui, sans-serif !important;
}

/* ====== HEADER — U SKLADU SA CENTRALNIM DELOM ====== */
.clinic-header-container {
    max-width: 1400px !important;
    padding: 30px 30px !important;
    border-radius: 24px !important;
    margin-top: 30px !important;
    margin-bottom: 0 !important;
}

/* Početna /dashboard — header + moduli ista širina (3 kolone) */
.clinic-home-wrapper .dashboard-home-panel {
    max-width: 1200px !important;
    width: calc(100% - 2rem);
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 1.75rem 2rem !important;
    box-sizing: border-box;
}

.clinic-home-wrapper .dashboard-home-panel.fields-container {
    margin: 1.25rem auto 2rem !important;
}

.clinic-home-wrapper .clinic-header-row {
    width: 100%;
    max-width: none;
}

.clinic-home-wrapper .dashboard-section-head {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.clinic-header-left {
    margin-left: 0 !important;
    gap: 0.4rem !important;
}

.clinic-pill {
    font-size: 0.88rem !important;
    padding: 0.4rem 1rem !important;
    margin-bottom: 0 !important;
    background: rgba(15, 118, 110, .1) !important;
    border: 1px solid rgba(15, 118, 110, .18) !important;
    color: #0f766e !important;
}

.clinic-welcome-title {
    font-size: 1.76rem !important;
    color: #173f4f !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.clinic-subtitle {
    font-size: 1rem !important;
    color: #5b7080 !important;
    opacity: 1 !important;
    margin: 0 !important;
}

.clinic-logout-link {
    font-size: 0.9rem !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    color: #173f4f !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(5px) !important;
}

.clinic-logout-link:hover {
    background: linear-gradient(135deg, #06b6d4, #10b981) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35) !important;
}

/* ====== KONTEJNER POLJA ====== */
.fields-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2.5rem 3rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(19, 78, 74, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

/* Standard polja — mera u celom programu (v. .cursor/rules/mcl-dashboard-polja.mdc) */
.clinic-home-wrapper {
    --mcl-field-min-h: 210px;
    --mcl-field-pad: 36px 24px;
    --mcl-field-gap: 115.2px;
    --mcl-field-col: calc((100% - 48px) / 3 * 0.75);
}

/* ====== GRID — AUTO-FIT RESPONSIVAN ====== */
.main-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* Polja — uvek 3 kolone, sirina 75%, razmak 115.2px */
.clinic-home-wrapper .dashboard-home-grid,
.clinic-home-wrapper #mainFieldsGrid.dashboard-home-grid,
.clinic-home-wrapper #skeletonGrid.dashboard-home-grid {
    grid-template-columns: repeat(3, var(--mcl-field-col));
    gap: var(--mcl-field-gap);
    justify-content: start;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
    padding-top: 0;
}

.clinic-home-wrapper .mf-card.mf-card--name-only {
    min-height: var(--mcl-field-min-h);
    padding: var(--mcl-field-pad);
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.clinic-home-wrapper .mf-card.mf-card--name-only .mf-title {
    margin: 0;
}

.clinic-home-wrapper .mf-skeleton--name-only {
    min-height: 210px;
    padding: 36px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.clinic-home-wrapper .mf-skeleton--name-only .sk-title {
    width: 55%;
    height: 1.35rem;
}

@media (max-width: 992px) {
    .clinic-home-wrapper .dashboard-home-grid,
    .clinic-home-wrapper #mainFieldsGrid.dashboard-home-grid,
    .clinic-home-wrapper #skeletonGrid.dashboard-home-grid {
        grid-template-columns: repeat(3, var(--mcl-field-col));
        gap: var(--mcl-field-gap);
    }
}

@media (max-width: 576px) {
    .clinic-home-wrapper .dashboard-home-grid,
    .clinic-home-wrapper #mainFieldsGrid.dashboard-home-grid,
    .clinic-home-wrapper #skeletonGrid.dashboard-home-grid {
        grid-template-columns: repeat(3, var(--mcl-field-col));
        gap: var(--mcl-field-gap);
    }
}

/* ====== KARTICA ====== */
.mf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 36px 24px;
    min-height: 210px;
    overflow: hidden;
    border: 2px solid rgba(6, 182, 212, 0.10);
    box-shadow: 0 8px 22px rgba(19, 78, 74, 0.06);
    backdrop-filter: blur(5px);
    text-align: center;
    transition: transform .35s ease-in-out,
        box-shadow .35s ease-in-out,
        border-color .35s ease-in-out;
    cursor: pointer;
}

.mf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--mf-c1, #06b6d4), var(--mf-c2, #10b981));
    opacity: 0.85;
    transition: height .35s ease, opacity .35s ease;
    z-index: 0;
}

.mf-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--mf-glow, rgba(6, 182, 212, 0.08));
    filter: blur(45px);
    transition: opacity .4s, transform .4s;
    opacity: 0.6;
    pointer-events: none;
}

.mf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px var(--mf-shadow, rgba(6, 182, 212, 0.20));
    border-color: var(--mf-c2, #10b981);
}

.mf-card:hover::before {
    height: 100%;
    opacity: 0.12;
}

.mf-card:hover::after {
    opacity: 1;
    transform: scale(1.3);
}

.mf-card:focus-visible {
    outline: 3px solid var(--mf-c1, #06b6d4);
    outline-offset: 2px;
}

/* Broj polja */
.mf-number {
    position: absolute;
    top: 1.4rem;
    right: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mf-c1, #06b6d4), var(--mf-c2, #10b981));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--mf-shadow, rgba(6, 182, 212, 0.30));
}

/* Ikona */
.mf-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mf-icon-bg, rgba(6, 182, 212, 0.10));
    margin-bottom: 1.4rem;
    transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), background .4s;
}

.mf-card:hover .mf-icon-wrap {
    transform: scale(1.1) rotate(-3deg);
    background: var(--mf-icon-bg-hover, rgba(16, 185, 129, 0.18));
}

.mf-icon {
    font-size: 2.1rem;
    color: var(--mf-c1, #06b6d4);
    transition: color .4s;
}

.mf-card:hover .mf-icon {
    color: var(--mf-c2, #10b981);
}

/* Naslov */
.mf-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #134e4a;
    margin: 0 0 0.6rem 0;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Opis */
.mf-desc {
    font-size: 0.81rem;
    line-height: 1.5;
    color: #134e4a;
    opacity: 0.65;
    margin: 0 0 1rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

/* Footer kartice */
.mf-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 182, 212, 0.10);
    position: relative;
    z-index: 1;
}

.mf-phase-tag {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.15);
    color: #0e7490;
    font-family: ui-monospace, monospace;
}

.later-modules-section {
    border-top: 1px dashed rgba(100, 116, 139, 0.35);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.mf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--mf-badge-bg, rgba(6, 182, 212, 0.08));
    color: var(--mf-c1, #06b6d4);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.86rem;
    font-weight: 600;
}

.mf-arrow {
    font-size: 1.2rem;
    color: var(--mf-c1, #06b6d4);
    transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), color .4s;
}

.mf-card:hover .mf-arrow {
    transform: translateX(8px);
    color: var(--mf-c2, #10b981);
}

/* ====== BOJE PO POLJU — 4 brand boje + varijacije ====== */
.mf-prijem {
    --mf-c1: #06b6d4;
    --mf-c2: #0891b2;
    --mf-glow: rgba(6, 182, 212, 0.10);
    --mf-shadow: rgba(6, 182, 212, 0.20);
    --mf-icon-bg: rgba(6, 182, 212, 0.10);
    --mf-icon-bg-hover: rgba(6, 182, 212, 0.20);
    --mf-badge-bg: rgba(6, 182, 212, 0.08);
}

.mf-kabineti {
    --mf-c1: #10b981;
    --mf-c2: #059669;
    --mf-glow: rgba(16, 185, 129, 0.10);
    --mf-shadow: rgba(16, 185, 129, 0.20);
    --mf-icon-bg: rgba(16, 185, 129, 0.10);
    --mf-icon-bg-hover: rgba(16, 185, 129, 0.20);
    --mf-badge-bg: rgba(16, 185, 129, 0.08);
}

.mf-naplata {
    --mf-c1: #2dd4bf;
    --mf-c2: #14b8a6;
    --mf-glow: rgba(45, 212, 191, 0.10);
    --mf-shadow: rgba(45, 212, 191, 0.20);
    --mf-icon-bg: rgba(45, 212, 191, 0.10);
    --mf-icon-bg-hover: rgba(45, 212, 191, 0.20);
    --mf-badge-bg: rgba(45, 212, 191, 0.08);
}

/* Hronicni — crvena za hitnost/kontrast */
.mf-hronicni {
    --mf-c1: #ef4444;
    --mf-c2: #dc2626;
    --mf-glow: rgba(239, 68, 68, 0.10);
    --mf-shadow: rgba(239, 68, 68, 0.20);
    --mf-icon-bg: rgba(239, 68, 68, 0.10);
    --mf-icon-bg-hover: rgba(239, 68, 68, 0.20);
    --mf-badge-bg: rgba(239, 68, 68, 0.08);
}

.mf-sms {
    --mf-c1: #06b6d4;
    --mf-c2: #10b981;
    --mf-glow: rgba(6, 182, 212, 0.10);
    --mf-shadow: rgba(6, 182, 212, 0.20);
    --mf-icon-bg: rgba(6, 182, 212, 0.10);
    --mf-icon-bg-hover: rgba(16, 185, 129, 0.18);
    --mf-badge-bg: rgba(6, 182, 212, 0.08);
}

.mf-ezdravlje {
    --mf-c1: #2dd4bf;
    --mf-c2: #06b6d4;
    --mf-glow: rgba(45, 212, 191, 0.10);
    --mf-shadow: rgba(45, 212, 191, 0.20);
    --mf-icon-bg: rgba(45, 212, 191, 0.10);
    --mf-icon-bg-hover: rgba(6, 182, 212, 0.18);
    --mf-badge-bg: rgba(45, 212, 191, 0.08);
}

.mf-pacs {
    --mf-c1: #6366f1;
    --mf-c2: #4f46e5;
    --mf-glow: rgba(99, 102, 241, 0.10);
    --mf-shadow: rgba(99, 102, 241, 0.20);
    --mf-icon-bg: rgba(99, 102, 241, 0.10);
    --mf-icon-bg-hover: rgba(79, 70, 229, 0.18);
    --mf-badge-bg: rgba(99, 102, 241, 0.08);
}

.mf-identity {
    --mf-c1: #0891b2;
    --mf-c2: #0e7490;
    --mf-glow: rgba(8, 145, 178, 0.10);
    --mf-shadow: rgba(8, 145, 178, 0.20);
    --mf-icon-bg: rgba(8, 145, 178, 0.10);
    --mf-icon-bg-hover: rgba(14, 116, 144, 0.18);
    --mf-badge-bg: rgba(8, 145, 178, 0.08);
}

.mf-patients {
    --mf-c1: #06b6d4;
    --mf-c2: #0891b2;
    --mf-glow: rgba(6, 182, 212, 0.10);
    --mf-shadow: rgba(6, 182, 212, 0.20);
    --mf-icon-bg: rgba(6, 182, 212, 0.10);
    --mf-icon-bg-hover: rgba(8, 145, 178, 0.18);
    --mf-badge-bg: rgba(6, 182, 212, 0.08);
}

.mf-termini {
    --mf-c1: #14b8a6;
    --mf-c2: #0d9488;
    --mf-glow: rgba(20, 184, 166, 0.10);
    --mf-shadow: rgba(20, 184, 166, 0.20);
    --mf-icon-bg: rgba(20, 184, 166, 0.10);
    --mf-icon-bg-hover: rgba(13, 148, 136, 0.18);
    --mf-badge-bg: rgba(20, 184, 166, 0.08);
}

.mf-medrecords {
    --mf-c1: #2dd4bf;
    --mf-c2: #134e4a;
    --mf-glow: rgba(45, 212, 191, 0.10);
    --mf-shadow: rgba(45, 212, 191, 0.20);
    --mf-icon-bg: rgba(45, 212, 191, 0.10);
    --mf-icon-bg-hover: rgba(19, 78, 74, 0.18);
    --mf-badge-bg: rgba(45, 212, 191, 0.08);
}

.mf-integrations {
    --mf-c1: #8b5cf6;
    --mf-c2: #7c3aed;
    --mf-glow: rgba(139, 92, 246, 0.10);
    --mf-shadow: rgba(139, 92, 246, 0.20);
    --mf-icon-bg: rgba(139, 92, 246, 0.10);
    --mf-icon-bg-hover: rgba(124, 58, 237, 0.18);
    --mf-badge-bg: rgba(139, 92, 246, 0.08);
}

.mf-iot {
    --mf-c1: #f59e0b;
    --mf-c2: #d97706;
    --mf-glow: rgba(245, 158, 11, 0.10);
    --mf-shadow: rgba(245, 158, 11, 0.20);
    --mf-icon-bg: rgba(245, 158, 11, 0.10);
    --mf-icon-bg-hover: rgba(217, 119, 6, 0.18);
    --mf-badge-bg: rgba(245, 158, 11, 0.08);
}

.mf-admin {
    --mf-c1: #10b981;
    --mf-c2: #134e4a;
    --mf-glow: rgba(16, 185, 129, 0.10);
    --mf-shadow: rgba(16, 185, 129, 0.20);
    --mf-icon-bg: rgba(16, 185, 129, 0.10);
    --mf-icon-bg-hover: rgba(19, 78, 74, 0.18);
    --mf-badge-bg: rgba(16, 185, 129, 0.08);
}

.mf-ms {
    --mf-c1: #06b6d4;
    --mf-c2: #2dd4bf;
    --mf-glow: rgba(6, 182, 212, 0.10);
    --mf-shadow: rgba(6, 182, 212, 0.20);
    --mf-icon-bg: rgba(6, 182, 212, 0.10);
    --mf-icon-bg-hover: rgba(45, 212, 191, 0.18);
    --mf-badge-bg: rgba(6, 182, 212, 0.08);
}

.mf-apoteka {
    --mf-c1: #0f766e;
    --mf-c2: #16a085;
    --mf-glow: rgba(15, 118, 110, 0.10);
    --mf-shadow: rgba(15, 118, 110, 0.20);
    --mf-icon-bg: rgba(15, 118, 110, 0.10);
    --mf-icon-bg-hover: rgba(22, 160, 133, 0.18);
    --mf-badge-bg: rgba(15, 118, 110, 0.08);
}

.mf-intervencije {
    --mf-c1: #e8590c;
    --mf-c2: #d9480f;
    --mf-glow: rgba(232, 89, 12, 0.10);
    --mf-shadow: rgba(232, 89, 12, 0.20);
    --mf-icon-bg: rgba(232, 89, 12, 0.10);
    --mf-icon-bg-hover: rgba(217, 72, 15, 0.18);
    --mf-badge-bg: rgba(232, 89, 12, 0.08);
}

/* ====== SKELETON LOADER (shimmer) ====== */
.mf-skeleton {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem 2.2rem 1.8rem;
    min-height: 300px;
    border: 1px solid rgba(6, 182, 212, 0.06);
    overflow: hidden;
    position: relative;
}

.mf-skeleton::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #06b6d4, #10b981);
    border-radius: 24px 24px 0 0;
    opacity: 0.3;
}

.sk-block {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.06) 25%, rgba(6, 182, 212, 0.12) 50%, rgba(6, 182, 212, 0.06) 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.5s infinite;
    border-radius: 8px;
}

.sk-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    margin-bottom: 1.4rem;
}

.sk-title {
    width: 70%;
    height: 1.6rem;
    margin-bottom: 0.8rem;
}

.sk-desc-line {
    width: 100%;
    height: 1rem;
    margin-bottom: 0.5rem;
}

.sk-desc-line.short {
    width: 60%;
}

.sk-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.sk-badge {
    width: 100px;
    height: 1.8rem;
    border-radius: 20px;
}

.sk-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

@keyframes sk-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ====== MODAL — istekla sesija ====== */
.mcl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(19, 78, 74, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcl-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.mcl-modal {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem 3rem;
    max-width: 460px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(19, 78, 74, 0.30);
    transform: scale(0.9);
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcl-modal-overlay.show .mcl-modal {
    transform: scale(1);
}

.mcl-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #10b981);
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.30);
}

.mcl-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #134e4a;
    margin: 0 0 0.75rem 0;
}

.mcl-modal-text {
    font-size: 1.05rem;
    color: #134e4a;
    opacity: 0.7;
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

.mcl-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #06b6d4, #10b981);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s;
    font-family: inherit;
}

.mcl-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}

/* ====== FOOTER ====== */
.mcl-footer {
    max-width: 1800px;
    margin: 1.5rem auto 2rem;
    padding: 1.2rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #134e4a;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.12);
    box-shadow: 0 4px 20px rgba(19, 78, 74, 0.06);
    backdrop-filter: blur(10px);
    letter-spacing: 0.02em;
}

.mcl-footer .mcl-footer-version {
    color: #06b6d4;
    font-weight: 700;
}

.mcl-footer .mcl-footer-sep {
    color: #2dd4bf;
    margin: 0 0.4rem;
}

.mcl-footer .mcl-footer-copy {
    opacity: 0.7;
}

.mcl-footer a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
}

.mcl-footer a:hover {
    text-decoration: underline;
}

/* ====== DASHBOARD — MODUL vs MS sekcije ====== */
.dashboard-section-head {
    position: relative;
    z-index: 1;
    padding: 0 0 0.25rem;
    max-width: 1800px;
    margin: 0 auto;
}

.dashboard-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #134e4a;
    margin: 0 0 0.35rem;
}

.dashboard-section-desc {
    font-size: 0.92rem;
    color: var(--patient-muted, #64748b);
    margin: 0;
    max-width: 52rem;
}

.dashboard-ms-link {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #06b6d4;
    text-decoration: none;
}

.dashboard-ms-link:hover {
    color: #134e4a;
    text-decoration: underline;
}

.ms-dashboard-section {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(6, 182, 212, 0.12);
    margin-top: 0.5rem;
}

.dash-kind-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    z-index: 2;
}

.dash-kind-modul {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.dash-kind-ms {
    background: rgba(6, 182, 212, 0.12);
    color: #0e7490;
    border: 1px solid rgba(6, 182, 212, 0.35);
}

.ms-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 16px 0 8px;
    position: relative;
    z-index: 1;
}

.ms-dash-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    padding: 2.5rem 1rem 1rem;
    min-height: 140px;
    border: 1px solid rgba(6, 182, 212, 0.14);
    box-shadow: 0 4px 14px rgba(19, 78, 74, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ms-dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.12);
    border-color: #2dd4bf;
}

.ms-dash-title {
    font-size: 1rem;
    font-weight: 700;
    color: #134e4a;
    margin: 0 0 0.35rem;
    text-align: left;
    width: 100%;
}

.ms-dash-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
    text-align: left;
    flex: 1;
}

.ms-dash-footer {
    margin-top: 0.65rem;
    width: 100%;
}

.ms-dash-port {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.ms-pharmacy { --ms-accent: #10b981; }
.ms-intervencije { --ms-accent: #e8590c; }
.ms-laboratory { --ms-accent: #06b6d4; }
.ms-ehealth { --ms-accent: #2dd4bf; }
.ms-financial { --ms-accent: #134e4a; }

.ms-dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #10b981);
    border-radius: 14px 14px 0 0;
    opacity: 0.7;
}

.mf-card.ms-promoted-card {
    border-style: dashed;
    border-color: rgba(16, 185, 129, 0.45);
}

.mf-card.ms-promoted-card.mcl-field-card--done::before {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}

.mf-card.ms-promoted-card .ms-port-badge {
    font-family: ui-monospace, monospace;
    color: #0e7490;
}

/* ====== ZAVRŠENOST — progress bar + pill (F0–F8 realne procene) ====== */
.dash-completion {
    width: 100%;
    max-width: 100%;
    margin: 0.35rem 0 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.dash-progress-track {
    width: 100%;
    max-width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    overflow: hidden;
}

.dash-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
}

.mf-percent-pill,
.dash-pct-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-pct--done {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.dash-pct--done.dash-progress-fill,
.dash-progress-fill.dash-pct--done {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}

.dash-pct--mid {
    background: rgba(6, 182, 212, 0.14);
    color: #0e7490;
    border: 1px solid rgba(6, 182, 212, 0.28);
}

.dash-progress-fill.dash-pct--mid {
    background: linear-gradient(90deg, #06b6d4, #2dd4bf);
}

.dash-pct--progress {
    background: rgba(45, 212, 191, 0.14);
    color: #0f766e;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.dash-progress-fill.dash-pct--progress {
    background: linear-gradient(90deg, #2dd4bf, #06b6d4);
}

.dash-pct--low {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.22);
}

.dash-progress-fill.dash-pct--low {
    background: linear-gradient(90deg, #94a3b8, #64748b);
}

.dash-pct--frozen {
    background: rgba(148, 163, 184, 0.18);
    color: #64748b;
    border: 1px dashed rgba(100, 116, 139, 0.45);
}

.dash-progress-fill.dash-pct--frozen {
    background: repeating-linear-gradient(90deg, #94a3b8 0, #94a3b8 6px, #cbd5e1 6px, #cbd5e1 12px);
}

.dash-card--done {
    border-color: rgba(16, 185, 129, 0.35) !important;
}

.dash-card--done::before {
    background: linear-gradient(90deg, #10b981, #06b6d4) !important;
}

.dash-card--frozen {
    opacity: 0.88;
    border-style: dashed !important;
}

.mf-lab {
    --mf-c1: #06b6d4;
    --mf-c2: #0aa5c2;
    --mf-glow: rgba(6, 182, 212, 0.10);
    --mf-shadow: rgba(6, 182, 212, 0.20);
    --mf-icon-bg: rgba(6, 182, 212, 0.10);
    --mf-icon-bg-hover: rgba(10, 165, 194, 0.18);
    --mf-badge-bg: rgba(6, 182, 212, 0.08);
}

.main-fields-grid,
.ms-fields-grid,
.fields-container {
    overflow-x: hidden;
    max-width: 100%;
}

.ms-dash-card .dash-completion {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}