/*
 NUVYTRAX - Diseño de pantallas de configuración
 Colores oficiales:
 Azul marino: #071426
 Azul secundario: #102744
 Cian: #00d9ff

 Este archivo se reserva para estilos específicos
 de las pantallas de configuración de Traccar.

 No modificar el tablero GPS ni el menú principal.
*/

/* NUVYTRAX - Menu lateral de Ajustes */

.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer {
    background-color: #071426 !important;
    color: #e8f7ff !important;
    border-right: 1px solid #00d9ff !important;
}

.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer .MuiListItemText-primary,
.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer .MuiTypography-root {
    color: #e8f7ff !important;
}

.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer .MuiListItemIcon-root {
    color: #00d9ff !important;
}

.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer .Mui-selected {
    background-color: #102744 !important;
}

.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer .MuiListItemButton-root:hover {
    background-color: #153858 !important;
}


/* NUVYTRAX - Fondo oscuro de las pantallas de Ajustes */

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer) {
    background-color: #071426 !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-pzaggu-page,
body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-1q939it-root {
    background-color: #071426 !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content {
    background-color: #102744 !important;
    color: #e8f7ff !important;
}

/* Textos y encabezados de las tablas */

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiTypography-root,
body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiTableCell-root {
    color: #e8f7ff !important;
}


/* NUVYTRAX - Buscador de las pantallas de Ajustes */

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiOutlinedInput-root {
    background-color: #071426 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiOutlinedInput-notchedOutline {
    border-color: #00d9ff !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content input::placeholder {
    color: #9db9cb !important;
    opacity: 1;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiOutlinedInput-root.Mui-focused
.MuiOutlinedInput-notchedOutline {
    border-color: #00d9ff !important;
    border-width: 2px !important;
}


/* NUVYTRAX - Botón para agregar notificaciones */

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.MuiFab-root {
    background: linear-gradient(135deg, #102744, #007fa3) !important;
    color: #ffffff !important;
    border: 1px solid #00d9ff !important;
    border-radius: 14px !important;
    box-shadow: 0 0 15px rgba(0,217,255,0.4) !important;
    transition: all 0.3s ease !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.MuiFab-root:hover {
    background: linear-gradient(135deg, #007fa3, #00aacc) !important;
    box-shadow: 0 0 22px rgba(0,217,255,0.7) !important;
}


/* NUVYTRAX - Formulario de notificaciones */

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiAccordion-root {
    background: #102744 !important;
    color: #ffffff !important;
    border: 1px solid #00d9ff !important;
    border-radius: 10px !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiAccordion-root .MuiTypography-root {
    color: #ffffff !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiInputLabel-root {
    color: #b9d8e8 !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiInputBase-input {
    color: #ffffff !important;
}

/* Botones Cancelar y Guardar */

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiButton-outlined:not(.Mui-disabled) {
    color: #00d9ff !important;
    background: #071426 !important;
    border: 1px solid #00d9ff !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiButton-contained:not(.Mui-disabled) {
    color: #ffffff !important;
    background: #007fa3 !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.muiltr-xhmiv0-content .MuiButton-root.Mui-disabled {
    color: #b8c5d3 !important;
    background: #34465c !important;
}

/* Listas desplegables */

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.MuiAutocomplete-popper .MuiPaper-root {
    background-color: #071426 !important;
    color: #ffffff !important;
    border: 1px solid #00d9ff !important;
    border-radius: 8px !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.MuiAutocomplete-option {
    color: #e8f7ff !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.MuiAutocomplete-option:hover,
body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.MuiAutocomplete-option.Mui-focused {
    background-color: #153858 !important;
}


/* NUVYTRAX - Contraste de listas y casillas */

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.MuiAutocomplete-noOptions {
    color: #b9d8e8 !important;
    background-color: #071426 !important;
}

/* Casillas de selección */

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.MuiCheckbox-root {
    color: #00d9ff !important;
}

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.MuiCheckbox-root.Mui-checked {
    color: #00d9ff !important;
}

/* Flechas de los paneles desplegables */

body:has(.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer)
.MuiAccordionSummary-expandIconWrapper {
    color: #00d9ff !important;
}


/* NUVYTRAX - Panel lateral de Geo-Zonas */

body:has(.muiltr-zw451z-drawer)
.muiltr-zw451z-drawer {
    background-color: #071426 !important;
    color: #ffffff !important;
    border-right: 1px solid #00d9ff !important;
}

body:has(.muiltr-zw451z-drawer)
.muiltr-zw451z-drawer .MuiTypography-root {
    color: #e8f7ff !important;
}

body:has(.muiltr-zw451z-drawer)
.muiltr-zw451z-drawer .MuiListItemButton-root:hover {
    background-color: #153858 !important;
}

body:has(.muiltr-zw451z-drawer)
.muiltr-zw451z-drawer .MuiListItemIcon-root {
    color: #00d9ff !important;
}


/* NUVYTRAX - Botones del menú de Ajustes */
.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer .MuiListItemButton-root {
    margin: 4px 10px !important;
    width: calc(100% - 20px) !important;
    min-height: 43px !important;
    padding: 9px 12px !important;
    background-color: #102744 !important;
    border: 1px solid #245476 !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s !important;
}

.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer .MuiListItemButton-root:hover,
.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer .MuiListItemButton-root.Mui-selected {
    background-color: #153858 !important;
    border-color: #00d9ff !important;
    box-shadow: 0 0 12px rgba(0,217,255,0.35) !important;
}

.MuiDrawer-paper.muiltr-dhn4ui-desktopDrawer .MuiListItemIcon-root {
    color: #00d9ff !important;
}


/* NUVYTRAX - Corrección de contraste en Ajustes */

/* Textos de las opciones del menú lateral */
.MuiDrawer-paper .MuiListItemText-primary,
.MuiDrawer-paper .MuiListItemButton-root .MuiTypography-root {
    color: #e8f7ff !important;
}

/* Textos y etiquetas de los formularios */
body:has(.muiltr-dhn4ui-desktopDrawer)
.MuiFormControl-root .MuiInputLabel-root,
body:has(.muiltr-dhn4ui-desktopDrawer)
.MuiFormControl-root .MuiInputBase-input,
body:has(.muiltr-dhn4ui-desktopDrawer)
.MuiFormControl-root .MuiSelect-select {
    color: #ffffff !important;
}

/* Etiquetas seleccionadas, como Hora ajustada y Velocidad */
body:has(.muiltr-dhn4ui-desktopDrawer)
.MuiChip-root {
    background-color: #153858 !important;
    color: #ffffff !important;
    border: 1px solid #245476 !important;
}

body:has(.muiltr-dhn4ui-desktopDrawer)
.MuiChip-label,
body:has(.muiltr-dhn4ui-desktopDrawer)
.MuiChip-deleteIcon {
    color: #e8f7ff !important;
}

/* Opciones de los menús desplegables */
.MuiMenu-paper .MuiMenuItem-root,
.MuiAutocomplete-popper .MuiAutocomplete-option {
    color: #e8f7ff !important;
    background-color: #102744 !important;
}

.MuiMenu-paper .MuiMenuItem-root:hover,
.MuiAutocomplete-popper .MuiAutocomplete-option:hover {
    background-color: #153858 !important;
}

