﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    background-color: #ffffff;
}
body {
    font-size: 14px;
    background-color: #ffffff;
    
}
#principal {
   
    min-height: 80.6vh;
}
br.solopeque {
    display: none;
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }
}


.selectedRow {
    border: 1px solid black;
    background-color: lightgray !important;
}
.border-top {
    border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
 
}
.footer {
  /*position: absolute;*/
 
  white-space: nowrap;
  /* Set the fixed height of the footer here */
  height: 60px;
  line-height: 60px; /* Vertically center the text there */
}

#mis_Avsisos tbody tr th{
    font-weight: normal;
}
#mis_Avsisos tbody tr #avis_destac, #avi_abiertas tr #avis_destac, #mis_Servicios tr #avis_destac {
    font-weight: bold;
}
md-content > table  > tr > th  , md-content > table > tbody > tr > th, md-content > div > table > tbody > tr > th {
    border: 3px solid rgb(30, 136, 229) !important;
    padding: 3px 2px;
    text-align: center;
    background-color: #fff;
}
.servicioMobile table {
    padding: 0px;
    border: 1px solid rgb(30, 136, 229) !important;
    border-collapse: collapse;
}
.servicioMobile div:first-child {
    border-top: 1px solid rgb(30, 136, 229) !important;
   
}
.servicioMobile div {
    
    border-left: 1px solid rgb(30, 136, 229) !important;
    border-right: 1px solid rgb(30, 136, 229) !important;
}

md-content > table, md-content > div > table {
    padding: 0px;
    border: 3px solid rgb(30, 136, 229) !important;
    border-collapse: collapse;
}

    md-content > table tr:nth-child(odd), md-content > div > table tr:nth-child(odd) {
        background: #D0E4F5;
    }

    md-content > table, md-content > div > table, md-content > table > th, md-content > div > table > tbody > th, md-content > table > tbody > th > td, md-content > div > table > tbody > th > td, md-content > table > tbody > tr > td, md-content > div > table > tbody > tr > td, md-content > div > table > tbody > tr > td, md-content > table > tr, md-content > div > table > tbody > tr {
        border-right: 1px solid rgb(30, 136, 229);
        padding: 5px;
        text-align: center;
    }

        md-content > table, md-content > div > table, md-content > div > table > tbody > th, md-content > div > table > tbody > tr > td , md-content > table > th, div.bordeLista {
            border-bottom-width: 1px;
            border-bottom-style: solid;
        }
    div.bordeLista > div + div.bordeListaD  {
        text-align: center;
    }
    div.thLista > div {
        font-weight: bold;
        text-align: center;
    }
.datosASC {
    border-width: 1px;
    padding-top: 12px;
}
.datosASC md-input-container {
    margin-bottom: 0px;
    margin-top: 6px;
}

    .datosASC md-input-container .md-errors-spacer{
       min-height:0px;
    }
.Resaltado {
    font-weight: bold !important;
}
.Activo {
    color: green !important;
    font-weight:bold !important;
}
.Azul {
    color: blue !important;
    font-weight: bold !important;
}
.Rojo {
    color: red !important;
    font-weight: bold !important;
}
.Negro {
    color: black !important;
    font-weight: bold !important;
}
div.DatosInstalacion, div.DatosAviso, div.DatosNotas, div.DatosConsulta, div.DatosServicio {
    margin: 0px;
    padding: 0px;
    border-style: solid;
    border-width: 1px;
}
    div.DatosInstalacion div:first-child, div.DatosAviso div.fila:first-child, div.DatosNotas div.fila:first-child, div.DatosServicio div.fila:first-child {
        height: auto;
        margin-bottom: 0px;
    }
    div.DatosInstalacion div:not(.md-errors-spacer) {
        margin-top: 8px;
    }
    div.DatosAviso div.fila, div.DatosNotas div.fila, div.DatosServicio div.fila {
        margin-bottom: 2px;
    }
.DatosInstalacion h2, .DatosAviso h2, .DatosServicio h2, .DatosInstalacion md-icon, .DatosAviso md-icon, .DatosNotas h2, .DatosNotas md-icon, .DatosServicio md-icon {
    color: #fff;
}
.DatosInstalacion md-input-container, .DatosAviso md-input-container, .DatosServicio md-input-container {
    margin-bottom: 0px;
    margin-top: 6px;
}
    .DatosInstalacion md-input-container .md-errors-spacer, .SinError .md-errors-spacer {
        min-height: 0px;
    }

.DatosNotas md-list, .DatosServicio md-list .DatosReparaciones md-list {
    padding: 0px;
}
    .DatosNotas md-list h3, .DatosServicio md-list h3, .DatosReparaciones md-list h3 {
        padding-left: 1em;
        font-size: 13px;
        font-weight: 400;
        display: inline-block;
    }
.DatosNotas md-list-item, .DatosServicio md-list-item, .DatosReparaciones md-list-item {
    border-bottom: 1px dotted;
}
.DatosNotas md-list .md-subheader-inner, .DatosServicio md-list .md-subheader-inner {
    padding: 0px;
}
    md-list.md-dense md-list-item::before, md-list.md-dense md-list-item .md-list-item-inner::before{
        min-height:0px;
    }
    .DatosNotas md-list md-list-item, .DatosNotas md-list .md-list-item-inner::before {
        min-height: 24px;
    }
    .DatosNotas md-list md-list-item .md-secondary-container{
        margin:0px;
    }
    div.separador {
        min-height: 10px;
    }
.lineasservicio .md-subheader-inner{
    padding: 2px !important;
}
.lineasservicio h2 {
    font-size: 20px;
    font-weight: 400;
    padding: 0px;
}
.lineasservicio h3 {
    margin-bottom: 2px;
}
    .lineasservicio h3.titulo {
        font-weight:bolder;
    }

md-input-container input.md-input[readonly] {
    font-size: 14px;
}

md-list-item md-input-container input.md-input[readonly] {
    font-size: 12px;
}

#frm md-dialog-content .md-dialog-content {
    padding:10px;
}

.div-error {
    color: rgb(221,44,0);
}

.sortorder{
    width:15px;
}


    .sortorder.asc::after {
        content: '\00A0\25b2';
    }

    .sortorder.desc::after {
        content: '\00A0\25bc';
    }

.radioAbiertas label, .radioAbiertas .md-label {
    margin-top: 10px;
}
div.layout-gt-xs-row{
    padding:0px;
}
div.layout-gt-xs-row > div.layout-row {
        padding-top: 8px;
        padding-left: 0px;
        padding-right: 0px;
        padding-bottom: 8px;
}
md-dialog.ventana {
    min-height: 85%;
    min-width: 85%;
}
md-dialog.ventanaMed {
    min-height: 55%;
    min-width: 55%;
}
@media (max-width: 992px) {
    md-dialog.ventana {
        min-height: 90%;
        min-width: 90%;
    }
    #frm md-dialog-content .md-dialog-content, .datosASC {
        padding-left: 5px;
        padding-right: 5px;
    }

    h2 {
      
        font-size: 1.5rem;
    }
}
@media (max-width: 768px) {
    md-dialog.ventana {
        min-height: 97%;
        min-width: 97%;
    }
    #frm md-dialog-content .md-dialog-content, .datosASC {
        padding-left: 3px;
        padding-right: 3px;
    }
    md-content{

    }
    h2 {
      
        font-size: 1.5rem;
    }
}

div.thLista {
  
}

div.thLista > div {
    padding-top: 4px !important;
    padding-bottom:4px !important;
}


md-menu-content {
    max-height: 90vh;
}

md-dialog-actions > .md-button{
    line-height:inherit;
    white-space:normal;
}

md-menu-item a div p {
    margin-right:10px !important;
}
/*Añadido jr*/
/*menu ya desplegado*/
.menu-container {
    display: flex;
    align-items: center;
}

/*estados*/
.finalizado {
    background-color: #EAB9B9 !important;
}
.asignado {
    background-color: #B9EAC3 !important;
}
.cancelado {
    background-color: #FAECC2 !important;
}

.en_camino {
    background-color: #6EFFA9 !important;
}

.iniciado {
    background-color: #fdfbac !important;
}

.pausado {
    background-color: #FDC741 !important;
}
.fotosavisos, .fotostrabajo {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 450px;
}

    .fotosavisos li, .fotostrabajo li {
        display: inline-block;
        height: 115px;
        padding-top: 15px;
        padding: 4px;
    }

        .fotosavisos li a, .fotostrabajo li a {
            display: block;
            height: 100px;
            width: 100px;
            padding: 0.5em;
            border: 1px solid black;
            text-align: center;
        }

            .fotosavisos li a img, .fotostrabajo li a img {
                vertical-align: middle;
                margin-right: auto;
                margin-left: auto;
                width: 100%;
                display: inline-block;
            }

     md-dialog.sizelow{
       
     }
     md-dialog.sizelow md-input-container{
        margin: 8px 0px;
     }
        md-dialog.sizelow md-input-container .md-errors-spacer {
            min-height: 14px;
        }
        /*Responsive extra*/
        @media only screen and (max-width: 990px) {
            br.solopeque{
                display:none;
            }
            /* Ocltar columnas especificas*/
            #mis_Avsisos td:nth-child(1), #mis_Avsisos td:nth-child(7), #mis_Avsisos td:nth-child(9), #mis_Avsisos td:nth-child(10), #mis_Avsisos td:nth-child(11), #mis_Avsisos td:nth-child(12), #mis_Avsisos td:nth-child(14), #mis_Avsisos th:nth-child(1), #mis_Avsisos th:nth-child(7), #mis_Avsisos th:nth-child(9), #mis_Avsisos th:nth-child(10), #mis_Avsisos th:nth-child(11), #mis_Avsisos th:nth-child(12), #mis_Avsisos th:nth-child(14) {
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    
    #asignados {
        margin: 0vw 0vw 1.5vW 0vw;
       
    }
    #asignados md-icon {
        font-size: 6vw;
    }
}

@media only screen and (max-width: 470px) {

    #buttons_AcionesAvisos button {
        margin: 0px;
        padding: 0px;
    }
}

@media only screen and (max-width: 450px) {

    br.solopeque {
        display: inline;
    }
    #buttons_AcionesAvisos {
        flex-direction: column-reverse;
        flex-wrap: wrap;
        align-content: normal;
    }
    .menu-container {
        flex-direction: column;
        align-items:baseline;
    }
    #todas_md-radio-button {
        margin-left: -15px;
    }
    #titulo_ventanaAvisos {
        font-size: 4vw;
        padding: 1px !important;
        width:100%;
    }
}

md-dialog.md-default-theme > md-dialog-content , md-dialog > md-dialog-content  {
  
    padding: 0px 0px 0px 0px; /* Ajuste opcional */
    margin: 0px 0px 10px 0px;
}

    md-dialog.md-default-theme > md-dialog-content > h2, md-dialog > md-dialog-content > h2  {
        background-color: #1E88E5; /* Tu color de fondo */
        color: white; /* Tu color de fuente */
        padding: 10px; /* Ajuste opcional */
        margin: 0px, 0px, 5px, 0px;
    }

div.noticias {
    background-color: #1E88E5; /* Tu color de fondo */
    color: white; /* Tu color de fuente */
    padding: 0px; /* Ajuste opcional */
    margin: 2px  0px;
}

div.noticia {
    border: 2px solid var(--color-borde-right, --color-borde); 
}

    md-dialog.md-default-theme > md-dialog-content > div > p, md-dialog > md-dialog-content > div > p {
        
        padding:  10px; /* Ajuste opcional */
        margin: 5px;
    }




md-input-container .md-input, md-input-container .md-select {
    background-color: rgb(253, 253, 253);
}


.md-toolbar-tools h2{
    color:white;
    
}

.selectbt md-input-container label:not(.md-no-float):not(.md-container-ignore) {
    transform: translate3d(0, 10px, 0) scale(1);
}
.selectbt md-input-container{
    display:inline-block;
}
.selectcolor md-input-container {
    display: inline-block;
    margin: 0px;
}

.bootstrap-select-dia {
    width: 120px !important;
}

md-time-picker input:not(:focus) {
    color: rgba(0,0,0,0.87) !important;
}

.md-color-picker-input-container input:not(:focus) {
    color: rgba(0,0,0,0.87) !important;
}
md-time-picker .md-button.md-icon-button {
    padding:4px 4px;
}

md-hours-minutes md-input-container {
   
    margin: 0px;
}


md-event-calendar md-event-calendar-month .md-event-calendar-month-row .md-event-calendar-month-cell .md-event-calendar-month-cell-content .md-event-calendar-cell-event-show-more-link{
    padding-top:1px !important;
}



@media (min-width: 1200px) {
    .extra-info {
        position: absolute;
        top: 0;
        /* Se pega al borde derecho del container y se empuja hacia afuera */
        left: 100%;
        width: calc((100vw - 1160px) / 2);
        overflow-x: hidden;
        
        margin-top: 2px;
        background-color: rgb(250,250,250);        
    }
}




/* Oculta la caja de texto y los bordes del datepicker, dejando solo el botón */
.calendario-contenedor .md-datepicker-input-container {
    display: none !important;
}

/* Contenedor relativo para alojar el botón y el detector invisible */
.calendario-wrapper {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 25px;
    margin-left: 8px; /* Separación con la flecha */
}

    /* Forzar al datepicker a volverse invisible pero manteniendo su tamaño físico */
    .calendario-wrapper md-datepicker {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0; /* Lo hace completamente transparente */
        z-index: 2; /* Se posiciona por encima del botón para capturar el clic */
    }

    /* Evita que los subelementos internos del datepicker rompan la caja */
    .calendario-wrapper .md-datepicker-input-container,
    .calendario-wrapper .md-datepicker-button {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        min-width: 0 !important;
    }

    /* Estilo del botón visual que queda por debajo */
    .calendario-wrapper button.md-icon-button {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0 !important;
        padding: 0 !important;
        width: 24px !important;
        height: 25px !important;
        z-index: 1;
    }
