.page-item:first-child.active {
    margin-right: initial;
}

/*
.page-item:last-child.active {
    margin-left: initial;
}
*/

/* estilos de la aplicacion threemesh: */

.accordion-header {
    position: relative;
}

.button-container {
    position: absolute;
    right: 30px;
    top: 11px;
    z-index: 10;
}

.mazer_fixed_header {
    overflow: auto;
    height: 100px;
}

.mazer_fixed_header thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: white;
}

/* Just common table stuff. Really. */
table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: 8px 16px;
}

th {
    background: #eee;
}

.header-top {
    padding: 0.4em !important;
}

footer {
    position: fixed;
    bottom: 0px;
    width: 100%;
    background-color: white;
}

.card-element {
    background-color: var(--bs-card-cap-bg);
    color: var(--bs-card-cap-color);
    padding: 0rem 1.5rem 0.5rem 1.5rem;
    border-bottom: var(--bs-card-border-width) solid var(--bs-card-border-color);
}
.highlight-text{
    background-color: #435ebe;
    color: #fff;
}

#visor {
    flex-flow: column;
    background-color: #e9ecef;
    border-radius: 0.7rem;
}

#form-container {
    max-height: 80vh;
    border-radius: 0.7rem;
}

#form-container .card{
    max-height: 80vh;
}

.form-floating>.form-control, .form-floating>.form-control-plaintext, .form-floating>.form-select {
    height: 2rem!important;
    min-height: 2rem!important;
    line-height: 1.25;
}

.form-floating>.form-control:focus~label:after, .form-floating>.form-control:not(:placeholder-shown)~label:after, .form-floating>.form-control-plaintext~label:after, .form-floating>.form-select~label:after {
    position: absolute;
    /* top: 1rem; */
    right: 0.375rem;
    bottom: 1rem;
    left: 0.375rem;
    z-index: -1;
    height: 2rem!important;
    content: "";
    background-color: transparent!important;
    border-radius: 0.25rem;
}

.form-floating>label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100%;
    padding: 0.35rem 0.75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
}

.visor {
    display: grid;
    grid-template-columns: 400px 200px 400px;
    grid-template-rows: 400px 200px;
    gap: 6px 6px;
    grid-template-areas:
        "canvas-top canvas-longitudinal canvas-3d"
        "canvas-transversal . canvas-3d";
}

#canvas-top {
    grid-area: canvas-top;
    place-self: start;
}

#canvas-longitudinal {
    grid-area: canvas-longitudinal;
    place-self: start;
}

#canvas-transversal {
    grid-area: canvas-transversal;
    place-self: end;
}

.canvas-with-controls {
    position: relative;
}

.canvas-controls{
  position: absolute;
  top: 8px;
  left: 8px;
}

#form-container .card-body{
    overflow: auto;
}

#builder-container .card {
    height: 100%;
}

#generated-dialog{
    overflow: hidden;
}

.form-control-icon{
    font-size: 0.75rem;
}
.input-units {
    display: flex;
    position: absolute;
    right: 0px;
    top: 0px;
    line-height: 1.5;
    padding: 0.375rem 0.6rem;
    min-width: 40px;
    font-size: 0.75rem;
}

.model-card .card, .work-card .card, .model-card .card .card-footer, .work-card .card .card-footer {
    background-color: #e9ecef;
}

.form-group[class*=has-icon-].has-icon-left .form-control {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

#builder-container .form-group[class*=has-icon-].has-icon-left .form-control {
    padding-left: 30px;
    padding-right: 32px;
}


.user-menu .bi {
    width: 30px;
    height: 30px;
}

.header-title,
.avatar .bi-person-circle{
    color: #eb6608;
}

div#auth #auth-right{
    background: #eb6608;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layout-horizontal .main-navbar{
    background-color: #eb6608;
}
/*Alineaciones en listados*/
.type_double, .type_integer {
    text-align: right;
  }

input[readonly],input[readonly]:focus {
    background-color: #e9ecef;
    opacity: 1;
}
/* ===== Scrollbar CSS ===== */
  /* Firefox */
  /* Se comenta esto ya que si no no funciona en chrome el scroll personalizado */
  /* * {
    scrollbar-width: auto;
    scrollbar-color: #eb6608 #ffffff;
  } */

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 12px;
  }

  *::-webkit-scrollbar-track {
    background: #ffffff;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #eb6608;
    border-radius: 10px;
    border: 3px solid #ffffff;
  }
/******************************/

/* ===== Cabecero marrón ===== */

.alert-brown {
    background-color: #3e1b06;
    color: #fff;
}

.add-bend,
.remove-bend, 
.add-segment-bar {
    cursor: pointer;
}

.move-bend{
    cursor: grab;
}


/* Hide the spinner controls for number input */
#builder-container input[type="number"]::-webkit-inner-spin-button,
#builder-container input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

#builder-container .bars-input{
    padding: .375rem .375rem;
}
#builder-container input{
    line-height: 0.7;
}
#builder-container .card-header{
    padding: 12px;
}
#builder-container .form-group{
    margin-bottom: .15rem;
}
#builder-container .h5{
    margin: 0px;
}
/* =========================== */

/* ===== Toast Bootstrap ===== */
.toast-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
}

.custom-toast.error{
    position: relative;
    top: 10px;
    right: 10px;
    margin-top: 0.3rem;
    /* max-width: 300px; */
    background-color: #f8d7da; /* Background color */
    border: 2px solid #f5c6cb; /* Border color */
    border-radius: 10px; /* Rounded corners */
    /*color: #fff;*/ /* Text color */
}

.custom-toast.success{
    position: relative;
    top: 10px;
    right: 10px;
    margin-top: 0.3rem;
    /* max-width: 300px; */
    background-color: #d4edda; /* Background color */
    border: 2px solid #c3e6cb; /* Border color */
    border-radius: 10px; /* Rounded corners */
    /*color: #fff;*/ /* Text color */
}

.custom-toast.info{
    position: relative;
    top: 10px;
    right: 10px;
    margin-top: 0.3rem;
    /* max-width: 300px; */
    background-color: #d1ecf1; /* Background color */
    border: 2px solid #bee5eb; /* Border color */
    border-radius: 10px; /* Rounded corners */
    /*color: #fff;*/ /* Text color */
}

.toast-text{
    font-size: 0.90rem;
    margin-top: auto!important;
    margin-bottom: auto!important;
    font-weight: 700;
    line-height: 1.2;
}

/* ========= Input type number ======== */
input[type="number"] {
    text-align: right!important; 
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* ==================================== */

/* ========= Loader ======== */

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid  #eb6608;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .hidden {
    display: none;
  }
  /* ==================================== */

/* =========  Container full HD  ======== */

  @media (min-width: 1800px){
      .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
          max-width: 1620px;
      }
  }
/* ==================================== */

/* =========     Btn orange    ======== */

.btn-orange {
    color: #fff;
    background-color: #eb6608; /* Color naranja personalizado */
    border-color: #eb6608; /* Color naranja personalizado */
  }
  .btn-orange:hover {
    color: #fff;
    background-color: #d85500; /* Color naranja más oscuro al pasar el mouse */
    border-color: #d85500; /* Color naranja más oscuro al pasar el mouse */
  }

/* ==================================== */

/* =========     Textarea readonly    ======== */

textarea[readonly] {
    background-color: #f0f0f0;
}

/* ==================================== */

/* =========     Custom alert    ======== */

.custom-alert {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
  }
  .custom-alert .alert-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 20px;
    max-width: 80vw;
    width: 300px;
    text-align: center;
  }
  .custom-alert .alert-title {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .custom-alert .alert-description {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .custom-alert .alert-icon {
    font-size: 48px;
    margin-bottom: 20px;
  }

  /* ==================================== */
  
  /* =========     Cursor pointer    ======== */

  .c-pointer {
      cursor: pointer;
    }
/* ==================================== */

/* =========     Custom confirm css    ======== */

.sch-modal-confirm-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Establecer un z-index alto */

  }
  .sch-modal-confirm-body .sch-modal-confirm-icon{
    font-size: 10vh;
  }
  .sch-modal-confirm-dialog {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    width: 70vw; /* Ancho relativo al 70% del viewport width */
    max-width: 500px; /* Ancho máximo */
    height: auto;
    max-height: 90vh; /* Altura máxima */
    overflow-y: auto; /* Agregar scroll si el contenido es más largo que la altura máxima */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .sch-modal-confirm-content {
    padding: 20px;
  }
  
  .sch-modal-confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .sch-modal-confirm-body {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  
  .sch-modal-confirm-body i {
    font-size: 36px;
    margin-bottom: 10px;
  }
  
  .sch-modal-confirm-footer {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
  }
  
  .btn-schclose {
    background-color: #dc3545; /* Color de fondo rojo */
    border: none;
    border-radius: 50%; /* Hacer que el botón sea circular */
    width: 30px; /* Ancho del botón */
    height: 30px; /* Altura del botón */
    color: white; /* Color del icono */
    font-size: 20px; /* Tamaño del icono */
    line-height: 1; /* Alinear verticalmente el icono */
    padding: 0; /* Eliminar el relleno interno */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Estilos para el icono de "x" */
  .btn-schclose::before {
    content: '×'; /* Código del icono "x" */
  }

  /* ==================================== */

  .text-schnell-color{
    color:#eb6608;
  }
