@import url('responsive.css');

:root {
    --background-input: var(--mud-palette-background-gray);
    --background-input-hover: var(--mud-palette-table-hover);
    --icon-button-map-hover: var(--mud-palette-gray-darker);
    --background-quickAction-section: var(--mud-palette-table-striped);
}
/*Doesn't pass & no need*/
/*.mud-theme-dark {
    --background-input: var(--mud-palette-background-gray);
    --background-input-hover: var(--mud-palette-table-hover);
    --background-quickAction-section: #212E42 !important;
    --icon-button-map-hover: #243249 !important;
}*/

/* Autofill for PaletteLight */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--mud-palette-surface) inset !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary) !important;
}

/* Autofill for PaletteDark */
.mud-theme-dark input:-webkit-autofill,
.mud-theme-dark input:-webkit-autofill:hover,
.mud-theme-dark input:-webkit-autofill:focus,
.mud-theme-dark textarea:-webkit-autofill,
.mud-theme-dark textarea:-webkit-autofill:hover,
.mud-theme-dark textarea:-webkit-autofill:focus,
.mud-theme-dark select:-webkit-autofill,
.mud-theme-dark select:-webkit-autofill:hover,
.mud-theme-dark select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #1D2736 inset !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary) !important;
}

html, body * {
    font-family: "Roboto", "Arial", "sans-serif";
    scrollbar-color: #B4BBC5 !important;
    scrollbar-width: auto !important;
    --mud-palette-action-default-hover: var(--mud-palette-secondary-hover);
}

/* DeviceList: make action cell sticky to right edge and remove padding */
#deviceList .row-actions-cell {
    position: sticky !important;
    right: 0 !important;
    padding: 0 !important;
}

/* DeviceList: minimum row height to fit action bar */
#deviceList tr.mud-table-row {
    height: 64px;
}

.rotate90 {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.rotate180 {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.rotate270 {
    -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--mud-palette-surface)inset !important;
}

.app-logo {
    height: 22px;
    width: 169px;
    flex-shrink: 0;
    background-color: #0F3782;
    -webkit-mask: url('images/LOGO_JAMLOGIC.svg') no-repeat center / contain;
    mask: url('images/LOGO_JAMLOGIC.svg') no-repeat center / contain;
}

.app-logo--dark {
    background-color: #A8C7FF;
}


.mud-button-label {
    letter-spacing: -0.5px;
    text-transform: none !important;
}

/* MudTabs overrides */
.mud-tab {
    text-align: left !important;
    text-transform: none !important;
    height: 41px !important;
    justify-content: flex-start !important;
    font-weight: unset !important;
}

.device-settings-tabs-mobile .mud-tab {
    text-align: center !important;
    justify-content: center !important;
}

.mud-tabs-vertical .mud-tab {
    padding: 16px 8px 16px 28px !important;
}

.mud-tab.mud-tab-active {
    font-weight: 700 !important;
}

.mud-tabs-tabbar {
    background-color: var(--mud-palette-drawer-background) !important;
}

.sticky-footer {
    position: sticky;
    bottom: 0;
    background-color: var(--mud-palette-surface);
    /*    z-index: 10;*/
    z-index: 1101;
    height: 65px;
    margin-left: -4px !important;
}

.sticky-footer-search {
    position: sticky;
    bottom: 0;
    background-color: transparent;
    z-index: 10;
}

.custom-button {
    font-size: 0.85rem !important;
    padding: 10px !important;
    box-shadow: 0px 4px 4px 1px #FEC93839 !important;
    font-weight: bold;
}

.custom-button-options-secondary {
    box-shadow: 0px 2px 4px 0px #12121217 !important;
    padding: 10px !important;
    font-weight: bold;
}

.no-select {
    user-select: none;
}
.close-button {
    position: absolute !important;
    top: 10px;
    right: 10px;
}

.sticky-header-panel {
    position: sticky;
    top: 0;
    background-color: var(--mud-palette-surface);
    z-index: 1000;
    padding: 10px;
}

.mud-grid-panel-type {
    background-color: var(--mud-palette-surface);
    border-radius: 1.125rem;
}

.mud-grid-sas-panel {
    background-color: var(--mud-palette-surface);
    border-radius: 1.125rem;
}

/*.mud-grid-spacing-xs-2 .mud-grid-spacing-xs-6 {
    margin: 0px !important;
}*/
/*.mud-toolbar{
    height:48px;
}*/
.mud-grid-recovery {
    background-color: var(--mud-palette-surface);
}

.mud-paper-recovery {
    background-color: var(--mud-palette-surface) !important;
    border-radius: 0.625rem 0.625rem 0.625rem 0.625rem !important;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.mud-popover-server-selection{
    left: 300px !important;
}

.login-background {
    background-color: var(--mud-palette-surface);
}

.mud-input > input.mud-input-root-outlined, div.mud-input-slot.mud-input-root-outlined {
    padding-left: 12px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    
}

.item-in-drawer {
    border-radius: 0.80rem;
    border-bottom: 1px solid #EAEAEA;
    background: var(--mud-palette-surface);
    /* Box-Div-Shadow */
    box-shadow: 0px 2px 2px 1px rgba(18, 18, 18, 0.06);
    max-width: 100%;
    padding: 20px;
}

.item-in-option {
    background-color: var(--mud-palette-surface) !important;
}

.mud-input-underline:before {
    border-bottom: none !important;
}

.mud-appbar .mud-tabs-tabbar {
    background-color: var(--mud-palette-appbar-background);
}


.mud-dialog-title {
    padding: 16px !important;
    border-bottom: 2px solid var(--mud-palette-divider-light);
}

.mud-dialog-title:has(.mud-button-close) {
    padding-inline-end: 64px !important;
}

.mud-dialog-content {
    margin: 0px !important;
    padding: 0px !important;
}

.uppercase-btn-custom {
    background-color: var(--mud-palette-surface) !important;
    padding: 6px 10px 6px 10px;
}

.uppercase-btn-custom .mud-button-label {
    text-transform: uppercase !important;
}

.uppercase-btn-custom:hover {
    background-color: var(--mud-palette-secondary-lighten) !important;
}

.btn-custom {
    background-color: var(--mud-palette-surface) !important;
    padding: 6px 10px 6px 10px;
}

.btn-custom:hover {
    background-color: var(--mud-palette-secondary-lighten) !important;
}

.menu-btn-custom {
    background-color: var(--mud-palette-surface) !important;
}

.menu-btn-custom:hover {
    background-color: var(--mud-palette-secondary-lighten) !important;
}

.drawer-slide-in {
    transition: width 0.3s ease-out, transform 0.3s ease-out, opacity 0.3s ease-out !important;
    overflow: hidden;
}

.drawer-slide-in.drawer-closed {
    padding: 0 !important;
    transform: translateX(-24px);
    opacity: 0;
}

.drawer-slide-in-right.drawer-closed {
    transform: translateX(24px);
}

.mud-dialog-actions {
    padding: 12px !important;
    border-top: 2px solid var(--mud-palette-divider-light);
}

.hide-scrollbar {
    scrollbar-width: none !important;
    -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.dialog-actions-split-mobile {
    gap: 12px;
}

.dialog-actions-split-mobile > .mud-button-root {
    flex: 1 1 0;
    margin: 0 !important;
}

.dialog-small .mud-dialog-title {
    padding-bottom: 0px !important;
    border-bottom: 0px !important;
}

.dialog-small .mud-dialog-actions {
    padding-top: 0px !important;
    border-top: 0px !important;
}

/* .mud-dialog-content is overflow:auto by default, which fights ApexCharts' own resize-driven
   sizing here: a sub-pixel overshoot triggers a scrollbar, which shrinks the available width, which
   the chart redraws into, triggering the horizontal scrollbar too. Clip instead of scroll and stretch
   the child via flex, matching how the non-fullscreen grid card avoids the same feedback loop. */
.chart-fullscreen-dialog .mud-dialog-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.device-settings-dialog .mud-dialog-content {
    overflow: hidden !important;
}

.device-settings-dialog .mud-tabs {
    min-height: 0;
    min-width: 0;
}

.device-settings-dialog .mud-tabs-tabbar {
    flex: 0 0 auto;
}

.device-settings-dialog .mud-tabs-panels {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Force ApexChartWidget legend to keep hand cursor when overriding legend behavior. */
.apexcharts-legend-series.apexcharts-no-click {
    cursor: pointer !important;
}

/*.mud-dialog {
    box-shadow: 0px 2px 4px 0px rgba(18, 18, 18, 0.09);
}*/

.mud-dialog-width-sm {
    max-width: 400px !important;
}

/*.mud-dialog .mud-dialog-actions button {
    margin: 0;
}*/

/*.mud-dialog .mud-dialog-actions button:first-child {
    box-shadow: 0px 2px 4px 0px #12121217 !important;
    padding: 10px !important;
}
    
.mud-dialog .mud-dialog-actions button:last-child {
        font-size: 0.85rem !important;
        padding: 10px !important;
        box-shadow: 0px 4px 4px 1px #FEC93839 !important
}*/

/*Hide search input in datagrid device list*/
.mud-data-grid-columns-panel .mud-input {
    display: none !important;
}
/*don't need custom styles button for JL web DialogBox 
.mud-dialog .mud-dialog-actions button:last-child {
    font-size: 0.85rem !important;
    padding: 10px !important;
    box-shadow: 0px 4px 4px 1px #FEC93839 !important
}*/


/* iOS pops images on long press. */
.horizontal-dropzone,
.horizontal-dropzone * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.horizontal-dropzone .mud-drop-item-preview-start {
    height: 100% !important;
    width: 20px !important;
}

td.mud-table-cell.sticky-right {
    background-color: transparent !important;
}

tr.mud-table-row:hover td.mud-table-cell.sticky-right {
    background-color: var(--background-quickAction-section) !important;
}

tr.mud-table-row td.mud-table-cell.sticky-right:has(.quick-actions-container.force-visible) {
    background-color: var(--background-quickAction-section) !important;
}

tr.mud-table-row:hover td.mud-table-cell.sticky-right:has(.quick-actions-container.force-visible) {
    background-color: var(--background-quickAction-section) !important;
}

tr.mud-table-row:hover td.mud-table-cell.sticky-right:has(.quick-actions-container.force-hidden) {
    background-color: transparent !important;
}

.drawingZonePanel {
    position: absolute !important;
    padding: 12px;
    left: 12px;
    bottom: 12px;
    z-index: 15;
    filter: drop-shadow( 0px 4px 2px rgba(18, 18, 18, 0));
}

.layersPanel {
    position: absolute !important;
    right: 50px;
    top: 119px;
    z-index: 15;
    filter: drop-shadow( 0px 4px 2px rgba(18, 18, 18, 0));
}

.mapSelectionCard {
    position: absolute !important;
    left: 12px;
    bottom: 12px;
    z-index: 15;
    filter: drop-shadow( 0px 4px 2px rgba(18, 18, 18, 0));
}

.placeAutoCompletePanel {
    position: absolute !important;
    right: 50px;
    top: 48px;
    z-index: 15;
    filter: drop-shadow( 0px 4px 2px rgba(18, 18, 18, 0));
}

gmp-place-autocomplete {
    background-color: var(--mud-palette-background);
    color-scheme: normal;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 9px;
    color: var(--mud-palette-text-primary);
}

.text-bold{
    font-weight: bold !important;
}

.mud-treeview-item-selected .mud-treeview-item-label {
    font-weight: 600;
    /*color: var(--color-theme-mud-palette-primary-darken, #EFB800);*/
}

.mud-treeview-item-content.mud-treeview-item-selected,
.mud-list-item.mud-selected-item,
.mud-navmenu.mud-navmenu-primary .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: transparent !important;
}

.mud-treeview-hover .mud-treeview-item-content:hover,
.mud-list-item:hover {
    background: var(--mud-palette-action-default-hover) !important;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: transparent !important;
    /*color: #EFB800;*/
}

.cluster-popover-menu {
    position: absolute;
    transform: translate(calc(-50% + 25px), -52px);
    z-index: 1010;
}

.mud-table-cell {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.red-text {
    color: var(--mud-palette-error, #F44336) !important;
}

.mud-treeview-item-content {
    align-items: flex-start !important;
}

#deviceList .mud-table-toolbar {
    height: auto !important;
    min-height: 64px;
    overflow: visible !important;
    align-items: flex-start !important;
}

#deviceList .mud-table-container {
    transition: height 150ms ease-in-out;
}

    #deviceList .mud-table-toolbar > .mud-grid {
        width: 100%;
    }

.mud-treeview-item-arrow{
    margin-top: -3px !important;
}

.mud-button-text {
     padding:16px 6px; 
}
.mud-button-filled{
    box-shadow:none !important;
}

.badge-large-inset {
    inset: auto auto calc(100% - 20px) calc(100% - 20px) !important;
}

.menu-item-disabled {
    /*color: var(--mud-palette-text-secondary) !important;*/
    cursor: default !important;
    pointer-events: none !important;
    font-weight: 500;
}

.mud-text-primary-force.mud-primary-text {
    color: var(--mud-palette-text-primary) !important;
}

.smaller-icon-button .mud-icon-root {
    font-size: 10px !important; /* Standard small is usually 1.25rem */
}

.remove-border-radius-left .mud-input-outlined-border {
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}

.remove-border-radius-right .mud-input-outlined-border {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.mud-input.mud-input-outlined {
    background-color: var(--background-input);
    border-radius: 4px;
}

.mud-input.mud-input-outlined:not(.mud-disabled):not(:focus-within):not(:has(input[readonly])):hover .mud-input-outlined-border {
    border-color: transparent !important;
    background-color: var(--background-input-hover) !important;
    border-radius: 4px !important;
}

.mud-input:has(input[readonly]) .mud-input-outlined-border {
    border-color: transparent !important;
    background-color: transparent !important;
    border-radius: 0px !important;
}

.success-input .mud-input-outlined-border {
    border-color: green !important;
    border-width: 2px !important;
}

.failure-input .mud-input-outlined-border {
    border-color: red !important;
    border-width: 2px !important;
}

.custom-input .mud-input {
    border-radius: 24px !important;
    padding: 1px 16px;
}

.custom-input .mud-input.mud-input-outlined:not(.mud-disabled):not(:focus-within):not(:has(input[readonly])):hover .mud-input-outlined-border {
    border-radius: 24px !important;
}

.select-input-custom .mud-input.mud-input-outlined {
    background-color: var(--mud-palette-surface) !important;
    height: 44px !important;
    border-radius: 0 !important;
}

/* MudTimePicker need Variant Text not to have animation */
.select-input-custom.mud-picker {
    background-color: var(--mud-palette-surface) !important;
    height: 44px !important;
}

.select-input-custom .mud-input.mud-input-text:focus-within ~ label.mud-input-label {
    color: var(--mud-palette-text-secondary) !important;
}

/* OFFLINE */
.device-offline-row .device-icon {
    background-color: var(--mud-palette-text-disabled) !important;
}

.device-offline-row .mud-table-cell {
    color: var(--mud-palette-text-secondary) !important;
}

/* VIRTUAL */
.device-virtual-row .device-icon {
    background-color: var(--mud-palette-info) !important;
}

.device-offline-row .mud-table-cell .mud-checkbox,
.device-offline-row .mud-table-cell .mud-icon-button,
.device-virtual-row .mud-table-cell .mud-checkbox,
.device-virtual-row .mud-table-cell .mud-icon-button {
    opacity: 1;
}

.eighty-dvh-height {
    height: 80dvh;
}

.mud-picker-color-view-collection {
    justify-content: start !important;
}

.camera-image-container {
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
}

.camera-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.camera-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: background-color 0.2s ease;
    opacity: 0;
}

.camera-image-container:hover .camera-image-overlay {
    background-color: var(--mud-palette-overlay-light);
    opacity: 1;
}

.uppercase-text {
    text-transform: uppercase !important;
}

.search-adornment-secondary .mud-input-adornment .mud-icon-root {
    color: var(--mud-palette-text-secondary) !important;
}

.group-banner {
    max-height: 0;
    overflow: hidden;
    transition: max-height 200ms ease-in-out, margin 200ms ease-in-out;
}

.group-banner--open {
    max-height: 80px;
    margin-top: 4px;
}

/*WorkzoneLive Styles*/

.panel-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.panel-header {
    flex-shrink: 0;
    background: #FCFCFC;
    z-index: 5;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 24px;
}

.panel-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: #FCFCFC;
    z-index: 10;
    padding: 0 24px;
}

.mobile-task-drawer {
    position: fixed !important;
}

.mobile-task-drawer.mud-drawer--closed {
    visibility: hidden !important;
    pointer-events: none !important;
}

.no-records-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}
