/* ===== VARIABLES ===== */
:root {
  --color-primary: #0a4661;
  --color-accent: #0cc607;
  --color-success: #16b957;
  --color-error: #de2323;
  --color-warning: #0064ff;
  --color-chat-me: #6fbced;
  --color-chat-you: #58b666;
  --color-yellow: #f4ce00;
  --color-black: #000000;
  --font-main: 'Arial', sans-serif;
  --font-alt: 'GothamBook', sans-serif;

  --radius: 6px;
}
/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}

ol, ul {
  list-style: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

mark {
  background-color: transparent;
  color: inherit;
}

input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
/* ======= print ===========*/
@media print {
  .no-print { display: none !important; }
  body { font-size: 14px !important; }
}
/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: bold;
  letter-spacing: 1px;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.875rem; }
h6 { font-size: 0.75rem; }

p, a, span {
  font-family: var(--font-main);
  letter-spacing: 1px;
  line-height: 1.5;
}

p    { font-size: 0.9rem; }
span { font-size: 0.8rem; }

a {
  text-decoration: none;
  color: inherit;
}

hr {
  border: 0;
  background: #ccc;
  height: 1px;
  margin: 10px 0;
  display: block;
}

form {
  margin: auto;
  padding: 10px;
  display: table;
}

label {
  display: block;
  font-size: 12pt;
  font-family: var(--font-alt);
  margin: 10px auto 0;
  width: 90%;
}

/* ===== INPUTS & FORMS ===== */
input,
textarea {
  outline: none;
  border: none;
}

input[type="checkbox"],
input[type="radio"] {
  width: 13px;
  height: 13px;
}

input::placeholder,
textarea::placeholder,
::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
  color: #aaa;
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  outline: 1px solid #428bca;
  background-color: #eef6fc;
}

a:focus,
button:focus {
  outline: 1px dashed #428bca;
  outline-offset: 2px;
}

.noItemOne option:first-child{display: none;}
/* ===== BOTONES ===== */
.btn_msje,
.btn_general,
.btn_form {
  font-size: 12pt;
  border: 0;
  border-radius: 5px;
  color: #fff;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;
  text-align: center;
}

.btn_msje {
  padding: 5px 15px;
  display: inline-table;
}

.btn_general {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 32px;
  height: 32px;
  margin: 0 2px;
}
.btn_general i {
  pointer-events: none;
}
.btn_form {
  padding: 8px;
  margin: 20px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.btn_acciones {
  display: flex;
  gap: 1px; /* espacio entre botones */
  justify-content: center; /* o start, según cómo lo quieras alinear */
  align-items: center;
}
/* COLORES DE BOTÓN */
.btn_naranja   { background-color: #fa9606; }
.btn_violeta   { background-color: #9900ff; }
.btn_amarill   { background-color: var(--color-yellow); }
.btn_azul_o    { background-color: #030354; }
.btn_azul_c    { background-color: #0000ff; }
.btn_celeste   { background-color: #1faac8; }
.btn_verde     { background-color: #17e14c; }
.btn_verde_o   { background-color: #56a756; }
.btn_rojo      { background-color: #f36a6a; }
.btn_rojo_o    { background-color: #ff5733; }
.btn_plomo_c   { background-color: #ededed; }
.btn_plomo_o   { background-color: #979797; }
.btn_morado    { background-color: #fa06b7; }

/* ===== WRAPPERS ===== */
#page-wrapper {
  padding-top: 3em;
}

#form_averia_edit {
  background-color: #e3e4f0;
  width: 90%;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  width: 100%;
}

.header {
  color: var(--color-accent);
  background: var(--color-primary);
  height: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.optionsBar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.optionsBar a {
  display: flex;
  margin-left: 30px;
}

.optionsBar span {
  color: #fff;
  font-family: var(--font-alt);
  text-transform: uppercase;
  margin-left: 30px;
}

.photouser,
.close {
  width: 25px;
  height: 25px;
}

/* ===== NAV MENU ===== */
nav ul.nav {
  background: #055a81;
  min-width: 172px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Cada li tiene posición relativa para contener submenús */
.nav li {
  position: relative;
}

/* Enlaces del menú principal */
.nav li a {
  display: block;
  color: #fff;
  font-size: 9pt;
  font-family: var(--font-alt);
  padding: 14px 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-right: 1px solid #319B8F;
  text-decoration: none;
  transition: background 0.3s ease;
}

.nav li:last-child a {
  border-right: none; /* eliminar borde en último link */
}

.nav li a:hover,
.nav li a:focus {
  background-color: #053281;
  border-radius: 0;
}

/* Submenús ocultos por defecto */
.nav li ul {
  position: absolute;
  display: none;
  background-color: #055a81;
  border-radius: 0 0 10px 10px;
  min-width: 172px;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 999;
  box-sizing: border-box;
}

/* Mostrar submenú al hacer hover en li padre */
.nav li:hover > ul,
.nav li:focus-within > ul {
  display: block;
}

/* Links dentro de submenu */
.nav li ul li a {
  padding: 10px 20px;
  color: #fff;
  white-space: nowrap;
  border-radius: 0;
  text-decoration: none;
  display: block;
}

.nav li ul li a:hover {
  background-color: #0a8ccf;
}

/* Sub-submenús (por defecto abren a la derecha) */
.nav li ul li ul {
  top: 0;
  left: 100%;
  border-radius: 0 10px 10px 0;
  display: none; /* oculto por defecto */
  min-width: 172px;
}

/* Mostrar sub-submenú al hover del li padre */
.nav li ul li:hover > ul,
.nav li ul li:focus-within > ul {
  display: block;
}

/* Sub-submenús hacia la izquierda (agregando clase open-left manualmente) */
.nav li ul li ul.sub_m2 {
  left: auto;
  right: 100%;
  border-radius: 10px 0 0 10px;
}

/* Ajustes visuales para bordes de submenú */
.nav li ul li:last-child a {
  border-bottom: none;
}

/* ===== CONTAINER GENERAL ===== */
#container {
  padding: 85px 15px 15px;
  background: #dbdee1;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#container h3 {
  font-size: 25pt;
  letter-spacing: 1px;
  background: #2980b9;
  padding: 15px;
  color: #eff;
  text-align: center;
  text-transform: uppercase;
}

#container form {
  padding: 5px 10px;
}

#container form img {
  width: 250px;
  margin: 15px auto;
  display: block;
}

#container form input {
  width: 100%;
  min-width: 180px;
  padding: 5px !important;
  margin: 5px auto;
  background-color: #f8f8f8;
  font-size: 14pt;
  display: block;
  border-radius: 5px;
  border: 1px solid #ccc !important;
  text-align: center;
}

#container form input[type="submit"] {
  background: #a8e8a8;
  padding: 10px;
  color: #fff;
  letter-spacing: 1px;
  border: none;
}

#container form input[type="submit"]:hover {
  background: #52be80;
  cursor: pointer;
}

#container form input[type="checkbox"] {
  width: 15px;
  height: 15px;
  display: inline;
  min-width: 0;
}

#container form select {
  width: 100%;
  background-color: #f8f8f8;
  padding: 5px !important;
  font-size: 14pt;
  margin: 5px auto;
  border-radius: 5px;
  border: 1px solid #85929e !important;
  text-align: center;
  appearance: listbox;
  -webkit-appearance: listbox;
  -moz-appearance: listbox;
}

#container form textarea {
  margin: 10px;
  padding: 10px;
  background-color: #f8f8f8;
  width: 95%;
  border: 2px solid #ccc;
  border-radius: 5px;
  display: block;
}

/* ===== TITULOS ===== */
.title {
  background: #fff;
  display: flex;
}

.titlepaneldecontrol {
  width: 100%;
  background: #fff;
  padding: 5px 10px;
  color: var(--color-primary);
}

.titlepaneldecontrolsearch {
  width: 72%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  color: var(--color-primary);
  background: inherit;
}

/* ===== BUSCADORES ===== */
.titulo_search {
  padding: 10px;
  font-size: 25pt;
  color: #0d57e3;
  text-align: center;
  text-transform: uppercase;
}

.form_search {
  display: flex;
  width: 28%;
  margin-left: auto;
  align-items: center;
  gap: 10px;
}

.form_search .btn_search {
  background-color: #1faac8;
  color: #fff;
  padding: 5px;
  border: 0;
  cursor: pointer;
  border-radius: 6px;
}

.form_search_date {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-radius: 10px;
  margin: 10px auto;
  background-color: #fff;
}

.form_search_date label {
  margin: 0 10px;
}

.form_search_date select {
  width: fit-content;
  min-width: 120px;
}

.form_search_date .btn_view {
  padding: 5px;
  margin: 5px;
}

/* ===== PANEL DE CONTROL ===== */
.divcontainer {
  margin-bottom: 20px;
}

.containerPerfil {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
}

.containerData_user,
.containerData_Empresa {
  width: 100%;
  max-width: 550px;
  background-color: #fff;
  padding: 20px;
}

.logoUser,
.logoEmpresa {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 20px auto;
  padding: 25px;
  background: #e9e9e9;
}

.logoUser img,
.logoEmpresa img {
  width: 100%;
  height: 100%;
}

.divdataUser {
  padding: 10px;
  margin: auto;
}

.divinfosistema {
  padding: 5px 0;
}

.divinfosistema h4 {
  background: #3279a7;
  padding: 5px 10px;
  color: #fff;
  border-radius: 3px;
  text-align: center;
  margin-bottom: 10px;
}

.divinfosistema form {
  padding: 20px;
}

.divinfosistema input {
  margin-bottom: 10px;
}

.divinfosistema button {
  margin: 5px auto;
  display: block;
}

.divdataUser > div {
  display: flex;
}

.divdataUser label {
  width: 150px;
  margin: 10px 0;
}

.divdataUser span {
  padding: 5px;
}

.alertChangepass {
  text-align: center;
  font-weight: bold;
}
/* Online info */
#online-info, #online-info1, #online-info2{width: 100%;min-height: 96px; margin: 5px}
.dashboard {display: flex; flex-wrap: wrap; justify-content: space-around;width: 100%;margin:5px auto;}
.dashboard a{color:#898989; width: calc(100% / 7); padding:5px; background-color:#FFF; font-size:25pt; text-align: center;margin: 5px;}
.dashboard a span{font-weight:bold; font-size:14pt}
.dashboard p{color:#3279a7;}

/* ===== TABLA ===== */
table {
  width: 100%;
  font-size: 9pt;
  font-family: Arial, sans-serif;
  border-collapse: collapse;
}

table th {
  text-align: center;
  padding: 8px;
  background-color: #3d7ba8;
  color: #fff;
}

table tr:nth-child(odd) {
  background-color: white;
}

table td {
  text-align: center;
  padding: 5px;
  border-bottom: 1px solid #ccc;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.textright_th,
.textright_td {
  text-align: right;
  padding-right: 15px;
  min-width: 140px;
}

/* Switch botón On/Off */
.switch-button {
    display: inline-block;
}

.switch-button .switch-button__checkbox {
    display: none !important;
}

.switch-button .switch-button__label {
    background-color: var(--color-error); /* Cambiado de var(--color-red) a var(--color-error) para consistencia */
    width: 4rem;
    height: 2rem;
    border-radius: 2rem;
    display: inline-block;
    position: relative;
    cursor: pointer; /* Para que se vea que es clickeable */
    transition: background-color 0.3s ease;
}

.switch-button .switch-button__label::before {
    content: 'OFF';
    position: absolute;
    top: 0;
    left: 0;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    color: white;
    font-weight: bold;
    font-family: Arial, sans-serif;
    background-color: var(--color-primary); /* Cambiado de var(--color-button) que no estaba definido */
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--color-black);
    transition: transform 0.2s ease;
    user-select: none;
    font-size: 12px;
}

.switch-button .switch-button__checkbox:checked + .switch-button__label {
    background-color: var(--color-success); /* Cambiado a var(--color-success) para que coincida con verde */
}
.switch-button .switch-button__checkbox:checked + .switch-button__label::before {
      transform: translateX(2rem);
      content: 'ON';
      color: white;
      background-color: var(--color-primary);
    }

/* ===== PAGINADOR ===== */
.paginador ul {
  list-style: none;
  padding: 5px;
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}

.paginador a,
.paginador .page-selected {
  color: #428bca;
  border: 1px solid #ddd;
  padding: 5px;
  display: inline-block;
  font-size: 14px;
  width: 35px;
  text-align: center;
  text-decoration: none;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.paginador a:hover {
  background-color: #a6c9e2;
  color: #fff;
}

.paginador .page-selected {
  color: #fff;
  background-color: #428bca;
  border-color: #428bca;
  font-weight: bold;
}

/* ===== FOOTER ===== */
#footer {
  text-align: center;
  color: #777;
  padding: 10px 0;
  background: #2e363f;
}

/*formulario usuarios*/

.form_register {margin: 10px auto; margin-top: 20px;text-align: center;}
.form_register h1, .form_register_2 h1{color: #3c93b0;}
.form_register a {padding: 9px;}
.form_register_2 {margin: auto; margin-top: 20px;}
.form_filter{width: inherit; display: contents !important;}
.form-control{min-width: 200px}
.ContainerFormularios{display: flex; justify-content: space-around; align-items: flex-start; flex-wrap: wrap;}
.ContainerGeneral{width: 450px; background-color: #FFF; border-radius: 10px; overflow: hidden;}


/* estilos links */
.link_edit{color: #0ca4ce;}
.link_delete{color: #f26b6b;}
.link_add{color: #64b13c;}
.data_delete{text-align: center;}
.data_delete h2{font-size: 12pt;}
.data_delete span{font-weight: bold; color: #4f72d4; font-size: 12pt;}
.data_delete form {background: initial !important ; margin: auto; padding: 20px 50px; border: 0;}

/*formulario login*/
.BoxInLine {display: inline; margin: 5px;}
/*cuerpo principal*/
.contenido_principal{width: 100%;}

/*imagen data online */
#history_data, #online_data, #online_container {
    width: 100%; /* Se adapta al contenedor */
    max-width: 509px; /* Mantiene el diseño original en escritorio */
    height: 180px;
}
#data {width: 100%;display: flex; flex-wrap: wrap; justify-content: center; align-items: center; padding: 10px; margin-top: 10px}
#history_data{padding: 5px; margin: 0 auto; background: #52be80 !important;border-radius: 5px;}
#online_data {padding: 5px; margin: 0 auto; background: #52be20 !important;border-radius: 5px;}
/* ===== CONTENEDOR GRÁFICO ONLINE ===== */
#online_container {
  position: relative;
  margin: 0 auto;
}

/* ===== OVERLAY DE TRÁFICO ===== */
#trafico {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #0cc607; /* tu color accent */
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: bold;
  z-index: 10;
  font-size: 13px;
  line-height: 1;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* form lista recaudo */
#containerListaRecaudo{width: 100%; height: 100%;}
#containerListaRecaudo form{width: 100%; padding: 10px 20px; border: 1px solid #ADC3C3;}

/* seccion averias */
.wrapper {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
grid-template-rows: repeat(2, 1fr);
grid-gap: 5px;
grid-auto-flow: dense;
list-style: none;
margin: 1em auto;
padding: 0;
border-radius: 5px;
}
.div1 {
  grid-area: 1 / 1 / 3 / 2;
  display: grid; /* Permite usar propiedades de alineación para el contenido interno */
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Centra verticalmente */
  text-align: center;
}
.div2 { grid-area: 1 / 2 / 2 / 4; margin-top: 5px;}
.div3 { grid-area: 1 / 4 / 2 / 6; margin-top: 5px;}
.div4 { grid-area: 2 / 2 / 3 / 4; }
.div5 { grid-area: 2 / 4 / 3 / 6; }
.div6 { grid-area: 2 / 6 / 3 / 7; }
.div7 { grid-area: 1 / 6 / 2 / 7; margin: 5px;}
.wrapper li {
border: 1px solid #ccc;
}
.wrapper li.landscape {
grid-column-end: span 2;
}
.wrapper li img {
display: block;
object-fit: cover;
width: 100%;
height: 100%;
}
.wrapper span {color: red; }
.wrapper_rojo {
border: 2px solid #f70707;
background-color: #f9c7c7;
}
.wrapper_naranja {
border: 2px solid #f78e07;
background-color: #fddea2e8;
}
.wrapper_verde {
border: 2px solid #0ff707;
background-color: #cff7b9;
}
dt {
font-weight: bold;
margin: 0.1em;
}
dd {
margin: 0.1em;
}
/* dfghj */
.TitulosForm {color: royalblue;padding: 10px;}
.alert_confirmation {width: 100%; border-radius: 6px; margin: 10px auto; font-family: 'Arial'; font-size: 16pt; text-align: center; background-color:#3de63d; }
.alert_confirm_form {display: inline-flex !important;}
.alert_confirmation p {padding: 10px; display: block;}
.alert {width: 100%; border-radius: 6px; margin: 10px auto; font-family: 'Arial'; font-size: 16pt; text-align: center; display: inline-block;;}
.alert p {padding: 10px; display: block;}
.msg {background:white; display:inline-block; width:100%; padding:0 5px 0 5px;}
.msg_error{color: #fffdfd;background: #de2323;border-radius: 6px;display: inline-flex;width: 100%;align-content: center; margin: 5px auto;}
.msg_save {color: #fffdfd;background: #16b957;border-radius: 6px;display: inline-flex;width: 100%;align-content: center; margin: 5px auto;}
.msg_preca{color: #fffdfd;background: #0064ff;border-radius: 6px;display: inline-flex;width: 100%;align-content: center; margin: 5px auto;}
.radius_select{background: inherit;padding: 0;border: 0;}
.div_acciones{display: flex; justify-content: center;}
.totalfactura{display: flex; justify-content: space-between;}
.inactive{background: #565656; color: #CCC; cursor: default;}
.btn_guardar{  float: right;  padding: 0 10px;}
.alarma{color: red;}


/* imagen producto */
.prevPhoto {display: flex; justify-content: space-between; width: 160px; height: 150px; border: 1px solid #CCC; position: relative; cursor: pointer; background: url(../images/uploads/user.png); background-repeat: no-repeat; background-size: cover; background-position: center center; margin: auto;}
.prevPhoto label{ cursor: pointer;	width: 100%; height: 100%; position: absolute; top: 0;	left: 0; z-index: 2; }
.prevPhoto img{	width: 100%; height: 100%;}
.upimg, .notBlock{display: none !important;}
.errorArchivo{	font-size: 16px;font-family: arial;	color: #cc0000;	text-align: center;	font-weight: bold;margin-top: 10px;}
.delPhoto{ color: #FFF;	display: flex; justify-content: center;
	align-items: center; border-radius: 50%;	width: 25px; height: 25px; background: red; position: absolute; right: -10px; top: -10px;	z-index: 10;}

/* productos */

.img_producto img{width: 30px; height: auto; margin: auto; }
.imgProductoDelete{	width: 175px;}

.modal{position: fixed; width: 100%; height: 100%; background: rgba(0,0,0,0.81); display: none;;}
.modal h1{color: #0E7250; text-transform: uppercase;}
.modal h2{text-transform: uppercase; margin-top: 15px;}
.bodyModal{width: 100%; height: 100%;display: inline-flex; justify-content: center; align-items: center;}
#form_add_product{width: 420px; text-align: center;}
/*============ Ventas ============*/
.datos_cliente, .datos_venta, .title_page{	width: 100%;	max-width: 900px;	margin: auto;	margin-bottom: 20px;}
#detalle_venta tr{
	background-color: #FFF !important;
}
#detalle_venta td{
	border-bottom: 1px solid #CCC;
}
.datos {
	background-color: #e3ecef;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	border: 2px solid #78909C;
	padding: 10px;
	border-radius: 10px;
	margin-top: 10px;
}
.action_cliente {
	display: flex;
	align-items: center;
}

.datos label{
	margin: 5px auto;
}
.wd20{
	width: 20%;
}
.wd25{
	width: 25%;
}
.wd30{
	width: 30%;
}
.wd40{
	width: 40%;
}
.wd60{
	width: 60%;
}
.wd100{
	width: 100%;
}
#div_registro_cliente, #add_product_venta{
	display: none;
}
.displayN{
	display: none;
}
.tbl_venta{
	max-width: 900px;
	margin: auto;
}
.tbl_venta tfoot td{
	font-weight: bold;
}
/* alineacion de texto*/
.textright{text-align: center; width:auto; }
.textcenter{text-align: center;}
.textleft{text-align: left;}
/* Detalle de clientes */
.excesivo { color: #0104df; }   /* Azul */
.exelente { color: #06af01; }   /* Verde */
.bueno    { color: #ffb200; }   /* Amarillo */
.neutro   { color: #ff8c00; }   /* Naranja */
.malo     { color: #df0101; }   /* Rojo */
.excesivo, .exelente, .bueno, .malo, .neutro{font-weight: bold;}


/* datos de enlace*/
#dat_enlace {padding: 10px 0px; display: flex; width: 100%}

/* messenger  */
#messenger{ background:#eff3f7; width: 90%; margin:0 auto; font-size:0; border-radius:5px; overflow:hidden;}
main{padding: 10px; display:inline-block; font-size:15px;}
.status{ width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:7px;}
.green{background-color:#58b666;}
.orange{	background-color:#ff725d;}
.blue{	background-color:#6fbced;	margin-right:0;	margin-left:7px;}
#messenger form{width: auto;
background: none;
border: none;
padding: initial;}
#chat{padding-left:0;margin:0;list-style-type:none;overflow-y:scroll;height:240px;border-top:2px solid #fff;border-bottom:2px solid #fff;}
#chat li{
padding:10px 30px;
}
#chat h2,#chat h3{
display:inline-block;
font-size:13px;
font-weight:normal;
}
#chat h3{
	color: #bbb;
	background: no-repeat;
	padding: inherit;
	text-transform: initial;
	text-align: inherit;
	width: auto;
}
#chat .entete{margin-bottom:5px;}
#chat .message{padding:20px;color:#fff;line-height:25px;max-width:90%;display:inline-block;text-align:left;border-radius:5px;min-width: 230px}
#chat .me{text-align:right;}
#chat .me .message{	background-color:#6fbced;}
#chat .you .message{background-color:#58b666;}

#chat .triangle{
width: 0;
height: 0;
border-style: solid;
border-width: 0 10px 10px 10px;
}
#chat .you .triangle{
border-color: transparent transparent #58b666 transparent;
margin-left:15px;
}
#chat .me .triangle{
	border-color: transparent transparent #6fbced transparent;
	margin-left:375px;
}
main footer{
padding:20px 30px 10px 20px;
}
main footer a{
text-decoration:none;
text-transform:uppercase;
font-weight:bold;
color:#6fbced;
vertical-align:top;
margin-left:280px;
margin-top:5px;
display:inline-block;
}
/** Datos radius **/
#dat_radius {display: block; width: 100%}
/* css para mostrar el historial sin habrir nueva ventana en dettales cliente*/
/* Fondo oscuro */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Caja del modal */
.modal-box {
  background: #fff;
  width: 90%;
  max-width: 1100px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

/* Cabecera */
.modal-header {
  background: var(--color-primary);
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

/* Botón cerrar */
.modal-close {
  cursor: pointer;
  font-size: 24px;
  line-height: 20px;
}

/* Cuerpo */
.modal-body {
  padding: 15px;
  max-height: 75vh;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}
