/* Overview & Errors toggle buttons */
#showBatteryBtn {
    border-radius: 0 !important;
}

#showErrorsBtn,
#showBatteryBtn,
#showPMBtn {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 10px;
    box-shadow: none !important;
}
#headerTitle{background-size: 332px 64px;
    height: 64px;
    width: 332px;
    position: relative;
    top: 6px;;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-left: 10px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
}

#masterConSidebar{background-color: #fff;}
#masterConSidebar .sidebarLink{color:#000; text-transform: none; font-weight: 500;}
#masterConSidebar .sidebarLink.noClick{cursor: default;}
#masterConSidebar .sidebarLink.noClick:hover{background-color: #fff;}
#masterConSidebar .sidebarLink.active{background-color: rgb(21, 72, 152); background-image: none;}
#masterConSidebar .sidebarLinkIcon{width: 24px; height: 24px; margin-right: 10px;}
#masterConSidebar .subLink{font-size: 14px; font-weight: normal;}
#masterConSidebar .sidebarGap{height: 30px;}
#masterConContent{background-color: rgb(245, 245, 245); border-top-left-radius: 0;}

.infoIcon{width: 16px; height: 16px; margin-left: 5px;}

/* Disabled toggle button styles */
.btn-group .btn.disabled {
    background-color: #e9ecef !important;
    border-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.btn-group .btn.disabled:hover {
    background-color: #e9ecef !important;
    border-color: #e9ecef !important;
    color: #6c757d !important;
}

/* DataTables header styling */
#errorsTable thead th,
#pmTable thead th,
#recurringErrorsTable thead th,
.display.hover.row-border thead th {
    background-color: #154898;
    color: white;
}

/* Button styling */
#showErrorsBtn,
#showPMBtn,
#showBatteryBtn {
    background-color: white;
    color: black;
    border: none;
    border-radius: 0;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

#showErrorsBtn.active,
#showPMBtn.active,
#showBatteryBtn.active {
    background-color: #154898;
    color: white;
    border: none;
    border-radius: 0;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

/* AI Rollup Page */
#aiRollupPage {
    display: none;
}

#aiRollupPage.active {
    display: block;
}

/* AI Options Page */
#aiOptionsPage {
    display: none;
}

#aiOptionsPage.active {
    display: block;
}

/* Prevent Bootstrap focus ring from changing size */
#showErrorsBtn:focus,
#showErrorsBtn:active,
#showBatteryBtn:focus,
#showBatteryBtn:active,
#showPMBtn:focus,
#showPMBtn:active {
    outline: none !important;
    box-shadow: none !important;
}

#showErrorsBtn{border-top-left-radius: 10px !important;}
#showPMBtn{border-bottom-left-radius: 10px !important;}

/* Battery count styling to match others */
#batteryCount {
    font-size: 24px;
    font-weight: bold;
    color: #154898;
    margin-bottom: 8px;
}
#showBatteryBtn.active #batteryCount {
    color: #fff;
}

.warningIcon, .bedIcon, .absentIcon, .presentIcon{height:16px; width:16px; margin-right: 5px;}

/* DataTables height */
#errorsTableContainer,
#pmTableContainer,
#batteryTableContainer{
    min-height: 475px;
}

/* Errors count styling */
#errorsCount {
    font-size: 24px;
    font-weight: bold;
    color: #154898;
    margin-bottom: 8px;
}
#showErrorsBtn.active #errorsCount {
    color: #fff;
}

#pmCount {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px; 
    color: #154898;
}
#showPMBtn.active #pmCount {
    color: #fff;
}

/* View Asset Details button styling */
#viewAssetDetailsBtn,
#viewRecurringAssetDetailsBtn {
    background-color: #154898;
    color: white;
    border: none;
    border-radius: 0;
    padding: 10px 30px;
    font-weight: bold;
}

#viewAssetDetailsBtn:disabled,
#viewRecurringAssetDetailsBtn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Chart container styling */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.chart-scroll-content {
    min-width: 1000px;
    height: 300px;
}

#errorHistory .chart-scroll-content {
    min-width: 3000px;
}

#firmwareChart {
    max-height: 300px !important;
}

#errorHistoryChart {
    height: 100%;
}

#individualAssetDetailsBackBtn{text-decoration: none; color:#000;}

.firmwareChartLegendItem {
    cursor: pointer;
}

/* Override Bootstrap's bg-primary class */
.bg-primary {
    background-color: rgb(21, 72, 152) !important;
}


#assetUtilization .chart-container{
    height: auto
}