:root {
    --app-shell-max-width: max(1320px, 90vw);
    --ink-strong: var(--theme-text);
    --ink: var(--theme-text);
    --muted: var(--theme-text-muted);
    --line: var(--theme-border);
    --surface: var(--theme-surface-strong);
    --shadow-soft: none;
    --shadow-card: none;
}

body {
    min-height: 100vh;
    background: var(--theme-bg);
    color: var(--ink-strong);
    font-family: var(--app-font-sans);
    font-size: var(--app-font-size-14);
    font-weight: var(--app-font-weight-regular);
    line-height: 1.5;
}

.app-delete-confirm-modal .modal-content {
    border: 1px solid rgba(178, 42, 55, 0.14);
    border-radius: var(--erp-control-radius);
    box-shadow: none;
    overflow: hidden;
}

.app-delete-confirm-modal .modal-header {
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px 14px;
    border-bottom-color: rgba(21, 32, 51, 0.08);
    background: var(--theme-surface-strong);
}

.app-delete-confirm-modal .modal-body {
    padding: 18px 24px 22px;
}

.app-delete-confirm-modal .modal-footer {
    padding: 0 24px 22px;
    border-top: 0;
}

.app-delete-confirm-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: #b42318;
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-delete-confirm-modal .modal-title {
    color: var(--ink-strong);
    font-family: var(--app-font-display);
}

.app-delete-confirm-copy {
    margin: 0;
    color: var(--ink);
    line-height: 1.6;
}

.app-revaluation-warning-modal .modal-dialog {
    width: min(100vw - 24px, 460px);
    max-width: 460px;
}

.app-revaluation-warning-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--theme-border, rgba(21, 32, 51, 0.12));
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong, #ffffff);
    box-shadow: none;
}

.app-revaluation-warning-body {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 28px 30px 22px;
    text-align: center;
}

.app-revaluation-warning-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--theme-warning, #a16207);
    background: var(--theme-warning-soft, rgba(161, 98, 7, 0.12));
    border-radius: var(--erp-control-radius);
}

.app-revaluation-warning-icon svg {
    width: 42px;
    height: 42px;
}

.app-revaluation-warning-copy {
    display: grid;
    gap: 8px;
}

.app-revaluation-warning-title {
    margin: 0;
    color: var(--theme-text, var(--ink-strong));
    font-family: var(--app-font-display);
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.app-revaluation-warning-copy p {
    max-width: 26rem;
    margin: 0;
    color: var(--theme-text-soft, var(--ink));
    font-size: var(--app-font-size-16);
    line-height: 1.45;
}

.app-revaluation-warning-actions {
    display: grid;
    width: 100%;
    gap: 8px;
    margin-top: 2px;
}

.app-revaluation-warning-primary {
    width: 100%;
    min-height: 48px;
    border-radius: var(--erp-control-radius);
    font-weight: var(--app-font-weight-bold);
}

.app-revaluation-warning-close {
    justify-self: center;
    padding: 6px 14px;
    border: 0;
    color: var(--theme-text-muted, var(--muted));
    font-size: var(--app-font-size-14);
}

.app-revaluation-warning-close:hover,
.app-revaluation-warning-close:focus-visible {
    color: var(--theme-text, var(--ink-strong));
    background: var(--theme-surface-soft, rgba(21, 32, 51, 0.06));
}

.app-auto-logout-modal .modal-dialog {
    width: min(100vw - 24px, 560px);
    max-width: 560px;
}

.app-auto-logout-modal .modal-content {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(21, 32, 51, 0.08);
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.app-auto-logout-modal .modal-content::before {
    content: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--theme-surface-strong);
}

.app-auto-logout-body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    padding: 30px 34px 32px;
}

.app-auto-logout-copy {
    display: grid;
    gap: 10px;
}

.app-auto-logout-kicker {
    color: var(--muted);
    font-size: var(--app-font-size-14);
    font-weight: var(--app-font-weight-semibold);
    line-height: 1.25;
}

.app-auto-logout-title {
    margin: 0;
    color: var(--ink-strong);
    font-family: var(--app-font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.app-auto-logout-message {
    max-width: 28rem;
    margin: 0;
    color: var(--ink);
    font-size: var(--app-font-size-16);
    line-height: 1.55;
}

.app-auto-logout-actions {
    display: flex;
    justify-content: flex-end;
}

.app-auto-logout-btn {
    min-width: 178px;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    color: #f8fafc;
    box-shadow: none;
    font-size: var(--app-font-size-14);
    font-weight: var(--app-font-weight-extrabold);
    line-height: 1;
}

.app-auto-logout-btn:hover,
.app-auto-logout-btn:focus-visible {
    color: #f8fafc;
    box-shadow: none;
    transform: none;
}

.app-auto-logout-btn:focus-visible {
    outline: none;
}

.app-navbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 10px 0 0;
    background: var(--theme-surface-strong) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
}

.app-navbar::before {
    content: none;
    position: absolute;
    inset: 0;
    background: var(--theme-surface-strong);
    opacity: 0.34;
    pointer-events: none;
}

.app-navbar::after {
    content: none;
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: var(--theme-surface-strong);
    opacity: 1;
}

.app-bookmark-bar {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 8px;
    background: var(--theme-surface-strong);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-bookmark-shell {
    width: min(var(--app-shell-max-width), calc(100% - 40px));
    margin: 0 auto;
    min-height: 40px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "label track actions";
    align-items: center;
    gap: 12px;
    position: relative;
}

.app-bookmark-label {
    grid-area: label;
    margin: 0;
    color: rgba(226, 232, 240, 0.74);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-bookmark-track {
    grid-area: track;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    min-width: 0;
    overflow: hidden;
}

.app-bookmark-list {
    margin: 0;
    padding: 4px 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.app-bookmark-empty {
    margin: 0;
    color: rgba(226, 232, 240, 0.62);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: 0.01em;
    line-height: 1.3;
    white-space: nowrap;
}

.app-bookmark-empty[hidden] {
    display: none;
}

.app-bookmark-shell[data-has-bookmarks="false"] {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas: "label actions track";
}

.app-bookmark-list-item {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    transition: opacity 0.16s ease;
}

.app-bookmark-list-item[draggable="true"] {
    cursor: grab;
}

.app-bookmark-list-item.is-dragging {
    cursor: grabbing;
    opacity: 0.5;
}

.app-bookmark-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 198px;
    min-height: 28px;
    padding: 5px 28px 5px 10px;
    border-radius: var(--erp-control-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--theme-surface-strong);
    color: #f8fafc;
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-bold);
    line-height: 1.1;
    text-decoration: none;
    box-shadow: none;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.app-bookmark-chip:hover,
.app-bookmark-chip:focus-visible {
    color: #f8fafc;
    background: var(--theme-surface-strong);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: none;
    transform: none;
}

.app-bookmark-chip.is-current {
    border-color: rgba(94, 234, 212, 0.44);
    background: var(--theme-surface-strong);
}

.app-bookmark-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    box-shadow: none;
}

.app-bookmark-chip-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-bookmark-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
}

.app-bookmark-more-btn,
.app-bookmark-add-btn {
    min-height: 28px;
    padding: 5px 10px;
    border-radius: var(--erp-control-radius);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--theme-surface-strong);
    color: #f8fafc;
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.03em;
    box-shadow: none;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.app-bookmark-more-btn:hover,
.app-bookmark-more-btn:focus-visible,
.app-bookmark-add-btn:hover,
.app-bookmark-add-btn:focus-visible {
    background: var(--theme-surface-strong);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: none;
    transform: none;
}

.app-bookmark-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.app-bookmark-overflow-menu {
    min-width: 230px;
    padding: 8px;
}

.app-bookmark-overflow-item {
    position: relative;
}

.app-bookmark-overflow-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 34px;
    border-radius: var(--erp-control-radius);
}

.app-bookmark-dismiss,
.app-bookmark-overflow-dismiss {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.92);
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(7, 11, 21, 0.94);
    color: rgba(226, 232, 240, 0.9);
    font-size: var(--app-font-size-12);
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: opacity 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.app-bookmark-dismiss {
    right: 7px;
}

.app-bookmark-overflow-dismiss {
    right: 9px;
    opacity: 0.74;
    pointer-events: auto;
}

.app-bookmark-list-item:hover .app-bookmark-dismiss,
.app-bookmark-list-item:focus-within .app-bookmark-dismiss,
.app-bookmark-overflow-item:hover .app-bookmark-overflow-dismiss,
.app-bookmark-overflow-item:focus-within .app-bookmark-overflow-dismiss {
    opacity: 1;
    pointer-events: auto;
}

.app-bookmark-dismiss:hover,
.app-bookmark-dismiss:focus-visible,
.app-bookmark-overflow-dismiss:hover,
.app-bookmark-overflow-dismiss:focus-visible {
    background: rgba(185, 28, 28, 0.24);
    border-color: rgba(252, 165, 165, 0.62);
    color: #fee2e2;
}

.app-bookmark-modal .modal-content {
    border-radius: var(--erp-control-radius);
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-strong);
    color: var(--theme-text);
}

.app-bookmark-modal .modal-header {
    border-bottom: 1px solid var(--theme-border);
}

.app-bookmark-modal .btn-close {
    filter: none;
}

html[data-theme="dark"] .app-bookmark-modal .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

.app-bookmark-modal-copy {
    margin: 0 0 10px;
    color: var(--theme-text-soft);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-semibold);
}

.app-bookmark-modal-list {
    max-height: min(56vh, 420px);
    overflow-y: auto;
    display: grid;
    gap: 8px;
    padding-right: 2px;
}

.app-bookmark-modal-option {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--erp-control-radius);
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-muted);
    color: var(--theme-text);
    text-align: left;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.app-bookmark-modal-option:hover,
.app-bookmark-modal-option:focus-visible {
    background: var(--theme-accent-soft);
    border-color: var(--theme-accent);
}

.app-bookmark-modal-option:disabled {
    opacity: 0.55;
}

.app-bookmark-modal-option-meta {
    display: grid;
    gap: 2px;
}

.app-bookmark-modal-option-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-bookmark-modal-option-title strong {
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-extrabold);
}

.app-bookmark-modal-option-meta small {
    color: var(--theme-text-muted);
    font-size: var(--app-font-size-11);
    line-height: 1.3;
}

.app-bookmark-modal-empty {
    margin: 2px 0 0;
    padding: 10px 12px;
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-muted);
    color: var(--theme-text-soft);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-bold);
}

.app-bookmark-modal-status {
    margin: 10px 0 0;
    color: var(--theme-text-soft);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-bold);
}

.app-bookmark-modal-status[data-state="failed"] {
    color: var(--theme-danger);
}

.app-bookmark-modal-status[data-state="saved"] {
    color: var(--theme-success);
}

.app-integration-followup-modal .modal-dialog {
    width: min(100vw - 24px, 620px);
    max-width: 620px;
}

.app-integration-followup-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(21, 32, 51, 0.1);
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.app-integration-followup-header,
.app-integration-followup-footer {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
}

.app-integration-followup-header {
    align-items: flex-start;
    padding-top: 1.1rem;
    padding-bottom: 1rem;
    border-bottom-color: rgba(21, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

.app-integration-followup-title-block {
    display: grid;
    gap: 0.3rem;
}

.app-integration-followup-kicker {
    color: #c2410c;
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-integration-followup-modal .modal-title {
    color: var(--ink-strong);
    font-family: var(--app-font-display);
    font-size: var(--app-font-size-22);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: -0.02em;
}

.app-integration-followup-copy {
    max-width: 31rem;
    margin: 0;
    color: var(--muted);
    font-size: var(--app-font-size-14);
    line-height: 1.55;
}

.app-integration-followup-modal .btn-close {
    width: 2.25rem;
    height: 2.25rem;
    margin: -0.2rem -0.35rem 0 0;
    border-radius: 999px;
    background-color: rgba(21, 32, 51, 0.06);
    background-size: 0.74rem;
    opacity: 0.78;
}

.app-integration-followup-modal .btn-close:hover,
.app-integration-followup-modal .btn-close:focus {
    background-color: rgba(21, 32, 51, 0.1);
    opacity: 1;
}

.app-integration-followup-body {
    display: grid;
    gap: 0.9rem;
    padding: 1.15rem 1.35rem 1.25rem;
}

.app-integration-followup-message-card {
    padding: 1rem 1.05rem;
    border-radius: var(--erp-control-radius);
    border: 1px solid rgba(21, 32, 51, 0.08);
    background: var(--theme-surface-strong);
}

.app-integration-followup-message {
    color: var(--ink);
    font-size: var(--app-font-size-16);
    line-height: 1.6;
}

.app-integration-followup-footer {
    gap: 0.65rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    border-top-color: rgba(21, 32, 51, 0.08);
    background: rgba(247, 250, 253, 0.92);
}

.app-integration-followup-modal .btn {
    min-height: 2.55rem;
    padding: 0.65rem 1.05rem;
    border-radius: var(--erp-control-radius);
    font-weight: var(--app-font-weight-extrabold);
}

@media (max-width: 767.98px) {
    .app-integration-followup-modal .modal-dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        margin: 0.5rem auto;
    }

    .app-integration-followup-header,
    .app-integration-followup-body,
    .app-integration-followup-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .app-integration-followup-footer {
        justify-content: stretch;
    }

    .app-integration-followup-footer .btn {
        flex: 1 1 0;
    }
}
.app-navbar-shell {
    width: min(var(--app-shell-max-width), calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    gap: 9px;
    margin-right: 0;
    padding: 4px 11px 4px 5px;
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    text-decoration: none;
    box-shadow: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.app-brand:hover {
    color: #f8fafc;
    background: var(--theme-surface-strong);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    transform: none;
}

.app-brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
}

.app-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.app-brand-title {
    font-family: var(--app-font-display);
    font-size: var(--app-font-size-15);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: 0;
    line-height: 1.1;
}

.app-brand-subtitle {
    color: rgba(226, 232, 240, 0.72);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-transform: uppercase;
}

.app-navbar-collapse {
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    min-width: 0;
    overflow: visible;
}

.app-navbar-main {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 0;
}

.app-navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 10px;
    min-width: 0;
    margin-left: auto;
}

.app-primary-nav {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

.app-nav-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.app-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 42px;
    padding: 6px 11px 6px 7px !important;
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #f8fafc !important;
    line-height: 1.1;
    box-shadow: none;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.app-nav-pill:hover,
.app-nav-pill:focus {
    background: var(--theme-surface-strong);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
    transform: none;
}

.app-nav-pills > .nav-item[data-nav-group="master"] {
    --nav-group-accent: var(--theme-accent);
    --nav-group-accent-soft: var(--theme-accent-soft);
}

.app-nav-pills > .nav-item[data-nav-group="utils"] {
    --nav-group-accent: var(--theme-accent);
    --nav-group-accent-soft: var(--theme-accent-soft);
}

.app-nav-pills > .nav-item[data-nav-group="workflows"] {
    --nav-group-accent: var(--theme-accent);
    --nav-group-accent-soft: var(--theme-accent-soft);
}

.app-nav-pills > .nav-item[data-nav-group="reports"] {
    --nav-group-accent: var(--theme-accent);
    --nav-group-accent-soft: var(--theme-accent-soft);
}

.app-nav-pill.is-active {
    background: var(--theme-accent);
    border-color: rgba(255, 255, 255, 0.72);
    color: #152033 !important;
    box-shadow: none;
}

.app-nav-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    color: rgba(248, 250, 252, 0.94);
    font-family: var(--app-font-display);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: 0;
}

.app-nav-pill.is-active .app-nav-pill-icon {
    background: var(--nav-group-accent-soft, rgba(94, 234, 212, 0.16));
    color: var(--nav-group-accent, #5eead4);
}

.app-nav-pill-copy {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
}

.app-nav-pill-kicker {
    display: block;
    max-width: 124px;
    overflow: hidden;
    color: rgba(226, 232, 240, 0.7);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: 0;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.app-nav-pill.is-active .app-nav-pill-kicker {
    color: rgba(47, 61, 82, 0.72);
}

.app-nav-pill-label {
    display: block;
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0;
    white-space: nowrap;
}

.app-navbar-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    align-self: center;
    gap: 10px;
    margin-left: 0;
    min-width: 0;
}

.app-global-search-form {
    flex: 0 1 360px;
    position: relative;
    width: auto;
    max-width: 360px;
    min-width: 0;
}

.app-global-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(226, 232, 240, 0.66);
    pointer-events: none;
}

.app-global-search-input {
    width: 100%;
    min-height: 42px;
    padding: 10px 16px 10px 42px;
    border-radius: var(--erp-control-radius);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--theme-surface-strong);
    color: #f8fafc;
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-semibold);
    box-shadow: none;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.app-global-search-input::placeholder {
    color: rgba(226, 232, 240, 0.62);
}

.app-global-search-input:focus {
    outline: none;
    border-color: rgba(94, 234, 212, 0.42);
    background: var(--theme-surface-strong);
    box-shadow: none;
    transform: translateY(-1px);
}

.app-global-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 10px;
    border-radius: var(--erp-control-radius);
    border: 1px solid rgba(21, 32, 51, 0.14);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    backdrop-filter: none;
}

.app-global-search-dropdown[hidden] {
    display: none;
}

.app-global-search-dropdown-status,
.app-global-search-empty-state {
    padding: 14px 16px;
    border-radius: var(--erp-control-radius);
    color: var(--ink);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-bold);
    text-align: center;
}

.app-global-search-dropdown-status {
    background: rgba(21, 32, 51, 0.06);
}

.app-global-search-empty-state {
    background: rgba(245, 247, 250, 0.96);
}

.app-global-search-results {
    display: grid;
    gap: 8px;
}

.app-global-search-option {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: var(--erp-control-radius);
    background: transparent;
    color: var(--ink-strong);
    text-align: left;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.app-global-search-option-module {
    gap: 8px;
}

.app-global-search-option:hover,
.app-global-search-option:focus,
.app-global-search-option.is-active {
    background: rgba(21, 32, 51, 0.06);
    transform: none;
}

.app-global-search-option:focus {
    outline: none;
}

.app-global-search-option,
.app-global-search-option:visited {
    color: var(--ink-strong);
    text-decoration: none;
}

.app-global-search-option-top,
.app-global-search-option-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.app-global-search-option-doc {
    color: var(--ink-strong);
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: -0.02em;
}

.app-global-search-option-entity,
.app-global-search-option-source,
.app-global-search-option-date {
    color: var(--muted);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-bold);
    line-height: 1.45;
}

.app-global-search-option-source {
    color: var(--ink);
}

.app-global-search-option-description {
    color: var(--muted);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-bold);
    line-height: 1.5;
}

.app-global-search-option-action {
    color: var(--accent-strong);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.app-global-search-dropdown-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(21, 32, 51, 0.08);
}

.app-global-search-dropdown-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: var(--erp-control-radius);
    background: rgba(21, 32, 51, 0.06);
    color: var(--ink-strong);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-extrabold);
    text-decoration: none;
}

.app-global-search-dropdown-link:hover,
.app-global-search-dropdown-link:focus {
    color: var(--ink-strong);
    background: rgba(21, 32, 51, 0.1);
}

.app-user-menu-workspace {
    display: grid;
    gap: 4px;
    padding: 0 4px 6px;
}

.app-subsidiary-disclosure {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--erp-control-radius);
    white-space: normal;
}

.app-subsidiary-disclosure:hover,
.app-subsidiary-disclosure:focus-visible,
.app-subsidiary-disclosure[aria-expanded="true"] {
    background: rgba(21, 32, 51, 0.04);
    border-color: rgba(21, 32, 51, 0.08);
    outline: none;
}

.app-subsidiary-disclosure-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.app-subsidiary-disclosure-copy .app-dropdown-heading {
    padding: 0;
    letter-spacing: 0;
}

.app-subsidiary-disclosure-copy strong {
    overflow: hidden;
    color: var(--ink-strong);
    font-size: var(--app-font-size-14);
    font-weight: var(--app-font-weight-extrabold);
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-subsidiary-disclosure-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.62;
    transform: rotate(45deg);
    transition: transform 180ms ease, opacity 180ms ease;
}

.app-subsidiary-disclosure[aria-expanded="true"] .app-subsidiary-disclosure-chevron {
    opacity: 0.9;
    transform: rotate(225deg);
}

.app-subsidiary-panel {
    overflow: hidden;
}

.app-subsidiary-panel.collapsing {
    transition: height 220ms ease;
}

.app-subsidiary-option-form {
    display: grid;
    gap: 6px;
    max-height: 166px;
    margin: 0;
    overflow-y: auto;
    padding: 2px 4px 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.app-subsidiary-panel.collapsing .app-subsidiary-option-form {
    opacity: 0.65;
    transform: translateY(-2px);
}

.app-subsidiary-panel.show .app-subsidiary-option-form {
    opacity: 1;
    transform: translateY(0);
}

.app-subsidiary-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: var(--erp-control-radius);
    white-space: normal;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.app-subsidiary-option:hover,
.app-subsidiary-option:focus-visible {
    background: rgba(21, 32, 51, 0.04);
    border-color: rgba(21, 32, 51, 0.08);
    outline: none;
    transform: none;
}

.app-subsidiary-option.is-current {
    background: rgba(15, 108, 123, 0.08);
    border-color: rgba(15, 108, 123, 0.16);
    box-shadow: none;
}

.app-subsidiary-option-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.app-subsidiary-option-copy strong {
    overflow: hidden;
    color: var(--ink-strong);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-extrabold);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-subsidiary-option-copy small {
    color: var(--muted);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-bold);
}

.app-subsidiary-option-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(15, 108, 123, 0.12);
    color: #0f6c7b;
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.app-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 4px 9px 4px 4px !important;
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc !important;
    box-shadow: none;
}

.app-user-chip:hover,
.app-user-chip:focus {
    background: var(--theme-surface-strong);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.app-user-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.app-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    color: #122033;
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0;
}

.app-user-avatar-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d92d20;
    box-shadow: none;
}

.app-user-chip-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.app-user-chip-label {
    display: block;
    max-width: 116px;
    overflow: hidden;
    color: rgba(226, 232, 240, 0.58);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: 0;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.app-user-chip-value {
    max-width: 116px;
    overflow: hidden;
    color: #f8fafc;
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-bold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 8px 12px;
    border-radius: var(--erp-control-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--theme-surface-strong);
    color: #f8fafc;
}

.app-navbar-toggler:focus {
    box-shadow: none;
}

.app-navbar-toggler .navbar-toggler-icon {
    width: 22px;
    height: 16px;
    background: var(--theme-surface-strong) !important;
    background-position: center;
    background-size: 100% 100%;
    opacity: 0.92;
}

.app-dropdown-menu {
    min-width: 230px;
    margin-top: 14px;
    border: 1px solid rgba(21, 32, 51, 0.12);
    border-radius: var(--erp-control-radius);
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    backdrop-filter: none;
    transform-origin: top right;
    animation: app-dropdown-pop 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-user-menu {
    width: min(420px, calc(100vw - 24px));
    min-width: 360px;
    padding-bottom: 12px;
}

.app-dropdown-heading {
    padding: 6px 12px 10px;
    color: var(--muted);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.app-notification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-notification-count-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(217, 45, 32, 0.12);
    color: #b42318;
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.app-notification-section {
    padding: 0 4px 6px;
}

.app-notification-list {
    display: grid;
    gap: 8px;
    max-height: 344px;
    overflow-y: auto;
    padding-right: 2px;
}

.app-notification-list::-webkit-scrollbar,
.app-subsidiary-option-form::-webkit-scrollbar {
    width: 8px;
}

.app-notification-list::-webkit-scrollbar-track,
.app-subsidiary-option-form::-webkit-scrollbar-track {
    background: rgba(21, 32, 51, 0.04);
    border-radius: 999px;
}

.app-notification-list::-webkit-scrollbar-thumb,
.app-subsidiary-option-form::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.46);
    border-radius: 999px;
}

.app-notification-list::-webkit-scrollbar-thumb:hover,
.app-subsidiary-option-form::-webkit-scrollbar-thumb:hover {
    background: rgba(217, 45, 32, 0.4);
}

.app-notification-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(21, 32, 51, 0.08);
    border-radius: var(--erp-control-radius);
    background: rgba(245, 247, 250, 0.84);
    color: var(--ink-strong);
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
    position: relative;
}

.app-notification-item-link {
    min-width: 0;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.app-notification-item-link:hover,
.app-notification-item-link:focus-visible {
    color: inherit;
}

.app-notification-item:hover,
.app-notification-item:focus,
.app-notification-item:focus-visible {
    color: var(--ink-strong);
    background: rgba(21, 32, 51, 0.05);
    border-color: rgba(21, 32, 51, 0.12);
    box-shadow: none;
    transform: none;
}

.app-notification-item.is-unread {
    border-color: rgba(217, 45, 32, 0.18);
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.app-notification-item-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.app-notification-item-copy strong {
    color: var(--ink-strong);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-extrabold);
    line-height: 1.35;
}

.app-notification-item-module {
    color: var(--ink);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-bold);
    line-height: 1.45;
}

.app-notification-item-detail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.28rem 0.4rem;
    color: var(--ink);
    font-size: var(--app-font-size-10);
    line-height: 1.45;
}

.app-notification-item-detail strong {
    font-weight: var(--app-font-weight-extrabold);
}

.app-notification-item-detail-label {
    color: var(--muted);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-notification-item-detail-separator {
    color: var(--muted);
    font-weight: var(--app-font-weight-bold);
}

.app-notification-item-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: var(--app-font-size-11);
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-notification-item-meta {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    min-width: 88px;
}

.app-notification-item time {
    color: var(--muted);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-bold);
    line-height: 1.35;
    white-space: nowrap;
}

.app-notification-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(217, 45, 32, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    color: #b42318;
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.app-notification-clear-btn:hover,
.app-notification-clear-btn:focus-visible {
    border-color: rgba(217, 45, 32, 0.34);
    background: rgba(217, 45, 32, 0.1);
    box-shadow: none;
    transform: none;
}

.app-notification-item.is-read .app-notification-clear-btn {
    opacity: 0.88;
}

.app-notification-unread-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(217, 45, 32, 0.12);
    color: #b42318;
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.app-notification-empty {
    padding: 12px;
    border: 1px dashed rgba(21, 32, 51, 0.12);
    border-radius: var(--erp-control-radius);
    background: rgba(21, 32, 51, 0.03);
    color: var(--muted);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-semibold);
    line-height: 1.6;
    text-align: center;
}

.app-notification-footer {
    padding: 2px 4px 8px;
}

.app-notification-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--erp-control-radius);
    border: 1px solid rgba(21, 32, 51, 0.09);
    background: rgba(21, 32, 51, 0.03);
    color: var(--ink-strong);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-extrabold);
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.app-notification-view-all:hover,
.app-notification-view-all:focus-visible {
    color: var(--ink-strong);
    background: rgba(21, 32, 51, 0.06);
    border-color: rgba(21, 32, 51, 0.16);
    transform: none;
}

.app-integration-job-section {
    position: relative;
    height: 126px;
    padding: 0 4px 6px;
}

.app-integration-job-link {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 5px;
    height: 120px;
    padding: 12px 13px;
    border: 1px solid rgba(21, 32, 51, 0.1);
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    color: var(--ink-strong);
    overflow: hidden;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.app-integration-job-link:hover,
.app-integration-job-link:focus-visible {
    color: var(--ink-strong);
    background: var(--theme-surface-strong);
    border-color: rgba(21, 32, 51, 0.16);
    box-shadow: none;
    transform: none;
}

.app-integration-job-link .app-dropdown-heading {
    max-width: calc(100% - 64px);
    overflow: hidden;
    padding: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-integration-job-link strong {
    max-width: calc(100% - 64px);
    overflow: hidden;
    color: var(--ink-strong);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-extrabold);
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-integration-job-message {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-semibold);
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-integration-job-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px 8px;
    min-width: 0;
}

.app-integration-job-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 20px;
    max-width: 132px;
    overflow: hidden;
    padding: 0 8px;
    border-radius: 999px;
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.08em;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-integration-job-status.is-running {
    background: rgba(12, 99, 132, 0.12);
    color: #0c6384;
}

.app-integration-job-status.is-warning {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

.app-integration-job-status.is-danger {
    background: rgba(185, 28, 28, 0.12);
    color: #b42318;
}

.app-integration-job-status.is-success {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.app-integration-job-status.is-muted {
    background: rgba(71, 85, 105, 0.1);
    color: var(--muted);
}

.app-integration-job-counts {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-bold);
    line-height: 1.35;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-integration-job-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(21, 32, 51, 0.08);
    overflow: hidden;
}

.app-integration-job-progress .progress-bar {
    background: #0c6384;
}

.app-integration-job-stop {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    max-width: 58px;
    min-height: 26px;
    overflow: hidden;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar .dropdown-item {
    border-radius: var(--erp-control-radius);
    padding: 10px 12px;
    color: var(--ink-strong);
    font-size: var(--app-font-size-14);
    font-weight: var(--app-font-weight-semibold);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(21, 32, 51, 0.06);
}

.dropdown-menu.show {
    animation: app-dropdown-pop 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-flyout-menu {
    width: min(900px, calc(100vw - 32px));
    max-height: min(82vh, 620px);
    overflow-y: auto;
    padding: 9px;
}

.app-flyout-layout {
    position: relative;
    height: min(68vh, 540px);
    min-height: 430px;
    overflow: hidden;
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.app-flyout-nav {
    width: 256px;
    height: 100%;
    min-height: 430px;
    overflow-y: auto;
    padding: 10px;
    border-right: 1px solid rgba(21, 32, 51, 0.08);
    background: rgba(248, 250, 252, 0.7);
}

.app-flyout-nav .app-dropdown-heading {
    padding: 10px 10px 8px;
}

.app-flyout-group {
    position: static;
}

.app-flyout-trigger {
    width: 100%;
    min-height: 54px;
    margin: 0 0 2px;
    padding: 11px 34px 11px 14px;
    border: 1px solid transparent;
    border-radius: var(--erp-control-radius);
    background: transparent;
    color: var(--ink-strong);
    text-align: left;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.app-flyout-trigger::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.52;
    transition: transform 180ms ease, opacity 180ms ease;
}

.app-flyout-trigger,
.app-flyout-trigger > span,
.app-flyout-trigger-copy {
    position: relative;
}

.app-flyout-trigger > span,
.app-flyout-trigger-copy {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.app-flyout-trigger strong {
    display: block;
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-extrabold);
    line-height: 1.25;
}

.app-flyout-trigger small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-semibold);
    line-height: 1.35;
}

.app-flyout-group:hover .app-flyout-trigger,
.app-flyout-group:focus-within .app-flyout-trigger {
    border-color: rgba(21, 32, 51, 0.08);
    background: #ffffff;
    box-shadow: none;
}

.app-flyout-group:hover .app-flyout-trigger::after,
.app-flyout-group:focus-within .app-flyout-trigger::after,
.app-flyout-group.is-active .app-flyout-trigger::after {
    transform: none;
    opacity: 0.88;
}

.app-flyout-group.is-active .app-flyout-trigger {
    border-color: var(--flyout-accent-border, rgba(21, 32, 51, 0.08));
    background: var(--theme-accent);
    box-shadow: none;
    color: var(--flyout-accent, var(--ink-strong));
}

.app-flyout-group.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(14, 165, 233, 0.06);
}

.app-flyout-group-payables.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(245, 158, 11, 0.06);
}

.app-flyout-group-receivables.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(59, 130, 246, 0.06);
}

.app-flyout-group-bank.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(14, 165, 233, 0.06);
}

.app-flyout-group-journal.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(139, 92, 246, 0.06);
}

.app-flyout-group-period-end.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(16, 185, 129, 0.06);
}

.app-flyout-group-audit.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(148, 163, 184, 0.06);
}

.app-flyout-group-financial.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(59, 130, 246, 0.06);
}

.app-flyout-group-aging.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(245, 158, 11, 0.06);
}

.app-flyout-group-organization.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(20, 184, 166, 0.05);
}

.app-flyout-group-master-finance.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(234, 179, 8, 0.05);
}

.app-flyout-group-counterparties.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(236, 72, 153, 0.05);
}

.app-flyout-group-configuration.is-active {
    --flyout-accent: var(--theme-accent);
    --flyout-accent-soft: var(--theme-accent-soft);
    --flyout-accent-border: var(--theme-border);
    --flyout-panel-tint: rgba(100, 116, 139, 0.05);
}

.app-flyout-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 256px;
    display: block;
    width: calc(100% - 256px);
    min-height: 0;
    padding: 16px;
    overflow-y: auto;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(10px);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 0s linear 180ms;
}

.app-flyout-menu-compact {
    width: min(740px, calc(100vw - 32px));
}

.app-flyout-menu-compact .app-flyout-layout,
.app-flyout-menu-compact .app-flyout-nav,
.app-flyout-menu-compact .app-flyout-panel {
    min-height: 260px;
}

.app-flyout-menu-compact .app-flyout-layout {
    height: min(56vh, 360px);
}

.app-flyout-group.is-active .app-flyout-panel,
.app-flyout-group.is-preview .app-flyout-panel,
.app-flyout-group:hover .app-flyout-panel,
.app-flyout-group:focus-within .app-flyout-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
}

.app-flyout-group.is-active .app-flyout-panel {
    background: var(--theme-accent);
}

.app-flyout-group:hover .app-flyout-panel,
.app-flyout-group:focus-within .app-flyout-panel {
    z-index: 2;
}

.app-flyout-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 8px 12px 16px;
    border-bottom: 1px solid rgba(21, 32, 51, 0.08);
}

.app-flyout-panel-head-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.app-flyout-panel-note {
    margin: 0;
    color: var(--muted);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-semibold);
    line-height: 1.45;
}

.app-flyout-active-chip {
    flex: 0 0 auto;
    display: flex;
    min-width: 116px;
    flex-direction: column;
    gap: 1px;
    padding: 8px 11px;
    border: 1px solid var(--flyout-accent-border, rgba(21, 32, 51, 0.1));
    border-radius: 999px;
    background: var(--theme-accent);
    box-shadow: none;
    align-items: flex-end;
    text-align: right;
}

.app-flyout-active-chip span {
    color: var(--ink-soft);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-flyout-active-chip strong {
    color: var(--flyout-accent, var(--ink-strong));
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-extrabold);
    line-height: 1.3;
}

.app-flyout-kicker {
    color: var(--muted);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.app-flyout-panel-head strong {
    color: var(--ink-strong);
    font-size: var(--app-font-size-15);
    font-weight: var(--app-font-weight-extrabold);
}

.app-flyout-panel .dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
    white-space: normal;
}

.app-flyout-panel .dropdown-item strong {
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-extrabold);
}

.app-flyout-panel .dropdown-item small {
    color: var(--muted);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-semibold);
    line-height: 1.45;
}

.app-flyout-panel .dropdown-item.app-flyout-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 13px 14px 13px 18px;
    border: 1px solid rgba(21, 32, 51, 0.06);
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    color: var(--ink-strong);
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.app-flyout-panel .dropdown-item.app-flyout-entry::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 999px;
    background: rgba(21, 32, 51, 0.1);
}

.app-flyout-panel .dropdown-item.app-flyout-entry:hover,
.app-flyout-panel .dropdown-item.app-flyout-entry:focus {
    background: #ffffff;
    border-color: rgba(21, 32, 51, 0.1);
    box-shadow: none;
    transform: none;
}

.app-flyout-panel .dropdown-item.app-flyout-entry.is-current {
    background: var(--theme-surface-strong);
    border-color: var(--flyout-accent-border, rgba(21, 32, 51, 0.1));
    box-shadow: none;
}

.app-flyout-panel .dropdown-item.app-flyout-entry.is-current::before {
    background: var(--flyout-accent, #0b5f7f);
    width: 4px;
}

.app-flyout-entry-copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
}

.app-theme-section,
.app-dropdown-menu,
.app-flyout-panel,
.app-global-search-dropdown,
.app-nav-pill,
.app-brand,
.app-user-chip,
.app-bookmark-chip,
.app-bookmark-more-btn,
.app-bookmark-add-btn,
.app-global-search-input {
    will-change: transform, opacity;
}

@keyframes app-dropdown-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-dropdown-menu,
    .dropdown-menu.show,
    .app-flyout-panel,
    .app-theme-disclosure-panel,
    .app-theme-disclosure-chevron,
    .app-nav-pill,
    .app-brand,
    .app-user-chip,
    .app-bookmark-list-item,
    .app-bookmark-chip,
    .app-bookmark-more-btn,
    .app-bookmark-add-btn,
    .app-global-search-input {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

.navbar .dropdown-divider {
    margin: 10px 4px;
    border-color: rgba(21, 32, 51, 0.08);
}

.navbar .dropdown-item.text-danger:hover {
    background-color: #fff3f1;
}

.app-nav-pill.dropdown-toggle::after,
.app-user-chip.dropdown-toggle::after {
    margin-left: 2px;
    opacity: 0.5;
}

@media (min-width: 1200px) {
    .app-navbar-shell {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        width: min(var(--app-shell-max-width), calc(100% - 40px));
        max-width: none;
    }

    .app-brand {
        min-width: 230px;
        max-width: 100%;
    }

    .app-navbar-collapse {
        display: flex !important;
        flex: 1 1 auto;
        align-items: center;
        gap: 20px;
        width: auto;
        min-width: 0;
    }

    .app-navbar-main {
        position: static;
        flex: 1 1 auto;
        width: auto;
        max-width: 100%;
        transform: none;
    }

    .app-navbar-actions {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
        margin-left: auto;
    }

    .app-navbar-collapse > .app-navbar-side.ms-auto {
        margin-left: auto !important;
    }

    .app-bookmark-shell {
        width: min(var(--app-shell-max-width), calc(100% - 40px));
    }
}

@media (min-width: 1381px) {
    .app-primary-nav {
        flex: 1 1 auto;
    }

    .app-nav-pills {
        width: 100%;
    }

    .app-nav-pills > .nav-item {
        flex: 1 1 0;
        min-width: 0;
    }

    .app-nav-pill {
        width: 100%;
    }

    .app-navbar-actions {
        flex: 0 1 clamp(420px, 32vw, 560px);
        width: clamp(420px, 32vw, 560px);
        margin-left: 0;
    }

    .app-global-search-form {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }
}

@media (min-width: 1200px) and (max-width: 1380px) {
    .app-navbar-shell {
        width: calc(100% - 24px);
        max-width: none;
        gap: 10px;
    }

    .app-navbar-collapse {
        gap: 10px;
    }

    .app-brand {
        gap: 8px;
        padding-right: 10px;
    }

    .app-brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 0;
    }

    .app-brand-title {
        font-size: var(--app-font-size-15);
    }

    .app-navbar-main {
        gap: 10px;
        padding-left: 0;
    }

    .app-global-search-form {
        max-width: 260px;
    }

    .app-nav-pills {
        gap: 3px;
        padding: 0;
    }

    .app-nav-pill {
        gap: 7px;
        padding-right: 8px !important;
    }

    .app-nav-pill-icon {
        width: 28px;
        height: 28px;
    }

    .app-nav-pill-kicker {
        max-width: 82px;
    }

    .app-user-chip-label,
    .app-user-chip-value {
        max-width: 96px;
    }
}

.app-login-btn {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-bold);
}

.app-login-btn:hover,
.app-login-btn:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.container {
    max-width: var(--app-shell-max-width);
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--erp-control-radius);
    box-shadow: none;
}

.list-shell {
    --accent: var(--theme-accent);
    --accent-strong: var(--theme-accent-strong);
    --accent-soft: var(--theme-accent-soft);
    --hero-start: var(--theme-surface-strong);
    --hero-end: var(--theme-surface-strong);
    display: grid;
    gap: 20px;
}

.theme-bill {
    --accent: var(--theme-accent);
    --accent-strong: var(--theme-accent-strong);
    --accent-soft: var(--theme-accent-soft);
    --hero-start: var(--theme-surface-strong);
    --hero-end: var(--theme-surface-strong);
}

.theme-coa {
    --accent: var(--theme-accent);
    --accent-strong: var(--theme-accent-strong);
    --accent-soft: var(--theme-accent-soft);
    --hero-start: var(--theme-surface-strong);
    --hero-end: var(--theme-surface-strong);
}

.theme-vendor {
    --accent: var(--theme-accent);
    --accent-strong: var(--theme-accent-strong);
    --accent-soft: var(--theme-accent-soft);
    --hero-start: var(--theme-surface-strong);
    --hero-end: var(--theme-surface-strong);
}

.theme-customer {
    --accent: var(--theme-accent);
    --accent-strong: var(--theme-accent-strong);
    --accent-soft: var(--theme-accent-soft);
    --hero-start: var(--theme-surface-strong);
    --hero-end: var(--theme-surface-strong);
}

.theme-wht {
    --accent: var(--theme-accent);
    --accent-strong: var(--theme-accent-strong);
    --accent-soft: var(--theme-accent-soft);
    --hero-start: var(--theme-surface-strong);
    --hero-end: var(--theme-surface-strong);
}

.list-shell > * {
    animation: list-rise 0.45s ease both;
}

.list-shell > *:nth-child(2) {
    animation-delay: 0.06s;
}

.list-shell > *:nth-child(3) {
    animation-delay: 0.12s;
}

@keyframes list-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.list-hero,
.list-surface {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.64);
    box-shadow: none;
}

.list-hero {
    padding: var(--erp-panel-padding);
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
}

.list-hero::before,
.list-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.list-hero::before {
    width: 240px;
    height: 240px;
    right: -72px;
    top: -96px;
    background: rgba(255, 255, 255, 0.34);
}

.list-hero::after {
    width: 200px;
    height: 200px;
    right: 14%;
    bottom: -120px;
    background: rgba(255, 255, 255, 0.2);
}

.list-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--accent-strong);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.list-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.page-title {
    margin: 0;
    color: var(--ink-strong);
    font-family: var(--app-font-display);
    font-size: var(--app-font-size-24);
    font-weight: var(--erp-heading-weight);
    letter-spacing: normal;
}

.page-subtitle {
    max-width: 60ch;
    margin: 12px 0 0;
    color: var(--ink);
    font-size: var(--app-font-size-15);
    line-height: 1.7;
}

.app-breadcrumb-nav {
    margin: 0 0 14px;
}

.app-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--muted);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-semibold);
    line-height: 1.25;
}

.app-breadcrumb-item + .app-breadcrumb-item::before {
    content: "/";
    margin: 0 8px;
    color: rgba(100, 116, 139, 0.68);
    font-weight: var(--app-font-weight-semibold);
}

.app-breadcrumb-link,
.app-breadcrumb-current {
    min-width: 0;
}

.app-breadcrumb-link {
    color: var(--ink);
    text-decoration: none;
}

.app-breadcrumb-link:hover,
.app-breadcrumb-link:focus-visible {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.app-breadcrumb-current {
    color: var(--ink-strong);
}

.app-breadcrumb-item.is-current .app-breadcrumb-current {
    font-weight: var(--app-font-weight-bold);
}

.page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-actions .btn,
.toolbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-bold);
    border-width: 1px;
    box-shadow: none;
}

.list-shell .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.list-shell .btn-primary:hover,
.list-shell .btn-primary:focus {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.list-shell .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(21, 32, 51, 0.14);
    color: var(--ink-strong);
}

.list-shell .btn-outline-secondary:hover,
.list-shell .btn-outline-secondary:focus {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(21, 32, 51, 0.22);
    color: var(--ink-strong);
}

.list-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.list-stat {
    min-height: 136px;
    padding: 18px;
    border-radius: var(--erp-control-radius);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: none;
    backdrop-filter: none;
}

.list-stat span,
.list-stat small {
    display: block;
}

.list-stat span {
    color: var(--muted);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.list-stat strong {
    display: block;
    margin: 12px 0 8px;
    color: var(--ink-strong);
    font-family: var(--app-font-display);
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: var(--app-font-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.list-stat small {
    color: var(--ink);
    font-size: var(--app-font-size-13);
    line-height: 1.6;
}

.list-surface {
    border-radius: var(--erp-control-radius);
    padding: clamp(16px, 2vw, 24px);
    background: var(--surface);
    backdrop-filter: none;
}

.toolbar,
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.toolbar {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: var(--erp-control-radius);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(21, 32, 51, 0.08);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 360px;
    min-width: min(100%, 360px);
}

.search-wrap {
    position: relative;
    flex: 1 1 auto;
    max-width: 460px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-input,
.per-page-select {
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(21, 32, 51, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-strong);
    font-size: var(--app-font-size-14);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.search-input {
    padding: 10px 18px 10px 44px;
}

.search-input:focus,
.per-page-select:focus {
    outline: none;
    border-color: rgba(21, 32, 51, 0.28);
    box-shadow: none;
    background: #ffffff;
}

.per-page-form {
    display: flex;
    align-items: center;
}

.per-page-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-semibold);
}

.per-page-select {
    width: auto;
    min-width: 92px;
    padding: 10px 40px 10px 16px;
}

.list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.list-sync-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: -8px;
    margin-bottom: 16px;
}

.list-sync-value {
    color: var(--theme-text-muted, var(--muted));
    font-size: var(--app-font-size-12);
    text-decoration: none;
}

a.list-sync-value:hover,
a.list-sync-value:focus-visible {
    color: var(--accent-strong);
    text-decoration: underline;
}

.meta-pill,
.mini-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border: 1px solid transparent;
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-bold);
    line-height: 1.2;
}

.mini-chip {
    min-height: 28px;
    padding: 5px 10px;
}

.mini-chip-neutral {
    background: rgba(100, 116, 139, 0.12);
    color: var(--ink);
}

.table-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--erp-control-radius);
    overflow: hidden;
    box-shadow: none;
}

.theme-employee {
    --accent: var(--theme-accent);
    --accent-strong: var(--theme-accent-strong);
    --accent-soft: var(--theme-accent-soft);
    --hero-start: var(--theme-surface-strong);
    --hero-end: var(--theme-surface-strong);
}

.counterparty-create-page {
    gap: 22px;
}

.counterparty-create-hero {
    padding-bottom: clamp(24px, 3vw, 34px);
}

.counterparty-hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.counterparty-hero-pill {
    display: grid;
    gap: 6px;
    min-height: 92px;
    padding: var(--erp-panel-padding);
    border-radius: var(--erp-control-radius);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: none;
}

.counterparty-hero-pill span {
    color: var(--muted);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.counterparty-hero-pill strong {
    color: var(--ink-strong);
    font-family: var(--app-font-display);
    font-size: var(--app-font-size-16);
    font-weight: var(--app-font-weight-bold);
    line-height: 1.25;
}

.counterparty-hero-pill small {
    color: var(--ink);
    font-size: var(--app-font-size-13);
    line-height: 1.5;
}

.counterparty-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.counterparty-create-main,
.counterparty-create-sidebar {
    display: grid;
    gap: 18px;
}

.counterparty-form-card,
.counterparty-side-card {
    padding: clamp(18px, 2vw, 24px);
    border-radius: var(--erp-control-radius);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 32, 51, 0.08);
    box-shadow: none;
}

.counterparty-form-head,
.counterparty-side-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.counterparty-form-head h2,
.counterparty-side-card h2 {
    margin: 0;
    color: var(--ink-strong);
    font-family: var(--app-font-display);
    font-size: var(--app-font-size-18);
    font-weight: var(--app-font-weight-bold);
}

.counterparty-form-head p,
.counterparty-side-card p {
    margin: 8px 0 0;
    color: var(--ink);
    font-size: var(--app-font-size-14);
    line-height: 1.65;
}

.counterparty-section-tag,
.counterparty-side-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.counterparty-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.counterparty-field {
    display: grid;
    gap: 8px;
}

.counterparty-field-full {
    grid-column: 1 / -1;
}

.counterparty-field-label {
    color: var(--ink-strong);
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-bold);
}

.field-required,
.period-form-required,
.match-bank-required-mark {
    display: inline-block;
    margin-left: 0.22em;
    color: var(--accent-strong, #b33a3a);
    font-weight: var(--app-font-weight-bold);
    line-height: 1;
    vertical-align: baseline;
}

.counterparty-field-label .field-required {
    margin-left: 0.18em;
}

.counterparty-field-hint {
    color: var(--muted);
    font-size: var(--app-font-size-12);
    line-height: 1.5;
}

.counterparty-input {
    min-height: 48px;
    padding: 12px 16px;
    border-radius: var(--erp-control-radius);
}

.counterparty-textarea {
    min-height: 120px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}

.counterparty-input.search-input {
    padding-left: 16px;
}

.counterparty-split-field {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.counterparty-switch {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--erp-control-radius);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(21, 32, 51, 0.08);
}

.counterparty-switch input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.counterparty-switch strong,
.counterparty-switch small {
    display: block;
}

.counterparty-switch strong {
    color: var(--ink-strong);
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-bold);
}

.counterparty-switch small {
    margin-top: 4px;
    color: var(--muted);
    font-size: var(--app-font-size-12);
    line-height: 1.55;
}

.counterparty-checklist,
.counterparty-summary-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.counterparty-checklist li,
.counterparty-summary-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 0;
    color: var(--ink);
    font-size: var(--app-font-size-13);
    line-height: 1.6;
}

.counterparty-checklist li::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: none;
}

.counterparty-summary-item {
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(21, 32, 51, 0.08);
}

.counterparty-summary-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.counterparty-summary-item span {
    color: var(--muted);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.counterparty-summary-item strong {
    color: var(--ink-strong);
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-bold);
    text-align: right;
}

.counterparty-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 2px;
}

@media (max-width: 1080px) {
    .counterparty-create-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .counterparty-form-grid,
    .counterparty-split-field {
        grid-template-columns: 1fr;
    }

    .counterparty-form-head,
    .counterparty-side-head,
    .counterparty-summary-item {
        flex-direction: column;
    }

    .counterparty-summary-item strong {
        text-align: left;
    }

    .counterparty-form-actions {
        justify-content: stretch;
    }

    .counterparty-form-actions .btn {
        width: 100%;
    }
}

.table-scroll {
    overflow: auto;
}

.data-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-size: var(--app-font-size-14);
}

.list-view-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.list-view-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(21, 32, 51, 0.12);
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-bold);
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.list-view-chip:hover {
    color: var(--ink-strong);
    border-color: rgba(21, 32, 51, 0.22);
    background: rgba(255, 255, 255, 0.96);
    transform: none;
}

.list-view-chip.active {
    border-color: rgba(15, 92, 61, 0.2);
    background: rgba(15, 92, 61, 0.12);
    color: #0f5c3d;
}

.list-view-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(21, 32, 51, 0.08);
    color: inherit;
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-extrabold);
    line-height: 1;
}

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 15px 18px;
    background: #f7f4ef;
    border-bottom: 1px solid rgba(21, 32, 51, 0.12);
    color: var(--muted);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-sort-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--erp-control-radius);
}

.table-sort-link:hover {
    color: var(--accent-strong);
    text-decoration: none;
}

.table-sort-link:focus-visible {
    color: var(--accent-strong);
    text-decoration: none;
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.table-sort-label {
    min-width: 0;
}

.table-sort-indicator {
    flex: 0 0 auto;
    font-size: 0.85em;
    line-height: 1;
    opacity: 0.7;
}

.table-sort-link.is-sorted .table-sort-indicator {
    opacity: 1;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(21, 32, 51, 0.08);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: rgba(255, 248, 232, 0.66);
}

.data-table tbody td {
    padding: 18px;
    color: var(--ink-strong);
    vertical-align: middle;
}

.td-id,
.td-mono {
    font-family: var(--app-font-mono);
    font-size: var(--app-font-size-12);
}

.td-name {
    font-weight: var(--app-font-weight-bold);
}

.td-muted,
.td-date,
.td-currency {
    color: var(--ink);
}

.table-primary {
    display: block;
    color: var(--ink-strong);
    font-size: var(--app-font-size-15);
    font-weight: var(--app-font-weight-bold);
    line-height: 1.4;
}

.table-secondary {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: var(--app-font-size-12);
    line-height: 1.65;
}

.td-actions {
    /* Keep table semantics (sticky positioning is unreliable on table cells that are display:flex). */
    white-space: nowrap;
    text-align: right;
}

.td-actions .action-link + .action-link {
    margin-left: 8px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-bold);
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.action-link:hover {
    color: var(--accent-strong);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    transform: none;
}

.action-link-secondary {
    background: rgba(100, 116, 139, 0.12);
    color: var(--ink);
}

.td-empty {
    padding: 60px 20px !important;
    text-align: center;
    color: var(--muted);
    font-size: var(--app-font-size-14);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.14);
    color: var(--ink);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-posted {
    background: rgba(33, 127, 91, 0.14);
    color: #0f5c3d;
}

.status-pending {
    background: rgba(213, 145, 31, 0.16);
    color: #7d4f00;
}

.status-draft {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.status-approved {
    background: rgba(59, 91, 219, 0.14);
    color: #2741a5;
}

.status-paid-in-full {
    background: rgba(15, 118, 110, 0.16);
    color: #0f766e;
}

.status-already-paid-in-full {
    background: rgba(21, 128, 61, 0.14);
    color: #166534;
}

.status-open {
    background: rgba(217, 119, 6, 0.18);
    color: #92400e;
}

.status-partially-paid {
    background: rgba(217, 119, 6, 0.18);
    color: #92400e;
}

.status-not-applied {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.status-cancelled,
.status-voided,
.status-rejected {
    background: rgba(196, 57, 57, 0.14);
    color: #8c2323;
}

.list-shell .table-scroll {
    position: relative;
}

.list-shell .data-table {
    font-family: var(--app-font-sans);
    font-size: var(--app-font-size-13);
}

.list-shell .data-table thead th {
    padding: 12px 14px;
    font-size: var(--app-font-size-10);
    letter-spacing: 0.12em;
}

.list-shell .data-table thead th:last-child {
    right: 0;
    z-index: 4;
    text-align: right;
    box-shadow: none;
}

.list-shell .data-table tbody td {
    padding: 12px 14px;
    font-size: var(--app-font-size-12);
    line-height: 1.45;
}

.list-shell .td-id,
.list-shell .td-mono {
    font-size: var(--app-font-size-11);
}

.list-shell .td-name {
    font-weight: var(--app-font-weight-semibold);
}

.list-shell .td-actions {
    position: sticky;
    right: 0;
    z-index: 2;
    min-width: 132px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

.list-shell .data-table tbody tr:hover .td-actions {
    background: rgba(255, 248, 232, 0.96);
}

.list-shell .action-link {
    min-height: 30px;
    padding: 6px 10px;
    font-size: var(--app-font-size-11);
}

.list-shell .status-badge {
    min-height: 24px;
    padding: 4px 8px;
    font-size: var(--app-font-size-10);
    letter-spacing: 0.07em;
}

.pagination-bar {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--erp-control-radius);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(21, 32, 51, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--ink);
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-semibold);
    flex: 0 0 auto;
}

.pagination-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    flex: 1 1 auto;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(21, 32, 51, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink-strong);
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-bold);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    white-space: nowrap;
}

.page-btn:hover:not(.disabled) {
    color: var(--ink-strong);
    box-shadow: none;
    transform: none;
}

.page-btn.is-current {
    background: var(--theme-surface-strong);
    border-color: transparent;
    box-shadow: none;
    color: #f8fafc;
    pointer-events: none;
}

.pagination-ellipsis {
    min-width: 40px;
    padding-inline: 10px;
    cursor: default;
}

.page-btn.disabled {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.6);
    cursor: default;
    pointer-events: none;
}

.pagination-goto-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 1 auto;
    margin-left: auto;
}

.pagination-goto-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-semibold);
    white-space: nowrap;
}

.pagination-goto-input {
    width: 84px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(21, 32, 51, 0.12);
    border-radius: var(--erp-control-radius);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink-strong);
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-semibold);
}

.pagination-goto-input:focus {
    outline: none;
    border-color: rgba(31, 111, 120, 0.45);
    box-shadow: none;
}

.pagination-goto-submit {
    min-width: 56px;
}

body.bi-rate-sidebar-open {
    overflow: hidden;
}

body.bi-rate-sidebar-resizing {
    cursor: ew-resize;
    user-select: none;
}

.bi-rate-widget {
    position: relative;
    z-index: 1120;
}

.bi-rate-fab {
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 1122;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-height: 54px;
    padding: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--theme-surface-strong);
    color: #f8fafc;
    box-shadow: none;
    transform: translateY(-50%);
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.bi-rate-widget.is-open .bi-rate-fab {
    display: none;
}

.bi-rate-fab:hover,
.bi-rate-fab:focus {
    transform: none;
    box-shadow: none;
    filter: saturate(1.08);
}

.bi-rate-fab:active,
.bi-rate-widget.is-dragging .bi-rate-fab {
    cursor: grabbing;
    transform: translateY(-50%) scale(1.04);
    box-shadow: none;
}

.bi-rate-widget.is-positioned .bi-rate-fab,
.bi-rate-widget.is-positioned .bi-rate-fab:hover,
.bi-rate-widget.is-positioned .bi-rate-fab:focus {
    right: auto;
    bottom: auto;
    transform: none;
}

.bi-rate-widget.is-positioned .bi-rate-fab:hover,
.bi-rate-widget.is-positioned .bi-rate-fab:focus {
    transform: none;
}

.bi-rate-widget.is-positioned.is-dragging .bi-rate-fab,
.bi-rate-widget.is-positioned .bi-rate-fab:active {
    transform: scale(1.04);
}

.bi-rate-fab-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--erp-control-radius);
    background: rgba(255, 255, 255, 0.16);
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bi-rate-live-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #72f3b2;
    box-shadow: none;
}

.bi-rate-live-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: var(--erp-control-radius);
    border: 1px solid rgba(114, 243, 178, 0.54);
    animation: bi-rate-live-pulse 1.8s ease-out infinite;
}

.bi-rate-preview {
    position: fixed;
    z-index: 1123;
    min-width: 210px;
    max-width: min(270px, calc(100vw - 24px));
    padding: 12px 14px;
    border: 1px solid rgba(21, 32, 51, 0.12);
    border-radius: var(--erp-control-radius);
    background: rgba(255, 255, 255, 0.97);
    color: var(--ink-strong);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.bi-rate-widget.is-preview-visible .bi-rate-preview {
    opacity: 1;
    transform: translateY(0);
}

.bi-rate-preview-kicker,
.bi-rate-preview-meta {
    display: block;
    color: var(--muted);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bi-rate-preview-value {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    font-family: var(--app-font-display);
    font-size: var(--app-font-size-20);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: -0.04em;
}

.bi-rate-preview-trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-family: var(--app-font-sans);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-extrabold);
}

.bi-rate-preview-trend-up {
    background: rgba(33, 127, 91, 0.14);
    color: #0f5c3d;
}

.bi-rate-preview-trend-down {
    background: rgba(196, 57, 57, 0.12);
    color: #8c2323;
}

.bi-rate-preview-trend-flat {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.bi-rate-preview-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: var(--app-font-size-15);
    letter-spacing: 0;
}

.bi-rate-preview-loading::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #1f6f78;
    animation: bi-rate-loading-blink 0.9s ease-in-out infinite alternate;
}

.bi-rate-overlay {
    position: fixed;
    inset: 0;
    z-index: 1120;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: none;
}

.bi-rate-sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1121;
    --bi-rate-sidebar-width: 420px;
    width: min(var(--bi-rate-sidebar-width), calc(100vw - 24px));
    max-width: 100%;
    padding: 18px;
    transform: translateX(108%);
    transition: transform 0.24s ease;
}

.bi-rate-resize-handle {
    position: absolute;
    top: 50%;
    left: -1px;
    z-index: 2;
    width: 22px;
    height: 74px;
    padding: 0;
    border: 1px solid rgba(21, 32, 51, 0.12);
    border-radius: 999px;
    background: var(--theme-surface-strong);
    box-shadow: none;
    color: rgba(31, 111, 120, 0.9);
    cursor: ew-resize;
    touch-action: none;
    transform: translate(-50%, -50%);
}

.bi-rate-resize-handle::after {
    content: "\2194";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.bi-rate-resize-handle:hover,
.bi-rate-resize-handle:focus-visible,
.bi-rate-widget.is-resizing .bi-rate-resize-handle {
    border-color: rgba(31, 111, 120, 0.28);
    box-shadow: none;
}

.bi-rate-widget.is-open .bi-rate-sidebar {
    transform: translateX(0);
}

.bi-rate-sidebar-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 18px;
    padding: 22px;
    border-radius: var(--erp-control-radius);
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    backdrop-filter: none;
}

.bi-rate-sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bi-rate-sidebar-kicker {
    margin: 0 0 8px;
    color: #1f6f78;
    font-size: var(--app-font-size-11);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bi-rate-sidebar-title {
    margin: 0;
    font-family: var(--app-font-display);
    font-size: var(--app-font-size-28);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: -0.05em;
}

.bi-rate-sidebar-copy {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: var(--app-font-size-13);
    line-height: 1.65;
}

.bi-rate-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: var(--erp-control-radius);
    background: rgba(21, 32, 51, 0.08);
    color: var(--ink-strong);
    font-size: var(--app-font-size-24);
    line-height: 1;
}

.bi-rate-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: var(--erp-control-radius);
    background: var(--theme-surface-strong);
    border: 1px solid rgba(21, 32, 51, 0.08);
}

.bi-rate-field {
    display: grid;
    gap: 8px;
}

.bi-rate-field span {
    color: var(--ink-strong);
    font-size: var(--app-font-size-12);
    font-weight: var(--app-font-weight-bold);
    letter-spacing: 0.04em;
}

.bi-rate-field select,
.bi-rate-field input {
    min-height: 46px;
    padding: 11px 14px;
    border-radius: var(--erp-control-radius);
    border: 1px solid rgba(21, 32, 51, 0.14);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink-strong);
    font-size: var(--app-font-size-14);
}

.bi-rate-field select:focus,
.bi-rate-field input:focus {
    outline: none;
    border-color: rgba(31, 111, 120, 0.48);
    box-shadow: none;
}

.bi-rate-submit {
    min-height: 46px;
    border: 0;
    border-radius: var(--erp-control-radius);
    background: var(--theme-accent-soft);
    color: #f8fafc;
    font-size: var(--app-font-size-14);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.04em;
}

.bi-rate-status,
.bi-rate-empty {
    margin: 0;
    padding: 14px 16px;
    border-radius: var(--erp-control-radius);
    background: rgba(15, 92, 61, 0.08);
    color: #0f5c3d;
    font-size: var(--app-font-size-13);
    font-weight: var(--app-font-weight-semibold);
}

.bi-rate-status-error {
    background: rgba(196, 57, 57, 0.1);
    color: #8c2323;
}

.bi-rate-results {
    min-height: 0;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 14px;
}

.bi-rate-table-wrap {
    width: 100%;
    border-radius: var(--erp-control-radius);
    overflow: hidden;
    border: 1px solid rgba(21, 32, 51, 0.1);
    background: #ffffff;
    box-shadow: none;
}

.bi-rate-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: var(--app-font-size-13);
}

.bi-rate-table thead th {
    padding: 14px 12px;
    background: #f7f4ef;
    border-bottom: 1px solid rgba(21, 32, 51, 0.12);
    color: var(--muted);
    font-size: var(--app-font-size-10);
    font-weight: var(--app-font-weight-extrabold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    word-break: break-word;
}

.bi-rate-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(21, 32, 51, 0.08);
    color: var(--ink-strong);
    font-weight: var(--app-font-weight-semibold);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bi-rate-table tbody tr:last-child td {
    border-bottom: 0;
}

@keyframes bi-rate-live-pulse {
    0% {
        opacity: 0.7;
        transform: scale(0.72);
    }

    100% {
        opacity: 0;
        transform: scale(1.85);
    }
}

@keyframes bi-rate-loading-blink {
    from {
        opacity: 0.35;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.08);
    }
}

.global-search-page-form {
    margin-top: 20px;
}

@media (max-width: 1199.98px) {
    .app-navbar-shell {
        gap: 10px;
    }

    .app-brand-subtitle {
        display: none;
    }

    .app-brand {
        padding-right: 9px;
        max-width: calc(100% - 64px);
    }

    .app-brand-copy {
        display: grid !important;
        gap: 1px;
        min-width: 0;
    }

    .app-navbar-main {
        gap: 10px;
    }

    .app-nav-pill {
        padding-right: 10px !important;
    }

    .app-nav-pill-kicker {
        max-width: 84px;
    }

    .app-user-chip-label,
    .app-user-chip-value {
        max-width: 88px;
    }

    .app-user-menu {
        width: min(380px, calc(100vw - 24px));
        min-width: 320px;
    }

    .app-notification-clear-btn {
        font-size: var(--app-font-size-10);
    }

    .app-bookmark-chip {
        max-width: 168px;
    }
}

@media (max-width: 1199.98px) {
    .app-navbar {
        padding: 10px 0 0;
    }

    .app-navbar:has(.app-navbar-collapse.show) {
        z-index: 1130;
    }

    .app-navbar-shell {
        width: calc(100% - 24px);
        flex-wrap: wrap;
    }

    .app-bookmark-shell {
        width: calc(100% - 24px);
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "track actions";
    }

    .app-bookmark-label {
        display: none;
    }

    .app-bookmark-shell[data-has-bookmarks="false"] {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "actions track";
    }

    .app-notification-item {
        align-items: flex-start;
    }

    .app-notification-item-meta {
        min-width: 80px;
    }

    .app-brand {
        flex: 0 1 auto;
        margin-right: 0;
        min-width: 0;
        width: auto;
        max-width: calc(100% - 58px);
    }

    .app-navbar-toggler {
        margin-left: auto;
        flex: 0 0 auto;
    }

    .app-navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        margin-top: 10px;
        padding: 12px;
        max-height: calc(100vh - 88px);
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: var(--erp-control-radius);
        background: var(--theme-surface-strong);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }

    .app-navbar-main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .app-navbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }

    .app-primary-nav,
    .app-navbar-side,
    .app-global-search-form {
        width: 100%;
        max-width: none;
    }

    .app-global-search-form {
        flex: 0 0 auto;
    }

    .app-user-chip,
    .app-login-btn {
        width: 100%;
        justify-content: center;
    }

    .app-navbar-side > .navbar-nav,
    .app-navbar-side > .navbar-nav > .nav-item {
        width: 100%;
    }

    .app-nav-pills {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .app-nav-pills > .nav-item {
        width: 100%;
    }

    .app-nav-pill {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .app-nav-pill.dropdown-toggle::after,
    .app-user-chip.dropdown-toggle::after {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .app-nav-pill-kicker {
        max-width: none;
    }

    .app-dropdown-menu {
        position: static !important;
        inset: auto !important;
        float: none;
        width: 100%;
        min-width: 0;
        margin: 8px 0 0;
        padding: 8px;
        border-radius: var(--erp-control-radius);
        transform: none !important;
        animation: none;
    }

    .app-dropdown-menu.show {
        animation: none;
    }

    .app-flyout-menu {
        width: 100%;
        min-width: 0;
        max-height: none;
        overflow: visible;
    }

    .app-flyout-layout,
    .app-flyout-nav {
        width: 100%;
        min-height: 0;
    }

    .app-flyout-layout {
        height: auto;
        background: transparent;
        overflow: visible;
        box-shadow: none;
    }

    .app-flyout-nav {
        padding: 0;
        border-right: 0;
        height: auto;
        overflow: visible;
    }

    .app-flyout-menu-compact .app-flyout-layout,
    .app-flyout-menu-compact .app-flyout-nav,
    .app-flyout-menu-compact .app-flyout-panel {
        min-height: 0;
    }

    .app-flyout-menu-compact .app-flyout-layout {
        height: auto;
    }

    .app-flyout-trigger {
        min-height: 0;
        padding: 10px 12px;
        background: rgba(21, 32, 51, 0.04);
    }

    .app-flyout-trigger::after {
        display: block;
    }

    .app-flyout-panel {
        position: static;
        display: none;
        width: 100%;
        min-height: 0;
        margin: 6px 0 10px;
        padding: 8px;
        overflow: visible;
        border: 1px solid rgba(21, 32, 51, 0.08);
        border-radius: var(--erp-control-radius);
        background: rgba(255, 255, 255, 0.72);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .app-flyout-group.is-active .app-flyout-panel,
    .app-flyout-group.is-preview:first-of-type .app-flyout-panel,
    .app-flyout-group:hover .app-flyout-panel,
    .app-flyout-group:focus-within .app-flyout-panel {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .app-flyout-nav:focus-within .app-flyout-group .app-flyout-panel {
        display: none;
    }

    .app-flyout-nav:focus-within .app-flyout-group:focus-within .app-flyout-panel {
        display: block;
    }

    .app-flyout-panel-head {
        display: none;
    }

    .app-navbar-side {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .app-global-search-form {
        min-width: 0;
    }

    .app-global-search-dropdown {
        position: static;
        width: 100%;
        max-height: min(40vh, 360px);
        margin-top: 8px;
        overflow-y: auto;
    }

    .app-user-menu {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .page-actions,
    .toolbar,
    .pagination-bar {
        justify-content: flex-start;
    }

    .search-form {
        width: 100%;
    }

    .bi-rate-fab {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .bi-rate-widget.is-positioned .bi-rate-fab {
        top: auto;
        bottom: auto;
    }

    .bi-rate-fab:hover,
    .bi-rate-fab:focus {
        transform: none;
    }

    .bi-rate-sidebar {
        width: min(var(--bi-rate-sidebar-width), calc(100vw - 12px));
        padding: 10px 10px 14px;
    }

    .app-auto-logout-modal .modal-dialog {
        width: min(100vw - 16px, 560px);
        margin-left: auto;
        margin-right: auto;
    }

    .app-auto-logout-body {
        gap: 22px;
        padding: 24px 22px 22px;
    }

    .app-auto-logout-title {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    .app-auto-logout-message {
        font-size: var(--app-font-size-15);
    }

    .app-auto-logout-actions {
        justify-content: stretch;
    }

    .app-auto-logout-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .app-navbar-shell {
        width: calc(100% - 16px);
        gap: 12px;
    }

    .app-bookmark-shell {
        width: calc(100% - 16px);
    }

    .app-bookmark-list {
        gap: 5px;
    }

    .app-bookmark-empty {
        font-size: var(--app-font-size-10);
        white-space: normal;
    }

    .app-bookmark-chip {
        max-width: 152px;
        min-height: 30px;
        padding: 5px 28px 5px 10px;
        font-size: var(--app-font-size-11);
    }

    .app-bookmark-more-btn,
    .app-bookmark-add-btn {
        min-height: 30px;
        padding: 5px 10px;
        font-size: var(--app-font-size-10);
    }

    .app-bookmark-dismiss {
        opacity: 0.94;
        pointer-events: auto;
    }

    .app-brand {
        flex: 0 1 auto;
        min-width: 0;
        padding-right: 10px;
        max-width: calc(100% - 56px);
    }

    .app-brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 0;
    }

    .app-brand-title {
        font-size: var(--app-font-size-15);
        line-height: 1.05;
    }

    .app-brand-subtitle {
        display: none !important;
        letter-spacing: 0.12em;
    }

    .app-navbar-collapse {
        padding: 10px;
        border-radius: var(--erp-control-radius);
    }

    .app-navbar-side {
        flex-direction: column;
        align-items: stretch;
    }

    .app-global-search-form {
        width: 100%;
    }

    .app-user-chip,
    .app-login-btn {
        width: 100%;
        justify-content: center;
    }

    .app-user-chip {
        justify-content: flex-start;
    }

    .app-user-menu {
        width: 100%;
        min-width: 0;
    }

    .list-hero,
    .list-surface {
        border-radius: var(--erp-control-radius);
    }

    .toolbar,
    .pagination-bar {
        padding: 12px;
    }

    .search-form,
    .per-page-form,
    .pagination-links,
    .pagination-goto-form {
        width: 100%;
    }

    .page-actions,
    .page-actions .btn,
    .toolbar .btn,
    .page-btn,
    .pagination-goto-submit {
        width: 100%;
    }

    .per-page-label {
        width: 100%;
        justify-content: space-between;
    }

    .pagination-goto-label {
        width: 100%;
        justify-content: space-between;
    }

    .pagination-goto-input {
        flex: 1;
        width: auto;
    }

    .per-page-select {
        flex: 1;
    }

    .data-table {
        min-width: 0;
    }

    .list-view-switch {
        width: 100%;
    }

    .list-view-chip {
        flex: 1 1 180px;
    }

    .bi-rate-fab {
        right: 14px;
        bottom: 14px;
        min-height: 50px;
        width: 50px;
        padding: 12px 14px;
        border-radius: 999px;
    }

    .bi-rate-live-dot {
        top: 7px;
        right: 7px;
        width: 8px;
        height: 8px;
    }

    .bi-rate-sidebar {
        inset: auto 0 0 0;
        width: 100%;
        padding: 0;
        transform: translateY(100%);
    }

    .bi-rate-resize-handle {
        display: none;
    }

    .bi-rate-widget.is-open .bi-rate-sidebar {
        transform: translateY(0);
    }

    .bi-rate-sidebar-shell {
        height: min(88vh, 760px);
        border-radius: var(--erp-control-radius);
        padding: 20px 16px;
    }

    .bi-rate-sidebar-title {
        font-size: var(--app-font-size-24);
    }
}
