@import url("./silver-notifications.css");

silver-a {
  color: #2e458e;
  background-color: transparent;
  font-size: 15px;
  border: 0px solid #7979ff;
  text-decoration: underline;
  color: rgb(0, 0, 238);
  cursor: pointer;
}

silver-content {
  overflow: hidden;
  background-color: #ebeaea;

  padding: 0px;
  display: block;

  z-index: 0;
}

silver-footer {
  display: block;
  background-color: #ebeaea;
  text-align: center;
  padding: 5px 0px 5px 0px;
  position: sticky;
  bottom: 0px;
  border-top: 1px solid #888;
}

silver-header {
  box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.4);
  background-color: #ffffff;
  display: block;
  margin: 0px;
  padding: 5px;
  top: 0px;
  z-index: 1;
}

silver-header img {
  width: 40px;
  height: 40px;
}

silver-back {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

silver-back .hide {
  width: 0px;
  display: none;
}

silver-header h1 {
  padding: 5px;
  margin: 5px;
  font-size: 20px;
}

silver-header h2 {
  padding: 5px;
  margin: 0px;
  font-size: 14px;
}

silver-histonav {
  /*background-color: #ebeaec;*/
  display: flex;          /* pone los botones en fila */
  flex-wrap: nowrap;      /* nunca pasa a la siguiente línea */
  overflow-x: auto;       /* scroll horizontal si no entra */
  overflow-y: hidden;     /* no se mueve verticalmente */
  padding: 0px 0px 4px 0px;
  z-index: 0;
  border-bottom: 1px solid lightgrey;

  /* mejora scroll en móviles */
  -webkit-overflow-scrolling: touch;
}

silver-histonav button {
  color: grey;
  background-color: #ffffff;
  text-align: center;
  padding: 3px 10px;
  margin: 0px;
  font-size: 12px;
  border-radius: -0px 15px 15px 0px;
  border: 1px solid lightgrey;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  min-height: 20px;
  cursor: pointer;

  /* ya no necesitamos float */
  float: none;
  flex-shrink: 0;  /* evita que los botones se compriman */
}

silver-histonav button:hover {
  background-color: #ddd;
}

silver-layout {
  background-color: #ebeaea;
  margin: 0px;
  padding: 0px;
  height: 100vh;
  z-index: 0;
}

silver-navbar {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  padding: 0px 0px 0px 0px;
}

#silver-left-panel {
  box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.4);

  background-color: #ffffff;
  padding: 0px 0px 0px 0px;

  width: 45px;
  min-width: 45px;
  z-index: 2;
}

#silver-left-panel {
  box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.4);

  background-color: #ffffff;
  padding: 0px 0px 0px 0px;

  width: 45px;
  z-index: 2;
  transition: all 0.3s;
}

/*
#silver-left-panel:hover {
  transition: all 0.3s;
  width: 140px;
}
*/
#silver-left-panel.active {
  width: 140px;
}

silver-right-panel {
  background-color: #333;
  padding: 0px;
  z-index: 1;
}

.silver-navbar-button {
  font-size: 12px;
  opacity: 0.7;
  width: 100%;
  height: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;

  cursor: pointer;
}

.silver-navbar-selected {
  opacity: 1;
  background-color: lightgrey;
}

.silver-navbar-button:hover {
  opacity: 1;
  background-color: lightgrey;
  /*box-shadow: 0 0px 0.5em rgba(0, 0, 0, 0.4);*/
}

.silver-navbar-button-image {
  width: 36px;
  margin: 5px;
}

/* NOTIFICACIONES */


/* TOPNOTE */

.topnote {
  background-color: white;
  margin: 5px;
  padding: 10px;

  border: 1px solid #8080b0;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);

  left: 10px;
  right: 10px;
  top: 10px;
  border-radius: 10px;
  overflow: hidden;
}

silver-waiting {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  visibility: visible;
  z-index: 15;
}

silver-waiting :first-child {
  width: 50px;
  height: 50px;
  background-color: red;
  position: absolute;
  animation: myfirst 0.5s linear infinite;
}

@keyframes myfirst {
  0% {
    background-color: red;
    left: 0px;
    top: 0px;
  }
  100% {
    background-color: yellow;
    left: 100%;
    top: 0px;
    border-radius: 25px;
  }
}

body {
  font-family: Verdana, Helvetica;
  font-size: 14px;
  background-color: #959595;
  margin: 0px;
}

h1 {
  padding: 0px;
  margin: 10px;
  font-size: 20px;
}

h2 {
  padding: 0px;
  margin: 5px;
  font-size: 18px;
}

h3 {
  padding: 0px;
  margin: 5px;
  font-size: 16px;
}

h4 {
  padding: 0px;
  margin: 5px;
  font-size: 14px;
}

#btnLogout {
  position: absolute;
  right: 0px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
}

/************************/
/*    TABLES            */
/************************/
.styled-table-1 {
  border-collapse: collapse;
  font-size: 0.9em;
  width: 100%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.styled-table-1 thead tr {
  background-color: #626684;
  color: #ffffff;
  text-align: left;
}

.styled-table-1 th,
.styled-table-1 td {
  padding: 5px 15px 5px 10px;
}

.styled-table-1 tbody tr {
  border-bottom: 1px solid #dddddd;
}

.styled-table-1 tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.styled-table-1 tbody tr:last-of-type {
  border-bottom: 2px solid #626684;
}

/************************/
/* INPUT,SELECT,BUTTONS */
/************************/

label,
input,
select {
  display: inline-flex;
  margin-bottom: 0px;
}

input:hover {
  background: #bababa !important;
}

select:hover {
  background: #bababa !important;
}

button {
  background: white !important;
}

button:hover {
  background: #bababa !important;
}

button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.inputModificar {
  font-size: 15px;
  font-style: italic;
  min-height: 30px;
  padding: 0px 0px 0px 10px;
  vertical-align: central;
  text-align: left;

  display: inline-block;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px 6px 6px 6px;
}

.input-container {
  position: relative;
  width: max-content;
  display: inline-block;
}

.input-container input {
  font-size: 14px;
  font-style: italic;
  padding: 3px 20px 3px 5px;
  text-align: left;
  display: inline-block;
  color: black;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px 6px 6px 6px;
}

.input-container textarea {
  font-size: 14px;
  font-style: italic;
  padding: 3px 20px 3px 5px;
  text-align: left;
  display: inline-block;
  color: black;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px 6px 6px 6px;
}

.input-container .fa {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/***************************/
/* TOOL TIP                */
/***************************/

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tdtooltip {
  color: #707070;
}

/************************/
/* SEARCH               */
/************************/

#search-input {
  font-size: 15px;
  border: 1px solid grey;
  border-radius: 10px;
  float: left;
  background: #ffffff;
  flex: 0, 1, 200px;
}

/************************/
/*      */
/************************/

#checkbox-select-all {
  height: 20px;
  width: 20px;
  margin: 0px 10px 0px 18px;
  align-self: center;
}

/************************/
/*    PAGINATION        */
/************************/

#pagination-control {
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow-y: hidden;
  overflow-x: hidden;
  vertical-align: middle;
  height: 34px;
}

#pagination-info {
  margin: 5px;
}

/************************/
/*                      */
/************************/

.hr {
  width: 100%;
  height: 0px;
  border: 1px inset;
  background-color: dimgray; /* Color de la lÃ­nea */
}

.hr-v {
  height: 20px;
  width: 0px;

  border: 1px inset;
  background-color: dimgray; /* Color de la lÃ­nea */
  margin: 0 5px;
}

/* HELPERS */

.background-black {
  background-color: black;
}

.background-white {
  background-color: white;
}

.background-grey {
  background-color: grey;
}

.background-lightgrey {
  background-color: lightgrey;
}

.background-gray {
  background-color: gray;
}

.background-lightgray {
  background-color: lightgray;
}

.background-green {
  background-color: green;
}

.background-yellow {
  background-color: yellow;
}

.background-lightgreen {
  background-color: lightgreen;
}

.background-lightblue {
  background-color: lightblue;
}

/* HELPERS - ROUNDERS */
.rounded-10 {
  border-radius: 10px;
}

.rounded-20 {
  border-radius: 20px;
}

/* HELPERS - SHADOW */

.shadow-std {
  box-shadow: 0 0px 0.5em rgba(0, 0, 0, 0.4);
}

/* HELPERS - ALIGNMENT */

.ha-center {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
}

.va-center {
  display: flex;
  align-items: center; /* Centra verticalmente */
}

/* HELPERS - PASTE BORDER */
.paste-left {
  left: 0;
}

.paste-right {
  right: 0;
}

.paste-top {
  top: 0;
}

.paste-bottom {
  bottom: 0;
}

/* HELPERS - OVERFLOW CONTROL */

.overflow-no {
  overflow-y: hidden;
}

.overflow-yes {
  overflow-y: auto;
  overflow-x: hidden;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.fill-all {
  flex: 1;
  width: 100%;
}

.fill-width {
  width: 100%;
}

/* HELPERS - ROWED CONTENT */
.rowed-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rowed-top {
  top: 0;
  width: 100%;
}

.rowed-content {
  flex: 1;
  width: 100%;
  overflow-y: auto; /* Muestra el scrollbar vertical si el contenido no cabe */
}

.rowed-bottom {
  bottom: 0;
  width: 100%;
}

/* HELPERS - COLUMN CONTENT */
.columned-container {
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
.columned-left {
  left: 0;
}

.columned-content {
  flex: 1;
  overflow-y: auto; /* Muestra el scrollbar vertical si el contenido no cabe */
}

.columned-right {
  right: 0;
}

/* HELPER - TOOLBAR */
.h-toolbar {
  display: flex;
  padding: 5px;
  background-color: lightgrey;
  border: 1px outset;
}

/* HELPER - STYLE HELPERS */

/* Clases para diferentes tipos de mensajes */
.snack-info {
  background-color: #2196f3;
  color: white;
}

.snack-success {
  background-color: #4caf50;
  color: white;
}

.snack-error {
  background-color: #f44336;
  color: white;
}

/**************************************************************/
/* OLD FOR LOGIN    */
/**************************************************************/
.tableApartado {
  padding: 10px;
  margin: 10px 10px 10px 10px;
  border-radius: 6px 6px 6px 6px;

  display: inline-block;
  border: 0px solid black;
  min-width: 300px;
  background-color: #ffffff;

  box-shadow: 0 0 1em rgba(0, 0, 0, 0.4);
  /*position: relative;*/
}
div.tableApartado #TITLE {
  font-size: 18px;
  font-weight: bold;
  margin: 0px;
}
div.tableApartado #SUBTITLE {
  font-size: 12px;
  margin: 0px;
}
div.tableApartado #CONTENT {
  font-size: 14px;
  margin: 10px;
}

.centrar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
