@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#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: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

.title.title-secondary {
    padding-top: 0.313rem;
    padding-bottom: 0;
    color: var(--bs-secondary-color, var(--dxds-color-content-neutral-default-rest));
}

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.icon {
    width: var(--icon-width);
    height: var(--icon-height);
    background-color: currentcolor;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: var(--icon-mask-image);
    mask-image: var(--icon-mask-image);
}

.or {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.3125rem 0;
}

.or .or-line {
    border-bottom: 1px solid var(--bs-body-color, var(--dxds-color-content-neutral-default-rest));
    width: 100%;
    opacity: 0.2;
}

.or .or-text {
    padding: 0 0.625rem 0px 0.625rem;
    font-size: 0.75rem;
    line-height: 1.125rem;
    color: var(--bs-body-color, var(--dxds-color-content-neutral-default-rest));
    opacity: 0.7;
}

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

.links-container .dot {
    height: 0.3125rem;
    width: 0.3125rem;
    margin: 0 0.1875rem;
    border-radius: 50%;
    background-color: var(--bs-body-color, var(--dxds-color-content-neutral-default-rest));
    opacity: 0.7;
}

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary, var(--dxds-primary-90));
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-message.info-panel {
    margin-bottom: 0.625rem;
}

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: var(--icon-provider-width);
    height: var(--icon-provider-height);
    background-image: var(--icon-provider-background-image);
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}

/* ===== POPUP EDIT FORM WIDTH ===== */

.operation-edit-popup {
    width: 90vw !important;
    max-width: 1100px !important;
    max-height: 80vh;
}

    .operation-edit-popup .dxbl-popup-body,
    .operation-edit-popup .dxbl-modal-content {
        max-height: 80vh;
        overflow: auto;
    }

/* ===== SCHEDULE GRID LAYOUT ===== */

/* Make the main grid actually scroll for virtual scrolling */
.schedule-grid-main {
    height: calc(100vh - 220px); /* tweak as needed for your header/toolbar */
}

    /* No-wrap for grid cells in both master and detail grids */
    .schedule-grid-main .dxbl-grid-table th,
    .schedule-grid-main .dxbl-grid-table td,
    .operations-grid .dxbl-grid-table th,
    .operations-grid .dxbl-grid-table td {
        white-space: nowrap;
    }

    /* Bold, black column headers */
    .schedule-grid-main .dxbl-grid-table thead th,
    .operations-grid .dxbl-grid-table thead th {
        font-weight: 700;
        color: #000;
    }

/* Make operation text area more usable */
.operation-text-box {
    min-height: 80px;
    white-space: pre-wrap;
}

/* ===== STRONG ROW COLORING BY STATUS ===== */

/* Running */
.schedule-grid-main .dxbl-grid-table tr.status-running > td,
.operations-grid .dxbl-grid-table tr.status-running > td {
    background-color: #cce5ff !important; /* stronger blue */
}

/* Completed */
.schedule-grid-main .dxbl-grid-table tr.status-completed > td,
.operations-grid .dxbl-grid-table tr.status-completed > td {
    background-color: #c8f7c8 !important; /* stronger green */
}

/* Urgent */
.schedule-grid-main .dxbl-grid-table tr.status-urgent > td,
.operations-grid .dxbl-grid-table tr.status-urgent > td {
    background-color: #ffb3b3 !important; /* stronger red */
}

/* Next */
.schedule-grid-main .dxbl-grid-table tr.status-next > td,
.operations-grid .dxbl-grid-table tr.status-next > td {
    background-color: #ffe9a3 !important; /* stronger yellow */
}

/* Engineering */
.schedule-grid-main .dxbl-grid-table tr.status-engineering > td,
.operations-grid .dxbl-grid-table tr.status-engineering > td {
    background-color: #e0cffc !important; /* purple-ish */
}

/* Material */
.schedule-grid-main .dxbl-grid-table tr.status-material > td,
.operations-grid .dxbl-grid-table tr.status-material > td {
    background-color: #ffd6a3 !important; /* orange-ish */
}

/* Unassigned */
.schedule-grid-main .dxbl-grid-table tr.status-unassigned > td,
.operations-grid .dxbl-grid-table tr.status-unassigned > td {
    background-color: #f2f2f2 !important;
}

/* Subtle separators */
.schedule-grid-main .dxbl-grid-table tr > td,
.operations-grid .dxbl-grid-table tr > td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Back order negative cell: deep red highlight */
.backorder-negative-cell {
    display: inline-block;
    min-width: 100%;
    padding: 0 4px;
    background-color: #b02a37; /* dark red */
    color: #fff;
    font-weight: 600;
    text-align: right;
    box-sizing: border-box;
}



/*Machine-View*/
.modern-grid {
    font-family: 'Segoe UI', sans-serif;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

    .modern-grid .dx-data-row {
        height: auto !important;
        min-height: 120px;
        transition: all 0.3s ease;
    }

        .modern-grid .dx-data-row:hover {
            background: #f8f9fa !important;
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.15);
        }

.machine-card {
    padding: 16px;
    border-radius: 16px;
    background: white;
    transition: all 0.3s ease;
}

    .machine-card.down {
        background: rgba(220,53,69,0.12);
        border-left: 6px solid #dc3545;
    }

.machine-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 16px;
    border: 3px solid #444;
    background: white;
    padding: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

    .machine-img:hover {
        transform: scale(1.25) rotate(5deg);
        box-shadow: 0 12px 40px rgba(0,0,0,0.4);
        z-index: 10;
    }

/* Responsive */
@media (max-width: 768px) {
    .machine-img {
        width: 70px;
        height: 70px;
    }

    .modern-grid .dx-data-row {
        min-height: 140px;
    }
}

.dx-progress-bar.green .dx-progress-bar-container {
    background: #28a745 !important;
}

.dx-progress-bar.yellow .dx-progress-bar-container {
    background: #ffc107 !important;
}

.dx-progress-bar.red .dx-progress-bar-container {
    background: #dc3545 !important;
}

/* DevExpress Menu: force white foreground via theme vars */
:root {
    --dxbl-menu-item-foreground: #ffffff;
    --dxbl-menu-item-hover-foreground: #ffffff;
    --dxbl-menu-item-selected-foreground: #ffffff;  
}

/* If links are dimmed globally, ensure full opacity */
.dxbl-menu .dxbl-text,
.dxbl-menu a {
    color: #ffffff;
    opacity: 1;
}

/* MainLayout top nav: force bright white text for DxButton in text mode */
.nav-buttons-container .dxbl-button.dxbl-text .dxbl-button-content,
.nav-buttons-container .dxbl-button.dxbl-text .dxbl-button-icon {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Keep hover/selected states white */
.nav-buttons-container .dxbl-button.dxbl-text:hover .dxbl-button-content,
.nav-buttons-container .dxbl-button.dxbl-text:hover .dxbl-button-icon {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Feedback popup content padding */
.feedback-popup-content {
    padding: 1.25rem 1.5rem 1.5rem 1.5rem; /* top, right, bottom, left */
}


