﻿/* ================================
   Canary Global Stylesheet
   Consolidated from MainLayout
   ================================ */

/* Base Page Layout */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
} 

/* Top Row / Header */
.top-row {
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    background-color: #656F8D;
}

    .top-row a,
    .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: white;
    }

        .top-row a:hover,
        .top-row .btn-link:hover {
            text-decoration: none;
            color: white;
            background: none;
        }

        .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

/* Blazor Error UI */
#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;
    }
/* ================================
   Mimic Indicator
   ================================ */
@media (max-width: 640.98px) {
    .mimic-card {
        padding: 0px !important;
    }
}
    /* ================================
   Machine health incidents
   ================================ */
.mhi-header {
    display: flex;
    padding-top: 7px;
    padding-bottom: 0px;
    justify-content: space-between;
}


.mhi-hr {
    padding: 0px;
    margin-top: 10px;
}

@media (max-width: 640.98px) {
    .col-lg-1, .col-md-2, .col-2 {
        width: 25% !important;
        max-width: 200px;
    }

    .top-row {
        justify-content: space-between;
    }

        .top-row a,
        .top-row .btn-link {
            margin-left: 0;
        }

    .col-2 {
        width: 25% !important;
    }
}

@media (min-width: 1000px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 100%;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .main-content {
        width: 100%;
    }

    .top-row.auth a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }
}
/* Sitedropdown*/
.form-select {
    font-weight: normal;
    color: #064469;
}

@media screen and (max-width: 640.98px) {
    select {
        font-size: 10px;
    }
}

/* DateTime Selector */


input {
    font-size: 12px;
    color: black;
    padding: 5px;
    width: auto;
}

select {
    margin-left: 0px;
    padding-left: 0px;
}

label {
    padding-top: 0;
    font-size: 14px;
    color: black;
}

.row {
    padding: 5px;
    /*padding-left: 11px;*/
    margin: 0;
}

.col-md-4 {
    padding-left: 0px;
    width: fit-content;
}
/*.trends-datetime-selecotor {
    display: grid;
    grid-template-columns: 400px 100px;
}*/
.datetime-row {
    display: grid;
    grid-template-columns: 50px auto 30px auto;
    gap: 0rem;
    padding-left: 0px;
    padding-top: 10px;
}

.datetime-row {
    display: grid;
    grid-template-columns: 50px auto 30px auto;
    gap: 0rem;
    padding-left: 0px;
    padding-top: 10px;
}

.from-date-label {
    max-width: 40px;
    padding-left: 0;
}

@media (max-width: 678px) {
    .datetime-row {
        display: grid;
        grid-template-columns: auto auto;
        grid-gap: 0,75rem;
        padding-left: 0px;
        padding-top: 10px;
    }

    .from-date-label {
        max-width: unset;
        padding-left: 0;
    }
}


    /* desccriptive legend for location */

.box {
    float: left;
    height: 15px;
    width: 15px;
    margin-left: 20px;
    margin-right: 10px;
    border: 1px solid black;
    clear: both;
}

.red {
    background-color: #ff0000;
}

.green {
    background-color: #00e500;
}

.orange {
    background-color: #FFBD33;
}

.grey {
    background-color: #bbbbbb;
}

.white {
    background-color: #ffffff;
}

    /*ItemHealthStatus and MHI, FSI Index**/
.data-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 280px;
    max-width: 400px;
    word-wrap: break-word;
    overflow: hidden;
}

.card-header {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card-content {
    font-size: 12px;
}

.card-footer {
    margin-top: 10px;
    font-size: 12px;
    color: gray;
}

@media screen and (min-width: 788px) {

    .rz-datagrid-container {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .card-container {
        display: none;
    }
}

@media screen and (max-width: 787.9px) {
    .rz-datagrid-container {
        display: none;
        width: 100%;
        overflow-x: auto;
    }

    .card-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .rz-datagrid {
        font-size: 12px;
    }

    .data-card {
        font-size: 10px;
        min-width: 100%;
        margin: 10px;
    }
}

    /* ClientTree dropdown Trendcharts */
.responsive-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.form-col {
    display: flex;
    flex-direction: column;
}

    .form-col.small {
        min-width: 180px;
    }

    .form-col.wide {
        min-width: 280px;
    }

.responsive-select {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.45rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.measurable-dropdown {
    position: relative;
    width: 100%;
}

.measurable-btn {
    text-align: left;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    color: #333;
}

.dropdown-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    /* On small screens → 2 columns */
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Measurables spans full width */
    .form-col.measurables {
        /*grid-column: 1 / -1;*/
    }

    .grid-row-trends {
        display: grid;
    }
}

.grid-row-trends {
    display: grid;
}
/*relogin and forgot password style*/
