.sidebar-wrapper .sidebar-header {
    gap: 10px;
}

.sidebar-brand-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.sidebar-brand-logo img {
    width: 170px;
    max-width: 100%;
    height: 58px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.sidebar-wrapper .sidebar-header .logo-text {
    font-size: 20px;
    letter-spacing: 0;
}

.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-brand-logo img {
    width: 38px;
    height: 38px;
}

.widgets-icons {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 24px;
}

.card {
    border-radius: 12px;
}

.form-control,
.btn {
    border-radius: 12px;
}

.menu-label {
    letter-spacing: 0;
}

.active-vega-context {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #32393f;
    font-weight: 600;
    max-width: calc(100vw - 560px);
    white-space: nowrap;
    overflow: hidden;
}

.active-vega-context span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.active-vega-context i {
    color: #0d6efd;
    font-size: 18px;
}

.context-home-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    color: #dc2626 !important;
    font-size: 21px !important;
    border-radius: 50%;
    animation: vega-home-heartbeat 1.35s ease-in-out infinite;
}

.context-home-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(220, 38, 38, 0.42);
    border-radius: 50%;
    animation: vega-home-signal 1.35s ease-out infinite;
}

.context-company,
.context-period {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
    .active-vega-context {
        max-width: calc(100vw - 180px);
    }

    .context-period {
        display: none !important;
    }
}

.stock-page-header {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #c9e6ed;
    border: 1px solid #9fbec6;
}

.stock-page-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f6f82;
    font-size: 26px;
}

.stock-list-card .card-header {
    background: #d9eef3;
    border-bottom: 1px solid #9fbec6;
}

.stock-list-title {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    white-space: nowrap;
}

.stock-list-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 280px;
    flex: 1;
}

.stock-column-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 8px;
}

.stock-column-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #c9dde4;
    border-radius: 12px;
    color: #21313a;
    font-size: 12px;
    font-weight: 600;
    user-select: none;
}

.stock-column-option input {
    margin: 0;
}

.stock-search {
    position: relative;
    width: min(360px, 42vw);
}

.stock-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 17px;
    pointer-events: none;
}

.stock-search .form-control {
    height: 32px;
    padding-left: 32px;
}

.cari-balance-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    background: #ffffff;
    border: 1px solid #c9dde4;
    border-radius: 12px;
}

.cari-balance-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 8px;
    margin: 0;
    color: #21313a;
    font-size: 12px;
    font-weight: 700;
    user-select: none;
}

.cari-balance-switch input {
    width: 34px;
    height: 18px;
    margin: 0;
    appearance: none;
    background: #cbd5df;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background 160ms ease;
}

.cari-balance-switch input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(31, 54, 70, 0.24);
    transition: transform 160ms ease;
}

.cari-balance-switch input:checked {
    background: #0d6efd;
}

.cari-balance-switch input:checked::after {
    transform: translateX(16px);
}

.cari-balance-summary-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 9px 14px;
    background: #f7fbfc;
    border-bottom: 1px solid #cce5ec;
}

.cari-balance-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 5px 10px;
    background: #ffffff;
    border: 1px solid #c9dde4;
    border-radius: 8px;
    color: #21313a;
    white-space: nowrap;
}

.cari-balance-summary-item span {
    color: #526471;
    font-size: 12px;
    font-weight: 700;
}

.cari-balance-summary-item strong {
    font-size: 14px;
    font-weight: 800;
}

.cari-balance-summary-creditor strong {
    color: #166534;
}

.cari-balance-summary-debtor strong {
    color: #991b1b;
}

.stock-table-wrapper {
    max-height: calc(100vh - 260px);
}

.stock-table {
    font-size: 13px;
    color: #21313a;
}

.stock-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #eef6f8;
    border: 1px solid #b8b1a3;
    font-weight: 700;
    white-space: nowrap;
}

.stock-table thead th[data-sort-type] {
    cursor: pointer;
    user-select: none;
    padding-right: 22px;
    position: sticky;
}

.stock-table thead th[data-sort-type]::after {
    content: "\2195";
    position: absolute;
    right: 6px;
    color: #7b8790;
    font-size: 11px;
}

.stock-table thead th.sort-asc::after {
    content: "\2191";
    color: #0d6efd;
}

.stock-table thead th.sort-desc::after {
    content: "\2193";
    color: #0d6efd;
}

.stock-table tbody td {
    border: 1px solid #c4bcad;
    padding: 3px 6px;
    vertical-align: middle;
    white-space: nowrap;
}

.stock-table tbody tr:nth-child(even) td {
    background: #fbfaf5;
}

.stock-table tbody tr:hover td {
    background: #e8f4ff;
}

.stock-table tbody tr[data-movement-url] {
    cursor: default;
}

.stock-table tbody tr[data-document-url] {
    cursor: default;
}

.stock-code {
    font-weight: 600;
}

.stock-name {
    min-width: 420px;
    white-space: normal !important;
}

.cari-money-value {
    display: inline-block;
}

.cari-balance-badge {
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.cari-balance-creditor {
    background: #dcfce7;
    border: 1px solid #16a34a;
    color: #166534;
}

.cari-balance-borrower {
    background: #fee2e2;
    border: 1px solid #dc2626;
    color: #991b1b;
}

.stock-table tbody td.cari-type-buyer {
    color: #15803d;
    font-weight: 800;
}

.stock-table tbody td.cari-type-seller {
    color: #dc2626;
    font-weight: 800;
}

.stock-table tbody td.cari-type-buyer-seller {
    color: #0f766e;
    font-weight: 800;
}

.stock-action-col {
    width: 86px;
    min-width: 86px;
    text-align: center;
}

.stock-movement-btn {
    width: 30px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.stock-edit-modal .modal-header {
    background: #eef6f8;
    border-bottom: 1px solid #9fbec6;
}

.stock-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 10px;
}

.stock-edit-field {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.stock-edit-field-wide {
    grid-column: span 2;
}

.stock-edit-field label {
    margin: 0;
    color: #4b5963;
    font-size: 12px;
    font-weight: 700;
}

.stock-unit-box {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px;
    background: #e0f2fe;
    border: 1px solid #38bdf8;
    border-radius: 12px;
}

.stock-unit-box span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    background: #0284c7;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.stock-unit-box .form-control {
    min-width: 0;
    background-color: #ffffff;
    border-color: #bae6fd;
}

.stock-movement-filter {
    display: flex;
    align-items: end;
    gap: 8px;
    flex-wrap: wrap;
}

.stock-movement-filter-item {
    display: grid;
    gap: 3px;
}

.stock-movement-filter-item label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5963;
}

.stock-movement-filter-item .form-control {
    min-width: 150px;
}

.sales-invoice-search-item .form-control {
    min-width: 240px;
}

.sales-invoice-search-item {
    flex: 0 1 300px;
    max-width: 360px;
}

.sales-invoice-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.sales-invoice-search-box .bx {
    position: absolute;
    left: 12px;
    z-index: 2;
    color: #607586;
    font-size: 18px;
    pointer-events: none;
}

.sales-invoice-search-box .form-control {
    width: 100%;
    min-width: 260px;
    height: 36px;
    padding: 0 14px 0 38px;
    border: 1px solid #d7dde3;
    border-radius: 12px;
    background: #fff;
    color: #263238;
    font-size: 14px;
    box-shadow: none;
}

.sales-invoice-search-box .form-control::placeholder {
    color: #a7a7a7;
    opacity: 1;
}

.sales-invoice-search-box .form-control:focus {
    border-color: #86d5eb;
    box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.14);
}

.stock-movement-quick-ranges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-left: 6px;
}

.stock-movement-quick-ranges .btn {
    min-width: 72px;
}

.stock-payment-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    background: #ffffff;
    border: 1px solid #c9dde4;
    border-radius: 12px;
}

.stock-payment-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 8px;
    margin: 0;
    color: #21313a;
    font-size: 12px;
    font-weight: 700;
    user-select: none;
}

.stock-payment-option input {
    margin: 0;
}

.stock-movement-card .card-header {
    background: #eef6f8;
    border-bottom: 1px solid #9fbec6;
}

.movement-column-panel {
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0 2px;
}

.movement-column-panel.is-open {
    display: flex;
}

.movement-column-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #c9dde4;
    border-radius: 12px;
    color: #21313a;
    font-size: 12px;
    font-weight: 600;
    user-select: none;
}

.movement-column-option input {
    margin: 0;
}

.check-action-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.check-action-filter-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    display: none;
    min-width: 210px;
    max-width: min(360px, 90vw);
    max-height: 320px;
    overflow: auto;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #b5d3d9;
    box-shadow: 0 8px 22px rgba(15, 45, 65, 0.15);
}

.check-action-filter:hover .check-action-filter-panel,
.check-action-filter.is-open .check-action-filter-panel {
    display: grid;
    gap: 6px;
}

.stock-movement-tab {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    background: #f5f5f5;
    border-right: 1px solid #d7d7d7;
    border-bottom: 1px solid #d7d7d7;
    font-weight: 700;
    font-size: 12px;
}

.stock-movement-wrapper {
    max-height: calc(100vh - 330px);
}

.vega-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(245, 248, 250, 0.72);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.vega-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vega-loading-panel {
    width: min(360px, calc(100vw - 40px));
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 26px 28px 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(132, 213, 235, 0.72);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(31, 54, 70, 0.18);
}

.vega-loading-ring {
    position: relative;
    width: 72px;
    height: 72px;
}

.vega-loading-ring span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: vega-loading-spin 1.2s linear infinite;
}

.vega-loading-ring span:nth-child(1) {
    border-top-color: #0d99ff;
    border-right-color: #0d99ff;
}

.vega-loading-ring span:nth-child(2) {
    inset: 8px;
    border-bottom-color: #16c7d9;
    border-left-color: #16c7d9;
    animation-duration: 0.9s;
    animation-direction: reverse;
}

.vega-loading-ring span:nth-child(3) {
    inset: 18px;
    border-top-color: #1d2b36;
    animation-duration: 1.6s;
}

.vega-loading-copy {
    display: grid;
    gap: 4px;
    text-align: center;
}

.vega-loading-copy strong {
    color: #20313c;
    font-size: 18px;
    letter-spacing: 0;
}

.vega-loading-copy small {
    color: #667985;
    font-size: 13px;
}

.vega-loading-progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    background: #e8f1f5;
    border-radius: 999px;
}

.vega-loading-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0d99ff, #16c7d9);
    transition: width 220ms ease;
}

.vega-loading-percent {
    min-width: 54px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef8fb;
    color: #0d6f91;
    font-weight: 800;
    font-size: 13px;
    text-align: center;
}

.document-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #f7fbfc;
    border-top: 1px solid #cce5ec;
}

.document-pagination-summary,
.document-pagination-page {
    color: #465a66;
    font-size: 13px;
    font-weight: 700;
}

.document-pagination-page-total {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid #c9dde4;
    color: #0d6f91;
}

.document-pagination-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.document-pagination-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.dashboard-period-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
    background: #eef6ff;
    border: 1px solid #c8ddff;
    border-radius: 8px;
    color: #26466d;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-date-toolbar {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-range-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px;
    background: #ffffff;
    border: 1px solid #c8ddff;
    border-radius: 8px;
}

.dashboard-range-actions .btn {
    min-width: 72px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

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

.dashboard-stat-card {
    min-height: 136px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px;
    padding: 18px;
    border-radius: 8px;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(31, 54, 70, 0.12);
    overflow: hidden;
}

a.dashboard-stat-card {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

a.dashboard-stat-card:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(31, 54, 70, 0.18);
}

a.dashboard-card-amber,
a.dashboard-card-amber:hover {
    color: #1f2937;
}

.dashboard-stat-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.dashboard-stat-copy span {
    font-size: 14px;
    font-weight: 800;
    opacity: 0.95;
}

.dashboard-stat-copy strong {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.dashboard-stat-copy small {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    opacity: 0.92;
}

.dashboard-stat-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 25px;
}

.dashboard-card-blue { background: #0d6efd; }
.dashboard-card-green { background: #16a34a; }
.dashboard-card-indigo { background: #4f46e5; }
.dashboard-card-amber { background: #f59e0b; color: #1f2937; }
.dashboard-card-teal { background: #0f766e; }
.dashboard-card-slate { background: #334155; }
.dashboard-card-cyan { background: #06b6d4; }
.dashboard-card-red { background: #e11d48; }
.dashboard-card-pink { background: #db2777; }
.dashboard-card-orange { background: #ea580c; }
.dashboard-card-purple { background: #7c3aed; }
.dashboard-card-neutral { background: #64748b; }

.dashboard-card-amber .dashboard-stat-icon {
    color: #1f2937;
}

.dashboard-chart-card {
    height: 100%;
}

.dashboard-panel-title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dashboard-panel-title h5 {
    margin: 0;
    color: #243646;
    font-size: 16px;
    font-weight: 800;
}

.dashboard-panel-title span {
    color: #607586;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-panel-title i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef6f8;
    color: #0f6f82;
    font-size: 20px;
}

.dashboard-chart-box {
    position: relative;
    height: 280px;
}

.dashboard-footer-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 13px 16px;
    background: #ffffff;
    border: 1px solid #d9e3ec;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(31, 54, 70, 0.08);
}

.dashboard-footer-block div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.dashboard-footer-block strong {
    color: #0d6efd;
    font-weight: 900;
}

.dashboard-footer-block span {
    color: #526471;
    font-size: 13px;
    font-weight: 700;
}

@keyframes vega-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes vega-home-heartbeat {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(220, 38, 38, 0));
    }

    18% {
        transform: scale(1.16);
        filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.55));
    }

    34% {
        transform: scale(0.96);
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.42));
    }
}

@keyframes vega-home-signal {
    0% {
        opacity: 0.85;
        transform: scale(0.72);
    }

    70% {
        opacity: 0;
        transform: scale(1.45);
    }

    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

.stock-movement-table tbody tr:nth-child(odd) td {
    background: #d7e3ff;
}

.stock-movement-table tbody tr:nth-child(even) td {
    background: #ffffff;
}

.stock-movement-table tbody tr:hover td {
    background: #bfd4ff;
}

.stock-movement-table tbody td.movement-explanation {
    font-weight: 700;
    border-left-width: 4px;
}

.stock-movement-table tbody td.movement-explanation-sale {
    background: #dcfce7 !important;
    border-left-color: #16a34a;
    color: #14532d;
}

.stock-movement-table tbody td.movement-explanation-sales-invoice {
    background: #bbf7d0 !important;
    border-left-color: #15803d;
    color: #14532d;
}

.stock-movement-table tbody td.movement-explanation-sales-return {
    background: #fecaca !important;
    border-left-color: #dc2626;
    color: #7f1d1d;
}

.stock-movement-table tbody td.movement-explanation-sales-dispatch {
    background: #99f6e4 !important;
    border-left-color: #0f766e;
    color: #134e4a;
}

.stock-movement-table tbody td.movement-explanation-sales-dispatch-return {
    background: #fed7aa !important;
    border-left-color: #ea580c;
    color: #7c2d12;
}

.stock-movement-table tbody td.movement-explanation-quick-sale {
    background: #fef3c7 !important;
    border-left-color: #f59e0b;
    color: #78350f;
}

.stock-movement-table tbody td.movement-explanation-purchase {
    background: #e0e7ff !important;
    border-left-color: #4f46e5;
    color: #312e81;
}

.stock-movement-table tbody td.movement-explanation-purchase-invoice {
    background: #c7d2fe !important;
    border-left-color: #4338ca;
    color: #312e81;
}

.stock-movement-table tbody td.movement-explanation-purchase-return {
    background: #e9d5ff !important;
    border-left-color: #7e22ce;
    color: #581c87;
}

.stock-movement-table tbody td.movement-explanation-purchase-dispatch {
    background: #fde68a !important;
    border-left-color: #d97706;
    color: #713f12;
}

.stock-movement-table tbody td.movement-explanation-purchase-dispatch-return {
    background: #ddd6fe !important;
    border-left-color: #6d28d9;
    color: #4c1d95;
}

.stock-movement-table tbody td.movement-explanation-entry {
    background: #cffafe !important;
    border-left-color: #0891b2;
    color: #164e63;
}

.stock-movement-table tbody td.movement-explanation-cari-entry {
    background: #cffafe !important;
    border-left-color: #0891b2;
    color: #164e63;
}

.stock-movement-table tbody td.movement-explanation-exit {
    background: #ffedd5 !important;
    border-left-color: #f97316;
    color: #7c2d12;
}

.stock-movement-table tbody td.movement-explanation-cari-exit {
    background: #ffe4e6 !important;
    border-left-color: #e11d48;
    color: #881337;
}

.stock-movement-table tbody td.movement-explanation-cari-process {
    background: #e0f2fe !important;
    border-left-color: #0284c7;
    color: #0c4a6e;
}

.stock-movement-table tbody td.movement-explanation-transfer {
    background: #e2e8f0 !important;
    border-left-color: #475569;
    color: #1e293b;
}

.stock-movement-table tbody td.movement-explanation-other {
    background: #fef9c3 !important;
    border-left-color: #ca8a04;
    color: #713f12;
}

.stock-movement-table tfoot th {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #d9eef3;
    border: 1px solid #9fbec6;
    font-weight: 800;
    white-space: nowrap;
}

.document-detail-card .card-header {
    background: #eef6f8;
    border-bottom: 1px solid #9fbec6;
}

.document-detail-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    padding: 10px 12px;
    background: #3d8a9a;
    color: #ffffff;
}

.document-field {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.document-field-wide {
    grid-column: span 2;
}

.document-field span {
    font-size: 12px;
    opacity: 0.85;
}

.document-field strong {
    min-height: 30px;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: #e9f5f7;
    color: #21313a;
    border: 1px solid #b5d3d9;
    border-radius: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-field-optional strong {
    background: #f7fbfc;
}

.document-detail-wrapper {
    max-height: calc(100vh - 430px);
}

.document-detail-table tfoot th {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #d9eef3;
    border: 1px solid #9fbec6;
    font-weight: 800;
    white-space: nowrap;
}

.document-payment-panel {
    padding: 10px 12px;
    background: #eef6f8;
    border-top: 1px solid #9fbec6;
}

.document-payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    color: #21313a;
}

.document-payment-header span {
    font-weight: 800;
}

.document-payment-table tbody td {
    background: #ffffff;
}

.cari-movement-detail-summary {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

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

.cari-movement-detail-table td:nth-child(3) {
    min-width: 280px;
}

.document-bottom-panel {
    display: grid;
    grid-template-columns: minmax(260px, 560px) minmax(320px, 660px);
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    padding: 12px;
    background: #3d8a9a;
}

.document-discount-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 8px;
}

.document-total-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 8px;
    align-self: end;
}

.document-bottom-panel > .document-total-panel:first-child {
    grid-column: 2;
}

.document-discount-panel div,
.document-total-panel div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.document-discount-panel span,
.document-total-panel span {
    color: #ffffff;
    font-size: 12px;
}

.document-discount-panel strong,
.document-total-panel strong {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 7px 10px;
    background: #ffffff;
    border: 1px solid #b5d3d9;
    border-radius: 12px;
    color: #21313a;
    text-align: right;
}

.stock-table tbody tr.check-row-collected > td {
    background: #dff5e7;
    color: #125c2d;
}

.stock-table tbody tr.check-row-collected:hover > td {
    background: #d2efdd;
}

.stock-table tbody tr.check-row-portfolio > td {
    background: #e9f2ff;
    color: #184d7a;
}

.stock-table tbody tr.check-row-portfolio:hover > td {
    background: #dceaff;
}

.stock-table tbody tr.check-row-clearing > td {
    background: #fff2c2;
    color: #6a4a00;
}

.stock-table tbody tr.check-row-clearing:hover > td {
    background: #ffe9a3;
}

.stock-table tbody tr.check-row-payable > td {
    background: #efe7ff;
    color: #4b2d83;
}

.stock-table tbody tr.check-row-payable:hover > td {
    background: #e4d7ff;
}

.stock-table tbody tr.check-row-returned > td,
.stock-table tbody tr.check-row-exit > td {
    background: #eef0f3;
    color: #334155;
}

.stock-table tbody tr.check-row-returned:hover > td,
.stock-table tbody tr.check-row-exit:hover > td {
    background: #e2e6ea;
}

.stock-table tbody tr.check-row-unpaid > td {
    background: #ffe2e2;
    color: #8a1f1f;
}

.stock-table tbody tr.check-row-unpaid:hover > td {
    background: #ffd0d0;
}

.stock-table tbody tr.check-row-endorsed > td {
    background: #e4fbf5;
    color: #075b4a;
}

.stock-table tbody tr.check-row-endorsed:hover > td {
    background: #d2f5ec;
}

.stock-table tbody tr[data-check-url] {
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .stock-list-actions {
        width: 100%;
        min-width: 0;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .stock-search {
        width: 100%;
    }

    .stock-list-actions .btn {
        flex: 0 0 auto;
    }

    .stock-column-panel,
    .stock-column-option {
        width: 100%;
    }

    .stock-movement-filter-item,
    .stock-movement-filter-item .form-control,
    .stock-movement-filter .btn,
    .cari-balance-filter,
    .cari-balance-switch,
    .cari-balance-summary-item,
    .stock-payment-filter,
    .stock-movement-quick-ranges,
    .movement-column-panel,
    .movement-column-option {
        width: 100%;
    }

    .stock-payment-option {
        flex: 1;
    }

    .stock-movement-quick-ranges {
        padding-left: 0;
    }

    .document-detail-summary,
    .document-bottom-panel,
    .document-discount-panel,
    .document-total-panel,
    .stock-edit-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-footer-block {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-date-toolbar,
    .dashboard-range-actions,
    .dashboard-period-badge {
        width: 100%;
    }

    .dashboard-date-toolbar {
        justify-content: stretch;
    }

    .dashboard-range-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .document-bottom-panel > .document-total-panel:first-child {
        grid-column: 1;
    }

    .document-field-wide {
        grid-column: span 1;
    }

    .stock-edit-field-wide {
        grid-column: span 1;
    }
}
