:root {
  --ink: #212529;
  --navy: #092f6d;
  --page: #edf8ff;
  --green: #05c08a;
  --amber: #ffad01;
  --red: #ff5252;
  --muted: #66788a;
  --line: #e2e8f0;
  --shadow: 0 7.5px 35px rgba(90, 97, 105, 0.1),
    0 15px 22.5px rgba(90, 97, 105, 0.1),
    0 4px 8.5px rgba(90, 97, 105, 0.12);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--ink);
  font-family: Poppins, -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
body {
  padding: 16px 0 85px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 3rem auto 3rem;
  padding: 0 15px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-mov { margin-top: 1.5rem; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 1rem;
  background: #fff;
}
.card-header-center {
  justify-content: center;
  border-bottom: 1px solid #f0f2f4;
}
.card-header-center h5 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.id-doc {
  margin: 12px 0 0;
  color: #1b1b1b;
  font-size: 14px;
  font-weight: 500;
  line-height: 30px;
  flex: 1 1 45%;
}
.id-doc b { color: var(--navy); }

.btn-volver {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
  white-space: nowrap;
}

.card-body { padding: 1rem; }

.pdf-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--light, #f1f3f5);
  padding-bottom: 16px;
  margin-bottom: 10px;
}
.pdf-loading {
  color: #6c757d;
  margin: 8px 0 16px;
}
#pdf-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.actions { padding: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: .375rem;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  padding: .75rem 1.5rem;
  cursor: pointer;
  text-align: center;
}
.btn img { width: 20px; height: 20px; }
.m-2 { margin: .5rem !important; }
.w-100 { width: 100% !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mt-1 { margin-top: .25rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: .25rem !important; }
.pt-3, .py-3 { padding-top: 1rem !important; }
.py-3 { padding-bottom: 1rem !important; }
.p-0 { padding: 0 !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.p-1 { padding: .25rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.col-12 { width: 100%; }
.col-sm-9 { width: 75%; }
.float-left { float: left; }
.row { display: flex; flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center !important; }
.text-white { color: #fff !important; }
.text-primary { color: #05c08a !important; }
.text-secondary { color: #092f6d !important; }
.text-warning { color: #ffad01 !important; }
.text-danger { color: #ff5252 !important; }
.font-weight-bold { font-weight: 700 !important; }
.font-weight-medium { font-weight: 500; }
.subtitle-2 { font-size: .8125rem; letter-spacing: .1px; }

.btn-primary {
  background-color: #05c08a;
  border-color: #05c08a;
  color: #fff;
}
.btn-primary:hover { background-color: #04a778; border-color: #04a778; color: #fff; }
.btn-warning {
  background-color: #ffad01;
  border-color: #ffad01;
  color: #212529;
}
.btn-warning:hover { background-color: #e79c00; border-color: #e79c00; }
.btn-danger {
  background-color: #ff5252;
  border-color: #ff5252;
  color: #fff;
}
.btn-danger:hover { background-color: #ff3939; border-color: #ff3939; color: #fff; }
.btn-gray {
  background-color: #c7cbca;
  border-color: #c7cbca;
  color: #212529;
}
.btn-gray:hover { background-color: #babfbd; border-color: #babfbd; color: #212529; }

#historial-list { min-height: 40px; color: var(--muted); }
#historial-list .hist-item { margin: 0; }
.card-header.hover { cursor: pointer; }
.card-header.created { border: 1px solid #718096; border-radius: 8px; color: #718096; }
.card-header.dispensed,
.card-header.medium-dispensed { border: 1px solid #05c08a; border-radius: 8px; color: #05c08a; }
.card-header.detained { border: 1px solid #ffad01; border-radius: 8px; color: #ffad01; }
.card-header.rejected,
.card-header.blocked { border: 1px solid #e53e3e; border-radius: 8px; color: #e53e3e; }
.card-header.released { border: 1px solid #3182ce; border-radius: 8px; color: #3182ce; }
.card-header span { margin-left: 30px; }
.card-header i { color: #333; float: right; font-size: 12px; }
.hist-body { padding: .25rem 1rem; color: #212529; font-size: 14px; }
.hist-body p { margin: .4rem 0; }
.hist-body.collapsed { display: none; }

.site-foot {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  padding: 15px 16px;
  box-shadow: 0 -2px 10px rgba(90, 97, 105, 0.06);
}
.foot-left { display: flex; align-items: center; gap: 10px; }
.flag { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.foot-country { color: #5c6670; }
.foot-copy { margin: 0; color: #7d868c; font-size: 12px; text-align: center; }
.site-foot .logo { height: 22px; }

body.modal-open { overflow: hidden; }
body.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-root[hidden] { display: none !important; }
.modal-root { position: relative; z-index: 1050; }
.modal-backdrop {
  background-color: #fff;
  bottom: 0; left: 0; right: 0; top: 0;
  position: fixed;
  z-index: 1040;
}
.modal-backdrop.show { opacity: .6; }
.modal {
  bottom: 0; left: 0; right: 0; top: 0;
  outline: 0;
  position: fixed;
  z-index: 1050;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-dialog {
  margin: .5rem;
  pointer-events: none;
  position: relative;
  width: auto;
}
.modal-dialog-centered {
  align-items: center;
  display: flex;
  min-height: calc(100% - 1rem);
}
.modal-content {
  background-clip: padding-box;
  background-color: #fff;
  border-radius: .5rem;
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  display: flex;
  flex-direction: column;
  outline: 0;
  pointer-events: auto;
  position: relative;
  width: 100%;
}
.modal-content > .card {
  box-shadow: none;
  border-radius: .5rem;
  overflow: visible;
}
.modal-header {
  align-items: flex-start;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem .25rem;
  position: relative;
}
.modal-header .close {
  margin: -1rem -1rem -1rem auto;
  padding: .7rem 1rem;
  position: absolute;
  right: 0;
  top: 0;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: .5;
  cursor: pointer;
}
.modal-header .close:hover { opacity: .75; }
.modal-header h6 {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
}
.modal-content > .card .card-body.pt-0 { padding: 0 1.5rem 1rem; }

.title-modal-coupon {
  color: #1b1b1b;
  font-family: Poppins, sans-serif;
  font-size: 24px;
  font-weight: 600;
  height: 71px;
  letter-spacing: 0;
  line-height: 35px;
  text-align: center;
  width: min(416px, 100%);
  margin: 0 auto;
}
.button-active,
.button-active-false {
  background-color: #e2e8f0;
  border-radius: 4px;
  color: #2d3748;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.09px;
  line-height: 21px;
  text-align: center;
}
.button-active-false { padding-left: 35px; padding-right: 35px; }
.button-active:hover,
.button-active-false:hover { background-color: #07357b; color: #fff; }

.dispensation-text {
  color: #2d3748;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.38;
  margin: 8px 7px 8px 6px;
  padding: 5px 0 1px;
  text-align: center;
}
.imed-input {
  background-color: #fff;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 4px;
  height: 38px !important;
  letter-spacing: .04px;
  margin-bottom: 10px;
  padding: 0 0 0 10px;
  width: 100%;
  color: #66788a;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 300;
}
.imed-textarea {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin: 8px 7px 12px 6px;
  padding: 8px 7px 9px 13px;
  width: 100%;
  min-height: 88px;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  resize: vertical;
}
.imed-input-area {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 6px 8px 66px 12px;
  width: 100%;
  font-family: Poppins, sans-serif;
  font-size: 13px;
}
.form-error {
  color: red;
  font-size: 11px;
  margin-bottom: 10px;
  margin-top: -10px;
  min-height: 14px;
}
.imed-info {
  color: #66788a;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 300;
  margin: 12px 3px 4px 6px;
  overflow: hidden;
}
.radios {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 8px 0 16px;
}
.custom-control { position: relative; display: inline-flex; align-items: center; padding-left: 1.5rem; }
.custom-control-input { position: absolute; left: 0; z-index: 1; width: 1rem; height: 1rem; }
.custom-control-label { margin-left: .35rem; cursor: pointer; }

.colorConfirm { color: #05c08a !important; }
.colorRefuse { color: #ff5252 !important; }
.GetDocument_dispenseButton__-HCKM {
  background-color: #33cca0;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  letter-spacing: -.48px;
  line-height: 25px;
  min-height: 48px;
  padding: 10px;
  text-align: center;
  width: 269px;
}
.GetDocument_dispenseSuccessAlert__EvnqB {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.1px;
  line-height: 25px;
  text-align: center;
}
.GetDocument_dispenseSuccessAlert__EvnqB b {
  color: #212529;
  display: block;
  font-family: Poppins, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.12px;
  line-height: 24px;
  margin-bottom: 23px;
  text-align: center;
}

@media (min-width: 576px) {
  .modal-dialog { margin: 1.75rem auto; max-width: 500px; }
  .modal-dialog-centered { min-height: calc(100% - 3.5rem); }
}
@media (min-width: 992px) {
  .modal-lg { max-width: 800px; }
}

@media (min-width: 800px) {
  body { padding: 48px 0 90px; }
  .container { padding: 0 15px; }
  .card-header { padding: 8px 16px; }
  .id-doc { font-size: 20px; margin-left: 3rem; }
  .btn-volver { font-size: 16px; margin-right: 3rem; }
  .card-body { padding: 16px; }
  .site-foot {
    flex-flow: row nowrap;
    justify-content: space-between;
    height: 72px;
    padding: 0 32px;
  }
  .foot-copy { flex: 1; text-align: center; }
}

@media (max-width: 575.98px) {
  body { padding-bottom: 125px; }
  .page-dispensation .container {
    margin: 1rem auto 1.5rem;
    max-width: 100%;
    padding: 0 12px;
  }
  .page-dispensation > .container > .card { border-radius: 10px; }
  .pdf-wrap { padding-bottom: 8px; }
}

/* Login (imedfarmacia.mimed.com /) */
body.page-login {
  padding: 3rem 0 85px;
}
.login-container { max-width: 370px; }
.login-title {
  color: #092f6d;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .5rem;
  text-align: center;
}
.login-title span { color: #05c08a; }
.login-subtitle { line-height: 1.5; margin: 0 0 1rem; color: #212529; }
#form-login { width: 90%; }
.login-error {
  color: red;
  font-size: 11px;
  margin-bottom: 10px;
  margin-top: -10px;
  min-height: 0;
}
.login-input {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #66788a;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 300;
  height: 38px !important;
  letter-spacing: .04px;
  line-height: normal;
  margin-bottom: 10px;
  padding: 0 0 0 10px;
  width: 100%;
}
.login-input:focus {
  outline: 0;
  border-color: #05c08a;
}
.login-submit {
  background-color: #05c08a0d;
  border: 0;
  border-radius: 6.5px;
  color: #05c08a;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  margin-top: 15px;
  min-height: 48px;
  width: 100%;
}
.login-submit:hover {
  background-color: #05c08a;
  border-color: #05c08a;
  color: #fff;
}
.login-submit:disabled { opacity: .7; cursor: default; }

/* Home after Ingresar — matches imedfarmacia.mimed.com /home */
body.page-home { padding: 5.5rem 0 85px; }
.navbarMenu {
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 7px 0 #0003;
  display: flex;
  height: 4rem;
  left: 0;
  padding: .5rem 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1030;
}
.navbarMenu > .container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  max-width: 1140px;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}
.navbarMenu .navbar-brand { display: inline-block; margin: 0; }
.navbarMenu .navbar-brand img { height: 34px; width: auto; }
.navbarMenu .navbarPerfil { color: #333; }
.navbarMenu .dropdown-toggle,
.navbarMenu .dropdown-toggle.btn-primary {
  background: none;
  border: 0;
  box-shadow: none;
  color: #333;
  padding: 0;
}
.navbarMenu .dropdown-toggle:after { display: none; }
.navbarMenu .dropdown-toggle:hover,
.navbarMenu .dropdown-toggle:focus,
.navbarMenu .dropdown-toggle:active {
  background: none;
  box-shadow: none;
  color: #333;
}
.navbarMenu .fa-bars { font-size: 22px; color: #333; }
.navbarMenu .dropdown { position: relative; }
.navbarMenu .dropdown-menu {
  background: #fff;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 4px 6px 0 #00000029, 0 4px 3px 0 #00000024;
  min-height: 218px;
  padding: 12px 8px 16px;
  position: absolute;
  right: -12px;
  top: 46px;
  width: 320px;
  z-index: 1040;
}
.navbarMenu .dropdown-menu[hidden] { display: none; }
.navbarMenu .navbarPerfil__content { margin-top: 5px; }
.InfoLogin { width: 294px; margin: 0 auto; }
.InfoLogin .NameQF { color: #3fb2ff; width: 229px; }
.InfoLogin .CodePharma,
.InfoLogin .NameQF { font-size: 16px; font-weight: 700; letter-spacing: -.48px; }
.InfoLogin .CodePharma { color: #319795; }
.InfoLogin p { line-height: 1.5; }
.InfoLogin img { width: 36px; margin-right: 10px; }
.dropdown-divider { border-top: 1px solid #e9ecef; height: 0; margin: .5rem 0; overflow: hidden; }
.btnLogout {
  background-color: #092f6d;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 1px 4px 0 #23425f61;
  color: #fff !important;
  display: block;
  font-size: 13px;
  font-weight: 500;
  height: 47px;
  letter-spacing: -.39px;
  line-height: 47px;
  padding: 0;
  text-align: center;
  width: 100%;
}
.btnLogout:hover { background-color: #092f6d; color: #fff; }
.ml-auto { margin-left: auto !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }
.align-top { vertical-align: top; }
.align-items-center { align-items: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.home-content { max-width: 310px; }
.home-active { background-color: #dcfff5; height: 40px; }
.home-active p {
  color: #33cca0;
  font-size: 13px;
  font-weight: 600;
  height: 22px;
  letter-spacing: -.39px;
  margin-bottom: 0;
  padding-top: 10px;
  text-align: center;
}
.home-hour {
  color: #092f6d;
  display: block;
  font-size: 22px;
  font-weight: 600;
  height: 32px;
  letter-spacing: -.66px;
  margin: 19px 6px 43px 7px;
  text-align: center;
  width: 294px;
}
.home-info { width: 294px; }
.home-info .home-name-qf {
  color: #3fb2ff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.48px;
}
.home-info .home-code-pharma {
  color: #319795;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.48px;
}
.home-info p { line-height: 1.5; }
.home-info img { width: 36px; margin-right: 10px; }
.home-btn-scan {
  background-color: #33cca0;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 1px 4px 0 #23425f61;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.39px;
  text-shadow: 0 1px 4px #23425f61;
}
.home-btn-manual {
  background-color: #3182ce;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 1px 4px 0 #23425f61;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.39px;
  text-shadow: 0 1px 4px #23425f61;
}
.home-input {
  background-color: #fff;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #66788a;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 300;
  height: 38px !important;
  letter-spacing: .04px;
  margin-bottom: 10px;
  padding: 0 0 0 10px;
  width: 100%;
}
.home-error {
  color: red;
  font-size: 11px;
  margin-bottom: 10px;
  margin-top: -10px;
}
