/*
 Theme Name:   Understrap Child
 Theme URI:    https://understrap.com
 Description:  Understrap Child Theme
 Author:       the Understrap Contributors
 Author URI:   https://github.com/understrap/understrap-child/graphs/contributors
 Template:     understrap
 Version:      1.2.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  understrap-child
 Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
 GitHub Theme URI: understrap/understrap-child
*/

:root {
  --bs-link-color: #51A9EE !important;
  --bs-link-hover-color: #147BCD !important;
}
.list-group {
    --bs-list-group-active-bg: var(--bs-tertiary-color) !important;
    --bs-list-group-active-border-color: var(--bs-tertiary-color) !important;
  }

  body {
    font-size: .85rem !important;
    font-family: Arial, Helvetica, sans-serif !important;
  }

  .btn-group-sm > .btn, .btn-sm, .woocommerce-info .btn-group-sm > a.button, .woocommerce-notices-wrapper .woocommerce-message .btn-group-sm > a.button, .wpcf7 .btn-group-sm > input[type="submit"] {
    --bs-btn-font-size: 0.75rem !important;
  }

  .pagination {
    --bs-pagination-font-size: .75rem !important;
    --bs-pagination-color: var(--bs-dark) !important;
    --bs-pagination-hover-color: var(--bs-dark) !important;
    --bs-pagination-focus-color: var(--bs-dark) !important;
    --bs-pagination-active-bg: var(--bs-dark) !important;
    --bs-pagination-active-border-color: var(--bs-dark) !important;
  }

  /* Para Chrome, Safari, Edge y Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Para Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.mini {
  font-size: .65em;
}
.titulo-seccion {
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 5px;
  border: 2px solid black;
  text-align: center;
  width: fit-content;
  padding: .25em 1em;
  font-size: inherit;
  margin: 0 auto;
}
.document.a4 {
  background-image: 
      url(/wp-content/themes/understrap-child-main/assets/img/membrete_header.svg),
      url(/wp-content/themes/understrap-child-main/assets/img/membrete_footer.jpg);
  background-repeat: no-repeat, no-repeat;
  background-position: 97% 1%, bottom;
  background-size: 75px, contain;
}
/* .project-status-steps {
  display: flex;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  text-align: center;
  line-height: 1em;
  gap: 1em;
  justify-content: center;
  align-items: start;
} */
.project-status-steps {
  display: grid;
  grid-template-columns: repeat(8,1fr);
  margin-top: 5em;
  margin-bottom: 5em;
  padding-left: 0;
  list-style: none;
  text-align: center;
  line-height: 1em;
  gap: 1em;
  justify-content: center;
  align-items: start;
}
.status-step:last-child::after {
  display: none;
}
.project-status-steps .has-parent {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  margin-top: 1em;
}

.status-step {
  margin-bottom: 10px;
}

/* Pasos completados */
.status-step.completed-step > span:first-child {
  color: green;
}

/* Paso actual */
.status-step.current-step > span:first-child {
  color: orange;
  font-weight: bold;
}

/* Categoría actual */
.status-step.current-category > span:first-child {
  color: orange;
  font-weight: bold;
}

/* Pasos pendientes */
.status-step.pending-step > span:first-child {
  opacity: 0.5;
}

.project-status-steps li {
  font-weight: bold;
}

.project-status-steps .has-parent li {
  font-weight: normal;
}
/* .status-step.pending-step.estado-proyecto-creado > span:first-child {
opacity: 1;
color: green;
} */
.status-step,
.current__step {
  position: relative;
  height: 80px;
}

.current__step.status-step.pending-step>span:first-child {
  color: orange;
  opacity: 1;
}
.current-category.status-step::before {
  color: orange;
  opacity: 1;
  content: '\F26A';
}
.status-step::before {
  position: absolute;
  content: '\F26B';
  font-family: 'bootstrap-icons';
  top: -15px;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5em;
  opacity: .5;
}
.status-step::after {
  position: absolute;
  content: '';
  top: -15px;
  left: 58%;
  border-top: 2px solid black;
  width: 96%;
  z-index: -1;
  opacity: .35;
}
.completed-step.status-step::after {
  border-top: 2px solid green;
}
.completed-step.status-step::before {
  content: '\F26A';
  color: green;
  opacity: 1;
}
.has-parent .status-step::after,
.has-parent .status-step::before {
  content: none;
}
.has-parent .status-step {
  height: auto;
}
.current__step::before {
  position: absolute;
  content: '\F26A';
  font-family: 'bootstrap-icons';
  color: orange;
  top: -15px;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5em;
  opacity: 1;
}
.document {
  position: relative;
}
.logged-in .document.block {
  pointer-events: none;
  user-select: none;
  opacity: .5;
}
.logged-in .document.block .acf-field[data-name="all_servicios"] .acfe-repeater-stylised-button,
.logged-in .document.block .acf-form-submit {
  display: none;
}

.watermark {
  position: sticky;
  font-size: 100pt;
  font-weight: bolder;
  transform: rotate(-20deg);
  color: red;
  opacity: .1;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  user-select: none;
  top: 50%;
  left: 0;
  line-height: 0;
  z-index: 0;
}

.a4 {
  width: 210mm;
  height: auto;
  min-height: 297mm;
  background: #fff;
  border: 1px solid lightgray;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 10em 2.5em;
  margin: 0 auto;
}
.document.a4 .row {
  position: relative;
  z-index: 3;
}
.document.a4.sheets {
  box-shadow:
      #ddd 4px 4px 12px,
      #fff 12px 12px,
      #ccc 12px 12px 0px 1px,
      #ddd 16px 16px 12px;
}
.min-a4 {
  min-height: 297mm;
}
.status-summary ul {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1em;
}
.status-summary ul li {
  border: 1px solid lightgray;
  padding: 1em;
  border-radius: var(--bs-border-radius);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--bs-box-shadow-sm);
}

.status-summary ul li .status_num {
  font-size: 2em;
  font-weight: bold;
}
/* .status-summary ul li .status_label {

} */

/* .button.add-post,
.acf-button.acf-repeater-add-row.button.button-primary {
  --bs-btn-padding-x: 0.75rem;
  --bs-btn-padding-y: 0.375rem;
  --bs-btn-font-family: ;
  --bs-btn-font-size: 1rem;
  --bs-btn-font-weight: 400;
  --bs-btn-line-height: 1.5;
  --bs-btn-color: #5533ff;
  --bs-btn-bg: transparent;
  --bs-btn-border-width: 1px;
  --bs-btn-border-color: transparent;
  --bs-btn-border-radius: 0.375rem;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);
  --bs-btn-disabled-opacity: 0.65;
  --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
  display: inline-block;
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
  font-family: var(--bs-btn-font-family);
  font-size: var(--bs-btn-font-size);
  font-weight: var(--bs-btn-font-weight);
  line-height: var(--bs-btn-line-height);
  color: var(--bs-btn-color);
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
  border-radius: var(--bs-btn-border-radius);
  background-color: var(--bs-btn-bg);
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  --bs-btn-color: #5533ff;
  --bs-btn-border-color: #5533ff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #5533ff;
  --bs-btn-hover-border-color: #5533ff;
  --bs-btn-focus-shadow-rgb: 33,37,41;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #5533ff;
  --bs-btn-active-border-color: #5533ff;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #5533ff;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #5533ff;
  --bs-gradient: none;
  --bs-btn-padding-y: 0.25rem;
  --bs-btn-padding-x: 0.5rem;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-border-radius: 0.25rem;
  --bs-btn-font-size: 0.75rem !important;
} */

.acf-button.acf-repeater-add-row.button.button-primary i {
  margin-right: .25em;
  font-size: .8rem;
  color: var(--bs-primary);
}

.button.add-post {
  line-height: 1;
}
/* #entregables .acf-repeater > .acf-actions .acf-button,
#editar-orden .acf-repeater > .acf-actions .acf-button {
  float: none;
  position: absolute;
  right: 0;
  top: -35px;
} */
.desktop .acf-fields > .acf-field {
  border: none;
}
/* Remueve el label de los repeaters */
/* .acf-field-repeater .acf-label:first-child {
  display: none;
} */


.desktop .badge {
  width: min-content;
  white-space: break-spaces;
}


.desktop .list-group-item.active {
  background-color: #147BCD;
  border-color: #147BCD;
}

#editar-proyecto .acf-field[data-name="proveedores"] {
  display: none;
}

.single-proyecto #crear-orden .acf-field[data-name="all_servicios"],
.single-proyecto #crear-orden .acf-field[data-name="entregables"] {
  display: none;
}

.lista-proveedores .card {
  width: 80px;
  line-height: 1;
  display: flex;
  justify-content: start;
  align-items: center;
  text-align: center;
}
.lista-proveedores .card i {
  margin-bottom: 1em;
}
.grilla-2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
}
#disclaimer {
  line-height: 1;
  text-align: justify;
  font-size: .65rem;
}

.signature-container {
  border: 1px solid #ccc;
  margin: 20px 0;
  padding: 10px;
}

.signature-pad {
  border: 1px solid #000;
  width: 100%;
  max-width: 400px;
  height: 200px;
  background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: white;
}

.signature-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}




.desktop .acf-button-group label.selected {
  border-color: none;
  background-image: linear-gradient(#42A1EC, #0070C9);
}
.desktop .acf-button-group label {
  font-size: .75rem;
}

/* CSS */
.btn.btn-outline-success.btn-sm,
.btn.btn-outline-danger.btn-sm,
#go-button,
.button.add-post,
.acf-button.acf-repeater-add-row.button.button-primary,
.btn.btn-sm.btn-outline-primary {
  background-image: linear-gradient(#42A1EC, #0070C9);
  border: 1px solid #0077CC;
  border-radius: 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  direction: ltr;
  display: inherit;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: inherit;
  overflow: visible;
  text-align: center;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  text-decoration: none;
  width: fit-content;
  /* white-space: nowrap; */
}
.desktop #go-button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.btn.btn-sm.btn-outline-primary {
padding: 8px 10px;
line-height: 1;
}
.button.add-post {
  line-height: 1;
  padding: 4px 1px;
}
.desktop .acf-button.acf-repeater-add-row.button.button-primary {
  line-height: 1.4rem;
  padding: 5px;
  font-size: 1.4rem;
  border-radius: 50%;
  aspect-ratio: 1/1;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn.btn-sm.btn-outline-primary:disabled {
  cursor: default;
  opacity: .3;
}

.btn.btn-sm.btn-outline-primary:hover {
  background-image: linear-gradient(#51A9EE, #147BCD);
  border-color: #1482D0;
  text-decoration: none;
}

.btn.btn-sm.btn-outline-primary:active {
  background-image: linear-gradient(#3D94D9, #0067B9);
  border-color: #006DBC;
  outline: none;
}

.btn.btn-sm.btn-outline-primary:focus {
  box-shadow: rgba(131, 192, 253, 0.5) 0 0 0 3px;
  outline: none;
}


  ul.acf-radio-list li input[type="radio"],
  ul.acf-checkbox-list li input[type="checkbox"] {
    appearance: none;
    background-color: #dfe1e4;
    border-radius: 72px;
    border-style: none;
    flex-shrink: 0;
    height: 20px;
    margin: 0;
    position: relative;
    width: 30px;
  }
  ul.acf-radio-list li input[type="radio"]::before,
  ul.acf-checkbox-list li input[type="checkbox"]::before {
    bottom: -6px;
    content: "";
    left: -6px;
    position: absolute;
    right: -6px;
    top: -6px;
  }
  ul.acf-radio-list li input[type="radio"],
  ul.acf-checkbox-list li input[type="checkbox"],
  ul.acf-radio-list li input[type="radio"]::after,
  ul.acf-checkbox-list li input[type="checkbox"]::after {
    transition: all 100ms ease-out;
  }
  ul.acf-radio-list li input[type="radio"]::after,
  ul.acf-checkbox-list li input[type="checkbox"]::after {
    background-color: #fff;
    border-radius: 50%;
    content: "";
    height: 14px;
    left: 3px;
    position: absolute;
    top: 3px;
    width: 14px;
  }
  ul.acf-radio-list li input[type="radio"],
  ul.acf-checkbox-list li input[type="checkbox"] {
    cursor: default;
  }
  ul.acf-radio-list li input[type="radio"]:hover,
  ul.acf-checkbox-list li input[type="checkbox"]:hover {
    background-color: #c9cbcd;
    transition-duration: 0s;
  }
  ul.acf-radio-list li input[type="radio"]:checked,
  ul.acf-checkbox-list li input[type="checkbox"]:checked {
    background-color: #0070C9;
  }
  ul.acf-radio-list li input[type="radio"]:checked::after,
  ul.acf-checkbox-list li input[type="checkbox"]:checked::after {
    background-color: #fff;
    left: 13px;
  }

  .checkbox-wrapper-2 :focus:not(.focus-visible) {
    outline: 0;
  }
  ul.acf-radio-list li input[type="radio"]:checked:hover,
  ul.acf-checkbox-list li input[type="checkbox"]:checked:hover {
    background-color: #42A1EC;
  }

  .desktop ul.acf-checkbox-list li {
    margin-bottom: .35em;
  }

  .desktop .form-check-input:checked {
    background-color: #0070C9;
    border-color: #0070C9;
  }
  .desktop .btn.btn-outline-success.btn-sm {
    background-image: linear-gradient(#34c759, #28a745);
border: 1px solid #28a745;
color: white;
box-shadow: rgba(40, 167, 69, 0.2) 0 -25px 18px -14px inset,
            rgba(40, 167, 69, 0.15) 0 1px 2px,
            rgba(40, 167, 69, 0.15) 0 2px 4px,
            rgba(40, 167, 69, 0.15) 0 4px 8px;
}

.desktop .btn.btn-sm.btn-outline-success:hover {
  background-image: linear-gradient(#40d968, #2fb344);
  border-color: #28a745;
  text-decoration: none;
}

.desktop .btn.btn-sm.btn-outline-success:active {
  background-image: linear-gradient(#2fb344, #218838);
  border-color: #1e7e34;
  outline: none;
}

.desktop .btn.btn-sm.btn-outline-success:focus {
  box-shadow: rgba(72, 180, 97, 0.5) 0 0 0 3px;
  outline: none;
}
.desktop .btn.btn-outline-danger.btn-sm {
  background-image: linear-gradient(#dc3545, #c82333);
  border: 1px solid #c82333;
  color: white;
  box-shadow: rgba(220, 53, 69, 0.2) 0 -25px 18px -14px inset,
              rgba(220, 53, 69, 0.15) 0 1px 2px,
              rgba(220, 53, 69, 0.15) 0 2px 4px,
              rgba(220, 53, 69, 0.15) 0 4px 8px;
}

.desktop .btn.btn-outline-danger.btn-sm:hover {
  background-image: linear-gradient(#e04b59, #dc3545);
  border-color: #dc3545;
  text-decoration: none;
}

.desktop .btn.btn-outline-danger.btn-sm:active {
  background-image: linear-gradient(#c82333, #bd2130);
  border-color: #bd2130;
  outline: none;
}

.desktop .btn.btn-outline-danger.btn-sm:focus {
  box-shadow: rgba(225, 83, 97, 0.5) 0 0 0 3px;
  outline: none;
}
.desktop .card.bg-light,
.desktop .card {
  border: none;
  background: white;
  box-shadow: inset 0 -3em 3em rgba(0,0,0,0.1), 0 0 0 0px rgb(190, 190, 190), 0.3em 0.3em 1em rgba(0,0,0,0.2);
}

.desktop .active > .page-link, .page-link.active {
  background-image: linear-gradient(#42A1EC, #0070C9);
  border: 1px solid #0077CC;
}