.field-tile { position: relative; }
.field-history-trigger { position: absolute; top: 2px; right: 3px; z-index: 6; width: 30px; height: 30px; min-height: 30px; padding: 0; border: 1px solid #b8c7d2; border-radius: 7px; background: #fff; color: #38566a; font-size: 11px; line-height: 1; cursor: pointer; }
.field-history-trigger:hover { background: #e9f4fa; }
.field-tile > span:first-of-type { padding-right: 23px; }
.layout-editing .field-history-trigger { display: none; }
.field-history-dialog { width: min(480px, calc(100vw - 20px)); max-height: 80vh; padding: 0; border: 1px solid #becbd5; border-radius: 16px; box-shadow: 0 18px 50px #13283b45; }
.field-history-dialog::backdrop { background: #1423338c; }
.field-history-sheet { padding: 16px; }
.field-history-sheet header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field-history-sheet h2 { margin: 0; }
.field-history-entries { display: grid; gap: 7px; max-height: 55vh; overflow: auto; }
.field-history-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 45px; padding: 7px 10px; border: 1px solid #d4e0e9; border-radius: 9px; background: #f7fbfd; color: #162b39; text-align: left; }
.field-history-entry:not(:disabled) { cursor: pointer; }
.field-history-entry strong { overflow-wrap: anywhere; }
.field-history-entry time { font-size: 11px; color: #607386; white-space: nowrap; }
label:has(.detail-history-trigger) { position: relative; }
.detail-history-trigger { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-height: 22px; margin: 0; }
.cash-movement-row { grid-template-columns: 175px minmax(0, 1fr) 34px; }
.cash-movement-row label { min-width: 0; }
.cash-movement-row label:has(.detail-history-trigger) > span:first-child { min-height: 24px; padding-right: 25px; }
.cash-movement-row input { min-width: 0; }
@media (max-width: 760px), (max-device-width: 760px) { .cash-movement-row { grid-template-columns: 150px minmax(0, 1fr) 34px; } }
.field-history-term-buttons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.field-history-term-buttons button { font-size: 10px; border: 1px solid #bad0dc; border-radius: 6px; background: #f7fbfd; color: #38566a; min-height: 32px; min-width: 44px; padding: 3px 7px; }
