/* Legacy newspaper admin theme — The Daily Agamir Somoy */

:root {
    --legacy-green: #2e7d32;
    --legacy-green-dark: #1b5e20;
    --legacy-green-light: #43a047;
    --legacy-black: #1a1a1a;
    --legacy-black-hover: #2d2d2d;
    --legacy-nav-text: #e8e8e8;
    --legacy-nav-muted: #bdbdbd;
}

.legacy-publication-bar {
    background: linear-gradient(180deg, var(--legacy-green) 0%, var(--legacy-green-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #145214;
    width: 100%;
}

.fi-topbar {
    background-color: var(--legacy-black) !important;
    border-bottom: 3px solid var(--legacy-green-dark) !important;
    box-shadow: none !important;
}

.fi-topbar .fi-logo {
    color: #ffffff !important;
}

.fi-topbar-item-btn {
    background-color: transparent !important;
}

.fi-topbar-item-label {
    color: var(--legacy-nav-text) !important;
}

.fi-topbar-item-btn > .fi-icon,
.fi-topbar-item-btn .fi-topbar-group-toggle-icon {
    color: var(--legacy-nav-muted) !important;
}

.fi-topbar-item-btn:hover,
.fi-topbar-item-btn:focus-visible {
    background-color: var(--legacy-green) !important;
}

.fi-topbar-item-btn:hover .fi-topbar-item-label,
.fi-topbar-item-btn:focus-visible .fi-topbar-item-label {
    color: #ffffff !important;
}

.fi-topbar-item-btn:hover > .fi-icon,
.fi-topbar-item-btn:focus-visible > .fi-icon,
.fi-topbar-item-btn:hover .fi-topbar-group-toggle-icon,
.fi-topbar-item-btn:focus-visible .fi-topbar-group-toggle-icon {
    color: #ffffff !important;
}

.fi-topbar-item.fi-active .fi-topbar-item-btn {
    background-color: var(--legacy-green-dark) !important;
}

.fi-topbar-item.fi-active .fi-topbar-item-label {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.fi-topbar-item.fi-active .fi-topbar-item-btn > .fi-icon {
    color: #a5d6a7 !important;
}

.fi-topbar .fi-dropdown-panel {
    border: 1px solid #ccc !important;
}

.fi-topbar .fi-dropdown-list-item {
    color: #1a1a1a !important;
}

.fi-topbar .fi-dropdown-list-item:hover,
.fi-topbar .fi-dropdown-list-item:focus-visible {
    background-color: #e8f5e9 !important;
    color: var(--legacy-green-dark) !important;
}

.fi-topbar .fi-dropdown-list-item.fi-active {
    background-color: var(--legacy-green) !important;
    color: #ffffff !important;
}

.fi-topbar .fi-user-menu-trigger,
.fi-topbar .fi-topbar-database-notifications-btn {
    color: var(--legacy-nav-text) !important;
}

.fi-topbar .fi-user-menu-trigger:hover,
.fi-topbar .fi-topbar-database-notifications-btn:hover {
    background-color: var(--legacy-green) !important;
    color: #ffffff !important;
}

.fi-sidebar {
    background-color: var(--legacy-black) !important;
}

.fi-sidebar .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-group-label {
    color: #e8e8e8 !important;
}

.fi-sidebar .fi-sidebar-item-btn:hover {
    background-color: var(--legacy-green) !important;
}

.fi-sidebar .fi-sidebar-item-btn:hover .fi-sidebar-item-label {
    color: #ffffff !important;
}

.fi-sidebar .fi-sidebar-item-active > .fi-sidebar-item-btn {
    background-color: var(--legacy-green-dark) !important;
}

.fi-sidebar .fi-sidebar-item-active .fi-sidebar-item-label {
    color: #ffffff !important;
}

.fi-page-header .fi-header-heading {
    color: var(--legacy-green-dark);
    font-weight: 700;
}

.fi-section-header-heading {
    color: var(--legacy-green-dark);
}

.fi-resource-relation-manager .fi-section-header {
    background: #e8f5e9;
}

.fi-simple-layout .fi-logo {
    color: var(--legacy-green-dark) !important;
}

.fi-page-header-actions .fi-btn {
    font-weight: 600;
}

.fi-page-header-actions .fi-btn:not(.fi-color-gray):hover {
    filter: brightness(1.05);
}

/* ============================================================
   ADVERTISEMENT BILL — 12-col grid: quarter×4, short×3, medium×2, wide×1
   ============================================================ */

.legacy-bill-form.fi-sc-section,
.legacy-bill-form {
    width: 100% !important;
    grid-column: 1 / -1 !important;
    margin-bottom: 0 !important;
    border: 1px solid #a0a0a0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #f8f8f8 !important;
    padding: 0 !important;
}

.legacy-bill-form .fi-section-header {
    display: none !important;
}

.legacy-bill-form .fi-section > .fi-section-content-ctn > .fi-grid {
    --cols-default: repeat(12, minmax(0, 1fr)) !important;
    --cols-lg: repeat(12, minmax(0, 1fr)) !important;
    gap: 6px 12px !important;
    padding: 15px !important;
}

/* Filament 5: fixed label column + value grows with content */
.legacy-bill-form {
    --legacy-label-w: 7.5rem;
    --legacy-part-pad: 15px;
}

.legacy-bill-form .fi-fo-field {
    display: grid !important;
    grid-template-columns: var(--legacy-label-w) minmax(0, 1fr) !important;
    column-gap: 10px !important;
    align-items: start !important;
    margin: 0 !important;
    padding: 3px 0 !important;
    min-height: auto !important;
    border-bottom: none !important;
    overflow: visible !important;
}

.legacy-bill-form .fi-grid-col,
.legacy-bill-form .fi-sc-component {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.legacy-bill-form .fi-fo-field-label-col {
    grid-column: 1 !important;
    flex: unset !important;
    width: var(--legacy-label-w) !important;
    max-width: var(--legacy-label-w) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.legacy-bill-form .fi-fo-field-content-col {
    grid-column: 2 !important;
    flex: unset !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.legacy-bill-form .fi-fo-field-label,
.legacy-bill-form label.fi-fo-field-label {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 3px 0 0 0 !important;
    line-height: 1.3 !important;
    color: #222 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
}

.legacy-bill-form .fi-fo-field-label-ctn {
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: left !important;
}

.legacy-bill-form .fi-fo-field-content-col,
.legacy-bill-form .fi-input-wrp,
.legacy-bill-form .fi-input-wrp-content-ctn {
    overflow: visible !important;
}

.legacy-bill-form .fi-fo-field-label-required-mark {
    color: #c62828 !important;
}

.legacy-bill-form .fi-fo-field-content-col > .fi-input-wrp,
.legacy-bill-form .fi-fo-field-content-col .fi-select-input {
    width: 100% !important;
}

.legacy-bill-form .fi-input-wrp {
    min-height: 28px !important;
    height: auto !important;
    border-radius: 1px !important;
    border: 1px solid #a0a0a0 !important;
    background: #fff !important;
    box-shadow: none !important;
    align-items: stretch !important;
}

.legacy-bill-form .fi-input,
.legacy-bill-form .fi-fo-date-time-picker-display-text-input,
.legacy-bill-form select.fi-select-input {
    font-size: 0.8rem !important;
    padding: 5px 8px !important;
    min-height: 28px !important;
    height: auto !important;
    line-height: 1.35 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.legacy-bill-form .fi-fo-date-time-picker-trigger {
    min-height: 28px !important;
    height: auto !important;
    width: 100% !important;
}

.legacy-bill-form .fi-fo-textarea textarea {
    font-size: 0.8rem !important;
    padding: 5px 8px !important;
    min-height: 28px !important;
    height: auto !important;
    line-height: 1.35 !important;
    border: 1px solid #a0a0a0 !important;
    border-radius: 1px !important;
    field-sizing: content;
    overflow: hidden !important;
    resize: none !important;
}

.legacy-bill-form .fi-fo-textarea .fi-input-wrp-content-ctn > div {
    height: auto !important;
    min-height: 0 !important;
}

.legacy-bill-form .fi-fo-field:has(textarea) {
    align-items: flex-start !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.legacy-bill-form .fi-fo-field:has(textarea) .fi-fo-field-label-col {
    padding-top: 3px !important;
}

/* Rate + totals — span 3 of 12 = 4 per row, label left of input (compact) */
.legacy-bill-form .fi-grid-col[style*="span 3"] {
    --legacy-quarter-label-w: 6.25rem;
}

.legacy-bill-form .fi-grid-col[style*="span 3"] .fi-fo-field {
    grid-template-columns: var(--legacy-quarter-label-w) minmax(0, 1fr) !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
    align-items: start !important;
    padding: 1px 0 !important;
}

.legacy-bill-form .fi-grid-col[style*="span 3"] .fi-fo-field-label-col {
    grid-column: 1 !important;
    width: var(--legacy-quarter-label-w) !important;
    max-width: var(--legacy-quarter-label-w) !important;
    overflow: hidden !important;
}

.legacy-bill-form .fi-grid-col[style*="span 3"] .fi-fo-field-content-col {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.legacy-bill-form .fi-grid-col[style*="span 3"] .fi-fo-field-label,
.legacy-bill-form .fi-grid-col[style*="span 3"] label.fi-fo-field-label {
    font-size: 0.7rem !important;
    padding: 2px 0 0 0 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.legacy-bill-form .fi-grid-col[style*="span 3"] .fi-input-wrp {
    min-height: 24px !important;
    width: 100% !important;
    max-width: none !important;
}

.legacy-bill-form .fi-grid-col[style*="span 3"] .fi-input,
.legacy-bill-form .fi-grid-col[style*="span 3"] input[readonly] {
    font-size: 0.78rem !important;
    padding: 3px 6px !important;
    min-height: 24px !important;
}

/* Footer remarks — spans both outer columns */
.legacy-bill-form .fi-section > .fi-section-content-ctn > .fi-grid > .fi-grid-col[style*="1 / -1"] {
    grid-column: 1 / -1 !important;
    margin-top: 2px !important;
}

/* Red labels */
.legacy-bill-form .fi-fo-field:has(.legacy-bill-highlight-field) .fi-fo-field-label,
.legacy-bill-form .fi-fo-field:has(.legacy-bill-highlight-field) label {
    color: #c62828 !important;
    font-weight: 700 !important;
}

.legacy-bill-form .fi-fo-field:has([readonly]) .fi-input-wrp,
.legacy-bill-form input[readonly] {
    background-color: #ececec !important;
}

.legacy-bill-form .fi-select-input,
.legacy-bill-form .fi-select-input-ctn {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

.legacy-bill-form .fi-select-input-btn {
    min-height: 28px !important;
    height: auto !important;
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    padding: 5px 26px 5px 8px !important;
    border: 1px solid #a0a0a0 !important;
    border-radius: 1px !important;
    align-items: flex-start !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
}

.legacy-bill-form .fi-select-input-value-ctn,
.legacy-bill-form .fi-select-input-value-ctn span {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

.legacy-bill-form .fi-grid-col.fi-hidden {
    display: none !important;
}

.fi-body:has(.legacy-bill-form) .fi-main {
    padding: 0.5rem 0.75rem !important;
}

/* Online Ads — bold clickable heading; fields hidden until expanded */
.legacy-bill-form .legacy-online-ads-toggle.fi-fo-field {
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
    padding: 8px 0 4px !important;
    margin-top: 4px !important;
    border-top: 1px solid #c8c8c8 !important;
}

.legacy-bill-form .fi-grid-col:has(.legacy-online-ads-toggle) {
    grid-column: 1 / -1 !important;
}

.legacy-bill-form .legacy-online-ads-toggle .fi-fo-field-label-col {
    display: none !important;
}

.legacy-bill-form .legacy-online-ads-toggle .fi-fo-field-content-col {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

.legacy-bill-form .legacy-online-ads-heading-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    color: var(--legacy-green-dark) !important;
    cursor: pointer !important;
    user-select: none !important;
    line-height: 1.4;
}

.legacy-bill-form .legacy-online-ads-heading-btn:hover,
.legacy-bill-form .legacy-online-ads-heading-btn:focus-visible {
    color: var(--legacy-green) !important;
    outline: none;
}

@media (max-width: 1024px) {
    .legacy-bill-form .fi-section > .fi-section-content-ctn > .fi-grid {
        --cols-default: repeat(1, minmax(0, 1fr)) !important;
        --cols-lg: repeat(1, minmax(0, 1fr)) !important;
    }
}

/* Date picker — month arrows like year spinners (all forms) */
.fi-fo-date-time-picker-month-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-width: 0;
}

.fi-fo-date-time-picker-month-label {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: var(--gray-950, #030712);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark .fi-fo-date-time-picker-month-label {
    color: #fff;
}

.fi-fo-date-time-picker-month-spinners {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    line-height: 0.65rem;
}

.fi-fo-date-time-picker-month-spin-btn {
    border: none;
    background: transparent;
    color: var(--gray-500, #6b7280);
    cursor: pointer;
    padding: 0;
    font-size: 0.55rem;
    line-height: 0.65rem;
}

.fi-fo-date-time-picker-month-spin-btn:hover {
    color: var(--gray-950, #030712);
}

.dark .fi-fo-date-time-picker-month-spin-btn:hover {
    color: #fff;
}

/* Collection Bill — customer bills preview table */
.legacy-collection-bills-field.fi-fo-field {
    grid-column: 1 / -1 !important;
    display: block !important;
    padding: 0 0 8px !important;
    margin-top: 0 !important;
}

.legacy-collection-bills-field .fi-fo-field-content-col {
    width: 100% !important;
    max-width: 100% !important;
}

.legacy-collection-bills-panel {
    width: 100%;
    border: 1px solid #b8c4b8;
    border-radius: 2px;
    background: #fafbf9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.legacy-collection-bills-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #e8f3e9 0%, #dceadc 100%);
    border-bottom: 1px solid #b8c4b8;
}

.legacy-collection-bills-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--legacy-green-dark);
    letter-spacing: 0.01em;
}

.legacy-collection-bills-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--legacy-green);
    border: 1px solid var(--legacy-green-dark);
    border-radius: 2px;
    line-height: 1.4;
}

.legacy-collection-bills-count {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a5a4a;
}

.legacy-collection-bills-hint {
    width: 100%;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--legacy-green-dark);
}

.legacy-collection-bills-table .legacy-col-select {
    width: 52px;
    text-align: center;
}

.legacy-collection-bill-checkbox {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--legacy-green);
}

.legacy-collection-bill-checkbox-btn {
    width: 16px;
    height: 16px;
    border: 2px solid var(--legacy-green);
    border-radius: 3px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.legacy-collection-bill-checkbox-btn.is-checked {
    background: var(--legacy-green);
    border-color: var(--legacy-green-dark);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.legacy-collection-bill-checkbox-btn:focus-visible {
    outline: 2px solid var(--legacy-green);
    outline-offset: 2px;
}

.legacy-collection-bill-paid {
    color: #9ca3af;
    font-size: 0.75rem;
}

.legacy-collection-bills-table tbody tr.legacy-collection-bill-selected {
    background: #e9f2ea !important;
}

.legacy-collection-bills-table thead .legacy-col-select {
    text-align: center;
}

.legacy-collection-bills-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legacy-collection-bills-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    line-height: 1.35;
}

.legacy-collection-bills-table thead th {
    padding: 7px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    background: linear-gradient(180deg, var(--legacy-green) 0%, var(--legacy-green-dark) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.legacy-collection-bills-table thead th:last-child {
    border-right: none;
}

.legacy-collection-bills-table tbody td {
    padding: 6px 10px;
    border-bottom: 1px solid #d8dfd8;
    border-right: 1px solid #e8ece8;
    color: #1a1a1a;
    vertical-align: middle;
}

.legacy-collection-bills-table tbody td:last-child {
    border-right: none;
}

.legacy-collection-bills-table tbody tr:nth-child(even) {
    background: #f3f6f3;
}

.legacy-collection-bills-table tbody tr:hover {
    background: #e9f2ea;
}

.legacy-collection-bills-table tfoot td {
    padding: 7px 10px;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--legacy-green-dark);
    background: #e4ede5;
    border-top: 2px solid var(--legacy-green);
}

.legacy-collection-bills-table .legacy-col-serial {
    width: 72px;
    text-align: center;
    font-weight: 600;
}

.legacy-collection-bills-table .legacy-col-date {
    width: 96px;
    white-space: nowrap;
}

.legacy-collection-bills-table .legacy-col-amount,
.legacy-collection-bills-table .legacy-col-ait,
.legacy-collection-bills-table .legacy-col-vat,
.legacy-collection-bills-table .legacy-col-prior,
.legacy-collection-bills-table .legacy-col-total-collected,
.legacy-collection-bills-table .legacy-col-balance,
.legacy-collection-bills-table .legacy-col-collection,
.legacy-collection-bills-table .legacy-col-due {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.legacy-collection-bills-table thead .legacy-col-amount,
.legacy-collection-bills-table thead .legacy-col-ait,
.legacy-collection-bills-table thead .legacy-col-vat,
.legacy-collection-bills-table thead .legacy-col-prior,
.legacy-collection-bills-table thead .legacy-col-total-collected,
.legacy-collection-bills-table thead .legacy-col-serial,
.legacy-collection-bills-table thead .legacy-col-balance,
.legacy-collection-bills-table thead .legacy-col-collection,
.legacy-collection-bills-table thead .legacy-col-due {
    text-align: right;
}

.legacy-collection-amount-input {
    width: 100%;
    min-width: 88px;
    max-width: 120px;
    padding: 4px 6px;
    border: 1px solid #a0a0a0;
    border-radius: 1px;
    font-size: 0.8rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    background: #fff;
}

.legacy-collection-amount-input:focus {
    outline: none;
    border-color: var(--legacy-green);
    box-shadow: 0 0 0 1px rgba(45, 90, 45, 0.25);
}

.legacy-collection-cell-empty {
    color: #9ca3af;
}

.legacy-collection-bills-table .legacy-col-vat {
    min-width: 96px;
}

.legacy-collection-bills-table .legacy-col-collection {
    min-width: 110px;
}

.legacy-collection-bills-table .legacy-col-due {
    min-width: 96px;
}

.legacy-collection-bills-table .legacy-col-ait {
    min-width: 96px;
}

.legacy-collection-ait-input {
    min-width: 84px;
}

.legacy-collection-line-ait {
    color: #92400e;
    font-weight: 600;
}

.legacy-collection-bills-table .legacy-col-prior {
    min-width: 96px;
}

.legacy-collection-bills-table .legacy-col-total-collected {
    min-width: 104px;
}

.legacy-collection-bills-table thead .legacy-col-serial {
    text-align: center;
}

.legacy-collection-bills-table .legacy-col-total-label {
    text-align: right;
    font-weight: 700;
}

.legacy-collection-bills-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    color: #6b7280;
    font-size: 0.8rem;
}

.legacy-collection-bills-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.legacy-collection-bills-empty p {
    margin: 0;
}

.legacy-collection-due-field.fi-fo-field .fi-fo-placeholder {
    min-height: 28px;
    display: flex;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid #a0a0a0;
    border-radius: 1px;
    background: #f3f3f3;
    font-size: 0.8rem;
    line-height: 1.35;
}

.legacy-collection-due-value {
    font-weight: 700;
    color: #b45309;
    font-variant-numeric: tabular-nums;
}

.legacy-collection-sidebar-panel.fi-sc-section {
    height: fit-content;
}

.legacy-collection-items-panel .fi-fo-repeater {
    gap: 0.75rem;
}

.legacy-collection-items-panel .fi-fo-repeater-item {
    border: 1px solid #c8c8c8;
    border-radius: 2px;
    padding: 0.5rem 0.65rem;
    background: #fafafa;
}

.legacy-collection-items-panel .fi-fo-repeater > ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.legacy-collection-line-due-field .fi-fo-placeholder {
    min-height: 28px;
    display: flex;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid #a0a0a0;
    border-radius: 1px;
    background: #f3f3f3;
    font-size: 0.8rem;
}

.legacy-collection-line-due {
    font-weight: 700;
    color: #b45309;
    font-variant-numeric: tabular-nums;
}

.legacy-collection-advance-info {
    margin: 0.5rem 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #c9d6e8;
    border-radius: 8px;
    background: #f3f8ff;
}

.legacy-collection-advance-balance {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.legacy-collection-advance-amount {
    color: #0f766e;
    font-weight: 700;
}

.legacy-collection-advance-hint {
    margin: 0;
    color: #475569;
    font-size: 0.85rem;
}
