/* @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:regular,bold,italic&subset=latin,latin-ext'); */
@import url('https://fonts.googleapis.com/css2?family=Niramit:wght@300&display=swap');

.ant-btn:active,
.ant-btn:hover,
.ant-btn:focus {
  color: #725bb4 !important;
  border-color: #725bb4 !important;
}

.ant-btn-primary {
  border-color: #725bb4 !important;
  background: #725bb4 !important;
}

.ant-btn-link:active,
.ant-btn-link:hover,
.ant-btn-link:focus {
  border-color: #ffffff !important;
}

/* .ant-btn-default {
  border-color: #725bb4 !important;
  background: #725bb4 !important;
} */

.ant-btn[disabled],
.ant-btn[disabled]:active,
.ant-btn[disabled]:focus,
.ant-btn[disabled]:hover {
  color: rgba(0, 0, 0, 0.25) !important;
  border-color: #d9d9d9 !important;
}

.ant-btn[disabled]:hover {
  color: #fff !important;
  border-color: #a898d2 !important;
  background-color: #a898d2 !important;
}

.ant-btn-primary:active,
.ant-btn-primary:hover,
.ant-btn-primary:focus {
  color: #222630 !important;
  border-color: #d9d3ef !important;
  background-color: #d9d3ef !important;
}

.ant-btn-primary[disabled] {
  color: #fff !important;
  border-color: #9a92b0 !important;
  background-color: #9a92b0 !important;
}

.ant-btn-primary[disabled]:hover {
  color: #fff !important;
  border-color: #a898d2 !important;
  background-color: #a898d2 !important;
}

.ant-btn-dangerous {
  border-color: #e63624 !important;
  background: #e94b3b !important;
  color: #fff !important;
}

.ant-btn-dangerous:active,
.ant-btn-dangerous:hover,
.ant-btn-dangerous:focus {
  border-color: #b92415 !important;
  background-color: #d92a18 !important;
  color: #fff !important;
}

.ant-btn-default,
.ant-btn-primary {
  border-radius: 5px !important;
}

.ant-btn-round {
  border-radius: 32px !important;
}

.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-selected {
  color: #725bb4 !important;
  font-weight: 500;
}

.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-selected:after {
  border-bottom: 2px solid #725bb4 !important;
}

.ant-pagination-item-active a {
  color: #725bb4 !important;
}

.ant-pagination-item-active {
  border-color: #725bb4 !important;
}

.ant-pagination-item:hover {
  border-color: #725bb4 !important;
}

.ant-pagination-item:hover a {
  color: #725bb4 !important;
}

.ant-pagination-next:focus-visible .ant-pagination-item-link,
.ant-pagination-next:hover .ant-pagination-item-link,
.ant-pagination-prev:focus-visible .ant-pagination-item-link,
.ant-pagination-prev:hover .ant-pagination-item-link {
  color: #725bb4 !important;
  border-color: #725bb4 !important;
}

.ant-table-thead > tr > th {
  background: #f7f6fb !important;
  border-bottom: unset !important;
  padding: 10px 18px !important;
  font-size: 13px;
  text-align: left !important;
}

.ant-table-thead > tr > th.ant-table-selection-column {
  padding: 10px 12px !important;
}

.ant-table-container table > thead > tr:first-child th:last-child {
  border-top-right-radius: 10px !important;
}

.ant-table-container table > thead > tr:first-child th:first-child {
  border-top-left-radius: 10px !important;
}

.ant-checkbox-checked .ant-checkbox-inner:after {
  border: 2px solid #725bb4 !important;
  border-top: 0 !important;
  border-left: 0 !important;
  left: 27.5% !important;
}

.ant-checkbox-checked .ant-checkbox-inner {
  background-color: #f7f6fb !important;
  border-color: #725bb4 !important;
  border-radius: 4px !important;
}

.ant-checkbox-inner {
  width: 18px !important;
  height: 18px !important;
}

.ant-checkbox-input:focus + .ant-checkbox-inner,
.ant-checkbox-wrapper:hover .ant-checkbox-inner,
.ant-checkbox:hover .ant-checkbox-inner {
  border-color: #725bb4 !important;
}

.ant-switch-checked {
  background-color: #725bb4 !important;
}

tr.drop-over-downward td {
  border-bottom: 2px dashed #725bb4;
}

tr.drop-over-upward td {
  border-top: 2px dashed #725bb4;
}

.ant-input:hover {
  border-color: #725bb4 !important;
}

.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
  border-color: #725bb4 !important;
}

.ant-input-number:hover {
  border-color: #725bb4 !important;
}

.ant-input-number-focused,
.ant-input-number:focus {
  border-color: #725bb4 !important;
}

.ant-picker-focused,
.ant-picker:hover {
  border-color: #725bb4 !important;
}

.ant-picker-now-btn {
  color: #725bb4 !important;
}

.ant-radio-button-wrapper-checked:not(
    .ant-radio-button-wrapper-disabled
  ):first-child {
  border-color: #725bb4 !important;
}

.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  color: #725bb4 !important;
}

.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  border-color: #725bb4 !important;
}

.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner,
.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,
.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {
  background: #725bb4 !important;
}

.ant-radio-button-wrapper:hover {
  color: #725bb4 !important;
}

.ant-radio-checked .ant-radio-inner {
  border-color: #725bb4 !important;
}

.ant-radio-inner:after {
  background-color: #725bb4 !important;
}

.ant-radio-input:focus + .ant-radio-inner,
.ant-radio-wrapper:hover .ant-radio,
.ant-radio:hover .ant-radio-inner {
  border-color: #725bb4 !important;
}

.ant-select:not(.ant-select-disabled):hover .ant-select-selector {
  border-color: #725bb4 !important;
}

.ant-radio-button-wrapper-checked:not(
    .ant-radio-button-wrapper-disabled
  ):before {
  background-color: #725bb4 !important;
}

.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner:before {
  border: 1px solid #725bb4 !important;
}

.ant-menu-light .ant-menu-item-active,
.ant-menu-light .ant-menu-item:hover,
.ant-menu-light .ant-menu-submenu-active,
.ant-menu-light .ant-menu-submenu-title:hover,
.ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open {
  color: #725bb4 !important;
}

.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
  background-color: #d9d3ef !important;
}

.ant-menu-item-selected,
.ant-menu-item-selected a,
.ant-menu-item-selected a:hover {
  color: #725bb4 !important;
}

.ant-menu-item:active,
.ant-menu-submenu-title:active {
  background: #d9d3ef !important;
}

.ant-menu-vertical-left .ant-menu-submenu-selected,
.ant-menu-vertical-right .ant-menu-submenu-selected,
.ant-menu-vertical .ant-menu-submenu-selected {
  color: #725bb4 !important;
}

.ant-picker-today-btn {
  color: #725bb4 !important;
}

.react-resizable {
  position: relative;
  background-clip: padding-box;
}

.react-resizable-handle {
  position: absolute;
  right: -5px;
  bottom: 0;
  z-index: 1;
  width: 10px;
  height: 100%;
  cursor: col-resize;
}

.react-resizable {
  position: relative;
  background-clip: padding-box;
}

.react-resizable-handle {
  position: absolute;
  right: -5px;
  bottom: 0;
  z-index: 1;
  width: 10px;
  height: 100%;
  cursor: col-resize;
}

.ant-table-row:nth-child(odd) {
  background: #f9f9f9;
}

.ant-table-row:nth-child(odd) td {
  background: #f9f9f9;
}

.txn-lines-container .ant-table-tbody > tr:hover:not(:has(.ant-empty)) > td {
    background-color: #d8ccf7 !important;
}

.txn-lines-container tr:not(:has(.ant-empty)):has(.ant-checkbox-wrapper-checked) td {
    background-color: #d8ccf7 !important;
}

.accrual-manager-table .ant-table-tbody > tr:hover:not(:has(.ant-empty)) > td {
    background-color: #d8ccf7 !important;
}
.accrual-manager-table tr:not(:has(.ant-empty)):has(.ant-checkbox-wrapper-checked) td {
    background-color: #d8ccf7 !important;
}


.reviewed-po-closure-table .ant-table-tbody > tr:hover:not(:has(.ant-empty)) > td {
    background-color: #d8ccf7 !important;
}
.reviewed-po-closure-table tr:not(:has(.ant-empty)):has(.ant-checkbox-wrapper-checked) td {
    background-color: #d8ccf7 !important;
}


.unreviewed-po-closure-table .ant-table-tbody > tr:hover:not(:has(.ant-empty)) > td {
    background-color: #d8ccf7 !important;
}
.unreviewed-po-closure-table tr:not(:has(.ant-empty)):has(.ant-checkbox-wrapper-checked) td {
    background-color: #d8ccf7 !important;
}

.review-je-table .ant-table-tbody > tr > td {
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.review-je-table tr:has(.ant-checkbox-wrapper-checked):not(:has(.ant-empty)) td {
    background-color: #d8ccf7 !important;
}

.review-je-table tr:has(.ant-checkbox-wrapper-checked):not(:has(.ant-empty)) + tr:not(:has(.ant-empty)) td {
    background-color: #d8ccf7 !important;
}

.review-je-table .ant-table-tbody > tr.review-je-row-hovered > td {
  background-color: #d8ccf7 !important;
}

.review-je-table .qje-cell-ellipsis {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tbl-review-center .ant-table-row:nth-child(odd) {
  background: white;
}

.tbl-review-center .ant-table-row:nth-child(odd) td {
  background: white;
}

.qje-table .ant-table-row:nth-child(4n + 1) td,
.qje-table .ant-table-row:nth-child(4n + 4) td {
  background: #f9f9f9 !important;
}

.qje-table .ant-table-row:nth-child(4n - 2) td,
.qje-table .ant-table-row:nth-child(4n - 5) td {
  background: white !important;
}

.data-table .ant-table-tbody > tr > td {
  border-bottom: 1px solid #f8f8f8;
  padding: 2px 17px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ant-modal-content {
  border-radius: 10px !important;
  overflow: hidden;
}

.ant-modal-header {
  border-radius: 10px 10px 0 0 !important;
}

.ant-input,
.ant-input-number,
.ant-picker {
  border-radius: 4px !important;
}

.ant-form-item-explain-error {
  font-size: 12px;
  margin: 3px 5px;
}

.ant-modal-body {
  max-height: calc(100vh - 250px);
  overflow: auto;
}

.ant-modal-body .ant-table-body {
  max-height: calc(100vh - 355px) !important;
}

a {
  color: #725bb4;
}

.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-active:after,
.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-open:after,
.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-selected:after,
.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item:hover:after,
.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-active:after,
.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-open:after,
.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-selected:after,
.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu:hover:after {
  border-bottom: 2px solid #725bb4 !important;
}

.ant-dropdown-menu-item-selected,
.ant-dropdown-menu-submenu-title-selected {
  color: #725bb4 !important;
  background-color: #f1f0f8 !important;
}

.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #725bb4 !important;
}

.ant-tabs-tab:hover,
.ant-tabs-ink-bar {
  color: #725bb4 !important;
}

.ant-tabs-ink-bar {
  background: #725bb4 !important;
}

.g-btn-icon {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #725bb4 !important;
  padding: 7px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 50% !important;
}

.g-btn-iconn[disabled],
.g-btn-icon[disabled]:active,
.g-btn-icon[disabled]:focus,
.g-btn-icon[disabled]:hover {
  color: rgba(0, 0, 0, 0.25) !important;
  border-color: #d9d9d9 !important;
  background: none !important;
}

.ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon {
  color: #725bb4 !important;
}

.ant-upload.ant-upload-drag:not(.ant-upload-disabled):hover {
  border-color: #725bb4 !important;
}

.ant-table-measure-row > td {
  padding: 0px !important;
}

.data-table-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  /* padding-right: 25px; */
}

.data-table-action .ant-btn {
  height: 25px;
}

.ant-picker-cell-in-view.ant-picker-cell-in-range:before {
  background: #f1effb !important;
}

.ant-upload-list-picture .ant-upload-list-item {
  height: 40px !important;
}

.ant-upload-list-picture .ant-upload-list-item-thumbnail img {
  height: 30px !important;
}

.ant-upload-list-picture .ant-upload-list-item-thumbnail {
  height: 30px !important;
  width: 30px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-column-filter .ant-select-multiple .ant-select-selector {
  max-height: 90px;
  overflow-y: auto;
}

.navbar-container .ant-menu-item-selected,
.navbar-container .ant-menu-item-selected a,
.navbar-container .ant-menu-item-selected a:hover {
  color: #222630 !important;
}

.navbar-container
  .ant-menu-horizontal:not(.ant-menu-dark)
  > .ant-menu-item-active:after,
.navbar-container
  .ant-menu-horizontal:not(.ant-menu-dark)
  > .ant-menu-item-open:after,
.navbar-container
  .ant-menu-horizontal:not(.ant-menu-dark)
  > .ant-menu-item-selected:after,
.navbar-container
  .ant-menu-horizontal:not(.ant-menu-dark)
  > .ant-menu-item:hover:after,
.navbar-container
  .ant-menu-horizontal:not(.ant-menu-dark)
  > .ant-menu-submenu-active:after,
.navbar-container
  .ant-menu-horizontal:not(.ant-menu-dark)
  > .ant-menu-submenu-open:after,
.navbar-container
  .ant-menu-horizontal:not(.ant-menu-dark)
  > .ant-menu-submenu-selected:after,
.navbar-container
  .ant-menu-horizontal:not(.ant-menu-dark)
  > .ant-menu-submenu:hover:after {
  border-bottom: 2px solid #222630 !important;
}

.ant-table-pagination.ant-pagination {
  margin: 16px 0 0px !important;
}

.ant-table-column-title {
  white-space: nowrap !important;
}

.spin {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.navbar-container .ant-menu-horizontal > .ant-menu-item a {
  color: #222630;
}

.navbar-container a {
  color: #222630;
}

.ant-table-cell a {
  color: #725bb4;
}

.navbar-container a:hover {
  color: #222630 !important;
}

.navbar-container .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item {
  padding: 0 13px;
}

.ant-table-cell a:hover {
  color: #725bb4;
}

.ant-card-body {
  padding: 16px !important;
}

.ant-menu-item a:hover {
  color: #725bb4 !important;
}

.ant-menu-submenu:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow,
.ant-menu-submenu:hover
  > .ant-menu-submenu-title
  > .ant-menu-submenu-expand-icon {
  color: #725bb4 !important;
}

.period-picker {
  border: unset !important;
  padding: 4px 0px !important;
  width: 100%;
  box-shadow: unset !important;
  background: transparent !important;
}

.period-picker .ant-picker-input input::placeholder {
  color: #000000d9;
}

.period-picker .ant-picker-suffix {
  color: #000000d9;
}

/* .ant-table-wrapper .ant-form-item-explain-error {
  display: none;
} */

.filter-dp {
  max-height: 500px;
  overflow-y: auto;
}

.data-table .ant-input-number-input {
  padding-right: 17px !important;
}

.data-table .ant-input-number-handler-wrap {
  width: 15px !important;
}

.data-table
  .ant-input-number-handler-wrap
  .ant-input-number-handler
  .ant-input-number-handler-down-inner,
.data-table
  .ant-input-number-handler-wrap
  .ant-input-number-handler
  .ant-input-number-handler-up-inner {
  margin-right: -3px !important;
}

.ant-menu-inline .ant-menu-item:after,
.ant-menu-vertical-left .ant-menu-item:after,
.ant-menu-vertical-right .ant-menu-item:after,
.ant-menu-vertical .ant-menu-item:after {
  border-right: 3px solid #725bb4 !important;
}

/* Remove unnecessary scrollbar inside dropdown */
.ant-select-dropdown .rc-virtual-list-holder {
  overflow-x: hidden;
}

.page-container {
  height: 100vh !important;
}

.ant-table-thead > tr > th.ant-table-selection-column {
  text-align: center !important;
}

.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-selected {
  color: #725bb4 !important;
}

.out-of-sync-tooltip {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 0;
  height: 0;
  border-top: 10px solid #fcb900;
  border-left: 10px solid transparent;
}

.accrual-import-collapse {
  background: none !important;
  border-right: 0px !important;
  border-left: 0px !important;
}

.period-filter li {
  flex-direction: row-reverse;
  justify-content: space-between;
}

.period-filter-icon {
  margin-right: unset !important;
}

.settings-slider .ant-layout-sider-children > .ant-menu {
  height: calc(95vh - 96px);
  overflow-y: auto;
  overflow-x: hidden;
}

.invoice-statuses-options {
  display: none;
}

.ant-progress-bg, .ant-progress-success-bg {
  background-color: #725bb4 !important;
}

.ant-spin-text{
  color: #725bb4 !important;
}

.ai-no-reports-available {
  text-align: center;
    color: rgb(136, 136, 136);
    padding: 20px;
    height: 100%;
    min-height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rc-generate-report-item {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
} 

.rc-generate-report-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}


/* Remove padding from table cells when input is focused */
.ant-table-cell:has(.editable-input) {
  padding: 0 !important;
}

/* Make the editable input fill the entire cell when focused */
.ant-input.editable-input:focus {
  width: 100%;
  /* padding: 4px; */
  margin: 0;
}

/* Adjust Form.Item to remove margins when input is focused */
.ant-table-cell .ant-form-item:has(.editable-input) {
  margin-bottom: 0 !important;
}

/* Select-specific styles - make Select fields fill the entire cell */
/* .ant-table-cell:has(.ant-select.editable-input) {
  padding: 0 !important;
} */

/* Remove constraints from parent div wrapper */
.ant-table-cell:has(.ant-select.editable-input) > div {
  max-width: 100% !important;
  min-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Make the Form wrapper fill the cell */
.ant-table-cell:has(.ant-select.editable-input) .ant-form {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ant-table-cell .ant-form-item:has(.ant-select.editable-input) {
  margin-bottom: 0 !important;
  margin: 0 !important;
  width: 100%;
}

.ant-select.editable-input {
  width: 100% !important;
}

.ant-select.editable-input .ant-select-selector {
  width: 100% !important;
  padding: 4px 16px !important;
}

/* .ant-select.editable-input.ant-select-focused .ant-select-selector {
  box-shadow: inset 0 0 0 1px #4096ff !important;
} */

.ant-select.editable-input .ant-select-selection-item {
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
}

.ant-select.editable-input {
  width: 100% !important;
}

.trd-lines-table .table{
  padding: 0 !important;
}

/* AI Proposed Amount column styling */
.ai-proposed-cell {
  background-color: #eff6ff;
  margin: -8px -12px;
  padding: 8px 12px;
  transition: background-color 0.2s ease;
}

/* On row hover, make the AI Proposed cell transparent to show row hover color */
.ant-table-tbody tr:hover .ai-proposed-cell {
  background-color: transparent;
}

/* .ai-analysis-popover .ant-popover-arrow{
  display: none;
} */

/* AI Accept Button Styles */
.ai-accept-button button {
  border: 1px solid #15803d !important;
}

.ai-accept-button button:hover {
  border-color: #166534 !important;
  background: #f0fdf4 !important;
}

.ai-accept-button button:focus {
  border-color: #15803d !important;
}

.ai-reject-button button {
  border: 1px solid #dc2626 !important;
  background: #ffffff !important;
}

.ai-reject-button:focus {
  border-color: #dc2626 !important;
}