.application-details-container > div {
    margin-bottom: 20px;
}

.application-details-form {
    padding: 6px;
}

.application-details-header {
    padding: 5px;
}

.last-modified-text {
    display: block;
    font-size: 0.85rem; 
    margin-top: 2px; 
    font-style: italic; 
}
.fixed-caption-width label.dxbl-fl-cpt {
    width: 7rem !important;
    display: inline-block !important;
}

.contract-expired-alert {
    /* Requested background color */
    background-color: #d7ece4 !important;
    /* keep alert padding and rounded corners from Bootstrap */
    border-color: rgba(0, 0, 0, 0.04);
    /*color: #0f5132;*/ /* ensures readable text on light green */
}
/* Payable Invoice Matching Component Styles */

/* Prevent text wrapping in grid cells and control row height */
.payable-invoice-matching-grid .dxbl-grid-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0; /* Forces text-overflow to work with table cells */
}

/* Ensure consistent row height */
.payable-invoice-matching-grid .dxbl-grid-table tr {
    height: 2.5rem; /* Fixed row height */
}

/* Allow column headers to wrap if needed (optional, adjust as needed) */
.payable-invoice-matching-grid .dxbl-grid-header-cell {
    white-space: normal;
}

/* Specific handling for detail rows if they exist */
.payable-invoice-matching-grid .dxbl-grid-detail-row td {
    white-space: normal; /* Allow wrapping in detail rows */
    max-width: none;
}

/* Support for selection column */
.payable-invoice-matching-grid .dxbl-grid-selection-column {
    width: 40px;
}

/* Existing styles from transaction-invoice-component */
.disabled-item {
    background-color: #e9ecef;
    color: #495057;
}

.border-invoice-header {
    border: 1px solid #d2d2d2;
    padding: 5px;
    height: 54px;
    align-content: center;
}

.clickable-row {
    cursor: pointer;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.grid-container .dxbl-gridlayout-root {
    grid-template-rows: auto auto !important;
}

html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('images/logo.svg');
    mask: url('images/logo.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 28px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}
/* Override DevExpress alert-info styling */
.alert-info {
    --bs-alert-color: #060306 !important;
    --bs-alert-bg: #D7ECE4 !important;
    --bs-alert-border-color: #D7ECE4 !important;
    --bs-alert-link-color: #060306 !important;
    background-color: #D7ECE4 !important;
}

/* Override DevExpress alert-danger styling to fix transparency */
.alert-danger {
    --bs-alert-color: var(--bs-danger-text-emphasis) !important;
    --bs-alert-bg: var(--bs-danger-bg-subtle) !important;
    --bs-alert-border-color: var(--bs-danger-border-subtle) !important;
    --bs-alert-link-color: var(--bs-danger-text-emphasis) !important;
    background-color: var(--bs-danger-bg-subtle) !important;
    opacity: 1 !important;
}



/* Extra stark fix f�r alert-danger transparency - denna regel har h�gsta prioritet */
div.alert.alert-danger, .alert-danger, .alert.alert-danger {
    background-color: #f8d7da !important;
    background: #f8d7da !important;
    opacity: 1.0 !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

.no-data-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6c757d;
    font-size: 1.2rem;
    font-style: italic;
    background-color: #f8f9fa;
    border: 1px dashed #6c757d;
    border-radius: 8px;
    padding: 20px;
}

/* Prevent text wrapping in grid cells and control row height */
.transaction-invoice-grid .dxbl-grid-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0; /* Forces text-overflow to work with table cells */
}

/* Ensure consistent row height */
.transaction-invoice-grid .dxbl-grid-table tr {
    height: 2.5rem; /* Fixed row height */
}

/* Allow column headers to wrap if needed (optional) */
.transaction-invoice-grid .dxbl-grid-header-cell {
    white-space: normal;
}

/* Specific handling for detail rows if they exist */
.transaction-invoice-grid .dxbl-grid-detail-row td {
    white-space: normal; /* Allow wrapping in detail rows */
    max-width: none;
}

/* Support for selection column */
.transaction-invoice-grid .dxbl-grid-selection-column {
    width: 40px;
}

/* Existing styles */
.disabled-item {
    background-color: #e9ecef;
    color: #495057;
}

.border-invoice-header {
    border: 1px solid #d2d2d2;
    padding: 5px;
    height: 54px;
    align-content: center;
}
.clickable-row {
    cursor: pointer;
}
.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
}
.dxbl-gridlayout-root {
    grid-template-rows: auto auto !important;
}