﻿/* 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;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

/* Custom elements
-------------------------------------------------- */
.process-image {
  border-radius: 50%!important;
  width: 100px;
}

.ui-autocomplete {
    z-index: 2147483647;
}

table.dataTable tbody tr.selected {
    background-color: #b0bed9 !important;
}

a.edit-modal-link,
a.edit-modal-linea-link,
a.delete-modal-link{
    cursor: pointer;
}

/* CSS Drag and Drop */
.drag-active {
    box-shadow: 0 0 2px #000;
    padding: 20px;
    margin: 20px;

}

.drop-hover {
    border: 2px dashed red;
    padding: 0.03em 0.25em;
}

/* Historico */

.parte-historico {
    background-color: rgba(255, 0, 0, 0.2);
}

.filter-autocomplete,
.filter-autocomplete-client,
.filter-autocomplete-proveedor,
.filter-autocomplete-articulo,
.filter-autocomplete-condicion-facturacion,
.filter-autocomplete-controller,
.filter-autocomplete-codigopostal,
.facturas-filter-autocomplete {
    border: dotted;
    border-color: cornflowerblue;
}

.parte-modified {
    background-color: salmon;
}

.parte-input-modified {
    border-color: salmon;
}

.app-header .brand .brand-logo {
    padding: 5px 0 !important;
}

/* Lock Parte */
.lock-tab {
    background-color: rgba(255, 0, 0, 0.2) !important;
}

.lock-a-link {
    opacity: 0.5 !important;
    pointer-events: none;
    cursor: default;
}

.parte-readonly {
    pointer-events: none;
    opacity: 0.6;
}

#buscarFilterDiv label {
    display: block !important;
}

#buscarFilterDiv input{
    float: right !important;
    width: 80% !important;
}

.dataTables_wrapper.dt-bootstrap4 .dataTables_filter label {
    display: block !important;
}

.dataTables_filter .form-control {
    width: 90% !important;
}

#IdClienteAutocomplete {
    margin-left:0 !important;
}

.table td, .table th {
    padding: .40rem !important;
}

#parte-abierto-por-div {
    padding: 0.2rem 0 0 0 !important;
}

.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.dt-buttons {
    float: right;
}


/*      Chat    */

.chat-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
    width: 80%; /* Aumenta el ancho al 80% de la página */
    max-width: 1000px; /* Opcional: Limita el ancho máximo */
    margin: 0 auto; /* Centra el contenedor horizontalmente */
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow-y: auto;
    background-color: #f5f5f5;
    height: calc(100vh - 50px); /* Altura del contenedor, ajustando por la barra de entrada */
    width: 100%;
}

#messageInput {
    width: 100%;
    min-height: 40px; /* Default height */
    max-height: 200px; /* Limit maximum height */
    resize: none;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.message {
    margin: 10px 0;
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
}

    .message.received {
        background-color: #e1ffc7;
        align-self: flex-start;
        max-width: 70%; /* Limitar el ancho del mensaje para que no ocupe toda la pantalla */
    }

    .message.sent {
        background-color: #d2f5fe; /* Color del mensaje enviado */
        align-self: flex-end; /* Alinear a la derecha */
        text-align: right; /* Alinear el texto dentro del mensaje a la derecha */
        margin-left: auto; /* Empujar el mensaje completamente hacia la derecha */
        max-width: 70%; /* Limitar el ancho del mensaje para que no ocupe toda la pantalla */
    }

.message-date {
    font-size: 10px; /* Tamaño pequeño */
    color: gray; /* Color gris */
    font-style: italic; /* Texto en cursiva */
    margin-top: 5px;
    text-align: right; /* Mantener alineado a la derecha */
}

.message-content {
    word-wrap: break-word;
    font-size: 14px;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

    .chat-input #messageInput {
        width: 100%;
    }

    .chat-input input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 20px;
        outline: none;
    }

    .chat-input button {
        margin-left: 10px;
        padding: 10px 20px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 20px;
        cursor: pointer;
    }

        .chat-input button:hover {
            background-color: #0056b3;
        }


.restricted-class {
    background-color: #f8d7da; /* Light red background */
    border: 1px solid #f5c6cb; /* Soft border for a subtle effect */
    color: #721c24; /* Dark red text for contrast */
    padding: 15px; /* Padding for spacing */
    border-radius: 5px; /* Optional: rounded corners for a softer look */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: light shadow for better visibility */
}
