/* Formatted money is a presentation layer over the existing numeric editor. */
.modern-app .modern-ledger-amount {
    position: relative;
    display: block;
    min-width: 0;
    font: inherit;
    line-height: inherit;
}
.modern-app .modern-ledger-amount > input { font-variant-numeric: tabular-nums; }
.modern-app .modern-ledger-amount:not(:focus-within) > input,
.modern-app .modern-ledger-amount.is-readonly > input { opacity: 0; }
.modern-app .modern-ledger-amount-display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 4px 5px;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    direction: ltr;
    text-align: left;
    color: #283044;
    font: inherit;
    font-variant-numeric: tabular-nums;
}
.modern-app .modern-ledger-amount.is-readonly .modern-ledger-amount-display {
    background: #f8fafc;
    color: #64748b;
}
.modern-app .modern-ledger-amount:not(.is-readonly):focus-within .modern-ledger-amount-display { visibility: hidden; }

.modern-app .modern-table-field-tooltip {
    position: fixed;
    inset: auto;
    z-index: 12000;
    width: max-content;
    max-width: min(520px, calc(100vw - 24px));
    max-height: min(320px, calc(100dvh - 24px));
    margin: 0;
    padding: 10px 13px;
    overflow: auto;
    border: 1px solid #cbd8d6;
    border-radius: 9px;
    background: #fff;
    color: #283044;
    box-shadow: 0 8px 24px rgba(40, 48, 68, .16);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    text-align: start;
    pointer-events: auto;
}
.modern-app .modern-table-field-tooltip[hidden] { display: none !important; }
@media print {
    .modern-app .modern-table-field-tooltip { display: none !important; }
    .modern-app .modern-ledger-amount > input { opacity: 0 !important; }
    .modern-app .modern-ledger-amount-display { visibility: visible !important; background: transparent !important; color: inherit !important; }
}
