/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 *= require_tree .
 *= require_self
 */

/* https://www.svgrepo.com/collection/coco-duotone-icons/ */
/* https://fonts.google.com/icons?icon.set=Material+Icons&icon.style=Rounded */

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

:root {
  --bg-color: #e7e8e2;
  --text-color: #ffffff;
  --primary: #00d1b2;
  --secondary: #363853;
  --accent: #35c2ff;
  --error: #e44545;
  --warning: #ffdd57;
  --success: #23d160;
  --info: #00d1b2;
  --light-bg: #f0f0f0;
  --dark-bg: #161616;
}

/* html {
  background: radial-gradient(125% 125% at 50% 90%, #fff 40%, #475569 100%);
  background-attachment: fixed;
  min-height: 100vh;
} */

body {
  background: #ffffff;
  background-image: radial-gradient(125% 125% at 50% 90%, #eeeeee 40%, #a4b0c1 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Override any system dark mode preferences */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }

  body {
    background-color: var(--bg-color);
  }
}

button {
  .show-when-enabled {
    display: initial;
  }
  .show-when-disabled {
    display: none;
  }
  &[disabled] {
    .show-when-enabled {
      display: none;
    }
    .show-when-disabled {
      display: initial;
    }
  }
}



.flexx-1 {
  flex: 1;
}

.flexx-2 {
  flex: 2;
}

.flexx-3 {
  flex: 3;
}

.flexx-4 {
  flex: 4;
}
.flexx-15 {
  flex: 15;
}

.button.is-link {
  background-color: #363853;
  color: white;
}

.button.is-info {
  background-color: #4f46e5;
  color: white;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #dbdbdb;
  border-radius: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #00d1b2;
  border-radius: 50%;
  cursor: pointer;
}

.material-icons-round {
  font-size: 1.3em;
  vertical-align: bottom;
  /* margin-right: 5px; */
}

.modal-content {
  overflow-wrap: break-word;
}

pre {
  white-space: pre-line;
}

.nav_movil {
  padding: 0 15px;
  position: fixed;
  left: 0;
  bottom: 20px;
  width: 100%;
  z-index: 99;
  .inner {
    padding: 10px;
    display: flex;
    background-color: white;
    border-radius: 6pt;
    box-shadow: 0 0rem 2rem rgba(30, 30, 30, 0.18);
    .icon {
      flex: 1;
      padding: 20px 0;
      img {
        height: 20px;

        &.logo {
          height: 35px;
        }
      }
      .counter {
        background-color: #e44545;
        color: white;
        border-radius: 50%;
        padding: 2px 5px;
        font-size: 0.8rem;
        font-weight: 700;
        position: relative;
        top: -7px;
        left: -10px;
      }

      .counter2 {
        background-color: #e44545;
        color: white;
        border-radius: 50%;
        padding: 0px 5px;
        font-size: 0.8rem;
        font-weight: 700;
        position: relative;
        top: -7px;
        left: -10px;
      }
    }
  }
}

.dropdown {
  margin-right: 0.5rem;
}
.select {
  width: 100%;
  select {
    width: 100%;
  }
}

.modal-content {
  overflow-wrap: break-word;
}
pre {
  white-space: pre-line;
}
.bold {
  font-weight: bold !important;
}

.admin {
  padding-top: 40px;

  /* on mobile none */
  @media (max-width: 1023px) {
    padding-top: 0;
  }
}

.ss-main {
  padding: 8px !important;
  border-radius: 6px !important;
}

.ss2 {
  padding: 13px !important;
}

.select-is-danger {
  .ss-main {
    border: 1px solid #e44545 !important;

  }
}


.tooltip {
  position: absolute;
  background-color: #363853;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  
  &::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  &.down {
    top: 100%;
    left: 50%;
    transform: translate(-50%, 10px);
    
    &::after {
      bottom: 100%;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-bottom: 5px solid #363853;
    }
  }
  
  &.up {
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -10px);
    
    &::after {
      top: 100%;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 5px solid #363853;
    }
  }
}

.notification_dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 13px;
  height: 13px;
  background-color: #e44545;
  border-radius: 50%;
  border: 2px solid white; /* Optional: adds a white border around the dot */
}

.notification_dot2 {
  position: relative;
  top: -8px;
  right: 7px;
  width: 13px;
  height: 13px;
  background-color: #e44545;
  border-radius: 50%;
  border: 2px solid white; /* Optional: adds a white border around the dot */
}

.icon {
  position: relative;
  vertical-align: middle;
}

.icon:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.linkk {
  position: relative;
  padding: 1rem;
  background-color: white;
  color: #363853;
  border-radius: 4px;
  img {
    width: 2rem;
    vertical-align: middle;
    margin-right: 5px;
  }
  .dot {
    display: inline-flex;
    /* position: absolute;
    top: 10px; */
    /* right: 10px; */
    width: 36px; /*  width to accommodate content */
    height: 36px;
    background-color: #e44545;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem; /* Adjust font size as needed */
    font-weight: bold;
    /* padding: 2px; */
  }
}

.field_input_header {
  img {
    height: 15px;
    opacity: 0.5;
  }
}

.mtrigger {
  cursor: pointer;
}

.modal-content.custom {
  width: 90vw;
}

.carrito {
	overflow-y: auto;
	max-height: 300px;
}

@media print {
  .no_print, footer, nav.navbar, .nav_movil {
		display: none !important;
	}

  .print_zone {
    width: 100% !important;
    padding: 20pt;
  }

  input {
    background-color: #f5f5f5 !important;
    border-color: #f5f5f5;
    box-shadow: none;
    color: #7a7a7a;
  }

  .columns {
    margin: 0 !important;
  }

  .label, .field {
    margin: 0 !important;
  }


  @page {
		margin: 100pt;
	}
}

.item-out-of-stock {
  background-color: #ffd6df;
}

.notification {
  word-break: break-all;
}

/* en mobil .container tiene padding a los lados */
@media (max-width: 1023px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}