/* Componente: comp_anotaciones */

.comp_anotaciones .anotacion_selected tr,
.comp_anotaciones .anotacion_selected tr:hover,
.comp_anotaciones .anotacion_selected td,
.comp_anotaciones .anotacion_selected td:hover {
	background-color: var(--ui-primary) !important;
	color: var(--ui-on-accent);
}

.comp_anotaciones .anotacion_selected .ui-btn,
.comp_anotaciones .anotacion_selected .ui-btn:hover {
	background-color: white !important;
	color: #3f3f46 !important;
}


.controles-mapa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

/* Radio inputs */
.cara-tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: fit-content;
    padding: 0.25rem;
    border: 1px solid var(--ui-neutral-300);
    border-radius: 0.5rem;
    box-sizing: border-box;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    font-size: 14px;
}

.cara {
    margin: 0 !important;
    text-align: center;
}

.cara input {
    display: none;
}

.cara .cara-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all .15s ease-in-out;
}

.cara input:checked + .cara-label {
    background-color: var(--ui-primary);
    color: var(--ui-on-accent);
    font-weight: 600;
}


/* Notas */
.notes-container {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: .5rem;
    text-align: left;
}

.notes-container h2 {
    margin-bottom: .5rem;
}

.notes-container .vacio {
    color: var(--ui-neutral-500);
}

.notes-container .nota {
    width: 100%;
    margin-top: 1.5rem;
}

.notes-container .nota textarea {
    width: 100%;
    resize: none;
}

.notes-container .fa-trash {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}

.notes-container .fa-trash:hover {
    opacity: .5;
}

.auto-expand {
    min-height: 1.875rem;
    max-height: 7.25rem;
    overflow-y: hidden;
    resize: none;
}

.auto-expand.scrollable {
    overflow-y: auto;
}

.auto-expand::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.auto-expand::-webkit-scrollbar-thumb {
    background-color: var(--ui-neutral-500);
    border-radius: 3px;
}

.auto-expand::-webkit-scrollbar-thumb:hover {
    background-color: var(--ui-neutral-400);
}

/* Anotaciones */
.comp_anotaciones {
    width: 100%;
}

.comp_anotaciones_stage_wrap {
    position: relative;
}

.comp_anotaciones__tooltip {
    position: absolute !important;
    z-index: 10 !important;
    pointer-events: none;
    background: rgba(0, 0, 0, .85) !important;
    color: var(--ui-on-accent) !important;
    font-size: 12px;
    line-height: 1.2;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.lista_anotaciones_badge {
    position: absolute;
    top: -2px;
    right: -6px;
    display: block !important;
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
}

#tabla_anotaciones tr.dt-rowReorder-moving,
div.dt-rowReorder-float-parent {
    outline: none !important;
}

div.dt-rowReorder-float-parent {
    border: 0 !important;
    box-shadow: none !important;
}

.comp_anotaciones > .card > .card-body > .row > .col-4,
.comp_anotaciones > .card > .card-body > .row > .col-4 > .card,
.comp_anotaciones > .card > .card-body > .row > .col-4 > .card > .card-body {
    display: flex;
    flex-direction: column;
}

.comp_anotaciones > .card > .card-body > .row > .col-4 > .card,
.comp_anotaciones > .card > .card-body > .row > .col-4 > .card > .card-body,
.comp_anotaciones .dataTables_wrapper,
.comp_anotaciones .dt-container {
    flex: 1;
}

/* Diagramas */
.card_diagrama {
    display: inline-block;
    width: 140px;
    min-width: 140px;
    /* border: 1px solid var(--ui-neutral-200); */
    cursor: pointer;
    transition: all .25s ease;
}

.card_diagrama img{
	border-radius: 8px;
}

.card_diagrama.active {
    border: 2px solid var(--ui-primary) !important;
}
#modal_previsualizar_diagrama img{
	border-radius: 8px;
}

/* Modo oscuro */
body.modo_oscuro img.card_diagrama_foto,
body.modo_oscuro #modal_previsualizar_diagrama img,
body.modo_oscuro .card_diagrama img{
  filter: invert(1) !important;
}
.bg-diagrama{
	background-color: var(--ui-surface);
}

/* Vista previa del diagrama */
.preview-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    background-position: center;
    background-size: cover;
}

.auto-preview {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .18));
}

