@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* ROOT VARAIBLES */
:root {
  --color-primary: #d31818;
  --color-danger: #292929;
  --color-success: #41f1b6;
  --color-warning: #ffbb55;
  --color-white: #fff;
  --color-info-dark: #969696;
  --color-info-light: #dce1eb;
  --color-dark: #363949;
  --color-light: rgba(132, 139, 200, 0.18);
  --color-primary-variant: #111e88;
  --color-dark-variant: #677483;
  --color-background: #f6f6f9;
  --color-suspenso: #e08906;

  --card-border-radius: 2rem;
  --border-radius-1: 0.4rem;
  --border-radius-2: 0.8rem;
  --border-radius-3: 1.2rem;

  --card-padding: 1.8rem;
  --padding-1: 1.2rem;

  --box-shadow: 0 2rem 3rem var(--color-light);
  --box-shadow-form: 0 0rem 0rem var(--color-light);
}

* {
  margin: 0;
  padding: 0;
  outline: 0;
  appearance: none;
  border: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
  user-select: text;
}

html {
  font-size: 14px;
}

body {
  width: 100vw;
  height: 100vh;
  font-family: poppins, sans-serif;
  font-size: 0.88rem;
  background: var(--color-background);
  user-select: none;
  color: var(--color-dark);
  zoom: 0.8;
}

.container-cp {
  display: grid;
  width: auto;
  margin: 0 auto;
  gap: 1.8rem;
  grid-template-columns: 14rem auto;
}

.cp-info {
  display: flex;
  justify-content: center;
}

.cp-edit {
  display: flex;
  width: 63rem;
}

.container-edit {
  display: grid;
  width: auto;
  margin: 0 auto;
  gap: 1.8rem;
  grid-template-columns: 7rem 50rem 40rem;
}

.container-info {
  display: grid;
  grid-template-columns: 100px 1fr 300px;
  /* Ajusta los valores según necesites */
  height: 100vh;
  gap: 10px;
  /* Espacio entre columnas */
}

.container-ct {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  /* Ajusta los valores según necesites */
  height: 100vh;
  gap: 10px;
  /* Espacio entre columnas */
}

.container-from {
  display: grid;
  width: auto;
  margin: 0 auto;
  gap: 2.8rem;
  grid-template-columns: 7rem auto 7rem;
}

.main--from {
  align-content: center;
  display: grid;
}

.container-cp-2 {
  display: grid;
  width: auto;
  margin: 0 auto;
  gap: 2.8rem;
  grid-template-columns: 7rem auto 7rem;
}

.cotizador- {
  width: 100rem;
}

.list-cp {
  display: grid;
  width: 135%;
  margin: 25px auto;
  gap: 1.8rem;
  margin-left: -2rem;
}

a {
  color: var(--color-dark);
}

img {
  display: block;
  width: 100%;
}

h1 {
  font-weight: 800;
  font-size: 1.8rem;
}

h2 {
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 900;
}

h3 {
  font-size: 0.87rem;
}

h4 {
  font-size: 0.8rem;
}

h5 {
  font-size: 0.77rem;
}

small {
  font-size: 0.75rem;
}

.profile-photo {
  width: 2.8rem;
  height: 2.8rem;
  overflow: hidden;
}

.text-muted {
  color: var(--color-info-dark);
}

p {
  color: var(--color-dark-variant);
}

.sub-red {
  background: var(--color-primary);
  color: white;
  font-size: 19px;
  padding: 6px 12px 6px 12px;
  border-radius: 5px;
  display: flex;
  margin-bottom: -10px;
  margin-top: -6px;
}

.sub-red-2 {
  background: var(--color-primary);
  color: var(--color-background);
  font-size: 14px;
  padding: 6px 12px 6px 12px;
  border-radius: 5px;
}

.sub-black {
  background: var(--color-danger);
  color: var(--color-background);
  font-size: 16px;
  padding: 6px 12px 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.sub-black::after {
  background: black;
  color: var(--color-background);
  font-size: 16px;
  padding: 6px 12px 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.primary {
  color: var(--color-primary);
}

.danger {
  color: var(--color-danger);
}

.success {
  color: var(--color-success);
}

.warnig {
  color: var(--color-warning);
}

aside {
  color: white;
  width: 100%;
  max-width: 130px;
  z-index: 1;
}

aside .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
  border-radius: var(--border-radius-2);
  padding: 1rem;
}

aside .logo {
  display: flex;
  gap: 0.8rem;
}

aside .logo img {
  width: 10rem;
  height: 4rem;
}

aside .close {
  display: none;
}

aside h3 {
  font-weight: 500;
}

/*======== MAIN ==========*/

main .date {
  display: inline-block;
  border-radius: var(--border-radius-1);
  padding: 0.5rem 1.6rem;
}

main .insights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

main .insights- {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

main .insights > div {
  background: var(--color-white);
  padding: var(--card-padding);
  border-radius: var(--card-border-radius);
  margin-top: 1rem;
  box-shadow: var(--box-shadow);
  transition: all 300ms ease;
}

main .insights- > div {
  background: var(--color-white);
  padding: var(--card-padding);
  border-radius: var(--card-border-radius);
  margin-top: 1rem;
  box-shadow: var(--box-shadow);
  transition: all 300ms ease;
  width: 25rem;
}

main .insights > div:hover {
  box-shadow: none;
}

main .insights > div span {
  background: var(--color-primary);
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 2rem;
}

main .insights > div.expenses span {
  background: var(--color-danger);
}

main .insights > div.income span {
  background: var(--color-primary);
}

main .insights > div .middle {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

main .insights h3 {
  margin: 1rem 0 0.6rem;
  font-size: 6rem;
}

main .insights .progress {
  position: relative;
  width: 90px;
  height: 190px;
  border-radius: 49%;
  left: -30px;
}

main .insights svg {
  width: 7rem;
  height: 7rem;
}

main .insights svg circle {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 14;
  stroke-linecap: round;
  transform: translate(5px, 5px);
  stroke-dasharray: 110;
  stroke-dashoffset: 92;
}

main .insights .sales svg circle {
  stroke-dashoffset: -30;
  stroke-dasharray: 200;
}

main .insights .expenses svg circle {
  stroke-dashoffset: 20;
  stroke-dasharray: 80;
}

main .insights .incomen svg circle {
  stroke-dashoffset: 35;
  stroke-dasharray: 35;
}

main .insights .progress .number {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 2 */
main .insights-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

main .insights-2 > div {
  background: var(--color-white);
  padding: var(--card-padding);
  border-radius: var(--card-border-radius);
  margin-top: 1rem;
  box-shadow: var(--box-shadow);
  transition: all 300ms ease;
}

main .insights-2 > div:hover {
  box-shadow: none;
}

main .insights-2 > div span {
  background: var(--color-primary);
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 2rem;
}

main .insights-2 > div.expenses span {
  background: var(--color-danger);
}

main .insights-2 > div.income span {
  background: var(--color-primary);
}

main .insights-2 > div .middle {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

main .insights-2 h3 {
  margin: 1rem 0 0.6rem;
  font-size: 6rem;
}

main .insights-2 .progress {
  position: relative;
  width: 90px;
  height: 190px;
  border-radius: 49%;
  left: -30px;
}

main .insights-2 svg {
  width: 7rem;
  height: 7rem;
}

main .insights-2 svg circle {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 14;
  stroke-linecap: round;
  transform: translate(5px, 5px);
  stroke-dasharray: 110;
  stroke-dashoffset: 92;
}

main .insights-2 .sales svg circle {
  stroke-dashoffset: -30;
  stroke-dasharray: 200;
}

main .insights-2 .expenses svg circle {
  stroke-dashoffset: 20;
  stroke-dasharray: 80;
}

main .insights-2 .incomen svg circle {
  stroke-dashoffset: 35;
  stroke-dasharray: 35;
}

main .insights-2 .progress .number {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* insight-3 */
main .insights-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

main .insights-3 > div {
  background: var(--color-white);
  padding: var(--card-padding);
  border-radius: var(--card-border-radius);
  margin-top: 1rem;
  box-shadow: var(--box-shadow);
  transition: all 300ms ease;
}

main .insights-3 > div:hover {
  box-shadow: none;
}

main .insights-3 > div span {
  background: var(--color-primary);
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 2rem;
}

main .insights-3 > div.expenses span {
  background: var(--color-danger);
}

main .insights-3 > div.income span {
  background: var(--color-primary);
}

main .insights-3 > div .middle {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

main .insights-3 h3 {
  margin: 1rem 0 0.6rem;
  font-size: 6rem;
}

main .insights-3 .progress {
  position: relative;
  width: 90px;
  height: 190px;
  border-radius: 49%;
  left: -30px;
}

main .insights-3 svg {
  width: 7rem;
  height: 7rem;
}

main .insights-3 svg circle {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 14;
  stroke-linecap: round;
  transform: translate(5px, 5px);
  stroke-dasharray: 110;
  stroke-dashoffset: 92;
}

main .insights-3 .sales svg circle {
  stroke-dashoffset: -30;
  stroke-dasharray: 200;
}

main .insights-3 .expenses svg circle {
  stroke-dashoffset: 20;
  stroke-dasharray: 80;
}

main .insights-3 .incomen svg circle {
  stroke-dashoffset: 35;
  stroke-dasharray: 35;
}

main .insights-3 .progress .number {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* cotizador */

.rootform {
  width: 85rem;
}
.rootform__ {
  width: 95%;
}

/*====Lista de Datos ====*/
main .recent-order {
  background-color: #f4f4f4;
  padding: 1rem;
  flex-grow: 1;
}

main .recent-order h2 {
  margin-bottom: 0.8rem;
}

main .recent-order-info {
  background-color: #f4f4f4;
  padding: 1rem;
  flex-grow: 1;
}
main .recent-order-cotizador {
  width: 80rem;
  background-color: #f4f4f4;
  padding: 1rem;
  flex-grow: 1;
}

main .recent-order-info h2 {
  margin-bottom: 0.8rem;
}

main a {
  text-align: center;
  display: block;
  margin: 1rem auto;
  color: var(--color-primary);
}

/*== Barra Right==*/
.right {
  background-color: #e9e9e9;
  color: black;
  padding: 1rem;
  width: 30rem;
  height: 100%;
  position: fixed;
  right: 0;
  top: 0;
  overflow-y: auto;
}

.right-form {
  padding-top: 1.2rem;
  background-color: #e9e9e9;
  color: black;
  padding: 1rem;
  width: 40rem;
  height: 100%;
  position: fixed;
  right: 0;
  top: 0;
  overflow-y: auto;
}

.right-form-level {
  padding-top: 1.2rem;
  background-color: #e9e9e9;
  color: black;
  padding: 1rem;
  width: 28rem;
  height: 100%;
  position: fixed;
  right: 0;
  top: 0;
  overflow-y: auto;
}
.right-form::-webkit-scrollbar {
  display: none;
}

.right .top {
  padding-left: 10px;
}

.right .top button {
  display: none;
}

.right .theme-toggler {
  background: var(--color-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1.6rem;
  width: 4.2rem;
  cursor: pointer;
  border-radius: var(--border-radius-1);
}

.right .theme-toggler span {
  font-size: 1.2rem;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right .theme-toggler span.active {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--border-radius-1);
}

.right .top .profile {
  display: flex;
  gap: 2rem;
  text-align: right;
}

/*== Actividades recientes ==*/
.right .recent-updates {
  margin: -10px;
}

.right .recent-updates h2 {
  margin-bottom: 0.8rem;
}

.right .recent-updates .updates {
  background: var(--color-white);
  padding: var(--card-padding);
  border-radius: var(--card-border-radius);
  box-shadow: var(--box-shadow);
  transition: all 300ms ease;
}

.right .recent-updates .updates:hover {
  box-shadow: none;
}

.right .recent-updates .updates .update {
  display: grid;
  grid-template-columns: 2.6rem auto;
  gap: 1rem;
  margin-bottom: 1rem;
}

/*== Actividades recientes ==*/
.right .sales-analytics {
  margin-top: 2rem;
}

.right .sales-analytics h3 {
  margin-bottom: 0.8rem;
}

.right .sales-analytics .item {
  background: var(--color-white);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
  padding: 1.4rem var(--card-padding);
  border-radius: var(--border-radius-3);
  box-shadow: var(--box-shadow);
  transition: all 300ms ease;
}

.right .sales-analytics .item:hover {
  box-shadow: none;
}

.right .sales-analytics .item .right {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin: 0;
  width: 100%;
}

.right .sales-analytics .item .icon {
  padding: 0.6rem;
  color: var(--color-white);
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
}

.right .sales-analytics .item.offline .icon {
  background: var(--color-danger);
}

.right .sales-analytics .item.customers .icon {
  background: var(--color-primary);
}

.right .sales-analytics .add-product {
  background-color: transparent;
  border: 2px dashed var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.right .sales-analytics .add-product div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.right .sales-analytics .add-product div h3 {
  font-weight: 500;
  margin-top: 0.6rem;
}

.td_accion {
  border: none;
}


.submit {
  border: none;
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#btnAprobar:hover {
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

#btnRechazar:hover {
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

#errorInfo {
  color: #e74c3c;
  font-weight: 600;
  display: block;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1rem;
}

/* Estilos para los modales SweetAlert2 */
.swal2-popup {
  border-radius: 15px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.swal2-title {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
}

.select, .input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  outline: none;
}

.select:focus, .input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .form-boton {
      flex-direction: column;
      gap: 15px;
  }
}

.img-row {
  display: flex;
  justify-content: flex-start; /* Alinea las imágenes a la izquierda */
  gap: 20px;                   /* Espacio entre imágenes */
  margin-bottom: 10px;         /* Espacio entre filas */
  width: 100%;
  padding-left: -150px;             /* Sin padding a la izquierda */
  margin-left: -150px;              /* Sin margen a la izquierda */
}

.img-cell img {
  border-radius: 15px;
  width: 250px; /* O el tamaño que prefieras */
  max-width: 100%;
  margin: 0;
  display: block;
}