/* ===========================================================
   member-ui.css — ชุดคอมโพเนนต์สำหรับหน้าสมาชิก (สิทธิ์/ค้ำประกัน/เรียกเก็บ)
   สีกำหนดผ่านตัวแปร (--ml-*) ที่เซ็ตตาม attribute [data-ml="..."] บน .ml-app
   =========================================================== */

.ml-app {
    --ml-deep: #4527a0;
    --ml-primary: #5e35b1;
    --ml-light: #7c4dff;
    --ml-pale: #b39ddb;
    --ml-rgb: 94, 53, 177;
}

.ml-app[data-ml="violet"] {
    --ml-deep: #4527a0;
    --ml-primary: #5e35b1;
    --ml-light: #7c4dff;
    --ml-pale: #b39ddb;
    --ml-rgb: 94, 53, 177;
}

.ml-app[data-ml="orange"] {
    --ml-deep: #e65100;
    --ml-primary: #ef6c00;
    --ml-light: #ff9800;
    --ml-pale: #ffcc80;
    --ml-rgb: 239, 108, 0;
}

.ml-app[data-ml="teal"] {
    --ml-deep: #006064;
    --ml-primary: #00838f;
    --ml-light: #26c6da;
    --ml-pale: #80deea;
    --ml-rgb: 0, 131, 143;
}

.ml-app[data-ml="indigo"] {
    --ml-deep: #1a237e;
    --ml-primary: #3949ab;
    --ml-light: #5c6bc0;
    --ml-pale: #9fa8da;
    --ml-rgb: 57, 73, 171;
}

.ml-app[data-ml="emerald"] {
    --ml-deep: #1b5e20;
    --ml-primary: #2e7d32;
    --ml-light: #43a047;
    --ml-pale: #a5d6a7;
    --ml-rgb: 46, 125, 50;
}

.ml-app[data-ml="amber"] {
    --ml-deep: #bf8600;
    --ml-primary: #e6a700;
    --ml-light: #ffcc00;
    --ml-pale: #ffe082;
    --ml-rgb: 230, 167, 0;
}

/* ============ Hero ============ */
.ml-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 24px;
    border-radius: 22px;
    margin-bottom: 20px;
    color: #ffffff;
    background: linear-gradient(120deg, var(--ml-deep) 0%, var(--ml-primary) 48%, var(--ml-light) 100%);
    box-shadow: 0 16px 34px rgba(var(--ml-rgb), 0.32);
    animation: mlRise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.ml-hero-blob {
    position: absolute;
    top: -70px;
    right: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 65%);
    pointer-events: none;
    animation: mlFloat 7s ease-in-out infinite;
}

.ml-hero-ring {
    position: absolute;
    bottom: -95px;
    left: 26%;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    pointer-events: none;
    animation: mlSpin 26s linear infinite;
}

.ml-hero-icon {
    position: relative;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--ml-deep);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    animation: mlPulse 3.4s ease-in-out infinite;
}

.ml-hero-text {
    position: relative;
    flex: 1;
    min-width: 230px;
}

.ml-hero-tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 6px;
}

.ml-hero-text h4 {
    margin: 0 0 5px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    word-break: break-all;
}

.ml-hero-text p {
    margin: 0;
    font-size: 0.86rem;
    opacity: 0.92;
}

.ml-hero-back {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ml-deep);
    background: #ffffff;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ml-hero-back .mdi {
    font-size: 17px;
    transition: transform 0.25s ease;
}

.ml-hero-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
    color: var(--ml-deep);
    text-decoration: none;
}

.ml-hero-back:hover .mdi {
    transform: translateX(-3px);
}

/* ============ Summary stat ============ */
.ml-stat {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: 100%;
    padding: 20px 12px 18px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: var(--bg-card);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    text-align: center;
    animation: mlRise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.ml-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ml-light), var(--ml-primary));
}

.ml-stat:nth-child(2) {
    animation-delay: 90ms;
}

.ml-stat:nth-child(3) {
    animation-delay: 180ms;
}

.ml-stat:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--ml-rgb), 0.4);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.ml-stat-blob {
    position: absolute;
    top: -36px;
    right: -32px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--ml-pale), transparent 70%);
    opacity: 0.35;
    pointer-events: none;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.ml-stat:hover .ml-stat-blob {
    transform: scale(1.35);
    opacity: 0.6;
}

.ml-stat-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-light), var(--ml-primary));
    box-shadow: 0 8px 18px rgba(var(--ml-rgb), 0.4);
    margin-bottom: 7px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ml-stat:hover .ml-stat-icon {
    transform: translateY(-3px) rotate(-8deg) scale(1.06);
}

.ml-stat-label {
    position: relative;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.ml-stat-value {
    position: relative;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    word-break: break-all;
    line-height: 1.3;
    transition: color 0.25s ease;
}

.ml-stat:hover .ml-stat-value {
    color: var(--ml-primary);
}

.ml-stat-unit {
    position: relative;
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ============ Section head ============ */
.ml-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 4px 0 16px;
}

.ml-section-head h5 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-main);
}

.ml-count-badge {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ml-primary);
    background: rgba(var(--ml-rgb), 0.1);
    border: 1px solid rgba(var(--ml-rgb), 0.3);
    border-radius: 999px;
    padding: 5px 14px;
    white-space: nowrap;
}

/* ============ Card ============ */
.ml-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 20px 20px 18px;
    margin-bottom: 20px;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    animation: mlFadeUp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 90ms + 150ms);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.ml-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--ml-rgb), 0.4);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.14);
}

.ml-card-blob {
    position: absolute;
    top: -60px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--ml-pale), transparent 70%);
    opacity: 0.4;
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.ml-card:hover .ml-card-blob {
    transform: scale(1.3);
    opacity: 0.65;
}

.ml-card-sheen {
    position: absolute;
    top: -20%;
    left: -70%;
    width: 45%;
    height: 140%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
}

.ml-card:hover .ml-card-sheen {
    animation: mlSheen 0.95s ease;
}

.ml-card-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ml-card-no {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    word-break: break-all;
}

.ml-card-no .mdi {
    color: var(--ml-primary);
    font-size: 18px;
}

.ml-copy {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ml-copy:hover {
    background: var(--ml-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.ml-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ml-primary);
    background: rgba(var(--ml-rgb), 0.1);
    border: 1px solid rgba(var(--ml-rgb), 0.28);
}

.ml-card-main {
    position: relative;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0 2px;
}

.ml-card-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--ml-deep);
    font-variant-numeric: tabular-nums;
    transition: color 0.25s ease;
}

.ml-card:hover .ml-card-value {
    color: var(--ml-primary);
}

.ml-card-unit {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.ml-card-caption {
    width: 100%;
    font-size: 12.5px;
    color: var(--text-muted);
}

.ml-meta {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin: 0;
    padding-top: 10px;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.ml-meta>div {
    min-width: 0;
}

.ml-meta dt {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.ml-meta dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
    font-variant-numeric: tabular-nums;
    transition: color 0.25s ease;
}

.ml-card:hover .ml-meta dd {
    color: var(--ml-primary);
}

.ml-card-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-light), var(--ml-deep));
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(var(--ml-rgb), 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ml-card-cta .mdi {
    font-size: 17px;
    transition: transform 0.25s ease;
}

.ml-card-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(var(--ml-rgb), 0.5);
    color: #ffffff;
    text-decoration: none;
}

.ml-card-cta:hover .mdi {
    transform: translateX(5px);
}

/* ============ List rows ============ */
.ml-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ml-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(150px, 1.4fr) minmax(150px, 1.4fr) minmax(110px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.035);
    border: 1px solid transparent;
    border-left: 4px solid var(--ml-primary);
    animation: mlFadeUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 60ms + 200ms);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
        background 0.25s ease;
}

.ml-item:hover {
    transform: translateX(6px);
    background: var(--bg-card);
    border-color: rgba(var(--ml-rgb), 0.45);
    border-left-color: var(--ml-primary);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.ml-item.is-hidden {
    display: none;
}

.ml-item-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-light), var(--ml-primary));
    box-shadow: 0 8px 16px rgba(var(--ml-rgb), 0.4);
    transition: transform 0.3s ease;
}

.ml-item:hover .ml-item-dot {
    transform: scale(1.12) rotate(-8deg);
}

.ml-item-main {
    min-width: 0;
}

.ml-item-main b {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.ml-item-main small {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-word;
}

.ml-item-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ml-taglet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ml-taglet.is-accent {
    color: var(--ml-primary);
    background: rgba(var(--ml-rgb), 0.1);
    border-color: rgba(var(--ml-rgb), 0.3);
}

.ml-item-amount {
    text-align: right;
}

.ml-item-amount span {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.ml-item-amount b {
    display: inline-block;
    font-size: 14.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--ml-primary);
    background: rgba(var(--ml-rgb), 0.1);
    border: 1px solid rgba(var(--ml-rgb), 0.35);
}

.ml-item-action {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.ml-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-light), var(--ml-deep));
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(var(--ml-rgb), 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.ml-link .mdi {
    font-size: 16px;
    transition: transform 0.25s ease;
}

.ml-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(var(--ml-rgb), 0.45);
    color: #ffffff;
    text-decoration: none;
}

.ml-link:hover .mdi {
    transform: translateX(4px);
}

/* ============ Chart ============ */
.ml-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 150px;
    padding: 14px 14px 8px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.035);
    overflow-x: auto;
}

.ml-bar {
    position: relative;
    flex: 1;
    min-width: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.ml-bar-fill {
    display: block;
    width: 100%;
    max-width: 42px;
    height: var(--h, 0%);
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, var(--ml-light), var(--ml-primary));
    box-shadow: 0 6px 12px rgba(var(--ml-rgb), 0.35);
    transform-origin: bottom center;
    animation: mlBar 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 55ms + 300ms);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.ml-bar:hover .ml-bar-fill {
    transform: scaleY(1.06);
    filter: brightness(1.12);
}

.ml-bar small {
    font-size: 10.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============ Filter ============ */
.ml-filter {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ml-chipbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.1);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease,
        background 0.25s ease, border-color 0.25s ease;
}

.ml-chipbtn .mdi {
    font-size: 16px;
}

.ml-chipbtn:hover {
    transform: translateY(-3px);
    color: var(--ml-primary);
    border-color: rgba(var(--ml-rgb), 0.4);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.ml-chipbtn.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-light), var(--ml-deep));
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(var(--ml-rgb), 0.35);
}

/* ============ Month picker ============ */
.rc-months {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.rc-month {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 17px 10px 15px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--bg-card);
    cursor: pointer;
    text-align: center;
    animation: mlFadeUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 55ms + 150ms);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease,
        border-color 0.25s ease, background 0.25s ease;
}

.rc-month::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ml-light), var(--ml-primary));
    opacity: 0.75;
    transition: opacity 0.25s ease;
}

.rc-month-ic {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-light), var(--ml-primary));
    box-shadow: 0 8px 18px rgba(var(--ml-rgb), 0.35);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rc-month b {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.rc-month small {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
}

.rc-month:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--ml-rgb), 0.45);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.rc-month:hover::before {
    opacity: 1;
}

.rc-month:hover .rc-month-ic {
    transform: translateY(-3px) rotate(-8deg) scale(1.07);
}

.rc-month:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--ml-rgb), 0.3);
}

.rc-month.is-active {
    border-color: var(--ml-primary);
    background: rgba(var(--ml-rgb), 0.1);
    box-shadow: 0 12px 24px rgba(var(--ml-rgb), 0.25);
}

.rc-month.is-active::before {
    opacity: 1;
    height: 5px;
}

.rc-note {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(var(--ml-rgb), 0.07);
    border: 1px dashed rgba(var(--ml-rgb), 0.4);
}

.rc-note .mdi {
    font-size: 19px;
    color: var(--ml-primary);
    flex-shrink: 0;
}

/* ============ Bill detail ============ */
.bd-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: -6px 0 20px;
    animation: mlRise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: 120ms;
}

.bd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease,
        filter 0.25s ease;
}

.bd-btn .mdi {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.bd-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-light), var(--ml-deep));
    box-shadow: 0 12px 24px rgba(var(--ml-rgb), 0.4);
}

.bd-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(var(--ml-rgb), 0.55);
    color: #ffffff;
    text-decoration: none;
}

.bd-btn-primary:hover .mdi {
    transform: scale(1.15);
}

.bd-btn-ghost {
    color: var(--ml-primary);
    background: rgba(var(--ml-rgb), 0.1);
    border: 1px solid rgba(var(--ml-rgb), 0.35);
}

.bd-btn-ghost:hover {
    transform: translateY(-4px);
    background: rgba(var(--ml-rgb), 0.16);
    color: var(--ml-primary);
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(var(--ml-rgb), 0.25);
}

.bd-split {
    display: flex;
    width: 100%;
    height: 15px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.14);
}

.bd-seg {
    display: block;
    height: 100%;
    transform-origin: left center;
    animation: mlBarX 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: 350ms;
}

.bd-seg-a {
    background: linear-gradient(90deg, var(--ml-light), var(--ml-primary));
    box-shadow: inset -2px 0 0 rgba(255, 255, 255, 0.55);
}

.bd-seg-b {
    background: linear-gradient(90deg, #ffca28, #f57f17);
    animation-delay: 550ms;
}

.bd-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.bd-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bd-dot {
    width: 11px;
    height: 11px;
    border-radius: 4px;
    display: inline-block;
}

.bd-dot-a {
    background: linear-gradient(135deg, var(--ml-light), var(--ml-primary));
}

.bd-dot-b {
    background: linear-gradient(135deg, #ffca28, #f57f17);
}

.bd-desc {
    position: relative;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.45;
    word-break: break-word;
}

.bd-desc .mdi {
    color: var(--ml-primary);
    font-size: 15px;
    margin-right: 4px;
}

@keyframes mlBarX {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ============ Table ============ */
.ml-table-wrap {
    position: relative;
    max-height: 470px;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--bg-card);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ml-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    color: var(--text-main);
    white-space: nowrap;
}

.ml-table thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 13px 15px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: right;
    color: var(--ml-deep);
    background: linear-gradient(rgba(var(--ml-rgb), 0.13), rgba(var(--ml-rgb), 0.13)),
        var(--bg-card);
    border-bottom: 2px solid rgba(var(--ml-rgb), 0.42);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.07);
}

.ml-table thead th.t-center,
.ml-table tbody td.t-center,
.ml-table tfoot td.t-center {
    text-align: center;
}

.ml-table tbody td {
    padding: 11px 15px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: background 0.2s ease, color 0.2s ease;
}

.ml-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.025);
}

.ml-table tbody tr:hover {
    background: rgba(var(--ml-rgb), 0.1);
}

.ml-table tbody tr:hover .t-muted {
    color: var(--ml-primary);
}

.ml-table .t-muted {
    color: var(--text-muted);
    font-weight: 700;
    transition: color 0.2s ease;
}

.ml-table .t-strong {
    font-weight: 800;
    color: var(--ml-primary);
}

.ml-table .t-danger {
    font-weight: 700;
    color: #e53935;
}

.ml-table tfoot td {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 13px 15px;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    color: var(--ml-deep);
    background: linear-gradient(rgba(var(--ml-rgb), 0.17), rgba(var(--ml-rgb), 0.17)),
        var(--bg-card);
    border-top: 2px solid rgba(var(--ml-rgb), 0.45);
    box-shadow: 0 -3px 8px rgba(15, 23, 42, 0.08);
    font-variant-numeric: tabular-nums;
}

/* ============ Form controls ============ */
.ml-card.no-lift:hover {
    transform: none;
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ml-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.ml-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.ml-field>label,
.ml-field-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.ml-field>label .mdi,
.ml-field-tag .mdi {
    color: var(--ml-primary);
    font-size: 17px;
}

.ml-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ml-input-wrap>.mdi {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: var(--ml-primary);
    pointer-events: none;
    transition: transform 0.25s ease;
}

.ml-input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border-radius: 14px;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ml-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.ml-input:focus {
    outline: none;
    border-color: var(--ml-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(var(--ml-rgb), 0.16);
}

.ml-input.is-flash {
    animation: mlFlash 0.7s ease;
}

.ml-help {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.ml-seg-block {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 18px;
}

.ml-seg {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    align-self: flex-start;
    padding: 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.ml-seg input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ml-seg label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease,
        color 0.25s ease, background 0.25s ease;
}

.ml-seg label .mdi {
    font-size: 17px;
    transition: transform 0.25s ease;
}

.ml-seg label:hover {
    color: var(--ml-primary);
    transform: translateY(-2px);
}

.ml-seg label:hover .mdi {
    transform: rotate(-8deg) scale(1.1);
}

.ml-seg input:checked+label {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-light), var(--ml-deep));
    box-shadow: 0 10px 18px rgba(var(--ml-rgb), 0.42);
    transform: translateY(-1px);
}

.ml-seg input:checked+label .mdi {
    transform: none;
}

.ml-seg input:focus-visible+label {
    box-shadow: 0 0 0 3px rgba(var(--ml-rgb), 0.4);
}

.ml-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.ml-quick-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.ml-quickbtn {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ml-primary);
    background: rgba(var(--ml-rgb), 0.1);
    border: 1px solid rgba(var(--ml-rgb), 0.3);
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease,
        background 0.22s ease, color 0.22s ease;
}

.ml-quickbtn:hover {
    transform: translateY(-3px);
    color: #ffffff;
    background: var(--ml-primary);
    box-shadow: 0 10px 18px rgba(var(--ml-rgb), 0.38);
}

.ml-quickbtn:active {
    transform: translateY(-1px) scale(0.97);
}

.ml-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed rgba(15, 23, 42, 0.14);
}

.ml-steps {
    display: grid;
    gap: 15px;
}

.ml-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ml-step-no {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-light), var(--ml-deep));
    box-shadow: 0 8px 16px rgba(var(--ml-rgb), 0.35);
    transition: transform 0.25s ease;
}

.ml-step:hover .ml-step-no {
    transform: translateY(-3px) rotate(-8deg) scale(1.06);
}

.ml-step b {
    display: block;
    font-size: 14.5px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.ml-step small {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ============ Empty ============ */
.ml-empty {
    text-align: center;
    padding: 46px 20px;
    border-radius: 18px;
    border: 1.5px dashed rgba(15, 23, 42, 0.15);
    background: rgba(15, 23, 42, 0.02);
    margin-bottom: 20px;
}

.ml-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    font-size: 30px;
    color: var(--ml-primary);
    background: rgba(var(--ml-rgb), 0.12);
    margin-bottom: 12px;
    animation: mlPulse 3s ease-in-out infinite;
}

.ml-empty h6 {
    margin: 0 0 5px;
    font-weight: 700;
    color: var(--text-main);
}

.ml-empty p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.ml-empty-link {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-light), var(--ml-deep));
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(var(--ml-rgb), 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ml-empty-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(var(--ml-rgb), 0.45);
    color: #ffffff;
    text-decoration: none;
}

/* ============ Toast ============ */
.ml-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translate(-50%, 24px);
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-light), var(--ml-deep));
    box-shadow: 0 14px 30px rgba(var(--ml-rgb), 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ml-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ============ Reveal ============ */
.ml-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ml-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ============ Animations ============ */
@keyframes mlRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mlFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mlBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes mlGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(var(--p, 0));
    }
}

@keyframes mlSheen {
    0% {
        left: -70%;
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

@keyframes mlPulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.04);
    }
}

@keyframes mlFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-14px, 12px);
    }
}

@keyframes mlSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes mlFlash {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(var(--ml-rgb), 0.45);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(var(--ml-rgb), 0.12);
    }
}

/* ============ Progress ============ */
.ml-progress {
    margin-bottom: 16px;
}

.ml-progress-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.12);
}

.ml-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ml-light), var(--ml-primary));
    box-shadow: 0 2px 8px rgba(var(--ml-rgb), 0.5);
    transform: scaleX(var(--p, 0));
    transform-origin: left center;
    animation: mlGrow 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: 350ms;
    position: relative;
}

.ml-progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 45%, transparent 70%);
    animation: mlShine 2.6s ease-in-out infinite;
}

@keyframes mlShine {
    0% {
        transform: translateX(-100%);
    }

    55%,
    100% {
        transform: translateX(100%);
    }
}

.ml-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ============ Dark mode ============ */
html.dark-mode .ml-stat,
html.dark-mode .ml-card {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.07);
}

html.dark-mode .ml-stat:hover,
html.dark-mode .ml-card:hover {
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.55);
}

html.dark-mode .ml-copy {
    background: rgba(255, 255, 255, 0.08);
}

html.dark-mode .ml-card-value {
    color: var(--ml-pale);
}

html.dark-mode .ml-card:hover .ml-card-value,
html.dark-mode .ml-card:hover .ml-meta dd,
html.dark-mode .ml-item-main b {
    color: var(--ml-pale);
}

html.dark-mode .ml-card-no .mdi,
html.dark-mode .ml-count-badge,
html.dark-mode .ml-chip,
html.dark-mode .ml-taglet.is-accent,
html.dark-mode .ml-item-amount b,
html.dark-mode .ml-empty-icon {
    color: var(--ml-pale);
}

html.dark-mode .ml-count-badge,
html.dark-mode .ml-chip,
html.dark-mode .ml-taglet.is-accent,
html.dark-mode .ml-item-amount b,
html.dark-mode .ml-empty-icon {
    background: rgba(var(--ml-rgb), 0.18);
    border-color: rgba(var(--ml-rgb), 0.45);
}

html.dark-mode .ml-item {
    background: rgba(255, 255, 255, 0.05);
}

html.dark-mode .ml-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

html.dark-mode .ml-taglet {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .ml-chart,
html.dark-mode .ml-progress-track {
    background: rgba(255, 255, 255, 0.07);
}

html.dark-mode .ml-chipbtn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .ml-empty {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.16);
}

html.dark-mode .rc-month {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

html.dark-mode .rc-month:hover {
    border-color: rgba(var(--ml-rgb), 0.55);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55);
}

html.dark-mode .rc-month.is-active {
    background: rgba(var(--ml-rgb), 0.22);
}

html.dark-mode .rc-month b {
    color: var(--text-main);
}

html.dark-mode .rc-note {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

html.dark-mode .bd-btn-ghost {
    background: rgba(var(--ml-rgb), 0.16);
    border-color: rgba(var(--ml-rgb), 0.5);
}

html.dark-mode .bd-split {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
}

html.dark-mode .ml-table-wrap {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
}

html.dark-mode .ml-table thead th {
    background: linear-gradient(rgba(var(--ml-rgb), 0.24), rgba(var(--ml-rgb), 0.24)),
        var(--bg-card);
    color: var(--ml-pale);
    border-bottom-color: rgba(var(--ml-rgb), 0.6);
}

html.dark-mode .ml-table tfoot td {
    background: linear-gradient(rgba(var(--ml-rgb), 0.26), rgba(var(--ml-rgb), 0.26)),
        var(--bg-card);
    color: var(--ml-pale);
    border-top-color: rgba(var(--ml-rgb), 0.6);
}

html.dark-mode .ml-table tbody td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .ml-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

html.dark-mode .ml-table .t-strong {
    color: var(--ml-pale);
}

html.dark-mode .ml-input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

html.dark-mode .ml-input:focus {
    background: rgba(255, 255, 255, 0.09);
}

html.dark-mode .ml-seg,
html.dark-mode .ml-quickbtn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {

    .ml-hero,
    .ml-stat,
    .ml-card,
    .ml-item,
    .ml-bar-fill,
    .ml-progress-fill,
    .ml-progress-fill::after,
    .ml-hero-blob,
    .ml-hero-ring,
    .ml-hero-icon,
    .ml-empty-icon,
    .rc-month,
    .bd-actions,
    .bd-seg,
    .ml-input.is-flash {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .ml-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .ml-card-sheen {
        animation: none !important;
    }

    .ml-stat,
    .ml-card,
    .ml-item,
    .ml-copy,
    .ml-chipbtn,
    .ml-link,
    .ml-card-cta,
    .rc-month,
    .bd-btn,
    .ml-seg label,
    .ml-quickbtn,
    .ml-step-no {
        transition: none !important;
    }
}

/* ============ Responsive ============ */
@media (max-width: 991.98px) {
    .ml-item {
        grid-template-columns: auto 1fr 1fr;
        row-gap: 8px;
    }

    .ml-item-chips {
        grid-column: 2 / -1;
    }

    .ml-item-amount {
        text-align: left;
    }

    .ml-item-action {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .ml-hero {
        padding: 20px 18px;
        gap: 13px;
    }

    .ml-hero-back span {
        display: none;
    }

    .ml-hero-back {
        padding: 9px 12px;
    }

    .ml-item {
        grid-template-columns: auto 1fr;
    }

    .ml-item-chips,
    .ml-item-amount,
    .ml-item-action {
        grid-column: 2 / -1;
        text-align: left;
        padding-top: 6px;
        border-top: 1px dashed rgba(15, 23, 42, 0.12);
    }

    .ml-card-value {
        font-size: 1.5rem;
    }

    .ml-bar small:first-child {
        display: none;
    }

    .rc-months {
        grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
        gap: 10px;
    }

    .rc-month {
        padding: 14px 8px 12px;
    }

    .rc-month b {
        font-size: 0.9rem;
    }

    .bd-actions {
        margin-bottom: 16px;
    }

    .bd-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .bd-btn-ghost {
        flex: 1 1 100%;
    }

    .ml-seg {
        width: 100%;
    }

    .ml-seg label {
        flex: 1 1 auto;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
    }

    .ml-form-actions .bd-btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .ml-table {
        font-size: 12.5px;
    }

    .ml-table thead th,
    .ml-table tbody td,
    .ml-table tfoot td {
        padding: 9px 11px;
    }
}

/* ============ Print ============ */
@media print {
    @page {
        margin: 12mm;
    }

    html,
    body {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .container-scroller,
    .page-body-wrapper,
    .main-panel,
    .content-wrapper {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body,
    body::before {
        background: #ffffff !important;
    }

    .sidebar,
    .navbar,
    .footer,
    .ml-toast,
    .bd-actions,
    .ml-hero-back,
    .ml-card-cta,
    .ml-item-action {
        display: none !important;
    }

    .page-body-wrapper,
    .content-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .ml-hero,
    .ml-stat,
    .ml-card,
    .ml-item,
    .ml-empty,
    .rc-note,
    .rc-month,
    .ml-chart {
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ml-hero,
    .ml-stat,
    .ml-count-badge,
    .ml-chip,
    .ml-taglet.is-accent,
    .rc-month,
    .bd-btn-primary,
    .ml-table thead th,
    .ml-table tfoot td {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .hide-on-print,
    .ml-quick,
    .ml-toast {
        display: none !important;
    }

    .ml-table-wrap {
        max-height: none !important;
        overflow: visible !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .ml-table thead th,
    .ml-table tfoot td {
        position: static !important;
        box-shadow: none !important;
    }

    .ml-table thead th,
    .ml-table tbody td,
    .ml-table tfoot td {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }

    .ml-table tbody tr,
    .ml-table thead tr,
    .ml-table tfoot tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ml-card {
        padding: 14px 16px !important;
    }
}
