﻿/* Prevent LinCore.Blazor styles from breaking MudBlazor DataGrid in workflow pages */
.mud-data-grid .mud-table-head th {
    position: relative;
    overflow: visible;
}

/* Disabled/inaccessible table rows — dimmed with non-interactive checkbox */
.mud-table-body tr.mud-row-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.mud-data-grid .mud-input {
    position: relative;
}

.mud-list-item {
    padding: 0px 0px 0px 0px !important;
}

.mud-list-item-text p {
    font-size: 14px !important;
    font-family: LindeDax !important;
}
.mud-list-item-icon {
    min-width: 15px;
    padding: 0px 5px 0px 5px;
}

.mud-icon-size-medium {
    font-size: 1.25rem;
}
.mud-input-required {
    color: red !important;
}

/* Required field asterisk - MudBlazor v8 */
.mud-input-control.mud-input-required > .mud-input-control-input-container > .mud-input-label::after {
    color: red !important;
}
.mud-popover p {
    font-size: 14px !important;
    font-family: LindeDax !important;
    padding-left: 5px;
}
.small-title {
    font-size: 14px !important;
    font-family: LindeDax !important;
    margin: 5px 2px;
    background-color: #eoeoe;
    font-weight: bold;
}
.meduim-title {
    font-size: 20px !important;
    font-family: LindeDax !important;
    margin: 5px 2px;
    background-color: #eoeoe;
    font-weight: bolder;
}
.center-meduim-title {
    font-size: 20px !important;
    font-family: LindeDax !important;
    text-align: center;
}
.mud-dialog-title{
    padding: 4px 20px !important;
}
.mud-dialog-title h6 {
    font-family: LindeDax !important;
}

.custom-dialog-top {
    position: absolute;
    top: 80px;
    left: auto;
    right: auto;
/*    z-index: 1050;*/
}

.section-container {
    border: 1px solid #e0e0e0;
    padding: 0px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.section-container:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dflex {
    display: flex;
    background-color: rgb(224 224 224) !important;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.validation-message{
    padding: 2px !important;
    color : red !important;
}

.INet-card {
    border: 1px solid #005591;
    border-radius: 5px;
    padding: 5px;
    margin: 10px 0px;
}

.headerbar {
    background-color: rgb(224 224 224) !important;
    margin: 0px 5px;
}

.message-info {
    font-size: 16px !important;
    font-family: LindeDax !important;
    text-align: left;
    margin-top:16px;
}

.right-aling-div {
    width: 100%;
    padding: 1px;
    background-color: #f0f0f0;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* App version footer */
.app-version-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    font-size: 0.7rem;
    color: #888;
    z-index: 9999;
}

/* ============================================================
   Centralized table styling – ensures ALL MudTable and
   MudDataGrid instances match the LinDataGrid compact look
   (row height, cell padding, font size, borders).
   ============================================================ */

/* --- Header cells (MudTable + MudDataGrid) --- */
.mud-table-head .mud-table-cell {
    padding: 2px 0px 2px 8px !important;
    border: 1px solid rgb(224 224 224);
    background-color: rgb(224 224 224) !important;
    font-size: 0.8125rem;
    line-height: 1.2;
}

/* --- Body cells (MudTable + MudDataGrid) --- */
.mud-table-body .mud-table-row .mud-table-cell {
    padding: 2px 0px 2px 8px !important;
    font-size: 0.8125rem;
    line-height: 1.2;
}

/* --- Footer / pager cells --- */
.mud-table-foot .mud-table-cell {
    padding: 2px 0px 2px 8px !important;
    font-size: 0.8125rem;
    line-height: 1.2;
}

/* --- MudSimpleTable header cells (raw <th>) --- */
.mud-table th {
    padding: 2px 0px 2px 8px !important;
    border: 1px solid rgb(224 224 224);
    background-color: rgb(224 224 224) !important;
    font-size: 0.8125rem;
    line-height: 1.2;
    vertical-align: middle;
}

/* --- MudSimpleTable body cells (raw <td>) --- */
.mud-table td {
    padding: 2px 0px 2px 8px !important;
    font-size: 0.8125rem;
    line-height: 1.2;
    vertical-align: middle;
}

/* --- Inline-editable table input controls (compact) --- */
.mud-table .mud-input-control {
    margin-top: 0;
    padding-top: 0;
}

.mud-table .mud-input-control .mud-input.mud-input-text {
    margin-top: 0;
}

.mud-table .mud-input-slot,
.mud-table .mud-input-root {
    padding-top: 2px;
    padding-bottom: 2px;
    min-height: 0;
}

/* Shrink the up/down spinner buttons (e.g. LinNumericField). */
.mud-table .mud-input-adornment .mud-icon-button {
    padding: 0;
    height: 14px;
    width: 18px;
}

.mud-table .mud-input-adornment .mud-icon-button .mud-icon-root {
    font-size: 0.95rem;
}

/* Compact checkbox inside table cells. */
.mud-table .mud-checkbox {
    margin: 0;
}

.mud-table .mud-checkbox .mud-icon-button {
    padding: 2px;
}

/* --- Toolbar compact --- */
.mud-table-toolbar {
    height: auto;
    min-height: 0;
    padding: 4px 8px;
}

/* --- Table container scroll --- */
.mud-table-container {
    overflow-x: auto;
}

/* Toolbar action buttons container */
.toolbar-actions {
    display: flex;
    gap: 4px;
}

.toolbar-actions-top {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

/* Column config popover */
.column-config-popover {
    min-width: 220px;
}

/* MultiSelectAutocomplete overflow chip */
.chip-cursor-pointer {
    cursor: pointer;
}

/* MultiSelectAutocomplete overflow popover */
.overflow-popover {
    display: inline-block;
    max-width: 400px;
}
/* Blazor error bar (standard template rule; LinCore.Blazor does not style it). z-index above MudBlazor's dialog
   overlay (1401) so the "Report this" link that issue-reporting.js injects into it stays clickable while a dialog
   is open. */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1500;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
