/*
==========================================================
FINOVA ACCOUNTING SYSTEM
MODULE : GENERAL JOURNAL
Version : 2.3 Enterprise
==========================================================
*/


/* ==========================================================
   GL JOURNAL PAGE
========================================================== */

.gl-journal-page {

    display: flex;

    flex-direction: column;

    flex: 1 1 auto;

    min-height: 0;

    width: 100%;

}


/* ==========================================================
   PAGE HEADER
========================================================== */

.gl-journal-page
> .finova-page-header {

    width: 100%;

    margin-bottom: 8px !important;

    flex-shrink: 0;

    box-sizing: border-box;

}


/* ==========================================================
   FILTER CARD
========================================================== */

.gl-journal-page
> .gl-journal-filter-card {

    width: 100% !important;

    max-width: none !important;

    margin: 0 !important;

    flex: 0 0 auto;

    box-sizing: border-box;

    border-radius: 12px;

}


/* ==========================================================
   FILTER CARD BODY
========================================================== */

.gl-journal-filter-card
> .finova-card-body {

    width: 100%;

    padding: 8px 20px 8px 20px !important;

    box-sizing: border-box;

}


/* ==========================================================
   FILTER ROW
========================================================== */

.gl-journal-filter-card
> .finova-card-body
> .row {

    width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    box-sizing: border-box;

    align-items: end !important;

}


/* ==========================================================
   FILTER COLUMN
========================================================== */

.gl-journal-filter-card
> .finova-card-body
> .row
> [class*="col-"] {

    min-width: 0;

    margin: 0;

    box-sizing: border-box;

}


/* ==========================================================
   FILTER LABEL
========================================================== */

.gl-journal-filter-card
.form-label {

    display: block;

    margin-top: 0 !important;

    margin-bottom: 6px !important;

    color: #1F2937;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.2;

    text-align: left;

}


/* ==========================================================
   FILTER INPUT & SELECT
========================================================== */

.gl-journal-filter-card
.form-control,

.gl-journal-filter-card
.form-select {

    width: 100% !important;

    height: 46px !important;

    min-height: 46px !important;

    box-sizing: border-box;

}


/* ==========================================================
   DATE INPUT
========================================================== */

.gl-journal-filter-card
input[type="date"] {

    width: 100% !important;

    height: 46px !important;

    min-height: 46px !important;

    box-sizing: border-box;

}


/* ==========================================================
   FILTER INPUT GROUP
========================================================== */

.gl-journal-filter-card
.input-group {

    display: flex !important;

    flex-wrap: nowrap !important;

    align-items: stretch;

    width: 100% !important;

    height: 46px !important;

    margin: 0 !important;

    box-sizing: border-box;

}


/* ==========================================================
   KEYWORD INPUT
========================================================== */

.gl-journal-filter-card
.input-group
#filter-keyword {

    flex: 1 1 auto !important;

    width: 1% !important;

    min-width: 0 !important;

    height: 46px !important;

    border-top-right-radius: 0 !important;

    border-bottom-right-radius: 0 !important;

}


/* ==========================================================
   FIND BUTTON
========================================================== */

.gl-journal-filter-card
.input-group
#btn-find-journal {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 6px;

    flex: 0 0 80px !important;

    width: 80px !important;

    min-width: 80px !important;

    height: 46px !important;

    padding: 0 12px !important;

    white-space: nowrap;

    border-top-left-radius: 0 !important;

    border-bottom-left-radius: 0 !important;

}


/* ==========================================================
   TABLE CARD
========================================================== */

.gl-journal-page
> .finova-table-card {

    display: flex;

    flex-direction: column;

    flex: 1 1 auto;

    min-height: 0;

    width: 100%;

    overflow: hidden;

}


/* ==========================================================
   TABLE CARD BODY
========================================================== */

.gl-journal-page
> .finova-table-card
> .finova-card-body {

    display: flex;

    flex-direction: column;

    flex: 1 1 auto;

    min-height: 0;

    padding: 0 !important;

    overflow: hidden;

}


/* ==========================================================
   TABLE CONTAINER
========================================================== */

.gl-journal-page
> .finova-table-card
> .finova-card-body
> .finova-table-container {

    display: flex;

    flex-direction: column;

    flex: 1 1 auto;

    min-height: 0;

    width: 100%;

    height: 100%;

    overflow: hidden;

}


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

.gl-journal-page
> .finova-table-card
> .finova-card-body
> .finova-table-container
> .table-responsive {

    display: block;

    flex: 1 1 auto;

    min-height: 0;

    width: 100%;

    overflow-x: hidden;

    overflow-y: auto;

}


/* ==========================================================
   GL JOURNAL TABLE
========================================================== */

#gl-journal-table {

    width: 100%;

    table-layout: fixed;

    margin-bottom: 0;

}


/* ==========================================================
   TABLE HEADER
========================================================== */

#gl-journal-table
thead
th {

    font-weight: 700 !important;

    color: #111827 !important;

}


/* ==========================================================
   TABLE BODY
========================================================== */

#gl-journal-table
tbody
td {

    height: auto !important;

    font-weight: 400 !important;

    color: #1F2937 !important;

    vertical-align: middle;

}


/* ==========================================================
   TABLE ROW
========================================================== */

#gl-journal-table
tbody
tr {

    height: auto !important;

    min-height: 0 !important;

}


/* ==========================================================
   ACTION CELL
========================================================== */

#gl-journal-table
td:nth-child(11) {

    position: relative;

    text-align: center !important;

    vertical-align: middle !important;

}


/* ==========================================================
   ACTION DROPDOWN
========================================================== */

#gl-journal-table
.gl-action-dropdown {

    position: relative;

    display: inline-block;

}


/* ==========================================================
   ACTION TRIGGER
========================================================== */

#gl-journal-table
.gl-action-trigger {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 32px !important;

    min-width: 32px !important;

    max-width: 32px !important;

    height: 32px !important;

    min-height: 32px !important;

    padding: 0 !important;

    margin: 0 !important;

    border-radius: 7px !important;

    line-height: 1;

}


/* ==========================================================
   ACTION TRIGGER ICON
========================================================== */

#gl-journal-table
.gl-action-trigger
i {

    margin: 0 !important;

    font-size: 13px;

    line-height: 1;

}


/* ==========================================================
   ACTION MENU
========================================================== */

#gl-journal-table
.gl-action-menu {

    min-width: 165px;

    padding: 6px;

    border-radius: 9px;

    border: 1px solid #E2E8F0;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, .14);

}


/* ==========================================================
   ACTION MENU ITEM
========================================================== */

#gl-journal-table
.gl-action-menu
.dropdown-item {

    display: flex;

    align-items: center;

    width: 100%;

    min-height: 36px;

    padding: 7px 10px;

    border: 0;

    border-radius: 6px;

    background: transparent;

    font-size: 13px;

    font-weight: 500;

    text-align: left;

    white-space: nowrap;

}


/* ==========================================================
   ACTION MENU ICON
========================================================== */

#gl-journal-table
.gl-action-menu
.dropdown-item
i {

    flex: 0 0 18px;

    width: 18px;

    margin-right: 8px !important;

    text-align: center;

}


/* ==========================================================
   ACTION DIVIDER
========================================================== */

#gl-journal-table
.gl-action-menu
.dropdown-divider {

    margin: 5px 0;

}


/* ==========================================================
   DROPDOWN ACTION COLORS
========================================================== */

#gl-journal-table
.gl-action-menu
.btn-edit-journal {

    color: #2563EB;

}


#gl-journal-table
.gl-action-menu
.btn-post-journal {

    color: #16A34A;

}


#gl-journal-table
.gl-action-menu
.btn-voucher-journal {

    color: #0891B2;

}


#gl-journal-table
.gl-action-menu
.btn-view-journal {

    color: #475569;

}


#gl-journal-table
.gl-action-menu
.btn-duplicate-journal {

    color: #64748B;

}


#gl-journal-table
.gl-action-menu
.btn-void-journal,

#gl-journal-table
.gl-action-menu
.btn-delete-journal {

    color: #DC2626 !important;

}


/* ==========================================================
   ACTION ITEM HOVER
========================================================== */

#gl-journal-table
.gl-action-menu
.dropdown-item:hover {

    background: #F8FAFC !important;

}


/* ==========================================================
   ACTION DANGER HOVER
========================================================== */

#gl-journal-table
.gl-action-menu
.btn-delete-journal:hover,

#gl-journal-table
.gl-action-menu
.btn-void-journal:hover {

    color: #DC2626 !important;

    background: #FEF2F2 !important;

}


/* ==========================================================
   ACTION TRIGGER HOVER
========================================================== */

#gl-journal-table
.gl-action-trigger:hover {

    transform: translateY(-1px);

    box-shadow:
        0 4px 10px rgba(15, 23, 42, .12);

}


/* ==========================================================
   ACTION TRIGGER ACTIVE
========================================================== */

#gl-journal-table
.gl-action-trigger:active {

    transform: translateY(0);

}


/* ==========================================================
   ACTION TRIGGER FOCUS
========================================================== */

#gl-journal-table
.gl-action-trigger:focus-visible {

    outline: 2px solid #93C5FD;

    outline-offset: 2px;

}


/* ==========================================================
   PAGINATION
========================================================== */

.gl-journal-page
> .finova-table-card
> .finova-card-body
> .finova-table-container
> .finova-pagination-wrapper {

    flex: 0 0 auto;

    width: 100%;

    margin-top: auto;

}


/* ==========================================================
   PAGINATION LEFT
========================================================== */

.gl-journal-page
.finova-pagination-left {

    display: flex;

    align-items: center;

    gap: 8px;

}


/* ==========================================================
   PAGINATION LABEL
========================================================== */

.gl-journal-page
.finova-pagination-label {

    display: inline-flex;

    align-items: center;

    white-space: nowrap;

}


/* ==========================================================
   PAGINATION TOTAL
========================================================== */

.gl-journal-page
.finova-pagination-total {

    display: inline-flex;

    align-items: center;

    min-width: 18px;

    margin-left: 2px;

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1200px) {

    .gl-journal-filter-card
    > .finova-card-body {

        padding-left: 16px !important;

        padding-right: 16px !important;

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .gl-journal-filter-card
    > .finova-card-body {

        padding: 8px 16px !important;

    }


    .gl-journal-filter-card
    #btn-find-journal {

        flex: 0 0 75px !important;

        width: 75px !important;

        min-width: 75px !important;

    }

}


/* ==========================================================
   DELETE JOURNAL CONFIRMATION
   FIX LONG DESCRIPTION OVERFLOW
========================================================== */

.modal
.modal-content {

    min-width: 0;

    max-width: 100%;

}


.modal
.modal-body
table {

    width: 100% !important;

    max-width: 100% !important;

    table-layout: fixed !important;

    margin: 0 !important;

}


.modal
.modal-body
table th,

.modal
.modal-body
table td:first-child {

    width: 92px !important;

    max-width: 92px !important;

    white-space: normal !important;

    vertical-align: top !important;

}


.modal
.modal-body
table
td:not(:first-child) {

    width: auto !important;

    max-width: 0 !important;

    white-space: normal !important;

    overflow: hidden !important;

    overflow-wrap: anywhere !important;

    word-wrap: break-word !important;

    word-break: break-all !important;

    vertical-align: top !important;

}


.modal
.modal-body
table
td:not(:first-child)
* {

    max-width: 100% !important;

    white-space: normal !important;

    overflow-wrap: anywhere !important;

    word-break: break-all !important;

}


.modal
.modal-body
table
tr:last-child
td {

    white-space: normal !important;

    overflow-wrap: anywhere !important;

    word-break: break-all !important;

}


.modal
.modal-body {

    min-width: 0;

    overflow-x: hidden !important;

}
/* ==========================================================
   FINOVA ACCOUNTING SYSTEM
   GENERAL JOURNAL
   FINAL CLEAN TABLE LAYOUT
   FONT SIZE SAME AS ACCOUNT PAYABLE
========================================================== */


/* ==========================================================
   MAIN TABLE
========================================================== */

#gl-journal-table.gl-journal-main-table {

    width: 100%;

    min-width: 100%;

    table-layout: fixed;

    margin-bottom: 0;

}


/* ==========================================================
   COLUMN WIDTH
========================================================== */


/* NO */

#gl-journal-table .gl-col-no {

    width: 32px;

}


/* DATE */

#gl-journal-table .gl-col-date {
    width: 90px;
}


/* JOURNAL INFORMATION */

#gl-journal-table .gl-col-information {

    width: auto;

}




/* AMOUNT */

#gl-journal-table .gl-col-amount {

    width: 175px;

}


/* CREATED */

#gl-journal-table .gl-col-created {

    width: 100px;

}


/* STATUS */

#gl-journal-table .gl-col-status {

    width: 80px;

}


/* ACTION */

#gl-journal-table .gl-col-action {

    width: 42px;

}


/* ==========================================================
   TABLE HEADER
========================================================== */

#gl-journal-table
> thead
> tr
> th {

    vertical-align: middle;

    white-space: nowrap;

    font-weight: 700 !important;

    color: #111827 !important;

}


/* ==========================================================
   TABLE BODY
   SAME AS AP
========================================================== */

#gl-journal-table
> tbody
> tr
> td {

    height: auto !important;

    padding-top: 10px;

    padding-bottom: 10px;

    font-size: 14px;

    font-weight: 400 !important;

    line-height: 1.55;

    color: #1F2937 !important;

}


/* ==========================================================
   TABLE ROW
========================================================== */

#gl-journal-table
> tbody
> tr {

    height: auto !important;

    min-height: 0 !important;

}


/* ==========================================================
   NO COLUMN
========================================================== */

/* ==========================================================
   NO COLUMN
========================================================== */

#gl-journal-table .gl-col-no {

    width: 42px;

}


#gl-journal-table
.gl-journal-no-cell {

    width: 42px;

    min-width: 42px;

    max-width: 42px;

    padding-left: 2px !important;

    padding-right: 2px !important;

    font-size: 13px;

    font-weight: 500;

    text-align: center;

    vertical-align: middle;

    white-space: nowrap;

    color: var(--text-secondary);

}


/* ==========================================================
   DATE COLUMN
   FINAL - CENTER + SINGLE LINE
========================================================== */

#gl-journal-table
.gl-journal-date-cell {

    width: 90px;

    min-width: 90px;

    max-width: 90px;

    padding-left: 4px !important;

    padding-right: 4px !important;

    text-align: center;

    vertical-align: middle !important;

    white-space: nowrap !important;

}


/* ==========================================================
   DATE TEXT
========================================================== */

#gl-journal-table
.gl-journal-date {

    display: block;

    width: 100%;

    margin: 0;

    padding: 0;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.55;

    text-align: center;

    white-space: nowrap !important;

    word-break: keep-all;

    overflow-wrap: normal;

    color: var(--text-secondary);

}


/* ==========================================================
   JOURNAL INFORMATION COLUMN
========================================================== */

#gl-journal-table
.gl-journal-info-cell {

    width: auto;

    min-width: 0;

    max-width: none;

    padding: 10px 12px !important;

    vertical-align: top;

    white-space: normal;

}


/* ==========================================================
   JOURNAL INFORMATION WRAPPER
========================================================== */

#gl-journal-table
.gl-journal-info {

    display: flex;

    flex-direction: column;

    width: 100%;

    min-width: 0;

    gap: 2px;

}


/* ==========================================================
   JOURNAL INFORMATION LINE
========================================================== */

#gl-journal-table
.gl-journal-info-line {

    display: grid;

    grid-template-columns:
        48px
        10px
        minmax(0, 1fr);

    column-gap: 2px;

    align-items: start;

    width: 100%;

    min-width: 0;

    line-height: 1.55;

}


/* ==========================================================
   JOURNAL INFORMATION LABEL
========================================================== */

#gl-journal-table
.gl-journal-info-label {

    font-size: 13px;

    font-weight: 500;

    white-space: nowrap;

    color: var(--text-secondary);

}


/* ==========================================================
   JOURNAL INFORMATION SEPARATOR
========================================================== */

#gl-journal-table
.gl-journal-info-separator {

    font-size: 13px;

    text-align: center;

    color: #94A3B8;

}


/* ==========================================================
   JOURNAL INFORMATION VALUE
========================================================== */

#gl-journal-table
.gl-journal-info-value {

    display: block;

    min-width: 0;

    font-size: 13px;

    font-weight: 500;

    white-space: normal;

    overflow-wrap: anywhere;

    color: var(--text-primary);

}


/* ==========================================================
   JOURNAL NUMBER
========================================================== */

#gl-journal-table
.gl-journal-number {

    font-size: 13px;

    font-weight: 600;

    color: var(--text-primary);

}


/* ==========================================================
   TRANSACTION COUNT
========================================================== */

#gl-journal-table
.gl-journal-transaction-line {

    margin-bottom: 2px;

}


#gl-journal-table
.gl-journal-transaction-count {

    font-size: 13px;

    font-weight: 600;

    color: var(--text-primary);

}


/* ==========================================================
   DESCRIPTION
========================================================== */

#gl-journal-table
.gl-journal-description {

    display: block;

    width: 100%;

    min-width: 0;

    max-width: 100%;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.55;

    white-space: normal;

    overflow: visible;

    text-overflow: clip;

    overflow-wrap: anywhere;

    word-break: normal;

    color: var(--text-secondary);

}




/* ==========================================================
   SOURCE BADGE
========================================================== */

#gl-journal-table
.gl-journal-source-cell
.badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 5px 8px;

    font-size: 11.5px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

}


/* ==========================================================
   AMOUNT COLUMN
========================================================== */

#gl-journal-table
.gl-journal-amount-cell {

    width: 175px;

    min-width: 175px;

    max-width: 175px;

    padding: 8px 8px !important;

    vertical-align: middle;

    white-space: nowrap;

}


/* ==========================================================
   AMOUNT LINE
========================================================== */

#gl-journal-table
.gl-journal-summary-line {

    display: grid;

    grid-template-columns:
        48px
        10px
        minmax(0, 1fr);

    column-gap: 2px;

    align-items: center;

    width: 100%;

    min-width: 0;

    line-height: 1.55;

}


/* ==========================================================
   AMOUNT LABEL
========================================================== */

#gl-journal-table
.gl-journal-summary-label {

    font-size: 13px;

    font-weight: 500;

    white-space: nowrap;

    color: var(--text-secondary);

}


/* ==========================================================
   AMOUNT SEPARATOR
========================================================== */

#gl-journal-table
.gl-journal-summary-separator {

    font-size: 13px;

    text-align: center;

    color: #94A3B8;

}


/* ==========================================================
   AMOUNT VALUE
========================================================== */

#gl-journal-table
.gl-journal-summary-value {

    min-width: 0;

    font-size: 13.5px;

    font-weight: 600;

    text-align: right;

    white-space: nowrap;

    color: var(--text-primary);

}


/* ==========================================================
   CREATED COLUMN
========================================================== */

#gl-journal-table
.gl-journal-created-cell {

    width: 100px;

    min-width: 100px;

    max-width: 100px;

    padding-left: 4px !important;

    padding-right: 4px !important;

    font-size: 13px;

    line-height: 1.55;

    text-align: center;

    vertical-align: middle;

    white-space: normal;

    color: var(--text-secondary);

}


/* ==========================================================
   CREATED DATE / TIME
========================================================== */

#gl-journal-table
.gl-created-date,

#gl-journal-table
.gl-created-time {

    display: block;

    width: 100%;

    font-size: 13px;

    line-height: 1.55;

    text-align: center;

    white-space: nowrap;

}


/* ==========================================================
   STATUS COLUMN
========================================================== */

#gl-journal-table
.gl-journal-status-cell {

    width: 80px;

    min-width: 80px;

    max-width: 80px;

    padding-left: 3px !important;

    padding-right: 3px !important;

    text-align: center;

    vertical-align: middle;

    white-space: nowrap;

}


/* ==========================================================
   STATUS BADGE
========================================================== */

#gl-journal-table
.gl-journal-status-cell
.badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 60px;

    padding: 6px 9px;

    font-size: 11.5px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

}


/* ==========================================================
   ACTION COLUMN
========================================================== */

#gl-journal-table
.gl-journal-action-cell {

    position: relative;

    width: 42px;

    min-width: 42px;

    max-width: 42px;

    padding-left: 2px !important;

    padding-right: 2px !important;

    text-align: center;

    vertical-align: middle;

    white-space: nowrap;

}


/* ==========================================================
   ACTION DROPDOWN
========================================================== */

#gl-journal-table
.gl-journal-action-cell
.gl-action-dropdown {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

}


/* ==========================================================
   ACTION BUTTON
========================================================== */

#gl-journal-table
.gl-action-trigger {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 32px !important;

    min-width: 32px !important;

    max-width: 32px !important;

    height: 32px !important;

    min-height: 32px !important;

    padding: 0 !important;

    margin: 0 !important;

    border: 0 !important;

    border-radius: 6px !important;

    background: transparent !important;

    color: var(--text-secondary);

    line-height: 1;

}


/* ==========================================================
   ACTION ICON
========================================================== */

#gl-journal-table
.gl-action-trigger
i {

    margin: 0 !important;

    font-size: 13px;

    line-height: 1;

}


/* ==========================================================
   ACTION HOVER / FOCUS
========================================================== */

#gl-journal-table
.gl-action-trigger:hover,

#gl-journal-table
.gl-action-trigger:focus {

    border: 0 !important;

    background: transparent !important;

    color: var(--text-primary);

    box-shadow: none !important;

}


/* ==========================================================
   ACTION MENU
========================================================== */

#gl-journal-table
.gl-action-menu {

    min-width: 165px;

    padding: 6px;

    border: 1px solid #E2E8F0;

    border-radius: 9px;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, .14);

}


/* ==========================================================
   ACTION MENU ITEM
========================================================== */

#gl-journal-table
.gl-action-menu
.dropdown-item {

    display: flex;

    align-items: center;

    width: 100%;

    min-height: 36px;

    padding: 7px 10px;

    border: 0;

    border-radius: 6px;

    background: transparent;

    font-size: 13px;

    font-weight: 500;

    text-align: left;

    white-space: nowrap;

}


/* ==========================================================
   ACTION MENU ICON
========================================================== */

#gl-journal-table
.gl-action-menu
.dropdown-item
i {

    flex: 0 0 18px;

    width: 18px;

    margin-right: 8px !important;

    text-align: center;

}


/* ==========================================================
   ACTION DIVIDER
========================================================== */

#gl-journal-table
.gl-action-menu
.dropdown-divider {

    margin: 5px 0;

}


/* ==========================================================
   ACTION COLORS
========================================================== */

#gl-journal-table
.gl-action-menu
.btn-edit-journal {

    color: #2563EB;

}


#gl-journal-table
.gl-action-menu
.btn-post-journal {

    color: #16A34A;

}


#gl-journal-table
.gl-action-menu
.btn-voucher-journal {

    color: #0891B2;

}


#gl-journal-table
.gl-action-menu
.btn-view-journal {

    color: #475569;

}


#gl-journal-table
.gl-action-menu
.btn-duplicate-journal {

    color: #64748B;

}


#gl-journal-table
.gl-action-menu
.btn-void-journal,

#gl-journal-table
.gl-action-menu
.btn-delete-journal {

    color: #DC2626 !important;

}


/* ==========================================================
   ACTION ITEM HOVER
========================================================== */

#gl-journal-table
.gl-action-menu
.dropdown-item:hover {

    background: #F8FAFC !important;

}


/* ==========================================================
   ACTION DANGER HOVER
========================================================== */

#gl-journal-table
.gl-action-menu
.btn-delete-journal:hover,

#gl-journal-table
.gl-action-menu
.btn-void-journal:hover {

    color: #DC2626 !important;

    background: #FEF2F2 !important;

}


/* ==========================================================
   ROW HOVER
========================================================== */

#gl-journal-table
.gl-journal-row {

    transition:
        background-color 0.15s ease;

}


#gl-journal-table
.gl-journal-row:hover {

    background-color: #F8F9FA;

}
/* ==========================================================
   FINOVA ACCOUNTING SYSTEM
   GENERAL JOURNAL
   JOURNAL DETAIL TABLE
   FINAL 2 ROW LAYOUT
========================================================== */


/* ==========================================================
   TABLE
========================================================== */

#journal-detail-table {

    width: 100%;

    table-layout: fixed;

    margin-bottom: 0;

}


/* ==========================================================
   COLUMN WIDTH
========================================================== */

#journal-detail-table
.journal-detail-col-no {

    width: 55px;

}


#journal-detail-table
.journal-detail-col-debit {

    width: 25%;

}


#journal-detail-table
.journal-detail-col-credit {

    width: 25%;

}


#journal-detail-table
.journal-detail-col-amount {

    width: 160px;

}


#journal-detail-table
.journal-detail-col-bp {

    width: 25%;

}


#journal-detail-table
.journal-detail-col-action {

    width: 90px;

}


/* ==========================================================
   HEADER
========================================================== */

#journal-detail-table
> thead
> tr
> th {

    padding: 10px 12px;

    vertical-align: middle;

    font-size: 13px;

    font-weight: 600;

    color: #111827;

    white-space: nowrap;

}


/* ==========================================================
   DESCRIPTION ROW
   BELOW ACCOUNT JOURNAL
========================================================== */

#journal-detail-table
.journal-detail-description-row
> td {

    background: #F8FAFC;

    border-top: 0 !important;

    border-bottom: 1px solid #D7DBE0;

}


/* ==========================================================
   DESCRIPTION CELL
========================================================== */

#journal-detail-table
.journal-detail-description-cell {

    padding:
        7px
        14px
        9px
        14px !important;

    vertical-align: middle !important;

}


/* ==========================================================
   ACCOUNT ROW
========================================================== */

#journal-detail-table
.journal-detail-account-row
> td {

    padding:
        10px
        12px !important;

    font-size: 13px;

    line-height: 1.5;

    vertical-align: middle !important;

    background: #FFFFFF;

    border-bottom: 0 !important;

}


/* ==========================================================
   DESCRIPTION WRAPPER
========================================================== */

#journal-detail-table
.journal-detail-description-wrap {

    display: grid;

    grid-template-columns:
        58px
        82px
        10px
        minmax(0, 1fr);

    column-gap: 6px;

    align-items: center;

    width: 100%;

    min-width: 0;

}

/* ==========================================================
   DESCRIPTION LABEL
========================================================== */

#journal-detail-table
.journal-detail-description-label {

    font-size: 13px;

    font-weight: 600;

    line-height: 1.55;

    white-space: nowrap;

    color: var(--text-secondary);

}


/* ==========================================================
   DESCRIPTION SEPARATOR
========================================================== */

#journal-detail-table
.journal-detail-description-separator {

    font-size: 13px;

    line-height: 1.55;

    text-align: center;

    color: #94A3B8;

}


/* ==========================================================
   DESCRIPTION VALUE
========================================================== */

#journal-detail-table
.journal-detail-description-value {

    display: block;

    min-width: 0;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.55;

    color: var(--text-primary);

    white-space: normal;

    overflow-wrap: anywhere;

    word-break: normal;

}


/* ==========================================================
   ACCOUNT ROW
========================================================== */

#journal-detail-table
.journal-detail-account-row
> td {

    padding: 10px 12px !important;

    font-size: 13px;

    line-height: 1.5;

    vertical-align: middle !important;

    background: #FFFFFF;

}


/* ==========================================================
   NO
========================================================== */

#journal-detail-table
.journal-detail-no-cell {

    width: 55px;

    text-align: center;

    vertical-align: middle !important;

    color: var(--text-secondary);

}


/* ==========================================================
   DEBIT ACCOUNT
========================================================== */

#journal-detail-table
.journal-detail-debit-cell {

    min-width: 0;

    white-space: normal;

    overflow-wrap: anywhere;

    word-break: normal;

    color: var(--text-primary);

}


/* ==========================================================
   CREDIT ACCOUNT
========================================================== */

#journal-detail-table
.journal-detail-credit-cell {

    min-width: 0;

    white-space: normal;

    overflow-wrap: anywhere;

    word-break: normal;

    color: var(--text-primary);

}


/* ==========================================================
   AMOUNT
========================================================== */

#journal-detail-table
.journal-detail-amount-cell {

    width: 160px;

    font-size: 13.5px;

    font-weight: 600;

    text-align: right;

    vertical-align: middle !important;

    white-space: nowrap;

    color: var(--text-primary);

}


/* ==========================================================
   BUSINESS PARTNER
========================================================== */

#journal-detail-table
.journal-detail-bp-cell {

    min-width: 0;

    white-space: normal;

    overflow-wrap: anywhere;

    word-break: normal;

    color: var(--text-primary);

}


/* ==========================================================
   ACTION
========================================================== */

#journal-detail-table
.journal-detail-action-cell {

    width: 90px;

    text-align: center;

    vertical-align: middle !important;

    white-space: nowrap;

}


/* ==========================================================
   ACTION BUTTON GROUP
========================================================== */

#journal-detail-table
.journal-detail-action-cell
.btn-group {

    display: inline-flex;

    align-items: center;

    justify-content: center;

}


/* ==========================================================
   ACTION BUTTON
========================================================== */

#journal-detail-table
.journal-detail-action-cell
.btn {

    width: 30px;

    height: 30px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0;

}


/* ==========================================================
   ACTION ICON
========================================================== */

#journal-detail-table
.journal-detail-action-cell
.btn
i {

    font-size: 12px;

}


/* ==========================================================
   ACCOUNT ROW HOVER
========================================================== */

#journal-detail-table
.journal-detail-account-row:hover
> td {

    background: #F8FAFC;

}
/* ==========================================================
   JOURNAL DETAIL CATEGORY
========================================================== */

.journal-detail-description-wrap {

    display: grid;

    grid-template-columns:
        70px
        82px
        10px
        minmax(0, 1fr);

    column-gap: 4px;

    align-items: start;

    width: 100%;

    min-width: 0;

}


/* ==========================================================
   CATEGORY
========================================================== */

.journal-detail-category {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: fit-content;

    min-width: 58px;

    min-height: 22px;

    padding: 3px 7px;

    border-radius: 4px;

    font-size: 10.5px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

}


/* DPP */

.journal-detail-category-dpp {

    background: #EAF2FF;

    color: #315D9A;

}


/* TAX PLUS */

.journal-detail-category-plus {

    background: #ECFDF3;

    color: #027A48;

}


/* TAX MINUS */

.journal-detail-category-minus {

    background: #FFF4E5;

    color: #B54708;

}
/* ==========================================================
   JOURNAL DETAIL SECTION
========================================================== */

.journal-detail-section {

    display: flex;

    flex-direction: column;

    min-height: 0;

    height: 100%;

    background: #FFFFFF;

}


/* ==========================================================
   DETAIL HEADER
========================================================== */

.journal-detail-section-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex: 0 0 auto;

    padding: 14px;

    border-bottom: 1px solid #DEE2E6;

}


/* ==========================================================
   DETAIL SCROLL AREA
========================================================== */

.journal-detail-scroll {

    flex: 1 1 auto;

    min-height: 0;

    max-height: 430px;

    overflow-x: auto;

    overflow-y: auto;

}


/* ==========================================================
   TABLE HEADER STICKY
========================================================== */

.journal-detail-scroll
#journal-detail-table
thead {

    position: sticky;

    top: 0;

    z-index: 10;

    background: #F8F9FA;

}


/* ==========================================================
   PERMANENT SUMMARY
========================================================== */

.journal-summary-sticky {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    flex: 0 0 auto;

    width: 100%;

    padding: 12px 14px;

    border-top: 1px solid #D7DBE0;

    background: #FFFFFF;

    box-shadow:
        0 -4px 12px rgba(15, 23, 42, .06);

    z-index: 20;

}


/* ==========================================================
   SUMMARY ITEM
========================================================== */

.journal-summary-item {

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 0 12px;

    border-right: 1px solid #E5E7EB;

}


.journal-summary-item:last-child {

    border-right: 0;

}


.journal-summary-item
span {

    font-size: 12px;

    font-weight: 500;

    color: var(--text-secondary);

}


.journal-summary-item
strong {

    font-size: 14px;

    font-weight: 600;

    color: var(--text-primary);

}
/* ==========================================================
   FINOVA ACCOUNTING SYSTEM
   GENERAL JOURNAL
   JOURNAL DETAIL
   FINAL
========================================================== */


/* ==========================================================
   MODAL
========================================================== */

#glJournalModal
.gl-journal-modal-content {

    height: calc(100vh - 40px);

    max-height: calc(100vh - 40px);

    overflow: hidden;

}


/* ==========================================================
   MODAL BODY
========================================================== */

#glJournalModal
.gl-journal-modal-body {

    display: flex;

    flex-direction: column;

    min-height: 0;

    overflow: hidden;

}


/* ==========================================================
   JOURNAL INFORMATION
========================================================== */

#glJournalModal
.gl-journal-info-card {

    flex: 0 0 auto;

}


/* ==========================================================
   JOURNAL DETAIL CARD
========================================================== */

#glJournalModal
.gl-journal-detail-card {

    display: flex;

    flex-direction: column;

    flex: 1 1 auto;

    min-height: 0;

    overflow: hidden;

}


/* ==========================================================
   JOURNAL DETAIL HEADER
========================================================== */

#glJournalModal
.gl-journal-detail-card
> .card-header {

    flex: 0 0 auto;

}


/* ==========================================================
   DETAIL SCROLL AREA
========================================================== */

#glJournalModal
.journal-detail-scroll {

    flex: 1 1 auto;

    min-height: 0;

    overflow-x: auto;

    overflow-y: auto;

    background: #FFFFFF;

}


/* ==========================================================
   TABLE
========================================================== */

#journal-detail-table {

    width: 100%;

    min-width: 950px;

    table-layout: fixed;

    margin-bottom: 0;

}


/* ==========================================================
   TABLE HEADER STICKY
========================================================== */

#journal-detail-table
> thead {

    position: sticky;

    top: 0;

    z-index: 15;

}


#journal-detail-table
> thead
> tr
> th {

    padding: 10px 12px;

    vertical-align: middle;

    background: #F8F9FA;

    font-size: 13px;

    font-weight: 600;

    color: #111827;

    white-space: nowrap;

    box-shadow:
        inset 0 -1px 0 #D7DBE0;

}


/* ==========================================================
   COLUMN WIDTH
========================================================== */

#journal-detail-table
.journal-detail-col-no {

    width: 55px;

}


#journal-detail-table
.journal-detail-col-debit {

    width: 25%;

}


#journal-detail-table
.journal-detail-col-credit {

    width: 25%;

}


#journal-detail-table
.journal-detail-col-amount {

    width: 150px;

}


#journal-detail-table
.journal-detail-col-bp {

    width: 25%;

}


#journal-detail-table
.journal-detail-col-action {

    width: 90px;

}


/* ==========================================================
   DESCRIPTION ROW
========================================================== */

#journal-detail-table
.journal-detail-description-row
> td {

    background: #F8FAFC;

}


/* ==========================================================
   DESCRIPTION CELL
========================================================== */

#journal-detail-table
.journal-detail-description-cell {

    padding: 9px 14px !important;

    vertical-align: top !important;

}


/* ==========================================================
   DESCRIPTION WRAPPER
========================================================== */

#journal-detail-table
.journal-detail-description-wrap {

    display: grid;

    grid-template-columns:
        68px
        82px
        10px
        minmax(0, 1fr);

    column-gap: 4px;

    align-items: start;

    width: 100%;

    min-width: 0;

}


/* ==========================================================
   CATEGORY
========================================================== */

#journal-detail-table
.journal-detail-category {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: fit-content;

    min-width: 58px;

    min-height: 22px;

    padding: 3px 7px;

    border-radius: 4px;

    font-size: 10.5px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

}


/* ==========================================================
   DPP
========================================================== */

#journal-detail-table
.journal-detail-category-dpp {

    background: #EAF2FF;

    color: #315D9A;

}


/* ==========================================================
   TAX PLUS
========================================================== */

#journal-detail-table
.journal-detail-category-plus {

    background: #ECFDF3;

    color: #027A48;

}


/* ==========================================================
   TAX MINUS
========================================================== */

#journal-detail-table
.journal-detail-category-minus {

    background: #FFF4E5;

    color: #B54708;

}


/* ==========================================================
   DESCRIPTION LABEL
========================================================== */

#journal-detail-table
.journal-detail-description-label {

    font-size: 13px;

    font-weight: 600;

    line-height: 1.55;

    white-space: nowrap;

    color: var(--text-secondary);

}


/* ==========================================================
   DESCRIPTION SEPARATOR
========================================================== */

#journal-detail-table
.journal-detail-description-separator {

    font-size: 13px;

    line-height: 1.55;

    text-align: center;

    color: #94A3B8;

}


/* ==========================================================
   DESCRIPTION VALUE
========================================================== */

#journal-detail-table
.journal-detail-description-value {

    min-width: 0;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.55;

    color: var(--text-primary);

    white-space: normal;

    overflow-wrap: anywhere;

    word-break: normal;

}


/* ==========================================================
   ACCOUNT ROW
========================================================== */

#journal-detail-table
.journal-detail-account-row
> td {

    padding: 10px 12px !important;

    font-size: 13px;

    line-height: 1.5;

    vertical-align: middle !important;

    background: #FFFFFF;

}


/* ==========================================================
   ACCOUNT ROW HOVER
========================================================== */

#journal-detail-table
.journal-detail-account-row:hover
> td {

    background: #F8FAFC;

}


/* ==========================================================
   NO
========================================================== */

#journal-detail-table
.journal-detail-no-cell {

    text-align: center;

    vertical-align: middle !important;

    color: var(--text-secondary);

}


/* ==========================================================
   DEBIT / CREDIT
========================================================== */

#journal-detail-table
.journal-detail-debit-cell,

#journal-detail-table
.journal-detail-credit-cell {

    min-width: 0;

    white-space: normal;

    overflow-wrap: anywhere;

    word-break: normal;

    color: var(--text-primary);

}


/* ==========================================================
   AMOUNT
========================================================== */

#journal-detail-table
.journal-detail-amount-cell {

    font-size: 13.5px;

    font-weight: 600;

    text-align: right;

    vertical-align: middle !important;

    white-space: nowrap;

    color: var(--text-primary);

}


/* ==========================================================
   BUSINESS PARTNER
========================================================== */

#journal-detail-table
.journal-detail-bp-cell {

    min-width: 0;

    white-space: normal;

    overflow-wrap: anywhere;

    word-break: normal;

    color: var(--text-primary);

}


/* ==========================================================
   ACTION
========================================================== */

#journal-detail-table
.journal-detail-action-cell {

    text-align: center;

    vertical-align: middle !important;

    white-space: nowrap;

}


/* ==========================================================
   ACTION GROUP
========================================================== */

#journal-detail-table
.journal-detail-action-cell
.btn-group {

    display: inline-flex;

    align-items: center;

    justify-content: center;

}


/* ==========================================================
   ACTION BUTTON
========================================================== */

#journal-detail-table
.journal-detail-action-cell
.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 30px;

    height: 30px;

    padding: 0;

}


/* ==========================================================
   ACTION ICON
========================================================== */

#journal-detail-table
.journal-detail-action-cell
.btn
i {

    font-size: 12px;

}


/* ==========================================================
   PERMANENT SUMMARY
========================================================== */

#glJournalModal
.journal-summary-sticky {

    display: grid;

    grid-template-columns:
        minmax(240px, 1fr)
        180px
        220px;

    align-items: center;

    flex: 0 0 auto;

    width: 100%;

    min-height: 74px;

    padding: 10px 14px;

    border-top: 1px solid #D7DBE0;

    background: #FFFFFF;

    box-shadow:
        0 -4px 12px rgba(15, 23, 42, .06);

    z-index: 20;

}


/* ==========================================================
   SUMMARY TITLE
========================================================== */

#glJournalModal
.journal-summary-title {

    padding-right: 16px;

}


/* ==========================================================
   SUMMARY ITEM
========================================================== */

#glJournalModal
.journal-summary-item {

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 3px;

    min-height: 46px;

    padding: 0 16px;

    border-left: 1px solid #E5E7EB;

}


/* ==========================================================
   SUMMARY LABEL
========================================================== */

#glJournalModal
.journal-summary-label {

    font-size: 12px;

    font-weight: 500;

    color: var(--text-secondary);

}


/* ==========================================================
   SUMMARY VALUE
========================================================== */

#glJournalModal
.journal-summary-value {

    font-size: 15px;

    font-weight: 700;

    color: var(--text-primary);

}


/* ==========================================================
   FOOTER
========================================================== */

#glJournalModal
.gl-journal-footer {

    flex: 0 0 auto;

}


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

@media (
    max-width: 900px
) {

    #glJournalModal
    .journal-summary-sticky {

        grid-template-columns:
            1fr
            130px
            170px;

    }

}
/* ==========================================================
   FINOVA ACCOUNTING SYSTEM
   JOURNAL DETAIL MODAL
   MODERN DESIGN
========================================================== */


/* ==========================================================
   MODAL DIALOG
========================================================== */

#journalDetailModal
.modal-dialog {

    max-width: 900px;

}


/* ==========================================================
   MODAL CONTENT
========================================================== */

#journalDetailModal
.modal-content {

    overflow: hidden;

    border: 0;

    border-radius: 14px;

    background: #FFFFFF;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, .18),
        0 4px 12px rgba(15, 23, 42, .08);

}


/* ==========================================================
   MODERN HEADER
========================================================== */

#journalDetailModal
.journal-detail-modern-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 74px;

    padding: 14px 20px;

    background: #FFFFFF;

    border-bottom: 1px solid #E5E7EB;

    color: #1F2937;

}


/* ==========================================================
   HEADER ICON
========================================================== */

#journalDetailModal
.journal-detail-header-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 40px;

    width: 40px;

    height: 40px;

    border-radius: 10px;

    background: #EAF2FF;

    color: #0D6EFD;

    font-size: 15px;

}


/* ==========================================================
   HEADER TITLE
========================================================== */

#journalDetailModal
.journal-detail-modern-header
.modal-title {

    margin: 0;

    color: #172B4D;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.3;

}


/* ==========================================================
   HEADER SUBTITLE
========================================================== */

#journalDetailModal
.journal-detail-header-subtitle {

    display: block;

    color: #6B7280;

    font-size: 12px;

    font-weight: 400;

    line-height: 1.35;

}


/* ==========================================================
   CLOSE BUTTON
========================================================== */

#journalDetailModal
.journal-detail-modern-header
.btn-close {

    margin: 0;

    padding: 8px;

    opacity: .55;

}


#journalDetailModal
.journal-detail-modern-header
.btn-close:hover {

    opacity: 1;

}


/* ==========================================================
   MODAL BODY
========================================================== */

#journalDetailModal
.modal-body {

    padding: 20px;

    background: #FFFFFF;

}


/* ==========================================================
   ROW GAP
========================================================== */

#journalDetailModal
.modal-body
.row {

    --bs-gutter-x: 18px;

    --bs-gutter-y: 18px;

}


/* ==========================================================
   FORM LABEL
========================================================== */

#journalDetailModal
.form-label {

    margin-bottom: 6px;

    color: #344054;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.3;

}


/* ==========================================================
   INPUT / SELECT
========================================================== */

#journalDetailModal
.form-control,

#journalDetailModal
.form-select {

    width: 100%;

    min-height: 42px;

    padding-left: 12px;

    padding-right: 12px;

    border: 1px solid #D7DCE3;

    border-radius: 8px;

    background: #FFFFFF;

    color: #1F2937;

    font-size: 13px;

    box-shadow: none;

}


/* ==========================================================
   INPUT FOCUS
========================================================== */

#journalDetailModal
.form-control:focus,

#journalDetailModal
.form-select:focus {

    border-color: #86B7FE;

    box-shadow:
        0 0 0 3px rgba(13, 110, 253, .10);

}


/* ==========================================================
   DESCRIPTION
========================================================== */

#journalDetailModal
#detail-description {

    min-height: 110px;

    padding-top: 10px;

    line-height: 1.5;

    resize: vertical;

}


/* ==========================================================
   AMOUNT
========================================================== */

#journalDetailModal
#detail-amount {

    font-weight: 500;

}


/* ==========================================================
   TOM SELECT WRAPPER
========================================================== */

#journalDetailModal
.ts-wrapper {

    width: 100%;

}


/* ==========================================================
   TOM SELECT CONTROL
========================================================== */

#journalDetailModal
.ts-control {

    display: flex !important;

    align-items: center !important;

    flex-wrap: nowrap !important;

    width: 100% !important;

    min-height: 42px !important;

    padding: 8px 12px !important;

    border: 1px solid #D7DCE3 !important;

    border-radius: 8px !important;

    background: #FFFFFF !important;

    font-size: 13px !important;

    box-shadow: none !important;

    overflow: hidden;

}


/* ==========================================================
   TOM SELECT FOCUS
========================================================== */

#journalDetailModal
.ts-wrapper.focus
.ts-control {

    border-color: #86B7FE !important;

    box-shadow:
        0 0 0 3px rgba(13, 110, 253, .10) !important;

}


/* ==========================================================
   SELECTED COA
========================================================== */

#journalDetailModal
.ts-control
.item {

    flex: 0 1 auto !important;

    min-width: 0;

    max-width: calc(100% - 28px);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


/* ==========================================================
   TOM SELECT SEARCH INPUT
========================================================== */

#journalDetailModal
.ts-control
> input {

    flex: 1 1 auto !important;

    width: 1px !important;

    min-width: 20px !important;

    max-width: 100% !important;

    height: auto !important;

    min-height: 0 !important;

    margin: 0 0 0 4px !important;

    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

}


/* ==========================================================
   TOM SELECT DROPDOWN
========================================================== */

#journalDetailModal
.ts-dropdown {

    margin-top: 5px;

    border: 1px solid #D7DCE3;

    border-radius: 8px;

    background: #FFFFFF;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, .12);

    overflow: hidden;

}


/* ==========================================================
   TOM SELECT OPTION
========================================================== */

#journalDetailModal
.ts-dropdown
.option {

    padding: 9px 12px;

    font-size: 13px;

}


/* ==========================================================
   MODAL FOOTER
========================================================== */

#journalDetailModal
.modal-footer {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;

    min-height: 64px;

    padding: 12px 20px;

    background: #F8FAFC;

    border-top: 1px solid #E5E7EB;

}


/* ==========================================================
   FOOTER BUTTON
========================================================== */

#journalDetailModal
.modal-footer
.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 38px;

    padding-left: 16px;

    padding-right: 16px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 600;

}


/* ==========================================================
   SAVE BUTTON
========================================================== */

#journalDetailModal
#btn-save-detail-line {

    box-shadow:
        0 2px 5px rgba(13, 110, 253, .18);

}
/*
==========================================================
GL JOURNAL SOURCE
==========================================================
*/

.gl-journal-source-cell {

    text-align: center !important;

    vertical-align: middle !important;

}


.gl-journal-source-wrapper {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

}


.gl-journal-source-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 82px;

    height: 26px;

    padding: 0 10px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

}


/*
==========================================================
AP INVOICE
==========================================================
*/

.gl-source-ap-invoice {

    background: #FFF3CD;

    color: #856404;

}


/*
==========================================================
AP PAYMENT
==========================================================
*/

.gl-source-ap-payment {

    background: #FDE2E2;

    color: #B42318;

}


/*
==========================================================
AR INVOICE
==========================================================
*/

.gl-source-ar-invoice {

    background: #D1FAE5;

    color: #047857;

}


/*
==========================================================
AR PAYMENT
==========================================================
*/

.gl-source-ar-payment {

    background: #DBEAFE;

    color: #1D4ED8;

}


/*
==========================================================
GENERAL JOURNAL
==========================================================
*/

.gl-source-glj {

    background: #E8F1FF;

    color: #0D6EFD;

}
/* ==========================================================
   GL JOURNAL
   SOURCE COLUMN
========================================================== */

/* HEADER + BODY SOURCE */

.gl-journal-table th.gl-journal-source-cell,
.gl-journal-table td.gl-journal-source-cell,
.gl-journal-source-cell {

    width: 135px !important;

    min-width: 135px !important;

    max-width: 135px !important;

    padding-left: 12px !important;

    padding-right: 12px !important;

    text-align: center !important;

    vertical-align: middle !important;

}


/* ==========================================================
   SOURCE WRAPPER
========================================================== */

.gl-journal-source-wrapper {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

}


/* ==========================================================
   SOURCE BADGE
========================================================== */

.gl-journal-source-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 100px;

    height: 26px;

    padding: 0 12px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

}


/* ==========================================================
   AP INVOICE
========================================================== */

.gl-source-ap-invoice {

    background: #FFF3CD;

    color: #856404;

}


/* ==========================================================
   AP PAYMENT
========================================================== */

.gl-source-ap-payment {

    background: #FCE7F3;

    color: #BE185D;

}


/* ==========================================================
   AR INVOICE
========================================================== */

.gl-source-ar-invoice {

    background: #D1FAE5;

    color: #047857;

}


/* ==========================================================
   AR PAYMENT
========================================================== */

.gl-source-ar-payment {

    background: #DBEAFE;

    color: #1D4ED8;

}


/* ==========================================================
   GL JOURNAL
========================================================== */

.gl-source-glj {

    background: #E8F1FF;

    color: #0D6EFD;

}


/* ==========================================================
   AP INVOICE
========================================================== */

.gl-source-ap-invoice {

    background: #FFF3CD;

    color: #856404;

}


/* ==========================================================
   AP PAYMENT
========================================================== */

.gl-source-ap-payment {

    background: #FCE7F3;

    color: #BE185D;

}


/* ==========================================================
   AR INVOICE
========================================================== */

.gl-source-ar-invoice {

    background: #D1FAE5;

    color: #047857;

}


/* ==========================================================
   AR PAYMENT
========================================================== */

.gl-source-ar-payment {

    background: #DBEAFE;

    color: #1D4ED8;

}


/* ==========================================================
   GL JOURNAL
========================================================== */

.gl-source-glj {

    background: #E8F1FF;

    color: #0D6EFD;

}
/* ==========================================================
   GL JOURNAL
   SOURCE COLUMN FINAL
========================================================== */

/*
IMPORTANT:
COLUMN WIDTH IS CONTROLLED BY COLGROUP
*/

#gl-journal-table
.gl-col-source {

    width: 145px !important;

    min-width: 145px !important;

}


/* ==========================================================
   SOURCE HEADER + BODY
========================================================== */

#gl-journal-table
.gl-journal-source-cell {

    width: 145px !important;

    min-width: 145px !important;

    max-width: 145px !important;

    padding-left: 10px !important;

    padding-right: 10px !important;

    text-align: center !important;

    vertical-align: middle !important;

    white-space: nowrap;

}


/* ==========================================================
   SOURCE WRAPPER
========================================================== */

#gl-journal-table
.gl-journal-source-wrapper {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

}


/* ==========================================================
   SOURCE BADGE
========================================================== */

#gl-journal-table
.gl-journal-source-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 105px;

    height: 26px;

    padding: 0 12px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

}


/* ==========================================================
   AP INVOICE
========================================================== */

#gl-journal-table
.gl-source-ap-invoice {

    background: #FFF3CD;

    color: #856404;

}


/* ==========================================================
   AP PAYMENT
========================================================== */

#gl-journal-table
.gl-source-ap-payment {

    background: #FCE7F3;

    color: #BE185D;

}


/* ==========================================================
   AR INVOICE
========================================================== */

#gl-journal-table
.gl-source-ar-invoice {

    background: #D1FAE5;

    color: #047857;

}


/* ==========================================================
   AR PAYMENT
========================================================== */

#gl-journal-table
.gl-source-ar-payment {

    background: #DBEAFE;

    color: #1D4ED8;

}


/* ==========================================================
   GL JOURNAL
========================================================== */

#gl-journal-table
.gl-source-glj {

    background: #E8F1FF;

    color: #0D6EFD;

}
/* ==========================================================
   FINOVA ACCOUNTING SYSTEM
   GENERAL JOURNAL
   FINAL ROW STATUS
========================================================== */


/* ==========================================================
   DRAFT ROW
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="draft"]
> td {

    background: #FFFFFF !important;

    background-color: #FFFFFF !important;

    color: #1F2937 !important;

}


/* ==========================================================
   POSTED ROW
   SAME AS AP / AR COMPLETE
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
> td {

    background: #E9ECEF !important;

    background-color: #E9ECEF !important;

    color: #6C757D !important;

}


/* ==========================================================
   POSTED - DATE
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-date {

    color: #6C757D !important;

}


/* ==========================================================
   POSTED - JOURNAL INFORMATION
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-info-label,

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-info-separator,

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-info-value,

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-number,

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-transaction-count,

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-description {

    color: #6C757D !important;

}


/* ==========================================================
   POSTED - AMOUNT
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-summary-label,

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-summary-separator,

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-summary-value {

    color: #6C757D !important;

}


/* ==========================================================
   POSTED - CREATED
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-created-cell,

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-created-date,

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-created-time {

    color: #6C757D !important;

}


/* ==========================================================
   POSTED - ACTION BUTTON
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-action-trigger {

    color: #6C757D !important;

}


/* ==========================================================
   POSTED - KEEP STATUS BADGE NORMAL
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-status-cell
.badge {

    opacity: 1 !important;

}


/* ==========================================================
   POSTED - KEEP SOURCE BADGE NORMAL
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]
.gl-journal-source-cell
.badge {

    opacity: 1 !important;

}


/* ==========================================================
   VOID ROW
   SAME AS DRAFT
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="void"]
> td {

    background: #FFFFFF !important;

    background-color: #FFFFFF !important;

    color: #1F2937 !important;

}


/* ==========================================================
   VOID ROW CONTENT
   SAME AS DRAFT
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="void"] {

    opacity: 1 !important;

}


/* ==========================================================
   VOID OPACITY
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="void"] {

    opacity: .45;

}


/* ==========================================================
   POSTED HOVER
   KEEP GRAY
========================================================== */

#gl-journal-table
#gl-journal-tbody
tr.gl-journal-row[data-status="posted"]:hover
> td {

    background: #E9ECEF !important;

    background-color: #E9ECEF !important;

}

/* ==========================================================
   FINOVA FIX: GL JOURNAL MODAL BOTTOM EMPTY SPACE
   Keep modal content-driven when journal has few/no detail lines.
   Detail rows retain their own scroll area when content grows.
========================================================== */
#glJournalModal .gl-journal-modal-content {
    height: auto !important;
    max-height: calc(100vh - 40px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

#glJournalModal .gl-journal-modal-body {
    flex: 0 1 auto !important;
    height: auto !important;
    max-height: calc(100vh - 120px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

#glJournalModal .gl-journal-detail-card {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

#glJournalModal .journal-detail-scroll {
    flex: 0 1 auto !important;
    min-height: 0 !important;
    max-height: 260px;
    overflow: auto !important;
}

#glJournalModal .journal-summary-sticky {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
}

@media (max-height: 700px) {
    #glJournalModal .gl-journal-modal-content {
        max-height: calc(100vh - 24px) !important;
    }
    #glJournalModal .gl-journal-modal-body {
        max-height: calc(100vh - 100px) !important;
    }
    #glJournalModal .journal-detail-scroll {
        max-height: 220px;
    }
}

/* FINOVA — GL Journal modal: white header, retain UUID controls */
#glJournalModal .modal-header {
    background: #ffffff !important;
    background-image: none !important;
    color: #172b4d !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
#glJournalModal .modal-header .modal-title,
#glJournalModal .modal-header .modal-title i {
    color: #172b4d !important;
}
#glJournalModal .modal-header #gl-record-id-container .text-white-50 {
    color: #64748b !important;
}
#glJournalModal .modal-header #gl-record-id-display {
    color: #172b4d !important;
}
#glJournalModal .modal-header #gl-record-id-copy {
    color: #0d6efd !important;
    background: #ffffff !important;
    border-color: #0d6efd !important;
}
#glJournalModal .modal-header #gl-record-id-copy:hover,
#glJournalModal .modal-header #gl-record-id-copy:focus-visible {
    color: #ffffff !important;
    background: #0d6efd !important;
}
#glJournalModal .modal-header .btn-close.btn-close-white {
    filter: none !important;
    opacity: .65;
}
#glJournalModal .modal-header .btn-close.btn-close-white:hover {
    opacity: 1;
}

/* FINOVA — place GL Record ID immediately beside the Close (X) button */
#glJournalModal .modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}
#glJournalModal .modal-header .modal-title {
    margin-right: auto !important;
}
#glJournalModal .modal-header #gl-record-id-container:not(.d-none) {
    margin-left: auto !important;
    margin-right: 8px !important;
    flex: 0 1 auto !important;
    max-width: min(45%, 270px) !important;
}
#glJournalModal .modal-header > .btn-close {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

/* FINOVA GL Journal: prevent information/status collisions at 100% zoom */
#gl-journal-table {table-layout:fixed!important;width:100%!important;}
#gl-journal-table .gl-col-no{width:42px!important}
#gl-journal-table .gl-col-date{width:100px!important}
#gl-journal-table .gl-col-source{width:125px!important;min-width:0!important}
#gl-journal-table .gl-col-amount{width:175px!important}
#gl-journal-table .gl-col-created{width:105px!important}
#gl-journal-table .gl-col-status{width:142px!important}
#gl-journal-table .gl-col-action{width:48px!important}
#gl-journal-table th,#gl-journal-table td{box-sizing:border-box!important;min-width:0;}
#gl-journal-table .gl-journal-info-cell{overflow:hidden!important;max-width:100%!important;}
#gl-journal-table .gl-journal-info-line{grid-template-columns:75px 10px minmax(0,1fr)!important;gap:3px!important;}
#gl-journal-table .gl-journal-info-label{white-space:normal!important;overflow-wrap:break-word!important;}
#gl-journal-table .gl-journal-info-value{min-width:0!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
#gl-journal-table .gl-journal-status-cell{width:auto!important;min-width:0!important;max-width:none!important;padding:8px!important;overflow:hidden!important;white-space:normal!important;}
#gl-journal-table .gl-journal-status-cell .badge{max-width:100%!important;min-width:0!important;white-space:normal!important;line-height:1.3!important;padding:7px 9px!important;text-align:center!important;overflow-wrap:break-word!important;}
#gl-journal-table .gl-journal-action-cell{width:auto!important;min-width:0!important;max-width:none!important;}
#gl-journal-table .gl-journal-source-cell{width:auto!important;min-width:0!important;max-width:none!important;}
#gl-journal-table .gl-journal-summary-line{min-width:0!important;}
#gl-journal-table .gl-journal-summary-value{overflow-wrap:anywhere!important;}
@media(max-width:1200px){#gl-journal-table-wrapper{overflow-x:auto!important}#gl-journal-table{min-width:1050px!important}}
