:root {
    --navy: #071c3d;
    --navy-soft: #12365f;
    --burgundy: #8c1d40;
    --burgundy-light: #b52a4f;
    --ink: #172033;
    --muted: #64748b;
    --line: #d9dee8;
    --page: #f3f5f8;
    --surface: #ffffff;
    --soft: #eef1f6;
    --panel-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    color: var(--ink);
    background: var(--navy);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.portal-home {
    color: #eef6fb;
}

.page-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 22px 28px;
    overflow: hidden;
}

.page-shell::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(circle at 14% 18%, rgba(140, 29, 64, .16), transparent 26%),
        radial-gradient(circle at 82% 72%, rgba(181, 42, 79, .26), transparent 30%),
        linear-gradient(118deg, #061735 0%, var(--navy) 42%, var(--burgundy) 100%);
}

.page-shell::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 82px 82px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .62), transparent 72%);
}

.topbar,
.panel-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 176px;
    height: 62px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    color: var(--navy);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: var(--burgundy);
    color: #fff;
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    margin-top: 2px;
    color: #667085;
    font-size: .74rem;
    font-weight: 800;
}

.panel-topbar .brand {
    min-width: 168px;
    height: 54px;
}

.panel-topbar .brand-mark {
    width: 34px;
    height: 34px;
}

.portal-label {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: rgba(255, 255, 255, .86);
}

.portal-label span,
.login-panel-heading span {
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-label strong,
.login-panel-heading strong {
    color: #fff;
    font-size: 1.08rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 46px;
    min-height: 0;
}

.hero-copy {
    max-width: 780px;
    min-height: 430px;
    padding-top: 56px;
    transform: translateY(28px);
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.02;
    text-shadow: 0 18px 46px rgba(0, 0, 0, .44);
}

.lead {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(238, 246, 251, .74);
    font-size: 1.12rem;
    line-height: 1.58;
}

.signal-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 142px));
    gap: 12px;
    margin-top: 30px;
}

.signal-row div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .16);
    backdrop-filter: blur(18px);
}

.signal-row span,
.signal-row small {
    display: block;
}

.signal-row span {
    color: #fff;
    font-size: 1.34rem;
    font-weight: 800;
}

.signal-row small {
    color: rgba(255, 255, 255, .7);
    font-size: .78rem;
}

.login-panel {
    width: 100%;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(7, 25, 52, .8), rgba(24, 38, 65, .62));
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(24px);
}

.login-panel-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.login-panel-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #fff;
    font-size: 1.48rem;
    background: linear-gradient(135deg, var(--burgundy), var(--navy-soft));
}

.login-panel-heading span,
.login-panel-heading strong {
    display: block;
}

.login-panel-heading span {
    color: rgba(255, 255, 255, .62);
}

.login-form .form-label {
    margin-bottom: .4rem;
    color: rgba(255, 255, 255, .76);
    font-size: .78rem;
    font-weight: 800;
}

.login-form .input-group-text,
.login-form .form-control {
    min-height: 48px;
    border-color: rgba(255, 255, 255, .16);
    color: #172442;
    background: rgba(255, 255, 255, .92);
}

.login-form .input-group-text {
    justify-content: center;
    min-width: 48px;
    color: var(--burgundy);
}

.login-form .btn-burgundy {
    min-height: 48px;
    border: 0;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    box-shadow: 0 16px 36px rgba(91, 17, 43, .34);
}

.panel-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
}

.panel-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 3px;
    min-width: 0;
    color: rgba(255, 255, 255, .78);
}

.panel-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 6px 7px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .84);
    font-size: .73rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.panel-user-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    margin-left: 14px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: .73rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.panel-user-name i {
    font-size: .9rem;
}

.panel-nav-link:hover,
.panel-nav-link:focus,
.panel-nav-link.is-active,
.dropdown.show > .panel-nav-link {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.panel-nav-menu {
    min-width: 245px;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
}

.panel-nav-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 750;
}

.panel-nav-menu .dropdown-item.active,
.panel-nav-menu .dropdown-item:active {
    background: linear-gradient(135deg, var(--burgundy), var(--navy-soft));
    color: #fff;
}

.panel-layout {
    min-height: 0;
    padding-top: 16px;
}

.content-window {
    height: 100%;
    min-height: 0;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 22px;
    background: var(--page);
    color: var(--ink);
    box-shadow: var(--panel-shadow);
}

.content {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 16px;
}

.page-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.page-heading-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
}

.page-heading h1 {
    margin: 0;
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 850;
}

.page-heading p {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
}

.app-message-toast-wrap {
    position: fixed;
    top: var(--app-message-top, 96px);
    left: 50%;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
    transform: translateX(-50%);
}

.app-message-toast {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    min-height: 38px;
    padding: .55rem .72rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-left: 4px solid var(--burgundy);
    border-radius: 8px;
    background: rgba(7, 28, 61, .96);
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .26);
    font-size: .82rem;
    font-weight: 750;
    line-height: 1.3;
    animation: app-message-in .18s ease-out;
    transition: opacity .25s ease, transform .25s ease;
    backdrop-filter: blur(14px);
}

.app-message-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.app-message-toast i {
    flex: 0 0 auto;
    font-size: .98rem;
}

.app-message-toast span {
    min-width: 0;
}

.app-message-toast-success {
    border-left-color: var(--burgundy);
}

.app-message-toast-success i {
    color: #fff;
}

.app-message-toast-danger {
    border-left-color: var(--burgundy);
}

.app-message-toast-danger i {
    color: #fff;
}

.app-message-toast-warning {
    border-left-color: var(--burgundy);
}

.app-message-toast-warning i {
    color: #fff;
}

.app-message-toast-info i {
    color: #fff;
}

@keyframes app-message-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.grid-2,
.stack-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 12px;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 104px;
    padding: 16px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.stat-card span,
.stat-card small {
    display: block;
    color: rgba(255, 255, 255, .75);
    font-size: .74rem;
    font-weight: 750;
}

.stat-card strong {
    display: block;
    margin-top: 7px;
    font-size: 1.08rem;
    font-weight: 850;
}

.stat-card > .bi {
    color: rgba(255, 255, 255, .45);
    font-size: 2rem;
}

.stat-navy { background: var(--navy); }
.stat-burgundy { background: var(--burgundy); }

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.panel-header,
.list-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
}

.panel-header h2,
.panel-header h3 {
    margin: 0;
    color: var(--navy);
    font-size: .92rem;
    font-weight: 850;
}

.panel-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.money-header-bar {
    margin-bottom: 12px;
}

.money-header-row {
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
}

.money-account-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 430px;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid rgba(140, 29, 64, .45);
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 8px 18px rgba(7, 28, 61, .18);
}

.money-account-summary-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--burgundy);
    color: #fff;
}

.money-account-main {
    min-width: 0;
}

.money-account-main small,
.money-account-main strong {
    display: block;
}

.money-account-main small {
    color: rgba(255, 255, 255, .72);
    font-size: .66rem;
    font-weight: 850;
    line-height: 1.1;
    text-transform: uppercase;
}

.money-account-main strong {
    max-width: 150px;
    overflow: hidden;
    color: #fff;
    font-size: .82rem;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.money-account-code {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--burgundy);
    color: #fff;
    font-size: .7rem;
    font-weight: 850;
    white-space: nowrap;
}

.money-account-balance {
    flex: 0 0 auto;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
}

.money-table-panel .panel-body,
.movement-table-panel .panel-body {
    padding: 6px 8px;
}

.money-filter-panel {
    overflow: visible;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid var(--line);
}

.money-filter-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 860px;
}

.money-filter-field {
    flex: 0 0 auto;
}

.money-filter-date {
    width: 184px;
}

.money-filter-type {
    width: 150px;
}

.money-filter-target {
    width: 280px;
}

.invoice-filter-party {
    width: 260px;
}

.invoice-filter-description {
    width: 240px;
}

.invoice-filter-panel {
    margin: 0;
    padding: 8px 12px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
}

.money-filter-panel .form-label {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .66rem;
    line-height: 1;
}

.money-filter-panel .form-control-sm,
.money-filter-panel .form-select-sm {
    min-height: 28px;
    padding-top: .15rem;
    padding-bottom: .15rem;
    font-size: .74rem;
}

.money-filter-actions {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
}

.money-filter-actions .btn-group {
    display: inline-flex;
}

.money-filter-panel .filter-action-btn,
.money-filter-panel .search-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 28px;
    min-height: 28px;
    padding: 0;
}

.money-filter-panel .filter-action-btn.dropdown-toggle::after {
    display: none;
}

.money-filter-panel .filter-action-btn .bi,
.money-filter-panel .search-action-btn .bi {
    margin: 0;
    line-height: 1;
}

.money-search-box {
    flex: 0 0 320px;
    width: 320px;
    margin-left: auto;
}

.money-search-box .form-control,
.money-search-box .btn {
    height: 28px;
    min-height: 28px;
    padding-top: .15rem;
    padding-bottom: .15rem;
    font-size: .78rem;
}

.date-range-picker {
    position: relative;
    width: 100%;
}

.date-range-display {
    cursor: pointer;
    background: #fff;
}

.date-range-popover {
    position: fixed;
    z-index: 1055;
    top: 0;
    left: 0;
    display: none;
    width: 236px;
    padding: .45rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(7, 28, 61, .18);
}

.date-range-picker.is-open .date-range-popover {
    display: block;
}

.date-range-toolbar,
.date-range-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
}

.date-range-toolbar {
    margin-bottom: .35rem;
}

.date-range-month {
    flex: 1 1 auto;
    color: var(--navy);
    font-size: .74rem;
    font-weight: 800;
    text-align: center;
}

.date-range-nav,
.date-range-clear,
.date-range-close {
    border: 0;
    border-radius: 5px;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
}

.date-range-nav {
    width: 24px;
    height: 24px;
    background: rgba(7, 28, 61, .08);
    color: var(--navy);
}

.date-range-weekdays,
.date-range-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.date-range-weekdays {
    margin-bottom: .2rem;
    color: var(--navy);
    font-size: .58rem;
    font-weight: 800;
    text-align: center;
}

.date-range-day {
    width: 100%;
    height: 25px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--ink);
    font-size: .68rem;
    line-height: 1;
}

.date-range-day:hover {
    background: rgba(7, 28, 61, .08);
}

.date-range-day.is-range {
    background: rgba(140, 29, 64, .1);
    color: var(--navy);
}

.date-range-day.is-start,
.date-range-day.is-end {
    background: var(--navy);
    color: #fff;
    font-weight: 800;
}

.date-range-day.is-today {
    outline: 1px solid var(--burgundy);
}

.date-range-actions {
    margin-top: .4rem;
    padding-top: .35rem;
    border-top: 1px solid var(--line);
}

.date-range-clear,
.date-range-close {
    min-height: 22px;
    padding: .2rem .45rem;
}

.date-range-clear {
    background: rgba(140, 29, 64, .1);
    color: var(--burgundy);
}

.date-range-close {
    background: rgba(7, 28, 61, .1);
    color: var(--navy);
}

.money-table-panel .table,
.movement-table {
    font-size: .75rem;
}

.money-table-panel .table th,
.movement-table th {
    padding: .24rem .42rem;
    font-size: .62rem;
    line-height: 1.08;
}

.money-table-panel .table td,
.movement-table td {
    padding: .24rem .42rem;
    line-height: 1.12;
}

.money-table-panel .badge-soft,
.movement-table .badge-soft {
    min-height: 19px;
    padding: 2px 6px;
    font-size: .63rem;
}

.money-table-panel .action-icon-link,
.movement-table .action-icon-link {
    width: 26px;
    height: 26px;
}

.money-table-panel .row-actions,
.movement-table .row-actions {
    gap: 4px;
}

.action-dropdown-menu {
    min-width: 190px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .16);
}

.action-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 800;
}

.action-dropdown-menu .dropdown-item:hover,
.action-dropdown-menu .dropdown-item:focus {
    background: rgba(140, 29, 64, .08);
    color: var(--burgundy);
}

.panel-body {
    padding: 12px;
}

.toolbar,
.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
}

.action-icon-link {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(7, 28, 61, .18);
    border-radius: 7px;
    background: rgba(7, 28, 61, .06);
    color: var(--navy);
    cursor: pointer;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

button.action-icon-link {
    appearance: none;
    font: inherit;
}

.action-icon-link:hover,
.action-icon-link:focus {
    border-color: rgba(142, 24, 48, .35);
    background: rgba(142, 24, 48, .1);
    color: var(--burgundy);
    transform: translateY(-1px);
}

.action-icon-link i {
    font-size: .95rem;
    line-height: 1;
}

.action-icon-link-danger {
    border-color: rgba(142, 24, 48, .2);
    background: rgba(142, 24, 48, .07);
    color: var(--burgundy);
}

.action-icon-link-disabled,
.action-icon-link:disabled {
    border-color: rgba(7, 28, 61, .12);
    background: rgba(7, 28, 61, .04);
    color: rgba(7, 28, 61, .32);
    cursor: not-allowed;
    opacity: 1;
}

.action-icon-link-disabled:hover,
.action-icon-link-disabled:focus,
.action-icon-link:disabled:hover,
.action-icon-link:disabled:focus {
    border-color: rgba(7, 28, 61, .12);
    background: rgba(7, 28, 61, .04);
    color: rgba(7, 28, 61, .32);
    transform: none;
}

.record-form-panel {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    width: min(880px, calc(100vw - 56px));
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    margin: auto;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 78px rgba(7, 28, 61, .34);
}

.record-form-panel-wide {
    width: min(1280px, calc(100vw - 56px));
}

.cari-form-panel {
    width: min(980px, calc(100vw - 56px));
    max-height: min(520px, calc(100vh - 72px));
    max-height: min(520px, calc(100dvh - 72px));
}

@media (min-width: 992px) {
    .mhy-card-form-row .mhy-code {
        flex: 0 0 12%;
        max-width: 12%;
    }

    .mhy-card-form-row .mhy-kind {
        flex: 0 0 12%;
        max-width: 12%;
    }

    .mhy-card-form-row .mhy-product-type {
        flex: 0 0 13%;
        max-width: 13%;
    }

    .mhy-card-form-row .mhy-name {
        flex: 0 0 34%;
        max-width: 34%;
    }

    .mhy-card-form-row .mhy-unit {
        flex: 0 0 15%;
        max-width: 15%;
    }

    .mhy-card-form-row .mhy-vat {
        flex: 0 0 14%;
        max-width: 14%;
    }

    .mhy-card-form-row .mhy-opening {
        flex: 0 0 12%;
        max-width: 12%;
    }

    .mhy-card-form-row .mhy-status {
        flex: 0 0 15%;
        max-width: 15%;
    }

    .mhy-card-form-row .mhy-description {
        flex: 0 0 73%;
        max-width: 73%;
    }
}

.mhy-list-table .mhy-list-type,
.mhy-list-table .mhy-list-product-type,
.mhy-list-table .mhy-list-quantity,
.mhy-list-table .mhy-list-unit {
    width: 12%;
    white-space: nowrap;
}

.mhy-product-income,
.mhy-product-expense {
    font-weight: 950;
}

.mhy-product-income {
    color: #15803d;
}

.mhy-product-expense {
    color: #dc2626;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    left: 0;
    margin-top: 12px;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.pagination-summary {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 850;
    white-space: nowrap;
}

.pagination-menu {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pagination-size-form {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.pagination-size-form label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 850;
    white-space: nowrap;
}

.pagination-size-form .form-select {
    width: 74px;
    min-height: 31px;
    padding-top: .2rem;
    padding-bottom: .2rem;
    color: var(--navy);
    font-size: .76rem;
    font-weight: 900;
}

.pagination-menu a,
.pagination-menu span {
    display: inline-grid;
    place-items: center;
    min-width: 31px;
    height: 31px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--navy);
    font-size: .78rem;
    font-weight: 900;
}

.pagination-menu a:hover,
.pagination-menu a:focus,
.pagination-menu span.active {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.pagination-menu span.disabled,
.pagination-menu span.pagination-ellipsis {
    color: var(--muted);
    background: #f7f9fc;
}

.pagination-menu span.pagination-ellipsis {
    border-color: transparent;
    background: transparent;
}

@media (max-width: 680px) {
    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-size-form {
        margin-left: 0;
    }
}

.record-form-panel::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background: rgba(7, 28, 61, .62);
    backdrop-filter: blur(4px);
}

.record-form-panel .panel-header {
    flex: 0 0 auto;
    min-height: 42px;
    padding: .65rem .85rem;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    background: linear-gradient(135deg, var(--navy), #102d54);
    color: #fff;
    border-radius: 17px 17px 0 0;
}

.record-form-panel .panel-header h2 {
    color: #fff;
    font-size: .86rem;
    font-weight: 850;
}

.record-form-panel .panel-body {
    min-height: 0;
    padding: .9rem;
    overflow: auto;
    background: #f7f9fc;
    border-radius: 0 0 17px 17px;
}

.record-form-panel .form-control,
.record-form-panel .form-select {
    min-height: 30px;
    padding-top: .22rem;
    padding-bottom: .22rem;
    border-radius: 7px;
    background-color: #fff;
    font-size: .76rem;
}

.record-form-panel .money-amount-input {
    flex-wrap: nowrap;
    width: 100%;
}

.record-form-panel .money-amount-input .form-control {
    min-width: 0;
}

.record-form-panel .money-amount-input .input-group-text {
    min-height: 30px;
    padding: .22rem .62rem;
    border-color: #ccd3df;
    border-radius: 0 7px 7px 0;
    background: #fff;
    color: var(--navy);
    font-size: .76rem;
    font-weight: 850;
}

.record-form-panel textarea.form-control {
    min-height: 58px;
}

.record-form-panel .row {
    --bs-gutter-x: .45rem;
    --bs-gutter-y: .42rem;
}

.record-form-panel .form-label {
    margin-bottom: .16rem;
    color: #5b6575;
    font-size: .63rem;
    font-weight: 850;
}

.record-form-panel .form-check {
    min-height: 24px;
    margin-bottom: .18rem;
}

.record-form-panel .form-check-label {
    color: #344054;
    font-size: .76rem;
    font-weight: 650;
}

.cari-direction-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.cari-direction-option {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-height: 46px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.cari-direction-option .form-check-input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.cari-direction-option strong,
.cari-direction-option small {
    display: block;
}

.cari-direction-option strong {
    color: var(--navy);
    font-size: .76rem;
    line-height: 1.1;
}

.cari-direction-option small {
    color: var(--muted);
    font-size: .64rem;
    font-weight: 700;
    line-height: 1.15;
}

.record-form-panel .btn {
    min-height: 30px;
    padding-top: .22rem;
    padding-bottom: .22rem;
    font-size: .76rem;
}

.record-form-panel .panel:not(.record-form-panel) {
    border-radius: 10px;
    box-shadow: none;
}

.record-form-panel .panel:not(.record-form-panel) .panel-header {
    min-height: 34px;
    padding: .45rem .6rem;
    border-bottom-color: #e4e8f0;
    background: #fff;
    color: var(--ink);
}

.record-form-panel .panel:not(.record-form-panel) .panel-header h3 {
    color: var(--navy);
    font-size: .76rem;
}

.permission-list {
    display: grid;
    gap: .55rem;
    margin-top: .75rem;
}

.permission-group {
    overflow: hidden;
    border: 1px solid #dde3ec;
    border-radius: 10px;
    background: #fff;
}

.permission-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: .45rem .65rem;
    border-bottom: 1px solid #e6eaf1;
    background: #f9fafc;
    color: var(--navy);
    font-size: .74rem;
    font-weight: 850;
}

.permission-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    min-height: 34px;
    margin: 0;
    padding: .42rem .65rem;
    border-bottom: 1px solid #eef1f5;
}

.permission-row:last-child {
    border-bottom: 0;
}

.permission-row:hover {
    background: #fbfcfe;
}

.permission-row-text {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    min-width: 0;
}

.permission-row-name {
    color: #27364a;
    font-size: .76rem;
    font-weight: 750;
}

.permission-row-code {
    color: #7b8796;
    font-size: .64rem;
    font-weight: 700;
}

.permission-row .form-check-input {
    margin: 0;
}

.table {
    --bs-table-color: var(--ink);
    margin-bottom: 0;
    font-size: .78rem;
}

.table th {
    color: var(--muted);
    font-size: .66rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td,
.table th {
    vertical-align: middle;
}

.panel-body.table-scroll > .table:not(.invoice-lines):not(.role-matrix-table) th {
    padding: .20rem .38rem;
    line-height: 1.08;
}

.panel-body.table-scroll > .table:not(.invoice-lines):not(.role-matrix-table) td {
    padding: .16rem .38rem;
    line-height: 1.1;
}

.panel-body.table-scroll > .table:not(.invoice-lines):not(.role-matrix-table) .badge-soft {
    min-height: 18px;
    padding: 1px 6px;
}

.panel-body.table-scroll > .table:not(.invoice-lines):not(.role-matrix-table) .action-icon-link {
    width: 25px;
    height: 25px;
    border-radius: 6px;
}

.panel-body.table-scroll > .table:not(.invoice-lines):not(.role-matrix-table) .row-actions {
    gap: 4px;
}

.table-scroll {
    overflow-x: auto;
}

.fixed-list-table {
    width: 100%;
    table-layout: fixed;
}

.fixed-list-table th,
.fixed-list-table td {
    overflow: hidden;
}

.table-wrap,
.cari-list-contact,
.invoice-list-text,
.invoice-list-party {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.28;
}

.table-nowrap {
    white-space: nowrap;
}

.cari-list-table {
    min-width: 1120px;
}

.cari-list-col-code {
    width: 8%;
}

.cari-list-col-name {
    width: 23%;
}

.cari-list-col-phone {
    width: 13%;
}

.cari-list-col-email {
    width: 18%;
}

.cari-list-col-balance {
    width: 12%;
}

.cari-list-col-direction {
    width: 7%;
}

.cari-list-col-type {
    width: 10%;
}

.cari-list-col-actions {
    width: 9%;
}

.cari-list-type {
    padding-left: .15rem;
    white-space: nowrap;
}

.invoice-list-table {
    min-width: 1040px;
}

.invoice-list-col-date {
    width: 6.4rem;
}

.invoice-list-col-party {
    width: 14%;
}

.invoice-list-col-description {
    width: 27%;
}

.invoice-list-col-note {
    width: 31%;
}

.invoice-list-col-money {
    width: 8.6rem;
}

.invoice-list-col-actions {
    width: 7.6rem;
}

.invoice-list-table th,
.invoice-list-date,
.invoice-list-money,
.invoice-list-actions {
    white-space: nowrap;
}

.invoice-list-description,
.invoice-list-note {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.money-movement-table {
    min-width: 1240px;
}

.money-movement-col-date {
    width: 6.6rem;
}

.money-movement-col-type {
    width: 6.8rem;
}

.money-movement-col-account {
    width: 14%;
}

.money-movement-col-target {
    width: 15%;
}

.money-movement-col-description {
    width: 30%;
}

.money-movement-col-amount {
    width: 9.8rem;
}

.money-movement-col-actions {
    width: 8.8rem;
}

.money-movement-table th:last-child,
.money-movement-table td:last-child {
    padding-left: 1rem;
}

.cari-movement-table {
    min-width: 1150px;
}

.cari-movement-col-date {
    width: 6.6rem;
}

.cari-movement-col-type {
    width: 8rem;
}

.cari-movement-col-description {
    width: 26%;
}

.cari-movement-col-note {
    width: 24%;
}

.cari-movement-col-amount {
    width: 9rem;
}

.cari-movement-col-balance {
    width: 10rem;
}

.cari-movement-col-actions {
    width: 7.6rem;
}

.item-movement-table {
    min-width: 1320px;
}

.item-movement-col-date {
    width: 6.6rem;
}

.item-movement-col-invoice {
    width: 9rem;
}

.item-movement-col-cari {
    width: 16%;
}

.item-movement-col-description {
    width: 20%;
}

.item-movement-col-note {
    width: 16%;
}

.item-movement-col-quantity {
    width: 6.2rem;
}

.item-movement-col-unit {
    width: 5.2rem;
}

.item-movement-col-price {
    width: 8.4rem;
}

.item-movement-col-total {
    width: 8.8rem;
}

.item-movement-col-actions {
    width: 5.5rem;
}

.dashboard-movement-table {
    min-width: 930px;
}

.dashboard-movement-col-date {
    width: 7.4rem;
}

.dashboard-movement-col-type {
    width: 7rem;
}

.dashboard-movement-col-account {
    width: 22%;
}

.dashboard-movement-col-target {
    width: 28%;
}

.dashboard-movement-col-amount {
    width: 9rem;
}

.dashboard-movement-col-actions {
    width: 5.5rem;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--soft);
    color: var(--navy);
    font-size: .68rem;
    font-weight: 850;
}

.badge-navy {
    background: rgba(7, 28, 61, .1);
    color: var(--navy);
}

.badge-burgundy {
    background: rgba(142, 24, 48, .1);
    color: var(--burgundy);
}

.badge-green {
    background: rgba(21, 128, 61, .12);
    color: #15803d;
}

.badge-red {
    background: rgba(220, 38, 38, .12);
    color: #dc2626;
}

.badge-money-collection {
    background: rgba(21, 128, 61, .12);
    color: #15803d;
}

.badge-money-payment {
    background: rgba(220, 38, 38, .12);
    color: #dc2626;
}

.badge-money-neutral {
    background: rgba(7, 28, 61, .1);
    color: var(--navy);
}

.text-navy {
    color: var(--navy) !important;
}

.text-burgundy {
    color: var(--burgundy) !important;
}

.text-money-collection {
    color: #15803d !important;
}

.text-money-payment {
    color: #dc2626 !important;
}

.text-money-neutral {
    color: var(--navy) !important;
}

.form-label {
    margin-bottom: .2rem;
    color: #475467;
    font-size: .68rem;
    font-weight: 850;
}

.form-control,
.form-select {
    min-height: 34px;
    border-color: #ccd3df;
    border-radius: 7px;
    font-size: .82rem;
}

textarea.form-control {
    min-height: 72px;
}

.btn {
    border-radius: 7px;
    font-weight: 850;
}

.btn-sm {
    min-height: 28px;
    padding-top: .2rem;
    padding-bottom: .2rem;
    font-size: .72rem;
}

.btn-navy {
    --bs-btn-bg: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #061735;
    --bs-btn-hover-border-color: #061735;
    --bs-btn-hover-color: #fff;
}

.btn-burgundy {
    --bs-btn-bg: var(--burgundy);
    --bs-btn-border-color: var(--burgundy);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #751126;
    --bs-btn-hover-border-color: #751126;
    --bs-btn-hover-color: #fff;
}

.btn-outline-navy {
    --bs-btn-color: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-hover-bg: var(--navy);
    --bs-btn-hover-border-color: var(--navy);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--navy);
    --bs-btn-active-border-color: var(--navy);
    --bs-btn-active-color: #fff;
}

.btn-outline-burgundy {
    --bs-btn-color: var(--burgundy);
    --bs-btn-border-color: var(--burgundy);
    --bs-btn-hover-bg: var(--burgundy);
    --bs-btn-hover-border-color: var(--burgundy);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--burgundy);
    --bs-btn-active-border-color: var(--burgundy);
    --bs-btn-active-color: #fff;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.empty-state i {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 2rem;
}

.empty-state strong,
.empty-state span {
    display: block;
}

.invoice-lines {
    width: 100%;
    min-width: 1120px;
    table-layout: fixed;
}

.invoice-lines .invoice-col-card {
    width: 15%;
}

.invoice-lines .invoice-col-description {
    width: 24%;
}

.invoice-lines .invoice-col-quantity {
    width: 8%;
}

.invoice-lines .invoice-col-unit {
    width: 7%;
}

.invoice-lines .invoice-col-price {
    width: 12%;
}

.invoice-lines .invoice-col-discount,
.invoice-lines .invoice-col-vat {
    width: 7%;
}

.invoice-lines .invoice-col-total {
    width: 15%;
}

.invoice-lines .invoice-col-action {
    width: 5%;
}

.invoice-lines th,
.invoice-lines td {
    overflow: hidden;
}

.invoice-lines input,
.invoice-lines select {
    width: 100%;
    min-height: 31px;
    font-size: .74rem;
}

.invoice-unit-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: .22rem .35rem;
    overflow: hidden;
    border: 1px solid #ccd3df;
    border-radius: 7px;
    background: #fff;
    color: var(--navy);
    font-size: .74rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-lines [data-line-total] {
    white-space: nowrap;
}

.line-actions {
    width: 44px;
}

.summary-box {
    display: grid;
    gap: 7px;
    padding: 11px;
    border-radius: 8px;
    background: var(--soft);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 750;
}

.summary-row strong {
    color: var(--navy);
}

.summary-row.total {
    padding-top: 7px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: .92rem;
}

.report-value {
    color: var(--navy);
    font-size: 1.24rem;
    font-weight: 850;
}

.definition-header-bar {
    padding: .42rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.definition-header-row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

.definition-header-left {
    display: flex;
    justify-content: flex-start;
}

.definition-header-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: .98rem;
    font-weight: 850;
    text-align: center;
    white-space: nowrap;
}

.definition-header-right {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.definition-header-right .badge {
    max-width: 100%;
    min-height: 26px;
    overflow: hidden;
    border-color: #d7dde7 !important;
    border-radius: 7px;
    font-size: .72rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.definition-header-right .btn {
    white-space: nowrap;
}

.definition-header-spacer {
    display: block;
    width: 1px;
    height: 1px;
}

.definition-header-bar + .role-matrix-wrap {
    margin-top: 12px;
}

.role-matrix-wrap {
    padding: .28rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.role-matrix-table {
    min-width: 760px;
    border-color: #d2d9e4;
    font-size: .76rem;
}

.role-matrix-table th {
    padding: .28rem .45rem;
    border-color: #d2d9e4;
    background: #f7f9fc;
    color: var(--navy);
    font-size: .72rem;
    font-weight: 850;
    text-transform: none;
}

.role-matrix-table td {
    padding: .23rem .45rem;
    border-color: #d2d9e4;
}

.role-title {
    display: block;
    color: var(--navy);
    font-size: .74rem;
    font-weight: 850;
    text-transform: none;
}

.role-permission-col {
    width: 24%;
}

.role-group-row td {
    padding: .2rem .45rem;
    background: #f1f3f6;
    color: #111827;
    font-size: .72rem;
    font-weight: 850;
}

.role-permission-name strong {
    display: block;
    color: #111827;
    font-size: .74rem;
    font-weight: 760;
}

.role-matrix-table .form-check-input {
    width: .8rem;
    height: .8rem;
    margin: 0;
}

@media (max-width: 980px) {
    .panel-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .stat-grid,
    .grid-3,
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .page-shell {
        padding: 18px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-copy {
        min-height: 0;
        padding-top: 16px;
        transform: none;
    }

    .hero-copy h1 {
        font-size: 2.7rem;
    }

    .signal-row {
        display: none;
    }
}

@media (max-width: 680px) {
    .page-shell {
        padding: 14px;
    }

    .brand {
        min-width: 210px;
    }

    .portal-label {
        display: none;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .login-panel {
        padding: 16px;
        border-radius: 20px;
    }

    .stat-grid,
    .grid-3,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .definition-header-row {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .definition-header-title,
    .definition-header-left,
    .definition-header-right {
        justify-content: flex-start;
    }

    .money-header-row {
        grid-template-columns: 1fr;
    }

    .money-account-summary {
        max-width: 100%;
    }

    .money-account-main strong {
        max-width: 42vw;
    }

    .money-filter-form {
        min-width: 0;
        flex-wrap: wrap;
    }

    .money-filter-date,
    .money-filter-type,
    .money-filter-target,
    .invoice-filter-party,
    .invoice-filter-description,
    .money-search-box {
        width: 100%;
        flex: 1 1 100%;
    }

    .money-search-box {
        margin-left: 0;
    }
}

.executive-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.executive-kpi {
    position: relative;
    min-height: 116px;
    overflow: hidden;
    padding: 16px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.executive-kpi::after {
    position: absolute;
    right: -22px;
    bottom: -28px;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    content: "";
}

.executive-kpi span,
.executive-kpi small {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
    font-weight: 800;
}

.executive-kpi strong {
    display: block;
    margin-top: 10px;
    font-size: 1.22rem;
    font-weight: 950;
    line-height: 1.1;
}

.executive-kpi small {
    margin-top: 8px;
}

.executive-kpi > i {
    position: absolute;
    right: 14px;
    top: 14px;
    color: rgba(255, 255, 255, .34);
    font-size: 1.8rem;
}

.kpi-navy { background: #071c3d; }
.kpi-burgundy { background: #8c1d40; }
.kpi-blue { background: #12365f; }
.kpi-red { background: #9f1d37; }

.dashboard-main-grid,
.dashboard-split-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-main-grid {
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, .62fr);
}

.dashboard-split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-panel .panel-header {
    min-height: 46px;
}

.dashboard-flow-list,
.dashboard-check-list,
.dashboard-account-list,
.dashboard-invoice-list {
    display: grid;
    gap: 8px;
}

.dashboard-flow-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(120px, auto);
    align-items: center;
    gap: 7px 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f5;
}

.dashboard-flow-row:last-child {
    border-bottom: 0;
}

.dashboard-flow-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 850;
}

.dashboard-flow-title i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(7, 28, 61, .08);
    color: var(--navy);
}

.dashboard-flow-row strong {
    color: var(--navy);
    font-size: .84rem;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.dashboard-flow-bar,
.mini-meter,
.dashboard-account-meter {
    display: block;
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: #e8edf5;
}

.dashboard-flow-bar {
    grid-column: 1 / -1;
}

.dashboard-flow-bar span,
.mini-meter span,
.dashboard-account-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.flow-navy { background: var(--navy); }
.flow-burgundy { background: var(--burgundy); }
.flow-green { background: #15803d; }
.flow-red { background: #dc2626; }

.dashboard-check-list div {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f5;
}

.dashboard-check-list div:last-child {
    border-bottom: 0;
}

.dashboard-check-list i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(140, 29, 64, .09);
    color: var(--burgundy);
}

.dashboard-check-list span {
    color: #475467;
    font-size: .78rem;
    font-weight: 800;
}

.dashboard-check-list strong {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 950;
}

.dashboard-account-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px 10px;
    min-height: 58px;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f5;
}

.dashboard-account-row:last-child {
    border-bottom: 0;
}

.dashboard-account-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
}

.dashboard-account-main {
    min-width: 0;
}

.dashboard-account-main strong,
.dashboard-account-main small {
    display: block;
}

.dashboard-account-main strong {
    overflow: hidden;
    color: var(--navy);
    font-size: .84rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-account-main small,
.dashboard-muted {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 750;
}

.dashboard-account-balance {
    color: var(--navy);
    font-size: .82rem;
    font-weight: 950;
    text-align: right;
    white-space: nowrap;
}

.dashboard-account-meter {
    grid-column: 2 / -1;
    height: 6px;
}

.dashboard-account-meter span {
    background: var(--burgundy);
}

.dashboard-risk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-risk-grid h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: .78rem;
    font-weight: 900;
}

.dashboard-risk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    border-bottom: 1px solid #eef1f5;
    color: var(--navy);
    font-size: .76rem;
    font-weight: 850;
}

.dashboard-risk-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-risk-row strong {
    flex: 0 0 auto;
    color: #15803d;
    font-weight: 950;
}

.dashboard-risk-row.risk-payable strong {
    color: #dc2626;
}

.dashboard-performance-table td strong {
    display: block;
    color: var(--navy);
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
}

.mini-meter {
    width: 100%;
    max-width: 190px;
    height: 5px;
    margin-top: 4px;
}

.dashboard-invoice-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 7px 0;
    border-bottom: 1px solid #eef1f5;
}

.dashboard-invoice-list a:last-child {
    border-bottom: 0;
}

.dashboard-invoice-list span {
    min-width: 0;
}

.dashboard-invoice-list strong,
.dashboard-invoice-list small {
    display: block;
}

.dashboard-invoice-list strong {
    color: var(--navy);
    font-size: .82rem;
    font-weight: 900;
}

.dashboard-invoice-list small {
    overflow: hidden;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-invoice-list em {
    color: var(--burgundy);
    font-size: .82rem;
    font-style: normal;
    font-weight: 950;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .executive-kpi-grid,
    .dashboard-main-grid,
    .dashboard-split-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .executive-kpi-grid,
    .dashboard-main-grid,
    .dashboard-split-grid,
    .dashboard-risk-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-flow-row,
    .dashboard-account-row {
        grid-template-columns: 1fr;
    }

    .dashboard-flow-row strong,
    .dashboard-account-balance {
        text-align: left;
    }

    .dashboard-account-meter {
        grid-column: 1;
    }
}

.report-center-shell {
    display: grid;
    gap: 12px;
    min-width: 0;
    overflow-x: hidden;
}

.report-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.report-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 7px;
    color: var(--navy);
    font-size: .8rem;
    font-weight: 900;
}

.report-tabs a.active,
.report-tabs a:hover,
.report-tabs a:focus {
    background: var(--navy);
    color: #fff;
}

.report-filter-panel {
    padding: 12px;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 150px 150px auto;
    align-items: end;
    gap: 10px;
}

.report-filter-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.report-invoice-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.report-summary-card {
    min-height: 82px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.report-summary-card span,
.report-summary-card strong {
    display: block;
}

.report-summary-card span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.report-summary-card strong {
    margin-top: 8px;
    overflow: hidden;
    color: var(--navy);
    font-size: .98rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-result-panel .panel-header {
    min-height: 48px;
}

.report-result-panel,
.report-result-panel .panel-body,
.report-result-panel .table-scroll {
    min-width: 0;
}

.report-result-panel .table-scroll {
    overflow-x: hidden;
}

.report-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: .74rem;
}

.report-cari-col-date,
.report-account-col-date {
    width: 6.5%;
}

.report-item-col-date,
.report-invoice-col-date {
    width: 6.5%;
}

.report-cari-col-type,
.report-account-col-type,
.report-invoice-col-type {
    width: 5.5%;
}

.report-item-col-type {
    width: 5%;
}

.report-cari-col-document,
.report-account-col-document,
.report-item-col-invoice,
.report-invoice-col-document {
    width: 7.5%;
}

.report-account-col-related {
    width: 16%;
}

.report-item-col-cari {
    width: 15%;
}

.report-invoice-col-cari {
    width: 57%;
}

.report-cari-col-description {
    width: 41%;
}

.report-account-col-description {
    width: 32%;
}

.report-item-col-description {
    width: 25%;
}

.report-cari-col-money,
.report-cari-col-balance,
.report-account-col-money,
.report-account-col-balance,
.report-invoice-col-money {
    width: 10.5%;
}

.report-item-col-qty {
    width: 7%;
}

.report-item-col-unit {
    width: 4%;
}

.report-item-col-total {
    width: 10%;
}

.report-table th {
    padding: .34rem .36rem;
    background: #f7f9fc;
    color: var(--navy);
    font-size: .66rem;
    font-weight: 900;
    white-space: nowrap;
}

.report-table td {
    padding: .32rem .36rem;
    vertical-align: top;
    line-height: 1.22;
}

.report-date,
.report-type,
.report-document,
.report-unit,
.report-money {
    white-space: nowrap;
}

.report-money {
    font-variant-numeric: tabular-nums;
}

.report-description,
.report-related {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.report-table tbody tr:hover {
    background: rgba(7, 28, 61, .035);
}

@media (max-width: 1100px) {
    .report-filter-grid,
    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .report-filter-grid,
    .report-summary-grid,
    .report-invoice-filters {
        grid-template-columns: 1fr;
    }

    .report-tabs {
        display: grid;
    }
}
