/* =========================================
   RECALC KPI CARD COLORS (GLOBAL)
========================================= */

/* ================================
   BASE KPI CARD
================================ */

.recalc-kpi-card-success,
.recalc-kpi-card-warning,
.recalc-kpi-card-danger,
.recalc-kpi-card-neutral {
	border-radius: 1rem;
	border: 1px solid var(--bs-border-color);
	transition: all 0.15s ease;
}

/* ================================
   SUCCESS (grün)
================================ */

.recalc-kpi-card-success {
	background: rgba(25, 135, 84, 0.08);
	border-color: rgba(25, 135, 84, 0.15);
}

/* ================================
   WARNING (gelb)
================================ */

.recalc-kpi-card-warning {
	background: rgba(255, 193, 7, 0.10);
	border-color: rgba(255, 193, 7, 0.20);
}

/* ================================
   DANGER (rot)
================================ */

.recalc-kpi-card-danger {
	background: rgba(220, 53, 69, 0.08);
	border-color: rgba(220, 53, 69, 0.18);
}

/* ================================
   NEUTRAL (grau)
================================ */

.recalc-kpi-card-neutral {
	background: rgba(108, 117, 125, 0.08);
	border-color: rgba(108, 117, 125, 0.18);
}

/* ================================
   KPI HEAD LAYOUT
================================ */

.recalc-kpi-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

/* ================================
   KPI ICONS
================================ */

.recalc-kpi-icon {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.recalc-kpi-icon-success {
	background: rgba(25, 135, 84, 0.14);
	color: #198754;
}

.recalc-kpi-icon-warning {
	background: rgba(255, 193, 7, 0.16);
	color: #8a6d00;
}

.recalc-kpi-icon-danger {
	background: rgba(220, 53, 69, 0.14);
	color: #dc3545;
}

.recalc-kpi-icon-neutral {
	background: rgba(33, 37, 41, 0.10);
	color: #212529;
}

.recalc-kpi-icon i {
	font-size: 1.1rem;
	line-height: 1;
}

/* ================================
   BADGES (wie Recalc)
================================ */

.recalc-month-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.recalc-month-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--bs-border-color);
	background: var(--bs-body-bg);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--bs-body-color);
}

.recalc-month-badge-success {
	border-color: rgba(25, 135, 84, 0.2);
	background: rgba(25, 135, 84, 0.08);
	color: #146c43;
}

.recalc-month-badge-warning {
	border-color: rgba(255, 193, 7, 0.28);
	background: rgba(255, 193, 7, 0.1);
	color: #8a6d00;
}

.recalc-month-badge-danger {
	border-color: rgba(220, 53, 69, 0.18);
	background: rgba(220, 53, 69, 0.08);
	color: #b02a37;
}

.recalc-month-badge-neutral {
	background: rgba(33, 37, 41, 0.05);
	border-color: rgba(33, 37, 41, 0.08);
	color: #495057;
}

/* =========================================
   GLOBAL TABLE STYLE (LEGACY UI STYLE)
========================================= */

.ui-table-wrap {
	border: 1px solid var(--bs-border-color);
	border-radius: 1rem;
	overflow: hidden;
	background: var(--bs-body-bg);
	position: relative;
}

.ui-table-wrap::after {
	content: "";
	display: block;
	height: 3px;
	width: 100%;
	background: rgba(255, 193, 7, 0.95);
}

.ui-table {
	margin-bottom: 0 !important;
}

.ui-table thead th {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bs-secondary-color);
	white-space: nowrap;
	border-bottom-width: 1px;
}

.ui-table tbody td {
	vertical-align: middle;
}

.ui-row-success {
	background: rgba(25, 135, 84, 0.025);
}

.ui-row-warning {
	background: rgba(255, 193, 7, 0.045);
}

.ui-row-danger {
	background: rgba(220, 53, 69, 0.03);
}

.ui-cell-title {
	font-weight: 700;
	color: var(--bs-body-color);
	margin-bottom: 0.15rem;
}

.ui-cell-sub {
	font-size: 0.78rem;
	color: var(--bs-secondary-color);
}

.ui-cell-stack {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.ui-cell-label {
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bs-secondary-color);
}

.ui-cell-value {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--bs-body-color);
	white-space: nowrap;
}

.ui-money-main {
	font-weight: 700;
	white-space: nowrap;
}

.ui-money-sub {
	font-size: 0.78rem;
	color: var(--bs-secondary-color);
	white-space: nowrap;
}

.ui-reason-text {
	font-size: 0.86rem;
	color: var(--bs-secondary-color);
	line-height: 1.45;
	max-width: 380px;
}

.ui-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.7rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

/* =========================================
   ADDITIONAL RECALC UI
========================================= */

.recalc-hero-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.recalc-hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 193, 7, 0.24);
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(2px);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--bs-body-color);
}

.recalc-hero-pill strong {
	font-weight: 700;
}

.recalc-info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
	margin-top: 1rem;
}

.recalc-info-item {
	border-radius: 0.85rem;
	padding: 0.9rem 1rem;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(255, 193, 7, 0.18);
}

.recalc-info-item-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.recalc-info-item-text {
	font-size: 0.86rem;
	color: var(--bs-secondary-color);
	line-height: 1.45;
}

.recalc-month-card {
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.recalc-month-header {
	padding: 1rem 1.15rem 0.95rem 1.15rem;
	background: linear-gradient(180deg, rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.65));
	border-bottom: 1px solid var(--bs-border-color);
}

.recalc-month-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem;
}

.recalc-month-marker {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 193, 7, 0.14);
	border: 1px solid rgba(255, 193, 7, 0.24);
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--bs-dark);
	margin-bottom: 0.6rem;
}

/* =========================================
   RECALC TABLE BASE
========================================= */

.recalc-table-wrap,
.recalc-datatable-wrap {
	border: 1px solid rgba(31, 41, 55, 0.10) !important;
	border-radius: 1.15rem !important;
	overflow: hidden !important;
	background: var(--bs-body-bg) !important;
	position: relative;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.03);
}

.recalc-table-wrap::after,
.recalc-datatable-wrap::after {
	display: none !important;
	content: none !important;
}

.recalc-results-table {
	margin-bottom: 0 !important;
}

.recalc-creditor-name {
	font-weight: 700;
	color: var(--bs-body-color);
	margin-bottom: 0.15rem;
}

.recalc-creditor-sub {
	font-size: 0.78rem;
	color: var(--bs-secondary-color);
}

.recalc-period-stack {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.recalc-period-label {
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bs-secondary-color);
}

.recalc-period-value {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--bs-body-color);
	white-space: nowrap;
}

.recalc-reason-text {
	font-size: 0.86rem;
	color: var(--bs-secondary-color);
	line-height: 1.45;
	max-width: 380px;
}

.recalc-action-btn {
	white-space: nowrap;
}

/* =========================================
   LINKS
========================================= */

.recalc-link {
	color: #c8871a;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.recalc-link:hover,
.recalc-link:focus {
	color: #a96d12;
	text-decoration: underline;
	text-decoration-color: rgba(169, 109, 18, 0.35);
}

.recalc-link:active {
	color: #8f5b0f;
}

.recalc-link:visited {
	color: #b37918;
}

/* =========================================
   BUTTONS (RECALC / INSIGHT STYLE)
========================================= */

.btn-recalc-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.6rem 1rem;
	border-radius: 999px !important;
	border: 1px solid rgba(212, 162, 76, 0.28) !important;
	background: #1f2937 !important;
	color: #d4a24c !important;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-recalc-pill:hover,
.btn-recalc-pill:focus {
	background: #273244 !important;
	color: #e8ba63 !important;
	border-color: rgba(212, 162, 76, 0.4) !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.btn-recalc-pill:active {
	background: #182231 !important;
	color: #f0c978 !important;
	border-color: rgba(212, 162, 76, 0.45) !important;
	transform: translateY(1px);
}

.btn-recalc-pill:disabled,
.btn-recalc-pill.disabled {
	opacity: 0.65;
	cursor: not-allowed;
	background: #1f2937 !important;
	color: #d4a24c !important;
	border-color: rgba(212, 162, 76, 0.18) !important;
}

.btn-recalc-pill i,
.btn-recalc-pill svg,
.btn-recalc-pill [data-lucide] {
	color: currentColor !important;
	stroke: currentColor !important;
}

.btn-recalc-pill.btn-sm {
	padding: 0.45rem 0.8rem;
	font-size: 0.85rem;
}

.btn-recalc-pill-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.6rem 1rem;
	border-radius: 999px !important;
	border: 1px solid rgba(31, 41, 55, 0.18) !important;
	background: transparent !important;
	color: #1f2937 !important;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-recalc-pill-outline:hover,
.btn-recalc-pill-outline:focus {
	background: rgba(31, 41, 55, 0.05) !important;
	color: #111827 !important;
	border-color: rgba(31, 41, 55, 0.28) !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.btn-recalc-pill-outline:active {
	background: rgba(31, 41, 55, 0.08) !important;
	color: #111827 !important;
	border-color: rgba(31, 41, 55, 0.32) !important;
}

.btn-recalc-pill-outline i,
.btn-recalc-pill-outline svg,
.btn-recalc-pill-outline [data-lucide] {
	color: currentColor !important;
	stroke: currentColor !important;
}

.btn-recalc-pill-outline.btn-sm {
	padding: 0.45rem 0.8rem;
	font-size: 0.85rem;
}

/* =========================================
   DATATABLES / TABLES IN RECALC STYLE
   HARTE OVERRIDES GEGEN APPSTACK / BOOTSTRAP
========================================= */

table.recalc-results-table {
	margin-bottom: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	background: transparent !important;
}

table.recalc-results-table>thead,
table.recalc-results-table>thead.table-light,
.table.recalc-results-table>thead,
.table.recalc-results-table>thead.table-light,
.table>thead {
	background: linear-gradient(180deg, rgba(239, 243, 247, 0.96), rgba(232, 237, 243, 0.90)) !important;
}

table.recalc-results-table>thead>tr,
table.recalc-results-table>thead.table-light>tr,
.table.recalc-results-table>thead>tr,
.table.recalc-results-table>thead.table-light>tr {
	background: transparent !important;
}

table.recalc-results-table>thead>tr>th,
table.recalc-results-table>thead.table-light>tr>th,
.table.recalc-results-table> :not(caption)>*>th,
.table.recalc-results-table>thead>tr>th,
.table.recalc-results-table.table> :not(caption)>*>th {
	background: transparent !important;
	background-image: none !important;
	color: #8a94a1 !important;
	font-size: 0.76rem !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.055em !important;
	white-space: nowrap !important;
	padding: 1.15rem 0.82rem !important;
	border-top: 0 !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-bottom: 1px solid rgba(31, 41, 55, 0.08) !important;
	box-shadow: none !important;
	vertical-align: middle !important;
}

table.recalc-results-table>thead>tr>th:first-child,
table.recalc-results-table>thead.table-light>tr>th:first-child,
.table.recalc-results-table> :not(caption)>*>th:first-child {
	padding-left: 1rem !important;
}

table.recalc-results-table>thead>tr>th:last-child,
table.recalc-results-table>thead.table-light>tr>th:last-child,
.table.recalc-results-table> :not(caption)>*>th:last-child {
	padding-right: 1rem !important;
}

table.recalc-results-table>tbody>tr>td,
.table.recalc-results-table> :not(caption)>*>td,
.table.recalc-results-table.table> :not(caption)>*>td {
	vertical-align: middle !important;
	padding: 1.1rem 0.82rem !important;
	border-top: 0 !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-bottom: 1px solid rgba(31, 41, 55, 0.07) !important;
	background: rgba(255, 255, 255, 0.94) !important;
	box-shadow: none !important;
}

table.recalc-results-table>tbody>tr>td:first-child,
.table.recalc-results-table> :not(caption)>*>td:first-child {
	padding-left: 1rem !important;
}

table.recalc-results-table>tbody>tr>td:last-child,
.table.recalc-results-table> :not(caption)>*>td:last-child {
	padding-right: 1rem !important;
}

table.recalc-results-table>tbody>tr,
.table.recalc-results-table>tbody>tr {
	transition: background-color 0.15s ease !important;
}

table.recalc-results-table>tbody>tr:hover,
.table.recalc-results-table>tbody>tr:hover {
	background: rgba(255, 193, 7, 0.030) !important;
}

table.recalc-results-table>tbody>tr:hover>td,
.table.recalc-results-table>tbody>tr:hover>td {
	background: rgba(255, 193, 7, 0.030) !important;
}

/* =========================================
   DATATABLE WRAPPER / CONTROLS
========================================= */

.dataTables_wrapper {
	color: var(--bs-body-color) !important;
	font-size: 0.92rem !important;
	padding-bottom: 0.55rem !important;
}

.dataTables_wrapper .row:first-child,
.dataTables_wrapper .row:last-child {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.dataTables_wrapper .row:last-child {
	padding: 0.35rem 0.95rem 0.15rem 0.95rem !important;
	align-items: center !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
	margin-top: 0.9rem !important;
	margin-bottom: 0.15rem !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
	margin-top: 0.95rem !important;
	margin-bottom: 0.2rem !important;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
	font-size: 0.81rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em !important;
	color: #6b7280 !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
	height: 40px !important;
	border-radius: 0.9rem !important;
	border: 1px solid rgba(31, 41, 55, 0.10) !important;
	background: rgba(255, 255, 255, 0.96) !important;
	color: var(--bs-body-color) !important;
	box-shadow: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}

.dataTables_wrapper .dataTables_filter input {
	padding-left: 0.85rem !important;
	padding-right: 0.85rem !important;
	min-width: 220px !important;
}

.dataTables_wrapper .dataTables_length select {
	padding-left: 0.8rem !important;
	padding-right: 2rem !important;
	min-width: 84px !important;
}

.dataTables_wrapper .dataTables_filter input:hover,
.dataTables_wrapper .dataTables_length select:hover {
	border-color: rgba(212, 162, 76, 0.20) !important;
	background: #ffffff !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
	border-color: rgba(212, 162, 76, 0.34) !important;
	box-shadow: 0 0 0 0.14rem rgba(212, 162, 76, 0.10) !important;
	outline: 0 !important;
	background: #ffffff !important;
}

.dataTables_wrapper .dataTables_info {
	font-size: 0.82rem !important;
	font-weight: 500 !important;
	color: #6b7280 !important;
	padding-top: 0.4rem !important;
	padding-bottom: 0.25rem !important;
}

.dataTables_wrapper .dataTables_paginate {
	padding-top: 0.2rem !important;
	padding-bottom: 0.1rem !important;
}

/* =========================================
   DATATABLES PAGINATION
   RECALC / INSIGHT STYLE
========================================= */

.dataTables_wrapper .pagination,
.dataTables_wrapper .dataTables_paginate .pagination,
div.dt-container div.dt-paging .pagination {
	--bs-pagination-color: #8f6214;
	--bs-pagination-bg: rgba(255, 255, 255, 0.98);
	--bs-pagination-border-color: rgba(31, 41, 55, 0.10);
	--bs-pagination-hover-color: #8a6d00;
	--bs-pagination-hover-bg: rgba(255, 193, 7, 0.10);
	--bs-pagination-hover-border-color: rgba(212, 162, 76, 0.26);
	--bs-pagination-focus-color: #8a6d00;
	--bs-pagination-focus-bg: rgba(255, 193, 7, 0.10);
	--bs-pagination-focus-border-color: rgba(212, 162, 76, 0.26);
	--bs-pagination-focus-box-shadow: 0 0 0 0.14rem rgba(212, 162, 76, 0.10);
	--bs-pagination-active-color: #e0b15b;
	--bs-pagination-active-bg: #1f2937;
	--bs-pagination-active-border-color: rgba(212, 162, 76, 0.34);
	--bs-pagination-disabled-color: #98a1ab;
	--bs-pagination-disabled-bg: rgba(33, 37, 41, 0.03);
	--bs-pagination-disabled-border-color: rgba(31, 41, 55, 0.06);
}

.dataTables_wrapper .dataTables_paginate {
	padding-top: 0.1rem !important;
}

.dataTables_wrapper .dataTables_paginate .pagination,
div.dt-container div.dt-paging .pagination {
	display: flex !important;
	justify-content: flex-end !important;
	align-items: center !important;
	gap: 0.35rem !important;
	flex-wrap: wrap !important;
	margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .page-item,
div.dt-container div.dt-paging .page-item,
div.dt-container div.dt-paging .dt-paging-button {
	margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button a,
.dataTables_wrapper .dataTables_paginate .paginate_button .page-link,
div.dt-container div.dt-paging .page-link,
div.dt-container div.dt-paging .dt-paging-button .page-link,
div.dt-container div.dt-paging button.page-link,
div.dt-container div.dt-paging button.dt-paging-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 2.35rem !important;
	height: 2.35rem !important;
	margin: 0 !important;
	padding: 0.45rem 0.72rem !important;
	border-radius: 0.82rem !important;
	border: 1px solid rgba(31, 41, 55, 0.10) !important;
	background: rgba(255, 255, 255, 0.98) !important;
	background-image: none !important;
	color: #8f6214 !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
}

.dataTables_wrapper .dataTables_paginate .page-link:hover,
.dataTables_wrapper .dataTables_paginate .page-link:focus,
.dataTables_wrapper .dataTables_paginate .paginate_button a:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button a:focus,
.dataTables_wrapper .dataTables_paginate .paginate_button .page-link:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button .page-link:focus,
div.dt-container div.dt-paging .page-link:hover,
div.dt-container div.dt-paging .page-link:focus,
div.dt-container div.dt-paging .dt-paging-button .page-link:hover,
div.dt-container div.dt-paging .dt-paging-button .page-link:focus,
div.dt-container div.dt-paging button.page-link:hover,
div.dt-container div.dt-paging button.page-link:focus,
div.dt-container div.dt-paging button.dt-paging-button:hover,
div.dt-container div.dt-paging button.dt-paging-button:focus {
	background-color: rgba(255, 193, 7, 0.10) !important;
	border-color: rgba(212, 162, 76, 0.26) !important;
	color: #8a6d00 !important;
	box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .page-link:active,
.dataTables_wrapper .dataTables_paginate .paginate_button a:active,
.dataTables_wrapper .dataTables_paginate .paginate_button .page-link:active,
div.dt-container div.dt-paging .page-link:active,
div.dt-container div.dt-paging .dt-paging-button .page-link:active,
div.dt-container div.dt-paging button.page-link:active,
div.dt-container div.dt-paging button.dt-paging-button:active {
	background-color: rgba(255, 193, 7, 0.14) !important;
	border-color: rgba(212, 162, 76, 0.30) !important;
	color: #7a6200 !important;
	box-shadow: none !important;
	transform: translateY(1px);
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.active a,
.dataTables_wrapper .dataTables_paginate .paginate_button.current a,
.dataTables_wrapper .dataTables_paginate .paginate_button.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.page-item.active .page-link,
div.dt-container div.dt-paging .page-item.active .page-link,
div.dt-container div.dt-paging .dt-paging-button.active .page-link,
div.dt-container div.dt-paging .dt-paging-button.current .page-link,
div.dt-container div.dt-paging .dt-paging-button.page-item.active .page-link,
div.dt-container div.dt-paging button.page-link.current,
div.dt-container div.dt-paging button.dt-paging-button.current,
div.dt-container div.dt-paging button.dt-paging-button.active {
	background-color: #1f2937 !important;
	border-color: rgba(212, 162, 76, 0.34) !important;
	color: #e0b15b !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled a,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled .page-link,
div.dt-container div.dt-paging .page-item.disabled .page-link,
div.dt-container div.dt-paging .dt-paging-button.disabled .page-link,
div.dt-container div.dt-paging button.page-link:disabled,
div.dt-container div.dt-paging button.dt-paging-button:disabled {
	background-color: rgba(33, 37, 41, 0.03) !important;
	border-color: rgba(31, 41, 55, 0.06) !important;
	color: #98a1ab !important;
	box-shadow: none !important;
	cursor: default !important;
	opacity: 0.55 !important;
}

/* =========================================
   TABLE TEXT HELPERS
========================================= */

.recalc-cell-stack {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.recalc-cell-title {
	font-weight: 700;
	color: var(--bs-body-color);
	line-height: 1.3;
}

.recalc-cell-sub {
	font-size: 0.79rem;
	color: var(--bs-secondary-color);
	line-height: 1.35;
}

.recalc-cell-iconline {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.79rem;
	color: var(--bs-secondary-color);
}

.recalc-cell-iconline i,
.recalc-cell-iconline svg,
.recalc-cell-iconline [data-lucide] {
	width: 0.92rem;
	height: 0.92rem;
	color: currentColor;
	stroke: currentColor;
}

.recalc-money-stack {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.recalc-money-main {
	font-weight: 700;
	white-space: nowrap;
	color: #8f6214;
}

.recalc-money-sub {
	font-size: 0.78rem;
	color: var(--bs-secondary-color);
	white-space: nowrap;
}

.recalc-number-muted {
	color: #818a95;
	font-weight: 600;
}

.recalc-table-action {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
	white-space: nowrap;
}

/* =========================================
   ROW STATES
========================================= */

.recalc-row-success {
	background: rgba(25, 135, 84, 0.025) !important;
}

.recalc-row-warning {
	background: rgba(255, 193, 7, 0.045) !important;
}

.recalc-row-danger {
	background: rgba(220, 53, 69, 0.03) !important;
}

.recalc-row-success>td {
	background: rgba(25, 135, 84, 0.025) !important;
}

.recalc-row-warning>td {
	background: rgba(255, 193, 7, 0.045) !important;
}

.recalc-row-danger>td {
	background: rgba(220, 53, 69, 0.03) !important;
}

/* =========================================
   STATUS BADGES
========================================= */

.recalc-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.48rem 0.76rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	border: 1px solid transparent;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.recalc-status-badge-success {
	background: rgba(25, 135, 84, 0.10);
	border-color: rgba(25, 135, 84, 0.18);
	color: #146c43;
}

.recalc-status-badge-warning {
	background: rgba(255, 193, 7, 0.13);
	border-color: rgba(212, 162, 76, 0.24);
	color: #8a6d00;
}

.recalc-status-badge-danger {
	background: rgba(220, 53, 69, 0.10);
	border-color: rgba(220, 53, 69, 0.18);
	color: #b02a37;
}

.recalc-status-badge-neutral {
	background: rgba(33, 37, 41, 0.05);
	border-color: rgba(33, 37, 41, 0.08);
	color: #58606b;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991.98px) {
	.recalc-info-grid {
		grid-template-columns: 1fr;
	}

	.recalc-month-header {
		padding: 0.95rem 1rem 0.9rem 1rem;
	}

	.recalc-reason-text {
		max-width: none;
	}

	.dataTables_wrapper .dataTables_length,
	.dataTables_wrapper .dataTables_filter,
	.dataTables_wrapper .dataTables_info,
	.dataTables_wrapper .dataTables_paginate {
		text-align: left !important;
		float: none !important;
	}

	.dataTables_wrapper .dataTables_paginate .pagination,
	div.dt-container div.dt-paging .pagination {
		justify-content: flex-start !important;
	}

	.dataTables_wrapper .dataTables_paginate .page-link,
	.dataTables_wrapper .dataTables_paginate .paginate_button a,
	.dataTables_wrapper .dataTables_paginate .paginate_button .page-link,
	div.dt-container div.dt-paging .page-link,
	div.dt-container div.dt-paging .dt-paging-button .page-link,
	div.dt-container div.dt-paging button.page-link,
	div.dt-container div.dt-paging button.dt-paging-button {
		margin-top: 0.25rem !important;
	}
}

#budgetClusterAccordion .accordion-item {
	border: 1px solid var(--bs-border-color);
	border-radius: 1rem;
	overflow: hidden;
	background-color: var(--bs-body-bg);
}

#budgetClusterAccordion .accordion-button {
	background-color: rgba(33, 37, 41, 0.04);
	color: var(--bs-body-color);
	box-shadow: none;
	font-weight: 600;
}

#budgetClusterAccordion .accordion-button:not(.collapsed) {
	background-color: rgba(33, 37, 41, 0.08);
	color: var(--bs-body-color);
	box-shadow: none;
}

#budgetClusterAccordion .accordion-button:focus {
	box-shadow: none;
	border-color: transparent;
}

#budgetClusterAccordion .accordion-body {
	background-color: #fff;
}

#budgetClusterAccordion .accordion-button::after {
	box-shadow: none;
}

.creditor-activity-timeline {
	position: relative;
}

.creditor-activity-item {
	position: relative;
	padding-left: 3.25rem;
}

.creditor-activity-item:not(:last-child) {
	margin-bottom: 1rem;
	padding-bottom: 1rem;
}

.creditor-activity-item:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 2.1rem;
	bottom: -0.25rem;
	width: 1px;
	background: var(--bs-border-color);
}

.creditor-activity-marker {
	position: absolute;
	left: 0;
	top: 0.15rem;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 193, 7, 0.12);
	border: 1px solid rgba(255, 193, 7, 0.20);
	color: var(--bs-body-color);
}

.creditor-activity-content {
	border: 1px solid var(--bs-border-color);
	border-radius: 1rem;
	background: var(--bs-tertiary-bg);
	padding: 1rem 1rem 0.95rem;
}

.creditor-activity-title {
	font-weight: 700;
	color: var(--bs-body-color);
}

.creditor-activity-info {
	color: var(--bs-body-color);
	line-height: 1.5;
	white-space: pre-line;
	word-break: break-word;
}

.creditor-activity-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	border: 1px solid transparent;
}

.creditor-activity-badge-success {
	background: rgba(25, 135, 84, 0.10);
	border-color: rgba(25, 135, 84, 0.18);
	color: #146c43;
}

.creditor-activity-badge-warning {
	background: rgba(255, 193, 7, 0.12);
	border-color: rgba(255, 193, 7, 0.22);
	color: #997404;
}

.creditor-activity-badge-danger {
	background: rgba(220, 53, 69, 0.10);
	border-color: rgba(220, 53, 69, 0.18);
	color: #b02a37;
}

.creditor-activity-badge-neutral {
	background: rgba(108, 117, 125, 0.10);
	border-color: rgba(108, 117, 125, 0.18);
	color: #495057;
}

.creditor-activity-badge-muted {
	background: var(--bs-light);
	border-color: var(--bs-border-color);
	color: var(--bs-secondary-color);
}

.creditor-activity-card-body {
	max-height: 860px;
	overflow-y: auto;
	padding-right: 0.35rem;
}

.creditor-mail-card-body {
	max-height: 860px;
	overflow-y: auto;
}

@media (max-width: 767.98px) {
	.creditor-activity-item {
		padding-left: 2.75rem;
	}

	.creditor-activity-item:not(:last-child)::before {
		left: 0.9rem;
	}

	.creditor-activity-content {
		padding: 0.9rem;
	}

	.creditor-activity-card-body,
	.creditor-mail-card-body {
		max-height: none;
		overflow-y: visible;
	}

	.table-head-hidden {
		display: none;
	}

	.activity-card-table.table.recalc-results-table>tbody>tr>td {
		padding: 0 !important;
		border-bottom: 0 !important;
		background: transparent !important;
	}

	.activity-card-table.table.recalc-results-table>tbody>tr:hover,
	.activity-card-table.table.recalc-results-table>tbody>tr:hover>td {
		background: transparent !important;
	}
}

#datatables-activities thead,
#datatables-activities .table-head-hidden {
	display: none !important;
}

.activities-card-flat {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.activities-card-flat .card-header,
.activities-card-flat .card-body {
	border: 0 !important;
	background: transparent !important;
}

.email-compose-field-card {
	border: 1px solid var(--bs-border-color);
	border-radius: 0.9rem;
	padding: 0.95rem 1rem;
	background: var(--bs-tertiary-bg);
	height: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.email-compose-field-card:focus-within {
	border-color: rgba(255, 193, 7, 0.45);
	box-shadow: 0 0 0 0.18rem rgba(255, 193, 7, 0.08);
	background: var(--bs-body-bg);
}

.email-compose-field-card.readonly {
	opacity: 0.98;
}

.email-compose-floating .form-control,
.email-compose-floating .form-select {
	background-color: #fff !important;
	border-color: var(--bs-border-color);
	box-shadow: none;
}

.email-compose-floating .form-control:focus,
.email-compose-floating .form-select:focus {
	background-color: #fff !important;
	box-shadow: none;
}

.email-compose-field-card.readonly .form-control {
	background-color: #fff !important;
	color: var(--bs-body-color);
	opacity: 1;
}

.email-compose-field-help {
	font-size: 0.78rem;
	color: var(--bs-secondary-color);
	margin-top: 0.45rem;
	line-height: 1.35;
}

.email-compose-autocomplete-results {
	top: 100%;
	z-index: 1000;
	max-height: 320px;
	overflow-y: auto;
	border-radius: 0.75rem;
}

.email-compose-autocomplete-results .list-group-item {
	border-left: 0;
	border-right: 0;
}

.email-compose-autocomplete-results .list-group-item:first-child {
	border-top: 0;
}

.email-compose-autocomplete-results .list-group-item:last-child {
	border-bottom: 0;
}

/* =========================================
   Autocomplete
========================================= */

.navbar-search-autocomplete-item {
	padding: 0.8rem 1rem;
	border-left: 0;
	border-right: 0;
}

.navbar-search-autocomplete-item:first-child {
	border-top: 0;
}

.navbar-search-creditor-row {
	margin-bottom: 0.45rem;
}

.navbar-search-creditor-link {
	display: inline-block;
	font-weight: 600;
	color: var(--bs-body-color);
	text-decoration: none;
	line-height: 1.35;
}

.navbar-search-creditor-link:hover,
.navbar-search-creditor-link:focus {
	color: #8a6d00;
	text-decoration: none;
}

.navbar-search-claims-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.navbar-search-claim-link {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	line-height: 1.2;
	background: #1f2937;
	border: 1px solid rgba(212, 162, 76, 0.28);
	color: #d4a24c;
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.navbar-search-claim-link:hover,
.navbar-search-claim-link:focus {
	background: #273244;
	border-color: rgba(212, 162, 76, 0.4);
	color: #e8ba63;
	text-decoration: none;
}

.navbar-search-claim-link:active {
	background: #182231;
	border-color: rgba(212, 162, 76, 0.45);
	color: #f0c978;
}

.email-recipient-option {
	cursor: pointer;
	background: #fff;
	padding: 0.85rem 1rem;
}

.email-recipient-option .recipient-title {
	font-weight: 700;
	color: var(--bs-body-color);
	line-height: 1.35;
}

.email-recipient-option .recipient-subtitle {
	font-size: 0.82rem;
	color: var(--bs-secondary-color);
	line-height: 1.35;
	margin-top: 0.15rem;
}

.email-recipient-option .recipient-email {
	font-size: 0.82rem;
	color: var(--bs-secondary-color);
	line-height: 1.35;
	margin-top: 0.1rem;
}

#recipientSelectionInput[readonly] {
	background-color: #fff !important;
	cursor: pointer;
}

.email-template-selection-option {
	cursor: pointer;
	background: #fff;
	padding: 0.85rem 1rem;
}

.email-template-selection-option .template-title {
	font-weight: 700;
	color: var(--bs-body-color);
	line-height: 1.35;
}

.email-template-selection-option .template-subtitle {
	font-size: 0.82rem;
	color: var(--bs-secondary-color);
	line-height: 1.35;
	margin-top: 0.15rem;
}

#templateSelectionInput[readonly] {
	background-color: #fff !important;
	cursor: pointer;
}

.email-template-modal-select-wrap {
	border: 1px solid var(--bs-border-color);
	border-radius: 0.9rem;
	background: #fff;
	max-height: 280px;
	overflow-y: auto;
}

.email-template-modal-option {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--bs-border-color-translucent);
	background: #fff;
	text-align: left;
	padding: 0.9rem 1rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.email-template-modal-option:last-child {
	border-bottom: 0;
}

.email-template-modal-option:hover,
.email-template-modal-option.active {
	background: rgba(33, 37, 41, 0.04);
}

.email-template-modal-option-title {
	font-weight: 700;
	color: var(--bs-body-color);
	line-height: 1.35;
	margin-bottom: 0.2rem;
}

.email-template-modal-option-subtitle {
	font-size: 0.82rem;
	color: var(--bs-secondary-color);
	line-height: 1.35;
}

.email-template-modal-editor-column {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

#emailTemplateEditorContainer {
	margin-bottom: 0.35rem;
}

#emailTemplateEditorContainer .ql-editor {
	min-height: 260px;
	line-height: 1.55;
	padding: 1rem 1rem 1.1rem;
}

#emailTemplateEditorContainer .ql-toolbar.ql-snow,
#emailTemplateEditorContainer .ql-container.ql-snow {
	border-color: var(--bs-border-color);
}

#emailTemplateEditorContainer .ql-toolbar.ql-snow {
	border-top-left-radius: 0.75rem;
	border-top-right-radius: 0.75rem;
	background: #fff;
}

#emailTemplateEditorContainer .ql-container.ql-snow {
	border-bottom-left-radius: 0.75rem;
	border-bottom-right-radius: 0.75rem;
	background: #fff;
}

.email-template-placeholder {
	row-gap: 0.55rem;
	column-gap: 0.75rem;
	align-items: center;
	line-height: 1.7;
}

.email-template-placeholder code {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	background: transparent;
	padding: 0;
	border-radius: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--bs-secondary-color);
}

.email-template-placeholder-modal {
	margin-top: 0.15rem;
	padding-top: 0.1rem;
	padding-bottom: 0.1rem;
}

@media (max-width: 991.98px) {
	.email-template-modal-editor-column {
		padding-top: 0;
	}

	#emailTemplateEditorContainer .ql-editor {
		min-height: 220px;
	}
}

/* =========================================
   FINNARO HEAD NAVBAR
   Compact Admin Header Style
========================================= */

.navbar.navbar-bg {
	min-height: 4rem;
	padding: 0 1.35rem;
	background: #ffffff !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	position: sticky;
	top: 0;
	z-index: 1030;
}

.navbar.navbar-bg::before,
.navbar.navbar-bg::after {
	display: none !important;
	content: none !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

/* Navbar dropdown colors */
.navbar-profile-dropdown {
	min-width: 150px;
	background-color: #1f2b3e !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.navbar-profile-dropdown .dropdown-item {
	color: #f4f7f9 !important;
}

.navbar-profile-dropdown .dropdown-item:hover,
.navbar-profile-dropdown .dropdown-item:focus {
	background-color: rgba(255, 255, 255, 0.08) !important;
	color: #f4f7f9 !important;
}

.navbar-profile-dropdown .dropdown-item svg.lucide {
	color: var(--bs-warning) !important;
	stroke: currentColor !important;
}

.navbar-profile-divider {
	border-top-color: rgba(255, 255, 255, 0.18) !important;
}

.navbar-icon-dropdown {
	background-color: #1f2b3e !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	color: #f4f7f9 !important;
}

.navbar-icon-dropdown .dropdown-menu-header,
.navbar-icon-dropdown .dropdown-menu-footer {
	background-color: #1f2b3e !important;
	color: #f4f7f9 !important;
	border-color: rgba(255, 255, 255, 0.12) !important;
}

.navbar-icon-dropdown .dropdown-menu-footer a,
.navbar-icon-dropdown .text-muted,
.navbar-icon-dropdown .small {
	color: rgba(244, 247, 249, 0.85) !important;
}

.navbar-icon-dropdown .list-group-item {
	background-color: #1f2b3e !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
}

.navbar-icon-dropdown .list-group-item:hover,
.navbar-icon-dropdown .list-group-item:focus {
	background-color: rgba(255, 255, 255, 0.08) !important;
}

.navbar-icon-dropdown .text-dark {
	color: #f4f7f9 !important;
}

