/* Kontenmanager - Booking + search + dialogs */

.booking-edit-dialog .ui-dialog-content {
    padding: 8px 12px 12px;
}

.booking-edit-grid {
    width: 100%;
    border-collapse: collapse;
}

.booking-edit-grid > tbody > tr > td {
    padding: 3px 5px;
    vertical-align: top;
}

.booking-edit-dialog .ui-panelgrid-cell {
    padding: 3px 5px !important;
}

.booking-edit-dialog .ui-outputlabel {
    margin-bottom: 4px !important;
    line-height: 1.1;
}

.booking-edit-dialog .ui-inputfield,
.booking-edit-dialog .ui-selectonemenu-label,
.booking-edit-dialog .ui-button-text {
    line-height: 1.1;
}

.booking-edit-dialog .ui-inputfield {
    height: 30px;
    padding: 3px 6px;
}

.booking-edit-dialog .ui-selectonemenu {
    height: 30px;
}

.booking-edit-dialog .ui-selectonemenu-trigger {
    height: 30px;
}

.booking-edit-dialog .ui-selectonebutton .ui-button {
    height: 30px;
}

.booking-edit-grid > tbody > tr > td:first-child {
    width: 150px;
    white-space: nowrap;
}

.booking-edit-section-title {
    display: block;
    font-size: 1.05em;
    font-weight: 700;
    color: #333333;
    border-bottom: 1px solid #d7d7d7;
    padding-bottom: 1px;
    margin: 4px 0 2px;
}

.booking-edit-section-first {
    margin-top: 2px;
}

.booking-edit-tags {
    width: 100%;
}

.booking-edit-tags .ui-autocomplete-multiple-container {
    width: 100%;
}

.booking-edit-tags-row > td {
    padding-bottom: 2px;
}

.booking-edit-note-row > td {
    padding-top: 2px;
}

.booking-edit-dialog [id$='editBookingTagInput'].ui-autocomplete .ui-autocomplete-multiple-container {
    min-height: 28px;
    padding: 2px 4px;
}

.booking-edit-dialog [id$='editBookingTagInput_input'] {
    width: 100%;
    line-height: 20px;
    padding: 1px 3px;
}

.booking-edit-dialog [id$='editBookingNoteInput'] {
    width: 100%;
    height: 28px;
    padding: 2px 4px;
}

.booking-edit-datetime tbody tr td {
    padding: 0;
}

.booking-edit-datetime .ui-timepicker-input,
.booking-edit-timepicker .ui-timepicker-input {
    width: 66px;
}

.booking-edit-datetime .ui-timepicker-trigger {
    margin-left: 4px;
}

.booking-edit-transfer-label {
    font-weight: 600;
    color: #444444;
    white-space: nowrap;
}

.booking-edit-transfer-row > td {
    background: #f5f5f5;
    border-top: 1px solid #d7d7d7;
    border-bottom: 1px solid #d7d7d7;
    padding: 2px 5px;
}

.booking-edit-transfer-row > td:first-child {
    border-left: 1px solid #d7d7d7;
}

.booking-edit-transfer-row > td:last-child {
    border-right: 1px solid #d7d7d7;
}

.booking-edit-warning {
    display: block;
    margin-top: 4px;
    padding: 4px 6px;
    background: #fafafa;
    border-left: 4px solid #a3a3a3;
    width: 100%;
    box-sizing: border-box;
    color: #000000;
}

.booking-edit-warning-wide {
    margin-top: 2px;
}

.booking-transfered-text {
    display: block;
    background: #EEF3DB;
    padding: 2px 5px;
    margin-top: 2px;
    width: 100%;
    box-sizing: border-box;
    color: #000000;
}


.booking-edit-warning-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.booking-edit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.booking-edit-actions-left,
.booking-edit-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-edit-dialog .ui-inputfield,
.booking-edit-dialog .ui-selectonemenu,
.booking-edit-dialog .ui-button-text {
    line-height: 1.1;
}

.booking-action-button.ui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 24px;
    height: 28px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 0;
}

.booking-action-button.ui-button:first-child {
    margin-left: 0;
}

body .ui-datatable .ui-datatable-data > tr > td:last-child {
    text-align: center;
}

body .ui-datatable .ui-datatable-data > tr > td,
body .ui-datatable .ui-datatable-data > tr > td > * {
    font-size: 1.08em;
    line-height: 1.1;
}

body .ui-datatable .ui-datatable-data > tr > td {
    padding: 3px 6px;
}

body .bookings-table .ui-rowgroup-header > td {
    background: #333333 !important;
    color: #ffffff !important;
    font-weight: 700;
    border-color: #333333 !important;
}

body .transfer-group-header > td {
    background: #333333 !important;
    color: #ffffff !important;
    font-weight: 700;
    border-color: #333333 !important;
}

body [id$='transferTable'] .ui-rowgroup-header,
body [id$='transferTable'] .ui-rowgroup-header > td,
body [id$='transferTable'] .ui-rowgroup-header > th {
    display: none !important;
}

body .transfer-group-summary-row > td {
    background: #333333 !important;
    color: #ffffff !important;
    font-weight: 700;
    border-color: #333333 !important;
    padding: 10px 12px;
}

body .transfer-group-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body .transfer-group-amount {
    font-variant-numeric: tabular-nums;
}

body [id$='transferTable'] td.transfer-amount-cell {
    text-align: right;
}

body [id$='transferTable'] th.transfer-note-cell {
    text-align: left;
}

body [id$='transferTable'] .ui-datatable-data > tr > td.transfer-note-cell {
    text-align: left !important;
}

body [id$='transferTable'] .transfer-note-text {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

body [id$='bookingTagsTable'] .booking-tag-name-column {
    width: 140px;
    min-width: 120px;
    max-width: 200px;
    white-space: nowrap;
    text-align: center;
}

body [id$='bookingTagsTable'] .booking-tag-name-column .tag {
    display: inline-block;
    float: none;
    text-align: center;
    white-space: nowrap;
}
body [id$='bookingTagsTable'] .ui-datatable-data > tr > td.booking-tag-name-column {
    text-align: center;
}

body [id$='bookingTagsTable'] .booking-tag-actions-column {
    text-align: center;
}

body [id$='bookingTagsTable'] .booking-tag-actions-column .ui-panelgrid {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

body [id$='bookingTagsTable'] .booking-tag-actions-column .ui-panelgrid td {
    text-align: center;
}

body [id$='bookingTagsTable'] .booking-tag-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

body .booking-tags-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 6px 0 14px;
    font-style: italic;
    color: #5f5f5f;
}

body .booking-tags-meta-total {
    font-weight: 600;
    color: #3a3a3a;
}

body .booking-tags-meta-unused {
    color: #6c6c6c;
}

body .booking-tags-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0 18px;
}

body .booking-tags-actions .ui-button.ui-state-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
body .advanced-search-fieldset .ui-fieldset-legend {
    padding: 4px 8px;
    font-size: 1.08em;
    line-height: 1.1;
    background: #666666 !important;
    border-color: #5a5a5a !important;
    color: #f4f4f4 !important;
    background-image: none !important;
}

body .advanced-search-fieldset .ui-fieldset-legend-text,
body .advanced-search-fieldset .ui-fieldset-legend .ui-fieldset-toggler {
    color: #f4f4f4 !important;
}

body .advanced-search-fieldset .ui-fieldset-legend:hover {
    background: #7a7a7a !important;
    border-color: #6b6b6b !important;
    color: #ffffff !important;
}

body .advanced-search-grid td:first-child {
    width: 120px;
    font-size: 1.08em;
    line-height: 1.2;
}

body .advanced-search-select {
    width: 340px;
}

body .advanced-search-select .ui-selectcheckboxmenu-label {
    min-height: 32px;
    display: flex;
    align-items: center;
}

body .advanced-search-select .ui-selectcheckboxmenu-multiple-container {
    min-height: 36px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 2px 6px;
}

body .advanced-search-note-input {
    width: 340px;
}

body .advanced-search-amounts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body .advanced-search-amounts .ui-inputfield {
    width: 130px;
}

body .advanced-search-amount-label {
    font-weight: bold;
}

body [id$='bookingTableCommandsId'] {
    font-size: 1.08em;
}

body [id$='bookingTableCommandsId'] .ui-inputfield,
body [id$='bookingTableCommandsId'] .ui-selectonemenu-label,
body [id$='bookingTableCommandsId'] .ui-selectcheckboxmenu-label,
body [id$='bookingTableCommandsId'] .ui-button-text {
    font-size: 1.08em;
    line-height: 1.2;
}

body [id$='bookingTableCommandsId'] .ui-button + .ui-button {
    margin-left: 8px;
}

body [id$='searchPatternInputId'] {
    margin-right: 30px;
}

body [id$='bookingTableCommandsId'] .booking-show-label {
    margin-left: 90px;
}

body [id$='bookingTableCommandsId'] .ui-selectcheckboxmenu-multiple-container {
    background: #ffffff;
    border-color: #bfbfbf;
    font-size: 1.08em;
}

body [id$='bookingTableCommandsId'] .ui-selectcheckboxmenu-multiple-container .ui-selectcheckboxmenu-token {
    background: #4b4b4b !important;
    border: 1px solid #3a3a3a !important;
    color: #f4f4f4 !important;
    border-radius: 3px;
    padding: 2px 5px;
}

body [id$='bookingTableCommandsId'] .ui-selectcheckboxmenu-multiple-container .ui-selectcheckboxmenu-token-label,
body [id$='bookingTableCommandsId'] .ui-selectcheckboxmenu-multiple-container .ui-selectcheckboxmenu-token-icon {
    color: #f4f4f4 !important;
}

body [id$='bookingPanelGridId'] .ui-panelgrid-header {
    padding: 10px 10px !important;
    font-size: 1.2em;
    line-height: 1.2;
    text-align: center;
    font-weight: bold;
}

body [id$='bookingPanelGridId'] .ui-panelgrid-header > tr > th,
body [id$='bookingPanelGridId'] .ui-panelgrid-header > tr > td,
body [id$='bookingPanelGridId'] .ui-panelgrid-header .ui-panelgrid-cell {
    padding: 10px 10px !important;
    height: auto;
    font-size: 1.2em;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
}

body [id$='bookingPanelGridId'] {
    border-collapse: separate !important;
    border-spacing: 0 0 !important;
}

body [id$='bookingPanelGridId'] .ui-panelgrid-cell {
    padding: 15px 10px;
}

body [id$='bookingPanelGridId'] .ui-outputlabel {
    font-size: 1.08em !important;
    line-height: 1.2;
    display: inline-block;
    margin-bottom: 6px;
}

body [id$='bookingPanelGridId'] .ui-inputfield,
body [id$='bookingPanelGridId'] .ui-selectonebutton .ui-button-text,
body [id$='bookingPanelGridId'] .ui-button-text {
    font-size: 1.08em !important;
    line-height: 1.2;
}

body [id$='bookingPanelGridId'] .ui-selectonebutton .ui-button {
    border-radius: 0 !important;
}

body [id$='bookingPanelGridId'] .ui-selectonebutton .ui-button.ui-state-active {
    background: #2f80ed !important;
    border-color: #2f80ed !important;
    color: #ffffff !important;
}

body [id$='bookingSubAccountInput'].ui-selectonemenu,
body [id$='bookingDestinationSubAccountInput'].ui-selectonemenu {
    width: 120px !important;
    height: 34px;
}

body [id$='bookingSubAccountInput'] .ui-selectonemenu-label,
body [id$='bookingDestinationSubAccountInput'] .ui-selectonemenu-label,
body [id$='bookingSubAccountInput_panel'] .ui-selectonemenu-list-item,
body [id$='bookingDestinationSubAccountInput_panel'] .ui-selectonemenu-list-item {
    font-size: 1.08em !important;
    line-height: 1.2;
}

body [id$='bookingSubAccountGroup'],
body [id$='bookingDestinationSubAccountGroup'] {
    display: inline-block;
    vertical-align: top;
}

body [id$='bookingSubAccountGroup'] {
    margin-right: 8px;
}

body [id$='bookingPanelGridId'] .booking-col-left {
    width: 240px;
}

body [id$='bookingPanelGridId'] .booking-col-right {
    width: 100%;
}

body [id$='bookingPanelGridId'] .booking-type-column {
    padding-left: 20px;
}

body [id$='bookingAmountInput'] {
    width: 90px;
    height: 34px;
    line-height: 34px;
    padding: 0 6px;
    box-sizing: border-box;
}

body [id$='bookingSubAccountInput'] .ui-selectonemenu-label,
body [id$='bookingDestinationSubAccountInput'] .ui-selectonemenu-label {
    height: 34px;
    line-height: 34px;
    padding: 0 28px 0 8px;
}

body [id$='bookingSubAccountInput'] .ui-selectonemenu-trigger,
body [id$='bookingDestinationSubAccountInput'] .ui-selectonemenu-trigger {
    height: 34px;
}

body [id$='bookingPanelGridId'] .booking-amount-subaccount-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    column-gap: 10px;
    row-gap: 8px;
}

body [id$='bookingPanelGridId'] .booking-transfer-layout {
    column-gap: 0;
}

body [id$='bookingPanelGridId'] .booking-standard-layout {
    column-gap: 5px;
}

body [id$='bookingPanelGridId'] .booking-amount-block,
body [id$='bookingPanelGridId'] .booking-subaccount-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body [id$='bookingPanelGridId'] .booking-amount-block {
    flex: 0 0 110px;
}

body [id$='bookingPanelGridId'] .booking-subaccount-block {
    flex: 0 0 145px;
}

body [id$='bookingPanelGridId'] .booking-subaccount-block .ui-outputlabel {
    max-width: 145px;
    white-space: normal;
}

body [id$='bookingSubAccountInput'],
body [id$='bookingDestinationSubAccountInput'] {
    width: 145px;
    min-width: 145px !important;
}

body [id$='bookingPanelGridId'] .booking-transfer-layout .booking-amount-block {
    flex: 0 0 85px;
}

body [id$='bookingPanelGridId'] .booking-transfer-layout .booking-subaccount-block {
    flex: 0 0 130px;
}

body [id$='bookingPanelGridId'] .booking-transfer-layout .booking-subaccount-block .ui-outputlabel {
    max-width: 130px;
}

body [id$='bookingPanelGridId'] .booking-transfer-layout [id$='bookingSubAccountInput'],
body [id$='bookingPanelGridId'] .booking-transfer-layout [id$='bookingDestinationSubAccountInput'] {
    width: 130px;
    min-width: 130px !important;
}

body [id$='bookingPanelGridId'] .calendarDateInputField input {
    width: 88px !important;
}

body [id$='bookingPanelGridId'] [id$='bookingTimeInput'] .ui-timepicker-input,
body [id$='bookingPanelGridId'] [id$='bookingTimeInput'] input.ui-inputfield {
    width: 86px !important;
}

body [id$='bookingPanelGridId'] .booking-amount-input-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

body [id$='bookingTagInput'].ui-autocomplete {
    width: 520px;
    display: inline-block;
    vertical-align: top;
}

body [id$='bookingTagInput'].ui-autocomplete .ui-autocomplete-multiple-container {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 34px);
    min-height: 32px;
    padding: 3px 6px;
    box-sizing: border-box;
}

body [id$='bookingTagInput'].ui-autocomplete .ui-autocomplete-dropdown {
    display: inline-block;
    vertical-align: top;
    width: 34px;
    height: 32px;
    line-height: 30px;
}

body [id$='bookingTagInput_input'] {
    width: 140px;
    line-height: 22px;
    padding: 2px 4px;
}

body [id$='bookingTagInput'].ui-autocomplete .ui-autocomplete-multiple-container .ui-autocomplete-token,
body .booking-edit-tags .ui-autocomplete-multiple-container .ui-autocomplete-token {
    background: #ffffff !important;
    border: 1px solid #0099ff !important;
    color: #222222 !important;
    border-radius: 3px;
    padding: 2px 8px;
    box-shadow: none;
}

body [id$='bookingTagInput'].ui-autocomplete .ui-autocomplete-multiple-container .ui-autocomplete-token .ui-autocomplete-token-label,
body .booking-edit-tags .ui-autocomplete-multiple-container .ui-autocomplete-token .ui-autocomplete-token-label {
    color: #222222 !important;
}

body [id$='bookingTagInput'].ui-autocomplete .ui-autocomplete-multiple-container .ui-autocomplete-token .ui-autocomplete-token-icon,
body .booking-edit-tags .ui-autocomplete-multiple-container .ui-autocomplete-token .ui-autocomplete-token-icon {
    color: #1a4aa6 !important;
}

body [id$='bookingNoteInput'] {
    width: 520px;
    height: 32px;
    padding: 4px 6px;
}

body [id$='bookingPanelGridId'] .ui-selectonebutton {
    margin-bottom: 4px;
}

body [id$='standingOrderPanelGridId'] {
    border-collapse: separate;
    border-spacing: 0 4px;
}

body [id$='standingOrderPanelGridId'] .ui-panelgrid-cell {
    padding: 4px 8px;
}

body [id$='standingOrderDynamicGridId'],
body [id$='editStandingOrderDynamicGridId'] {
    margin-top: 4px;
    border-collapse: separate;
    border-spacing: 0 4px;
}

body [id$='standingOrderDynamicGridId'] .ui-panelgrid-cell,
body [id$='editStandingOrderDynamicGridId'] .ui-panelgrid-cell {
    padding: 4px 8px;
}

body [id$='standingOrderSavingsPanelGridId'],
body [id$='editStandingOrderSavingsPanelGridId'] {
    border-collapse: separate;
    border-spacing: 0 4px;
}

body [id$='standingOrderSavingsPanelGridId'] .ui-panelgrid-cell,
body [id$='editStandingOrderSavingsPanelGridId'] .ui-panelgrid-cell {
    padding: 4px 8px;
}

body [id$='standingOrderPanelGridId'] .ui-outputlabel,
body [id$='standingOrderSavingsPanelGridId'] .ui-outputlabel,
body [id$='editStandingOrderPanel'] .ui-outputlabel,
body [id$='editStandingOrderSavingsPanelGridId'] .ui-outputlabel {
    font-size: 1.08em !important;
    line-height: 1.2;
    display: inline-block;
    margin-bottom: 4px;
}

body [id$='standingOrderPanelGridId'] .ui-inputfield,
body [id$='standingOrderPanelGridId'] .ui-selectonebutton .ui-button-text,
body [id$='standingOrderPanelGridId'] .ui-button-text,
body [id$='standingOrderSavingsPanelGridId'] .ui-inputfield,
body [id$='standingOrderSavingsPanelGridId'] .ui-selectonebutton .ui-button-text,
body [id$='standingOrderSavingsPanelGridId'] .ui-button-text,
body [id$='editStandingOrderPanel'] .ui-inputfield,
body [id$='editStandingOrderPanel'] .ui-selectonebutton .ui-button-text,
body [id$='editStandingOrderPanel'] .ui-button-text,
body [id$='editStandingOrderSavingsPanelGridId'] .ui-inputfield,
body [id$='editStandingOrderSavingsPanelGridId'] .ui-selectonebutton .ui-button-text,
body [id$='editStandingOrderSavingsPanelGridId'] .ui-button-text {
    font-size: 1.08em !important;
    line-height: 1.2;
}

body [id$='standingOrderPanelGridId'] .ui-selectonebutton .ui-button,
body [id$='standingOrderSavingsPanelGridId'] .ui-selectonebutton .ui-button,
body [id$='editStandingOrderPanel'] .ui-selectonebutton .ui-button,
body [id$='editStandingOrderSavingsPanelGridId'] .ui-selectonebutton .ui-button {
    border-radius: 0 !important;
}

body [id$='standingOrderPanelGridId'] .ui-selectonebutton .ui-button.ui-state-active,
body [id$='standingOrderSavingsPanelGridId'] .ui-selectonebutton .ui-button.ui-state-active,
body [id$='editStandingOrderPanel'] .ui-selectonebutton .ui-button.ui-state-active,
body [id$='editStandingOrderSavingsPanelGridId'] .ui-selectonebutton .ui-button.ui-state-active {
    background: #2f80ed !important;
    border-color: #2f80ed !important;
    color: #ffffff !important;
}

body [id$='standingOrderPanelGridId'] .ui-selectonebutton,
body [id$='standingOrderSavingsPanelGridId'] .ui-selectonebutton,
body [id$='editStandingOrderPanel'] .ui-selectonebutton,
body [id$='editStandingOrderSavingsPanelGridId'] .ui-selectonebutton {
    margin-bottom: 4px;
}

body .booking-kind-selection.ui-selectonebutton .ui-button {
    border-radius: 0 !important;
}

body .booking-kind-selection.ui-selectonebutton .ui-button.ui-state-active {
    background: #2f80ed !important;
    border-color: #2f80ed !important;
    color: #ffffff !important;
}

body .booking-kind-selection.ui-selectonebutton .ui-button-text {
    font-size: 1.08em !important;
    line-height: 1.2;
}

body .standingorder-form {
    margin-top: 6px;
}

body .standingorder-columns {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    flex-wrap: wrap;
}

body .standingorder-col {
    flex: 1 1 320px;
    min-width: 280px;
}

body .standingorder-savings-col {
    flex: 0 1 360px;
    max-width: 380px;
    padding-left: 18px;
    border-left: 2px solid #e2e2e2;
}

body .standingorder-main-col {
    flex: 1 1 520px;
}

body .standingorder-savings-card {
    background: #f6f6f6;
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    padding: 10px 12px 12px;
}

body .standingorder-savings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

body .standingorder-savings-title {
    font-weight: 700;
    color: #333333;
}

body .standingorder-savings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #444444;
    font-size: 0.9em;
}

body .standingorder-toggle-label {
    font-weight: 600;
    color: #555555;
}

body .standingorder-savings-summary {
    background: #ffffff;
    border: 1px dashed #d6d6d6;
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 10px;
}

body .standingorder-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body .standingorder-summary-text {
    color: #444444;
    font-size: 0.95em;
}

body .standingorder-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.82em;
    font-weight: 600;
    color: #2c3e50;
    background: #e9eef4;
    white-space: nowrap;
}

body .standingorder-summary-badge.badge-success {
    background: #e8f5e9;
    color: #1b7f3b;
}

body .standingorder-summary-badge.badge-warn {
    background: #fff3cd;
    color: #8a6d3b;
}

body .standingorder-summary-badge.badge-danger {
    background: #fdecea;
    color: #a12828;
}

@media (max-width: 920px) {
    body .standingorder-columns {
        flex-direction: column;
    }
    body .standingorder-savings-col {
        border-left: none;
        padding-left: 0;
        max-width: none;
    }
}

body .standingorder-savings-kpi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eef2f6;
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 10px;
}

body .standingorder-kpi-label {
    color: #3d4a5a;
    font-weight: 600;
}

body .standingorder-kpi-value {
    background: #ffffff;
    border: 1px solid #d2d2d2;
    border-radius: 12px;
    padding: 2px 8px;
    font-weight: 700;
    color: #1f2a36;
}

body .standingorder-kpi-muted {
    color: #7b7b7b;
    font-weight: 600;
}

body .standingorder-savings-table .ui-datatable-data > tr[class*='savings-tone-'] > td:first-child {
    border-left: 10px solid var(--ring-color, #d6d6d6);
}

body .standingorder-savings-table .savings-row-donut {
    display: flex;
    align-items: center;
    justify-content: center;
}

body .standingorder-savings-table .savings-donut-mini {
    width: 16px;
    height: 16px;
}

body .standingorder-savings-table .savings-donut-mini::after {
    inset: 3px;
}

body .standingorder-savings-table .standingorder-group-header > td {
    background: #f1f1f1;
    border-top: 1px solid #d6d6d6;
    border-bottom: 1px solid #d6d6d6;
    padding: 6px 8px;
}

body .standingorder-group-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

body .standingorder-group-title {
    font-weight: 700;
    color: #3c3c3c;
}

body .standingorder-savings-table .standingorder-group-header > td {
    background: #2f2f2f !important;
    color: #ffffff !important;
}

body .standingorder-savings-table .standingorder-group-header.ui-state-hover > td,
body .standingorder-savings-table .standingorder-group-header:hover > td {
    background: #2f2f2f !important;
    color: #ffffff !important;
}

body .standingorder-savings-table .standingorder-group-title {
    color: #ffffff;
}

body .standingorder-savings-table .standingorder-group-summary,
body .standingorder-savings-table .standingorder-group-header {
    color: #ffffff;
}

body .standingorder-savings-table.tablehover tbody tr:hover td {
    background-color: inherit !important;
}

body .standingorder-savings-table .savings-goal-reached-row > td {
    color: #8a8a8a;
    background: #f5f5f5;
}

body .standingorder-savings-table .savings-goal-reached-row .savings-donut-reached-icon {
    color: #c98900;
    font-size: 1.1em;
}

body .standingorder-savings-table .ui-datatable-data > tr.ui-state-highlight,
body .standingorder-savings-table .ui-datatable-data > tr.ui-state-hover,
body .standingorder-savings-table .ui-datatable-data > tr.ui-state-active {
    background: inherit !important;
    box-shadow: none !important;
}

body .standingorder-savings-table .ui-datatable-data > tr > td.ui-state-hover,
body .standingorder-savings-table .ui-datatable-data > tr > td.ui-state-active {
    background: inherit !important;
}

body .standingorder-savings-table .ui-datatable-data > tr > td:focus,
body .standingorder-savings-table .ui-datatable-data > tr > td:focus-visible {
    outline: none !important;
}

body .savings-rate-icons {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

body .savings-rate-icons i {
    font-size: 0.95em;
    vertical-align: middle;
}

body .savings-celebrate {
    color: #c98900;
}

body .savings-warning {
    color: #b00020;
}

body .standingorder-savings-table.tablehover tbody tr:hover td,
body .standingorder-savings-cards.tablehover tbody tr:hover td {
    background-color: inherit !important;
}

body .standingorder-savings-table .savings-goal-reached-row > td,
body .standingorder-savings-cards .savings-goal-reached-row > td {
    color: #8a8a8a;
    background: #f5f5f5;
}

body .standingorder-savings-table .savings-goal-reached-row .savings-donut-reached-icon,
body .standingorder-savings-cards .savings-goal-reached-row .savings-donut-reached-icon {
    color: #c98900;
    font-size: 1.1em;
}

body .standingorder-savings-table .ui-datatable-data > tr.ui-state-highlight,
body .standingorder-savings-table .ui-datatable-data > tr.ui-state-hover,
body .standingorder-savings-table .ui-datatable-data > tr.ui-state-active,
body .standingorder-savings-cards .ui-datatable-data > tr.ui-state-highlight,
body .standingorder-savings-cards .ui-datatable-data > tr.ui-state-hover,
body .standingorder-savings-cards .ui-datatable-data > tr.ui-state-active {
    background: inherit !important;
    box-shadow: none !important;
}

body .standingorder-savings-table .ui-datatable-data > tr > td.ui-state-hover,
body .standingorder-savings-table .ui-datatable-data > tr > td.ui-state-active,
body .standingorder-savings-cards .ui-datatable-data > tr > td.ui-state-hover,
body .standingorder-savings-cards .ui-datatable-data > tr > td.ui-state-active {
    background: inherit !important;
}

body .standingorder-savings-table .ui-datatable-data > tr > td:focus,
body .standingorder-savings-table .ui-datatable-data > tr > td:focus-visible,
body .standingorder-savings-cards .ui-datatable-data > tr > td:focus,
body .standingorder-savings-cards .ui-datatable-data > tr > td:focus-visible {
    outline: none !important;
}

body .savings-tab-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

body .savings-tab-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 auto;
}

body .savings-summary-card {
    background: #f6f6f6;
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 190px;
}

body .savings-summary-label {
    color: #555555;
    font-weight: 600;
    font-size: 0.85em;
}

body .savings-summary-value {
    color: #2f2f2f;
    font-size: 1.15em;
    font-weight: 700;
    margin-top: 8px;
}

body .savings-tab-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

body .standingorder-savings-cards .ui-datatable-data > tr > td {
    border: none;
    padding: 6px 0;
    text-align: left !important;
}

body .standingorder-savings-cards .ui-datatable-data > tr > td:last-child {
    text-align: left !important;
}

body .savings-cards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body .savings-cards-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body .savings-cards-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9em;
    color: #ffffff;
}

body .savings-goal-card,
body .standingorder-savings-cards .savings-goal-card {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) minmax(110px, 160px);
    gap: 12px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-left: 16px solid var(--ring-color, #d6d6d6);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    min-height: 84px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

body .savings-goal-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body .savings-goal-card-select {
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .savings-goal-card-select-placeholder {
    width: 18px;
    height: 18px;
}

body .savings-goal-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
}

body .savings-goal-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    text-align: left;
}

body .savings-goal-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 700;
    color: #2f2f2f;
    flex: 1 1 0;
    min-width: 0;
}

body .savings-goal-card-title span,
body .savings-goal-card-title .savings-goal-card-badges {
    flex: 1 1 0;
    min-width: 0;
}

body .savings-goal-card-title span {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body .savings-goal-card-note {
    color: #666666;
    font-size: 0.9em;
}

body .savings-goal-card-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

body .savings-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    color: #2c3e50;
    background: #e9eef4;
    white-space: nowrap;
}

body .savings-status-badge.badge-success {
    background: #e8f5e9;
    color: #1b7f3b;
}

body .savings-status-badge.badge-warn {
    background: #fff3cd;
    color: #8a6d3b;
}

body .savings-status-badge.badge-danger {
    background: #fdecea;
    color: #a12828;
}

body .savings-goal-card-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

body .savings-progress-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #4a4a4a;
    font-size: 0.85em;
}

body .savings-progress-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: baseline;
}

body .savings-progress-target {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

body .savings-progress-target-value {
    white-space: nowrap;
}

body .savings-progress-label {
    color: #6a6a6a;
    font-weight: 600;
}

body .savings-progress-percent {
    font-weight: 700;
    color: #2f2f2f;
}

body .savings-progress-muted {
    color: #7b7b7b;
}

body .savings-progress-bar {
    position: relative;
    height: 8px;
    background: #e5e8ec;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

body .savings-progress-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: var(--ring-color, #2f80ed);
}

body .savings-goal-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 130px;
    justify-self: end;
}

body .savings-goal-card-interval {
    color: #6a6a6a;
    font-size: 0.85em;
}

body .savings-goal-card-rate {
    font-weight: 700;
    color: #2f2f2f;
}

body .savings-goal-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    width: 100%;
    justify-content: flex-end;
}

body .savings-goal-action-button.ui-button {
    width: 34px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body .savings-goal-action-button.ui-button .ui-button-icon-left,
body .savings-goal-action-button.ui-button .ui-button-icon-right {
    margin: 0 !important;
    font-size: 1.2em;
    line-height: 1;
    position: static !important;
}

body .savings-goal-action-button.ui-button .ui-button-text {
    display: none;
}

body .standingorder-savings-cards .standingorder-group-header > td {
    padding: 4px 8px;
    background: #2f2f2f;
    border-bottom: 1px solid #d6d6d6;
    color: #ffffff;
}

body .standingorder-savings-cards .standingorder-group-title {
    font-size: 0.92em;
}

body .standingorder-savings-cards .standingorder-group-summary {
    gap: 6px;
}

body .standingorder-savings-cards .standingorder-group-summary,
body .standingorder-savings-cards .standingorder-group-title {
    color: #ffffff;
}


@media (max-width: 920px) {
    body .savings-goal-card {
        grid-template-columns: 1fr;
        align-items: start;
    }
    body .savings-goal-card-right {
        align-items: flex-start;
    }
}


body .standingorder-savings-cards .savings-goal-reached-row .savings-goal-card {
    background: #f5f5f5;
    color: #8a8a8a;
}

body .standingorder-savings-cards .savings-goal-reached-row .savings-goal-card-rate,
body .standingorder-savings-cards .savings-goal-reached-row .savings-progress-percent {
    color: #6f6f6f;
}

body [id$='bookingAmountInput'] + span {
    margin-left: 6px !important;
}

body [id$='addBookingFieldSet'] {
    margin-top: 6px;
    margin-bottom: 16px;
}

body [id$='bookingPanelGridId'] .ui-panelgrid-footer,
body [id$='bookingPanelGridId'] .ui-panelgrid-footer > tr > td,
body [id$='bookingPanelGridId'] .ui-panelgrid-footer .ui-panelgrid-cell {
    background: transparent !important;
    border: none !important;
    padding: 8px 10px 0 10px;
}

body [id$='bookingButtonGroup'] {
    display: inline-block;
}

body #addSubAccountPanelGridId .ui-outputlabel {
    font-size: 1.05em;
    line-height: 1.2;
}

body .ui-datatable thead th {
    padding: 6px 8px;
    font-size: 0.95em;
}

body .bookings-table {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
}

body .booking-search-active {
    border-radius: 16px;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.35), 0 0 18px rgba(47, 128, 237, 0.55);
}

body .booking-search-fulltext {
}

body .booking-search-fulltext.ui-inputfield,
body .booking-search-fulltext .ui-inputfield,
body .booking-search-fulltext.ui-autocomplete-input,
body .booking-search-fulltext .ui-autocomplete-input {
    box-shadow: none;
}

body .booking-search-fulltext.ui-inputfield:not(:placeholder-shown),
body .booking-search-fulltext .ui-inputfield:not(:placeholder-shown),
body .booking-search-fulltext.ui-autocomplete-input:not(:placeholder-shown),
body .booking-search-fulltext .ui-autocomplete-input:not(:placeholder-shown) {
    border-color: #2f80ed !important;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.35), 0 0 10px rgba(47, 128, 237, 0.45);
}

body .advanced-search-container {
    position: relative;
    margin-top: 8px;
    margin-bottom: 18px;
}

body .advanced-search-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
}

body .advanced-search-glow.advanced-search-active {
    border-radius: 12px;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.3), 0 0 16px rgba(47, 128, 237, 0.5);
}

body .bookings-table .ui-datatable-header,
body .bookings-table .ui-datatable-footer {
    padding: 0;
    background: transparent !important;
    border: none !important;
}

body .booking-sum-bar {
    font-size: 1.08em;
    padding: 6px 10px;
    background: #333333 !important;
    color: #ffffff !important;
    border: 1px solid #bdbdbd;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

body .booking-sum-bar-top {
    border-bottom: 0;
}

body .booking-sum-bar-bottom {
    border-top: 0;
}

body .bookings-table > .ui-paginator-top {
    order: 1;
}

body .bookings-table > .ui-datatable-header {
    order: 2;
}

body .bookings-table > .ui-datatable-tablewrapper {
    order: 3;
}

body .bookings-table > .ui-datatable-footer {
    order: 4;
}

body .bookings-table > .ui-paginator-bottom {
    order: 5;
}

body .bookings-table .ui-paginator {
    padding: 4px 8px;
}

body .bookings-table .ui-paginator .ui-paginator-page,
body .bookings-table .ui-paginator .ui-paginator-next,
body .bookings-table .ui-paginator .ui-paginator-prev,
body .bookings-table .ui-paginator .ui-paginator-first,
body .bookings-table .ui-paginator .ui-paginator-last {
    min-width: 26px;
    height: 24px;
    line-height: 22px;
    margin: 0 2px;
    color: #f4f4f4 !important;
    background: #4b4b4b !important;
    border-color: #3a3a3a !important;
}

body .bookings-table .ui-paginator .ui-paginator-page.ui-state-active {
    background: #808080 !important;
    color: #ffffff !important;
}

body .bookings-table .ui-paginator .ui-paginator-page:hover,
body .bookings-table .ui-paginator .ui-paginator-page.ui-state-hover,
body .bookings-table .ui-paginator .ui-paginator-next:hover,
body .bookings-table .ui-paginator .ui-paginator-next.ui-state-hover,
body .bookings-table .ui-paginator .ui-paginator-prev:hover,
body .bookings-table .ui-paginator .ui-paginator-prev.ui-state-hover,
body .bookings-table .ui-paginator .ui-paginator-first:hover,
body .bookings-table .ui-paginator .ui-paginator-first.ui-state-hover,
body .bookings-table .ui-paginator .ui-paginator-last:hover,
body .bookings-table .ui-paginator .ui-paginator-last.ui-state-hover {
    background: #b3b3b3 !important;
    border-color: #a3a3a3 !important;
    color: #ffffff !important;
}

.booking-action-button.ui-button .pi {
    color: #f4f4f4;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.booking-action-button.ui-button .ui-button-text {
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.booking-transfer-icon {
    font-size: 18px;
    color: #666666;
    margin-right: 5px;
}

body .booking-tags-cell {
    padding-left: 0;
    padding-right: 0;
}

body .booking-tags-cell .datalist-noborder,
body .booking-tags-cell .ui-datalist {
    display: flex;
    justify-content: center;
}

body .booking-tags-cell .ui-datalist-content,
body .booking-tags-cell .ui-datalist-data {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}
body .ui-selectcheckboxmenu-panel ::-webkit-scrollbar,
body .ui-selectonemenu-panel ::-webkit-scrollbar,
body .ui-dropdown-panel ::-webkit-scrollbar,
body .ui-autocomplete-panel ::-webkit-scrollbar {
    width: 8px;
    background-color: #2c2c2c;
}

body .ui-selectcheckboxmenu-panel ::-webkit-scrollbar-thumb,
body .ui-selectonemenu-panel ::-webkit-scrollbar-thumb,
body .ui-dropdown-panel ::-webkit-scrollbar-thumb,
body .ui-autocomplete-panel ::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    border-radius: 4px;
}

body .ui-selectcheckboxmenu-panel ::-webkit-scrollbar-thumb:hover,
body .ui-selectonemenu-panel ::-webkit-scrollbar-thumb:hover,
body .ui-dropdown-panel ::-webkit-scrollbar-thumb:hover,
body .ui-autocomplete-panel ::-webkit-scrollbar-thumb:hover {
    background-color: #f0f0f0;
}

body .ui-autocomplete-panel {
    background: #2c2c2c !important;
    border-color: #3d3d3d !important;
}

body .tag-suggestion-panel {
    background: #f7f8fa !important;
    border-color: #d6dbe3 !important;
    box-shadow: 0 10px 22px rgba(32, 41, 54, 0.12);
    color: #1f2a37;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
}

body .tag-suggestion-panel .ui-autocomplete-table {
    background: transparent !important;
}

body .tag-suggestion-panel .ui-autocomplete-item {
    border-bottom: 1px solid #e2e7ee;
}

body .tag-suggestion-panel .ui-autocomplete-item:last-child {
    border-bottom: none;
}

body .tag-suggestion-panel .ui-autocomplete-item.ui-state-hover,
body .tag-suggestion-panel .ui-autocomplete-item.ui-state-highlight {
    background: #eaf3ff !important;
}

body .tag-suggestion-panel .tag-suggestion-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 10px;
    font-size: 1.05em;
    line-height: 1.35;
    color: #1f2a37;
}

body .tag-suggestion-panel .tag-suggestion-chip {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 3px 10px;
    border: 1px solid #0099ff;
    border-radius: 3px;
    background: #ffffff;
    color: #222222;
}

body .tag-suggestion-panel .tag-suggestion-name {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
    color: #1f2a37;
}

body .tag-suggestion-panel .tag-suggestion-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-width: 2.9rem;
    height: 22px;
    padding: 0 8px;
    font-size: 0.9em;
    font-weight: 700;
    color: #12387a;
    background: #d3e4ff;
    border: 1px solid #5f8fe6;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 0 0 1px rgba(18, 56, 122, 0.12);
}

body .tag-suggestion-panel .tag-suggestion-row.tag-suggestion-new {
    padding: 6px 10px;
}

body .tag-suggestion-panel .tag-suggestion-row.tag-suggestion-new .tag-suggestion-new-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2f80ed;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    flex: 0 0 auto;
}

body .tag-suggestion-panel .tag-suggestion-row.tag-suggestion-new .tag-suggestion-new-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95em;
    color: #1f2a37;
}

body .tag-suggestion-panel .tag-suggestion-row.tag-suggestion-new .tag-suggestion-new-label .tag-suggestion-chip {
    border-color: transparent;
    background: #eef4ff;
    color: #0c4ce4;
    font-weight: 600;
}

body .tag-suggestion-panel .tag-suggestion-row.tag-suggestion-new .tag-suggestion-chip-inline {
    padding: 2px 8px;
    border-radius: 999px;
}

body .tag-suggestion-panel .ui-autocomplete-footer {
    display: block;
    border-top: 1px solid #e2e7ee;
    padding: 6px 10px;
    background: #f1f4f8;
    box-sizing: border-box;
}

body .tag-suggestion-panel .tag-suggestion-footer {
    display: block;
}

body .tag-suggestion-panel .tag-suggestion-footer-text {
    display: block;
    font-size: 0.9em;
    font-style: italic;
    line-height: 1.3;
    color: #5b6675;
}

body .tag-suggestion-panel .ui-autocomplete-query {
    background: #dbe9ff;
    color: #1a4aa6;
    border-radius: 2px;
    padding: 1px 3px;
    font-weight: 600;
}

body .tag-suggestion-panel ::-webkit-scrollbar {
    width: 8px;
    background-color: #f0f3f7;
}

body .tag-suggestion-panel ::-webkit-scrollbar-thumb {
    background-color: #c7d0dd;
    border-radius: 4px;
}

body .tag-suggestion-panel ::-webkit-scrollbar-thumb:hover {
    background-color: #b3bfce;
}
body .booking-sum-bar .sum-line {
    display: block;
    line-height: 1.3;
}

body .booking-sum-bar .sum-line + .sum-line {
    margin-top: 6px;
}

.standingorder-question-icon {
    margin-left: 6px;
    font-size: 0.95em;
    vertical-align: middle;
    color: #6c6c6c;
    cursor: help;
}
.standingorder-question-icon:hover {
    color: #444444;
}
