﻿/* =========================================================
   MajuKooP - Global Site CSS (Single Source of Truth)
   RULES:
   - Keep ALL global styles here (site.css)
   - Page-specific styles go to /css/pages/*.css only
   - Any "override / patch" MUST be at the end
========================================================= */


/* =========================================================
   01) BASE / ROOT FONT SCALE
   PURPOSE:
   - Default font size and document layout baseline
   NOTE:
   - You later override font size in "GLOBAL FONT & DENSITY PATCH"
========================================================= */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
}


/* =========================================================
   02) BRAND TOKENS (Green / Blue / Ink)
   PURPOSE:
   - Change colors/radius/shadow once → affects whole project
========================================================= */

:root {
    --mk-blue: #1e88e5;
    --mk-green: #43a047;
    --mk-ink: #0f172a;
    --mk-muted: #64748b;
    --mk-line: #e5e7eb;
    --mk-bg: #f6f8fb;
    --mk-card: #ffffff;
    --mk-danger: #ef4444;
    --mk-warn: #f59e0b;
    --mk-ok: #22c55e;
    --mk-shadow: 0 10px 30px rgba(15,23,42,.08);
    --mk-radius: 16px;
    --mk-radius-sm: 12px;
    --mk-font: "Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}


/* =========================================================
   03) GLOBAL TYPOGRAPHY + BACKGROUNDS
   PURPOSE:
   - Apply Inter font everywhere consistently
   - Apply mk-body background + color
========================================================= */

body, .mk-body, .auth-body,
button, input, select, textarea,
.form-control, .form-select, .form-label,
.table, .dataTables_wrapper, .select2-container {
    font-family: var(--mk-font);
}

.mk-body {
    background: var(--mk-bg);
    color: var(--mk-ink);
}


/* =========================================================
   04) AUTH PAGE BACKGROUND
   PURPOSE:
   - Login / Auth pages background effect
========================================================= */

.auth-body {
    background: radial-gradient(1200px 600px at 10% 10%, rgba(30,136,229,.18), transparent 60%), radial-gradient(1200px 600px at 90% 20%, rgba(67,160,71,.18), transparent 60%), var(--mk-bg);
    min-height: 100vh;
}


/* =========================================================
   05) GLOBAL FOCUS / ACCESSIBILITY
   PURPOSE:
   - Consistent focus ring for keyboard navigation
========================================================= */

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-select:focus, .form-check-input:focus {
    box-shadow: 0 0 0 .15rem rgba(30,136,229,.15);
    border-color: rgba(30,136,229,.55);
}


/* =========================================================
   06) LAYOUT SHELL (Topbar + Sidebar + Main)
   PURPOSE:
   - Sticky topbar, sidebar sizing, main padding
========================================================= */

/* Topbar (sticky) */
.mk-topbar {
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #fff;
    background: linear-gradient(90deg,#22c55e 0%, #1e88e5 55%, #0b1220 100%);
}

/* Brand (left) */
.mk-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 900;
    letter-spacing: .2px;
}

.mk-brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--mk-blue),var(--mk-green));
    box-shadow: 0 0 0 4px rgba(255,255,255,.14);
}

.mk-logo {
    height: 30px;
    width: auto;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    padding: 3px;
}

/* Header user button / burger */
.mk-user-btn {
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 7px 10px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mk-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #0b1220;
    font-weight: 900;
}

.mk-user-name {
    display: block;
    font-weight: 800;
    line-height: 1
}

.mk-user-type {
    display: block;
    opacity: .85;
    font-size: .82rem;
    line-height: 1
}

.mk-burger {
    border: 0;
    background: rgba(255,255,255,.14);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

/* Shell */
.mk-shell {
    display: flex;
    min-height: calc(100vh - 64px);
}

.mk-main {
    flex: 1;
    min-width: 0;
    background: var(--mk-bg);
    /*padding: 16px;*/
}

/* Sidebar */
.mk-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid rgba(15,23,42,.08);
    padding: 10px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow: auto;
    border-radius: 0;
}

/* Sidebar nav layout */
.mk-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Sidebar links */
.mk-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #0b1220;
    margin: 0;
}

    .mk-nav-link i {
        font-size: 18px;
        width: 22px;
        text-align: center;
        opacity: .9;
    }

    .mk-nav-link:hover {
        background: rgba(30,136,229,.10);
    }

    .mk-nav-link.active {
        background: linear-gradient(135deg, rgba(30,136,229,.12), rgba(67,160,71,.12));
        font-weight: 800;
    }

/* Collapsible groups */
.mk-nav-group-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: #0b1220;
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .mk-nav-group-btn:hover {
        background: rgba(34,197,94,.10);
    }

.mk-nav-sub {
    padding-left: 10px;
}

/* Offcanvas menu */
.mk-offcanvas .offcanvas-body {
    background: #fff;
}

/* Mobile shell tweaks */
@media (max-width: 575.98px) {
    .mk-main {
        padding: 12px;
    }
}


/* =========================================================
   07) STANDARD PAGE HEADER + CARD + BUTTON PATTERNS
   PURPOSE:
   - Reusable page header (gradient)
   - Reusable card + section title + soft button
========================================================= */

.page-header-gradient {
    background: linear-gradient(90deg,#22c55e 0%, #1e88e5 55%, #0b1220 100%);
    color: #fff;
    /*border-radius: var(--mk-radius) var(--mk-radius) 0 0;*/
    padding: 1rem 1.25rem;
    box-shadow: var(--mk-shadow);
}

    .page-header-gradient h4 {
        margin: 0;
        font-weight: 900;
    }

    .page-header-gradient p {
        margin: .25rem 0 0;
        opacity: .92;
        font-size: .92rem;
    }

/* Cards */
.mk-card {
    background: var(--mk-card);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    box-shadow: var(--mk-shadow);
}

.section-title {
    font-size: .78rem;
    letter-spacing: .08em;
    font-weight: 900;
    color: var(--mk-muted);
    text-transform: uppercase;
}

/* Buttons */
.btn-soft-secondary {
    border: 1px solid var(--mk-line);
    background: #fff;
    color: var(--mk-ink);
}

    .btn-soft-secondary:hover {
        background: rgba(15,23,42,.04);
    }


/* =========================================================
   08) FORMS (Global)
   PURPOSE:
   - Labels, inputs, compact form style
   - Required marker
========================================================= */

.form-label {
    font-weight: 800;
    color: var(--mk-ink);
    margin-bottom: .35rem;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid var(--mk-line);
    padding: .62rem .75rem;
    font-size: .95rem;
}

    .form-control::placeholder {
        color: rgba(100,116,139,.85);
    }

.form-text {
    color: var(--mk-muted);
}

.form-compact .form-control,
.form-compact .form-select {
    padding: .62rem .75rem;
}

.mk-required::after {
    content: " *";
    color: var(--mk-danger);
    font-weight: 900;
}


/* =========================================================
   09) VALIDATION (Global)
   PURPOSE:
   - ASP.NET validation styling
========================================================= */

.field-validation-error, .validation-summary-errors {
    color: var(--mk-danger);
    font-weight: 700;
}

.validation-summary-errors {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.25);
    padding: .75rem .9rem;
    border-radius: 12px;
}

.input-validation-error {
    border-color: rgba(239,68,68,.55) !important;
    box-shadow: 0 0 0 .15rem rgba(239,68,68,.12);
    background-image: none !important;
}

.mk-valid {
    border-color: rgba(34,197,94,.55) !important;
    box-shadow: 0 0 0 .15rem rgba(34,197,94,.10);
    padding-right: 2.25rem;
    background-repeat: no-repeat;
    background-position: right .65rem center;
    background-size: 16px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%2322c55e' d='M7.7 13.6L3.9 9.8l-1.4 1.4 5.2 5.2 10-10-1.4-1.4z'/%3E%3C/svg%3E");
}


/* =========================================================
   10) SELECT2 (Bootstrap 5 theme)
   PURPOSE:
   - Make Select2 match your form design
========================================================= */

.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(2.5rem + 2px);
    border: 1px solid var(--mk-line) !important;
    border-radius: 12px !important;
    padding: .45rem .55rem;
}

.select2-container--bootstrap-5 .select2-selection__rendered {
    color: var(--mk-ink);
    padding-left: .25rem;
}

.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: var(--mk-muted);
}

.select2-container--bootstrap-5 .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%);
}

.select2-container--bootstrap-5.select2-container--open .select2-selection {
    box-shadow: 0 0 0 .15rem rgba(30,136,229,.15) !important;
    border-color: rgba(30,136,229,.55) !important;
}

.mk-select-error .select2-selection {
    border-color: rgba(239,68,68,.55) !important;
    box-shadow: 0 0 0 .15rem rgba(239,68,68,.12) !important;
}


/* =========================================================
   11) FLATPICKR
========================================================= */

.flatpickr-input.form-control[readonly] {
    background-color: #fff;
}


/* =========================================================
   12) DATATABLES (Base plugin styling)
   PURPOSE:
   - Keep inputs/paging consistent with MK design
========================================================= */

table.dataTable {
    width: 100% !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: 12px !important;
    border: 1px solid var(--mk-line) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 12px !important;
}

/* responsive +/- control */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 1px solid var(--mk-line);
    margin-right: .5rem;
    color: var(--mk-ink);
    background: #fff;
    font-weight: 900;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before {
    content: "−";
}


/* =========================================================
   13) MODALS (Global)
========================================================= */

.mk-modal {
    border-radius: var(--mk-radius);
    border: 1px solid var(--mk-line);
    box-shadow: var(--mk-shadow);
}

    .mk-modal .modal-header {
        border-bottom: 1px solid var(--mk-line);
    }


/* =========================================================
   14) ERROR PAGE (Global)
========================================================= */

.mk-error-page {
    min-height: calc(100vh - 0px);
    display: flex;
    align-items: flex-start;
    padding: 48px 0;
}

.mk-error-card {
    position: relative;
    overflow: hidden;
}

    .mk-error-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 10px;
        background: linear-gradient(180deg,var(--mk-green),var(--mk-blue));
    }

.mk-error-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px 14px 22px;
    background: linear-gradient(135deg, rgba(30,136,229,.10), rgba(67,160,71,.10));
    border-bottom: 1px solid var(--mk-line);
}

.mk-error-badge {
    min-width: 54px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 900;
    color: var(--mk-ink);
    background: #fff;
    border: 1px solid var(--mk-line);
}

.mk-error-h {
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--mk-ink);
}

.mk-error-sub {
    margin-top: 4px;
    font-size: .9rem;
    color: var(--mk-muted);
}

.mk-error-body {
    padding: 18px 18px 22px 22px;
}

.mk-error-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,136,229,.10);
    border: 1px solid rgba(30,136,229,.18);
    margin-bottom: 12px;
}

    .mk-error-icon i {
        font-size: 26px;
        color: var(--mk-blue);
    }

.mk-error-msg {
    font-weight: 800;
    margin-bottom: 6px;
}

.mk-error-help {
    color: var(--mk-muted);
    font-size: .92rem;
    margin-bottom: 16px;
}

.mk-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.mk-error-tip {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(245,158,11,.10);
    border: 1px solid rgba(245,158,11,.20);
    color: #7a4d00;
    font-size: .92rem;
}

.mk-error-contact {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(34,197,94,.10);
    border: 1px solid rgba(34,197,94,.18);
    color: var(--mk-ink);
    font-size: .92rem;
}

    .mk-error-contact .mk-wa {
        font-weight: 900;
        color: #128c7e;
        text-decoration: none;
    }

        .mk-error-contact .mk-wa:hover {
            text-decoration: underline;
        }

@media (max-width: 575.98px) {
    .mk-error-page {
        padding: 24px 0;
    }

    .page-header-gradient {
        /*border-radius: 14px;*/
    }
}


/* =========================================================
   15) MEMBER DASHBOARD UI (Module styles)
   PURPOSE:
   - Hero, tiles, tabs, badges, month grid, KPI, banner, quick links
========================================================= */

/* hero */
.mk-hero {
    border-radius: 22px;
    padding: 16px;
    color: #fff;
    background: linear-gradient(90deg,#22c55e 0%, #1e88e5 55%, #0b1220 100%);
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.mk-hero-title {
    font-size: 1.35rem;
    font-weight: 900;
}

.mk-hero-sub {
    opacity: .92;
    font-size: .92rem;
}

.mk-year {
    border-radius: 12px;
}

.mk-hero-strip {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
}

@media (max-width: 992px) {
    .mk-hero-strip {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

.mk-strip-item {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 10px 12px;
}

.mk-strip-k {
    font-size: .78rem;
    opacity: .9;
}

.mk-strip-v {
    font-size: 1.05rem;
    font-weight: 900;
}

.mk-card-soft {
    border: 1px solid rgba(15,23,42,.08);
    background: #fff;
}

/* tiles */
.mk-tiles {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 12px;
}

@media (max-width: 992px) {
    .mk-tiles {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

.mk-tile {
    text-decoration: none;
    color: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 10px 24px rgba(15,23,42,.10);
    position: relative;
    overflow: hidden;
}

    .mk-tile:after {
        content: "";
        position: absolute;
        inset: -40% -40%;
        background: radial-gradient(circle, rgba(255,255,255,.22), transparent 55%);
        transform: rotate(12deg);
    }

.mk-tile-k {
    position: relative;
    font-size: .82rem;
    opacity: .95;
    font-weight: 800;
}

.mk-tile-v {
    position: relative;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 6px;
}

.mk-tile-green {
    background: linear-gradient(135deg,#22c55e,#0ea5e9);
}

.mk-tile-blue {
    background: linear-gradient(135deg,#1e88e5,#0b1220);
}

.mk-tile-amber {
    background: linear-gradient(135deg,#f59e0b,#1e88e5);
}

.mk-tile-red {
    background: linear-gradient(135deg,#ef4444,#0b1220);
}

.mk-tile-ink {
    background: linear-gradient(135deg,#0b1220,#1e88e5);
}

/* tabs */
.mk-tabs {
    gap: 10px;
    flex-wrap: wrap;
}

    .mk-tabs .nav-link {
        border: 0;
        background: #fff;
        border-radius: 999px;
        padding: 10px 14px;
        font-weight: 900;
        color: #0b1220;
        box-shadow: 0 10px 24px rgba(15,23,42,.06);
        border: 1px solid rgba(15,23,42,.08);
    }

        .mk-tabs .nav-link.active {
            color: #fff;
            background: linear-gradient(90deg,#22c55e 0%, #1e88e5 55%, #0b1220 100%);
        }

/* table headers (only for tables using mk-table class) */
.mk-table thead th {
    font-weight: 900;
}

.mk-thead-blue {
    background: rgba(30,136,229,.14);
}

.mk-thead-green {
    background: rgba(34,197,94,.16);
}

.mk-thead-ink {
    background: rgba(11,18,32,.08);
}

/* badges + chips */
.mk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-weight: 900;
    font-size: .78rem;
}
.mk-badge-Modetext {
    background: rgba(34,197,94,.18);
    color: #fff;
}

.mk-badge-ok {
    background: rgba(34,197,94,.18);
    color: #0b1220;
}

.mk-badge-good {
    background: rgba(30,136,229,.14);
    color: #0b1220;
}

.mk-badge-risk {
    background: rgba(245,158,11,.18);
    color: #0b1220;
}

.mk-badge-bad {
    background: rgba(239,68,68,.14);
    color: #b91c1c;
}

.mk-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: .25rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.08);
    font-size: .78rem;
}

.mk-chip-ok {
    background: rgba(34,197,94,.12);
}

.mk-chip-bad {
    background: rgba(239,68,68,.10);
}

.mk-chip-info {
    background: rgba(30,136,229,.10);
}

.mk-loan-block {
    border-top: 1px dashed rgba(15,23,42,.12);
    padding-top: 12px;
    margin-top: 12px;
}

/* month grid */
.mk-month-grid {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 10px;
}

@media (max-width: 992px) {
    .mk-month-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 576px) {
    .mk-month-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

.mk-month {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    padding: 10px;
    background: #fff;
}

.mk-month-name {
    font-weight: 900;
    font-size: .9rem;
    margin-bottom: 6px;
    color: #0b1220;
}

.mk-pill {
    font-size: .82rem;
    border-radius: 999px;
    padding: 6px 10px;
    margin-top: 6px;
    display: block;
}

.mk-month-ok {
    background: rgba(34,197,94,.15);
    color: #0b1220;
}

.mk-month-mid {
    background: rgba(30,136,229,.12);
    color: #0b1220;
}

.mk-month-bad {
    background: rgba(239,68,68,.12);
    color: #b91c1c;
}

.mk-month-off {
    background: rgba(148,163,184,.18);
    color: #0b1220;
}

.mk-legend {
    font-size: .78rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.08);
}

/* profile (dashboard) */
.mk-profile-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.08);
    background: linear-gradient(135deg, rgba(30,136,229,.08), rgba(34,197,94,.08));
}

.mk-profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg,#22c55e,#1e88e5);
}

.mk-profile-name {
    font-weight: 900;
    font-size: 1.05rem;
}

.mk-profile-sub {
    color: var(--mk-muted);
    font-size: .88rem;
    margin-top: 2px;
}

.mk-profile-mini {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    padding: 12px;
    background: #fff;
}

.mk-mini-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 6px;
    border-bottom: 1px dashed rgba(15,23,42,.10);
}

    .mk-mini-row:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .mk-mini-row i {
        font-size: 18px;
        color: var(--mk-blue);
        margin-top: 2px;
    }

.mk-mini-k {
    font-size: .78rem;
    font-weight: 900;
    color: var(--mk-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mk-mini-v {
    font-weight: 800;
    color: var(--mk-ink);
}

/* info blocks */
.mk-info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.08);
    background: #fff;
}

    .mk-info i {
        font-size: 18px;
        color: var(--mk-green);
        margin-top: 2px;
    }

.mk-info-k {
    font-size: .78rem;
    font-weight: 900;
    color: var(--mk-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mk-info-v {
    font-weight: 800;
    color: var(--mk-ink);
}

/* KPI cards */
.mk-kpi {
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(15,23,42,.08);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

    .mk-kpi .mk-k {
        font-size: .78rem;
        font-weight: 900;
        color: var(--mk-muted);
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .mk-kpi .mk-v {
        font-size: 1.25rem;
        font-weight: 900;
        margin-top: 6px;
        color: var(--mk-ink);
    }

.mk-kpi-green {
    background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(255,255,255,1));
}

.mk-kpi-blue {
    background: linear-gradient(135deg, rgba(30,136,229,.10), rgba(255,255,255,1));
}

.mk-kpi-ink {
    background: linear-gradient(135deg, rgba(11,18,32,.08), rgba(255,255,255,1));
}

.mk-kpi-red {
    background: linear-gradient(135deg, rgba(239,68,68,.10), rgba(255,255,255,1));
}

/* dashboard banner */
.mk-banner {
    border-radius: 18px;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15,23,42,.12);
    border: 1px solid rgba(15,23,42,.08);
}

.mk-banner-overlay {
    position: absolute;
    inset: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, rgba(11,18,32,.72), rgba(11,18,32,.05));
    color: #fff;
}

.mk-banner-title {
    font-size: 1.8rem;
    font-weight: 900;
}

.mk-banner-sub {
    opacity: .92;
    font-weight: 600;
}

@media (max-width: 576px) {
    .mk-banner {
        height: 160px;
    }

    .mk-banner-title {
        font-size: 1.25rem;
    }
}

/* quick links (SINGLE FINAL VERSION ONLY) */
.mk-quicklinks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
    align-items: center;
}

.mk-ql {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid rgba(15,23,42,.08);
}

    .mk-ql i {
        font-size: 18px;
    }

.mk-ql-blue {
    color: #0b1220;
    background: rgba(30,136,229,.10);
}

    .mk-ql-blue:hover {
        background: rgba(30,136,229,.16);
    }

.mk-ql-green {
    color: #0b1220;
    background: rgba(34,197,94,.12);
}

    .mk-ql-green:hover {
        background: rgba(34,197,94,.18);
    }

.mk-ql-amber {
    color: #0b1220;
    background: rgba(245,158,11,.14);
}

    .mk-ql-amber:hover {
        background: rgba(245,158,11,.20);
    }

.mk-ql-ink {
    color: #fff;
    background: linear-gradient(135deg,#0b1220,#1e88e5);
    border-color: rgba(11,18,32,.25);
}

    .mk-ql-ink:hover {
        filter: brightness(1.05);
    }

.mk-ql-mini {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mk-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,.04);
    border: 1px solid rgba(15,23,42,.08);
    font-weight: 800;
    color: #0b1220;
}

    .mk-mini-pill i {
        color: var(--mk-blue);
    }

/* small pill icon colors */
.mk-pill-yuran i {
    color: var(--mk-green);
    margin-right: 6px;
}

.mk-pill-syer i {
    color: var(--mk-blue);
    margin-right: 6px;
}

.mk-pill-invest i {
    color: var(--mk-blue);
    margin-right: 6px;
}

.mk-pill-voucher i {
    color: var(--mk-green);
    margin-right: 6px;
}


/* =========================================================
   16) MEMBERBAR + COMPACT BANNER (Final version)
   PURPOSE:
   - Compact overlay card + banner image
   NOTE:
   - Kept only one version (removed duplicates)
========================================================= */

.mk-memberbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
    flex-wrap: wrap;
}

.mk-member-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mk-member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg,var(--mk-green),var(--mk-blue));
}

.mk-member-name {
    font-weight: 900;
    font-size: 1.05rem;
    color: #0b1220;
}

.mk-member-sub {
    color: var(--mk-muted);
    font-weight: 600;
    font-size: .88rem;
}

.mk-dot {
    margin: 0 8px;
    opacity: .6;
}

.mk-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.22);
    color: #0b1220;
    font-weight: 900;
}

.mk-member-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.mk-g1 {
    font-weight: 900;
    color: #0b1220;
    font-size: .98rem;
}

.mk-g2 {
    color: var(--mk-muted);
    font-weight: 700;
    font-size: .82rem;
}

.mk-stars {
    display: flex;
    gap: 3px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.20);
}

    .mk-stars i {
        color: #f59e0b;
    }

.mk-memberbar.mk-memberbar-compact {
    margin-top: -50px;
    position: relative;
    z-index: 2;
    padding: 12px 14px;
    margin-left:20px;
    margin-right:20px;
}

.mk-banner-compact {
    position: relative;
    height: 88px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 10px 28px rgba(15,23,42,.10);
    overflow: hidden;
}

    .mk-banner-compact::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(11,18,32,.55), rgba(11,18,32,.08));
    }

.mk-banner-img img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 10px 26px rgba(15,23,42,.10);
    display: block;
}

.mk-month-bad i {
    color: #ef4444 !important;
}

.mk-month-ok i {
    color: #22c55e !important;
}

.mk-month-mid i {
    color: #f59e0b !important;
}

@media (max-width:576px) {
    .mk-banner-compact {
        height: 72px;
        border-radius: 16px;
    }

    .mk-memberbar.mk-memberbar-compact {
        margin-top: -16px;
    }

    .mk-banner-img img {
        height: 60px;
        border-radius: 16px;
    }

    .mk-member-avatar {
        width: 40px;
        height: 40px;
    }

    .mk-member-name {
        font-size: 1rem;
    }

    .mk-member-sub {
        font-size: .85rem;
    }
}


/* =========================================================
   17) OVERRIDES / PATCHES (MUST BE LAST)
   PURPOSE:
   - Typography density adjustments (ERP compact)
   - DataTables header/body weights
   - Compact page header connection pattern
   - Pattern 1: Topbar dark / Page header lighter
========================================================= */


/* -------- GLOBAL FONT & DENSITY PATCH --------
   IMPORTANT:
   - This overrides your base html font-size (14/16)
   - If you want desktop = 13px always, keep this.
*/
html {
    font-size: 13px !important;
}

/* DataTables Typography Rule */
table.dataTable thead th {
    font-size: 12px !important;
    font-weight: 700;
    color: var(--mk-ink);
}

table.dataTable tbody td {
    font-size: 12.75px !important;
    font-weight: 500;
    color: var(--mk-ink);
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .paginate_button {
    font-size: 12px !important;
}

/* Forms typography */
.form-label {
    font-size: 12px !important;
    font-weight: 700;
}

.form-control,
.form-select {
    font-size: 13px !important;
}

/* Dashboard typography */
.mk-kpi .mk-k {
    font-size: 11.75px !important;
}

.mk-kpi .mk-v {
    font-size: 1.1rem !important;
}

.mk-tile-v {
    font-size: 1.4rem !important;
}

.section-title {
    font-size: 11.5px !important;
}

.btn,
.btn-sm {
    font-size: 12.5px !important;
}

/* Optional: total rows only bold */
table.dataTable tbody tr.mk-row-total td {
    font-weight: 700;
}


/* -------- Compact Page Header + Connected Content -------- */

.page-header-gradient.mk-header-compact {
    padding: .75rem 1rem;
    /*border-radius: var(--mk-radius);*/
}

    .page-header-gradient.mk-header-compact .mk-h-title {
        font-size: 1.05rem;
        font-weight: 900;
        margin: 0;
        line-height: 1.15;
    }

    .page-header-gradient.mk-header-compact .mk-h-sub {
        margin-top: .15rem;
        font-size: .85rem;
        opacity: .9;
    }

/* Actions alignment */
.mk-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

    .mk-header-actions .form-select {
        min-width: 160px;
    }

/* Connected block (header+body like one card) */
.mk-page-block {
    border-radius: var(--mk-radius);
    box-shadow: var(--mk-shadow);
    overflow: hidden;
    border: 1px solid var(--mk-line);
    background: var(--mk-card);
}

    .mk-page-block .page-header-gradient {
        border-radius: 0;
        box-shadow: none;
    }

    .mk-page-block .mk-page-body {
        padding: 1rem;
        background: var(--mk-card);
    }

    .mk-page-block .section-title {
        margin-bottom: .5rem;
    }

/* Ribbon shine */
.mk-header-ribbon {
    position: relative;
    overflow: hidden;
}

    .mk-header-ribbon::after {
        content: "";
        position: absolute;
        inset: -40% -20%;
        background: radial-gradient(circle, rgba(255,255,255,.18), transparent 55%);
        transform: rotate(12deg);
    }

.mk-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    position: relative;
    z-index: 1;
}

    .mk-header-icon i {
        font-size: 18px;
        color: #fff;
    }

.page-header-gradient .mk-h-title,
.page-header-gradient .mk-h-sub,
.mk-header-actions {
    position: relative;
    z-index: 1;
}


/* -------- Pattern 1 (GLOBAL) --------
   Topbar = premium dark
   Page header = lighter brand (different from topbar)
*/
.mk-topbar {
    background: linear-gradient(90deg, #0b1220 0%, #0f2a4a 45%, #123a63 70%, #0b1220 100%) !important;
}

    .mk-topbar,
    .mk-topbar .mk-brand,
    .mk-topbar .mk-user-btn {
        color: #fff;
    }

.page-header-gradient {
    background: linear-gradient(90deg, rgba(34,197,94,.92) 0%, rgba(30,136,229,.88) 55%, rgba(11,18,32,.92) 100%) !important;
}


/* ================================
   MajuKooP: Aqua (Blue + Green) Header
   Works with your existing:
   .page-header-gradient .mk-header-compact .mk-header-ribbon
==================================*/
:root {
    --mk-aqua-50: #E9FBFF; /* very light */
    --mk-aqua-100: #D9F6FF; /* light cyan */
    --mk-aqua-500: #00ACD5; /* strong cyan/blue */
    --mk-mint-200: #BEF4C6; /* soft green */
    --mk-sun-200: #F5EFA5; /* soft yellow */
}

.page-header-gradient {
    /*border-radius: 18px;*/
    /*border: 1px solid rgba(15,23,42,.06);*/
    box-shadow: 0 12px 32px rgba(15,23,42,.08);
    /* The “image-like” background */
    background: radial-gradient(120% 140% at 15% 20%, rgba(255,255,255,.95) 0%, rgba(217,246,255,.95) 35%, rgba(217,246,255,0) 70%), radial-gradient(95% 120% at 88% 30%, rgba(0,172,213,.70) 0%, rgba(0,172,213,.22) 45%, rgba(0,172,213,0) 72%), radial-gradient(80% 90% at 82% 92%, rgba(190,244,198,.85) 0%, rgba(245,239,165,.60) 38%, rgba(255,255,255,0) 72%), linear-gradient(90deg, var(--mk-aqua-100) 0%, rgba(94,210,244,.75) 55%, rgba(0,172,213,.85) 100%);
    color: #0f172a; /* keep text readable */
}

.mk-header-compact {
    padding: .9rem 1.05rem;
}

/* subtle bottom ribbon line (your mk-header-ribbon class) */
.mk-header-ribbon {
    position: relative;
}

    .mk-header-ribbon::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 10px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(190,244,198,.95), rgba(0,172,213,.65), rgba(245,239,165,.75) );
        opacity: .65;
        pointer-events: none;
    }
/* ==========================================================
   MajuKooP - DataTables Rounded Shell (match Account Statement)
   ========================================================== */

/* 1) Rounded white panel around DT controls + table */
.mk-card .mk-card-body .dataTables_wrapper,
.mk-card .mk-card-body .dt-container {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 14px 14px 10px;
    box-shadow: 0 18px 40px rgba(16,24,40,.06);
}

    /* make DT rows not stick to shell edges */
    .mk-card .mk-card-body .dataTables_wrapper .row,
    .mk-card .mk-card-body .dt-container .dt-layout-row {
        --bs-gutter-x: .75rem;
    }

/* 2) Controls look (same rounded input/select) */
.dataTables_wrapper .dataTables_filter input,
div.dt-container .dt-search input {
    border-radius: 999px !important;
    padding: .42rem .85rem !important;
    border-color: rgba(0,0,0,.12) !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_length select,
div.dt-container .dt-length select {
    border-radius: 999px !important;
    padding: .38rem .75rem !important;
    border-color: rgba(0,0,0,.12) !important;
    box-shadow: none !important;
}

/* 3) Table corners (this is the main difference in your Role page) */
table.dataTable,
table[data-datatable="true"] {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
}

    /* header background like Account Statement */
    table.dataTable thead th,
    table[data-datatable="true"] thead th {
        background: rgba(0,0,0,.02);
        border-bottom: 1px solid rgba(0,0,0,.08) !important;
    }

    /* round top corners */
    table.dataTable thead tr th:first-child,
    table[data-datatable="true"] thead tr th:first-child {
        border-top-left-radius: 16px;
    }

    table.dataTable thead tr th:last-child,
    table[data-datatable="true"] thead tr th:last-child {
        border-top-right-radius: 16px;
    }

    /* round bottom corners */
    table.dataTable tbody tr:last-child td:first-child,
    table[data-datatable="true"] tbody tr:last-child td:first-child {
        border-bottom-left-radius: 16px;
    }

    table.dataTable tbody tr:last-child td:last-child,
    table[data-datatable="true"] tbody tr:last-child td:last-child {
        border-bottom-right-radius: 16px;
    }

    /* 4) Zebra rows + hover (Account Statement look) */
    table.dataTable tbody tr:nth-child(odd) > *,
    table[data-datatable="true"] tbody tr:nth-child(odd) > * {
        background-color: rgba(0,0,0,.02) !important;
    }

    table.dataTable tbody tr:hover > *,
    table[data-datatable="true"] tbody tr:hover > * {
        background-color: rgba(var(--bs-primary-rgb), .04) !important;
    }
/* ===== Form label alignment (global) ===== */
.form-compact .mk-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .35rem;
    font-weight: 600;
}

/* Required marker (ensure ONLY one star) */
.mk-required {
    color: #dc3545;
    font-weight: 800;
    line-height: 1;
}

    /* If your project already adds star using ::before/::after, disable it */
    .mk-required::before,
    .mk-required::after {
        content: none !important;
    }

/* Give a little breathing space under textarea label */
.form-compact textarea.form-control {
    min-height: 110px;
}
/* ==========================================================
   Global Form Spacing (reduce edge closeness)
   ========================================================== */

/* Make form pages breathe inside cards */
.mk-card .mk-card-body {
    padding: 1.25rem 1.25rem !important; /* was too tight */
}

/* Compact forms: keep clean spacing */
.form-compact {
    padding: .25rem .15rem; /* small inner pad */
}

    /* Inputs/selects/textarea comfortable padding */
    .form-compact .form-control,
    .form-compact .form-select {
        padding-left: .85rem;
        padding-right: .85rem;
    }

    /* Keep textarea not touching borders */
    .form-compact textarea.form-control {
        padding: .85rem;
    }

    /* Reduce label-to-control tightness but keep clean */
    .form-compact .mk-label {
        margin-left: .05rem;
    }

/* =========================================================
   ROLE ACCESS - Permission Grid (Global)
   PURPOSE:
   - Modern permission matrix with ✅ / ❌ UI
   - Avoid conflict with global .js-del delete button handler
========================================================= */

.mk-perm-summary {
    font-weight: 700;
    color: var(--mk-ink);
    font-size: .9rem;
}

.mk-perm-tip {
    margin-top: .25rem;
    font-size: .82rem;
    color: var(--mk-muted);
}

.mk-help summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--mk-ink);
    display: inline-flex;
    gap: .5rem;
    align-items: center;
}

.mk-help-body {
    margin-top: .5rem;
    color: var(--mk-muted);
    font-size: .9rem;
}

.mk-perm-table thead th {
    vertical-align: middle;
    white-space: nowrap;
}

.mk-mod-row td {
    background: rgba(15,23,42,.03);
    font-weight: 900;
    border-top: 1px solid rgba(15,23,42,.08);
}

.mk-info-ico {
    color: rgba(100,116,139,.9);
    font-size: 14px;
    cursor: help;
}

.mk-hint i {
    font-size: 12px;
    opacity: .85;
}

/* permission toggle */
.mk-perm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mk-perm-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mk-perm-ui {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,.14);
    background: #fff;
    display: grid;
    place-items: center;
}

    .mk-perm-ui i {
        font-size: 14px;
        line-height: 1;
    }

.mk-perm-on {
    display: none;
}

.mk-perm-input:checked + .mk-perm-ui {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.28);
}

    .mk-perm-input:checked + .mk-perm-ui .mk-perm-on {
        display: inline;
        color: var(--mk-green);
    }

    .mk-perm-input:checked + .mk-perm-ui .mk-perm-off {
        display: none;
    }

.mk-perm-input:not(:checked) + .mk-perm-ui .mk-perm-off {
    color: rgba(100,116,139,.95);
}

/* view off -> actions look disabled (visual only) */
.mk-row-noview .mk-perm-act .mk-perm-ui {
    opacity: .45;
}

/* granted row subtle highlight */
.mk-row-granted td {
    background: rgba(30,136,229,.03);
}


/* Sidebar scroll + spacing */
.mk-nav {
    padding: .25rem .35rem;
    overflow: auto;
    max-height: calc(100vh - 70px); /* adjust if your header height differs */
}

/* Module button */
.mk-nav-group-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .65rem;
    border: 0;
    background: transparent;
    border-radius: 12px;
    font-weight: 600;
}

    .mk-nav-group-btn:hover {
        background: rgba(0,0,0,.04);
    }

    /* Module icon sizing */
    .mk-nav-group-btn > i:first-child {
        width: 22px;
        font-size: 1.1rem;
        line-height: 1;
        opacity: .9;
    }

    /* Rotate chevron when open */
    .mk-nav-group-btn[aria-expanded="true"] .bi-chevron-down {
        transform: rotate(180deg);
        transition: transform .15s ease;
    }

/* Sub menu container */
.mk-nav-sub {
    padding: .25rem .15rem .35rem .35rem;
}

/* Page link */
.mk-nav-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .48rem .65rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

    .mk-nav-link i {
        width: 22px;
        font-size: 1.05rem;
        line-height: 1;
        opacity: .75;
    }

    .mk-nav-link:hover {
        background: rgba(0,0,0,.04);
    }

    /* Active page highlight */
    .mk-nav-link.active {
        background: rgba(13,110,253,.12); /* fallback */
        border: 1px solid rgba(13,110,253,.22);
    }
/* --- Ledger info header card (clean alignment) --- */
.mk-ledger-info {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.mk-ledger-info-left {
    flex: 1 1 auto;
    min-width: 0;
}

.mk-ledger-info-right {
    flex: 0 0 360px;
    max-width: 420px;
}

@media (max-width: 992px) {
    .mk-ledger-info {
        flex-direction: column;
    }

    .mk-ledger-info-right {
        flex: 1 1 auto;
        max-width: 100%;
    }
}

/* Key/Value rows */
.mk-ledger-kv {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 14px;
    align-items: start;
}

@media (max-width: 576px) {
    .mk-ledger-kv {
        grid-template-columns: 130px 1fr;
    }
}

.mk-ledger-kv-row {
    display: contents;
}

.mk-ledger-kv .k {
    font-weight: 800;
    color: rgba(15,23,42,.70);
}

.mk-ledger-kv .v {
    font-weight: 800;
    color: rgba(15,23,42,.95);
}

.mk-ledger-kv-row-address .v {
    font-weight: 700;
    color: rgba(15,23,42,.88);
    line-height: 1.35;
}

/* Period line */
.mk-ledger-period {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(15,23,42,.16);
    font-size: .95rem;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .mk-ledger-period .k {
        font-weight: 900;
        color: rgba(15,23,42,.72);
    }

    .mk-ledger-period .v {
        font-weight: 900;
        color: rgba(15,23,42,.92);
    }

/* Child block (same card, right side, not separate box) */
.mk-ledger-child {
    height: 100%;
    border: 1px dashed rgba(15,23,42,.20);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255,255,255,.60);
}

.mk-ledger-child-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.mk-ledger-child .t {
    font-weight: 900;
    font-size: 1.05rem;
    color: rgba(15,23,42,.92);
}

.mk-ledger-child .n {
    font-weight: 950;
    font-size: 2.1rem;
    line-height: 1;
    color: rgba(15,23,42,.92);
}

.mk-ledger-child .d {
    font-size: .95rem;
    color: rgba(15,23,42,.70);
    line-height: 1.35;
}
/* Period badge (red accent + icon) */
.mk-ledger-period {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.65);
}

.mk-ledger-period-ico {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(239,68,68,.22);
    background: rgba(239,68,68,.10);
    color: rgba(185,28,28,.95);
}

.mk-ledger-period .k {
    font-weight: 900;
    color: rgba(15,23,42,.75);
}

.mk-ledger-period .sep {
    font-weight: 900;
    color: rgba(15,23,42,.55);
}

.mk-ledger-period .v {
    font-weight: 950;
    color: rgba(185,28,28,.95); /* ✅ red text */
}

/* Optional: a slightly stronger red style */
.mk-ledger-period-danger {
    border-color: rgba(239,68,68,.20);
    background: rgba(239,68,68,.06);
}


/* Budget for status */
/* ===== MK Badges (Global) ===== */
.mk-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    letter-spacing: .2px;
    padding: .42rem .60rem;
    border-radius: 999px;
    border: 1px solid rgba(2,6,23,.10);
    background: #f3f4f6;
    color: #111827;
    white-space: nowrap;
    line-height: 1;
}

/* Status variants */
.mk-badge--open {
    background: rgba(59,130,246,.12);
    color: #1d4ed8;
    border-color: rgba(59,130,246,.25);
}

.mk-badge--inprogress {
    background: rgba(245,158,11,.14);
    color: #b45309;
    border-color: rgba(245,158,11,.28);
}

.mk-badge--await {
    background: rgba(168,85,247,.14);
    color: #6d28d9;
    border-color: rgba(168,85,247,.28);
}

.mk-badge--closed {
    background: rgba(34,197,94,.14);
    color: #15803d;
    border-color: rgba(34,197,94,.28);
}

/* Optional "internal" */
.mk-badge--danger {
    background: rgba(220,38,38,.12);
    color: #b91c1c;
    border-color: rgba(220,38,38,.25);
}

