/* =========================
   Hik-Store Cotizador UI
   ========================= */

:root{
  --hs-border: #d9dee5;
  --hs-muted: #6c757d;
}

html, body{ height: 100%; }
body{ color: #212529; }
body.hs-busy{
  cursor: wait;
}
body.hs-busy *{
  cursor: wait !important;
}

.hs-busy-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1rem;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(1.5px);
  z-index: 2000;
}

body.hs-busy .hs-busy-overlay{
  display: flex;
}

.hs-busy-panel{
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border: 1px solid #f3c2c7;
  border-radius: 999px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 34px rgba(16,24,40,.14);
  color: #991b1b;
  font-weight: 600;
}

.hs-busy-spinner{
  width: 18px;
  height: 18px;
  border: 2px solid #f3c2c7;
  border-top-color: #dc3545;
  border-radius: 50%;
  animation: hsBusySpin .75s linear infinite;
}

.hs-busy-message{
  white-space: nowrap;
}

@keyframes hsBusySpin{
  to{ transform: rotate(360deg); }
}

.card{ border: 1px solid var(--hs-border); box-shadow: none; }
.card-header{ padding: .85rem 1rem; }
.card-body{ padding: 1.1rem 1rem; }

.accordion-item{ border: 1px solid var(--hs-border); }
.accordion-button{ padding: .9rem 1rem; font-weight: 500; background: #fff; }
.accordion-button:focus{ box-shadow: none; }
.accordion-button:not(.collapsed){ background:#e9f2ff; color:#0d6efd; }

.form-label{ font-size:.9rem; color:#111827; margin-bottom:.35rem; }
.form-control{ border-color: var(--hs-border); padding:.65rem .85rem; }
.form-control:focus{ border-color:#86b7fe; box-shadow:none; }

.btn{ border-radius:.45rem; }
.btn-primary{ font-weight:500; }
.btn-outline-secondary{ border-color:#9ca3af; }
.btn-outline-secondary:hover{ border-color:#6b7280; }

.table thead th{ font-weight:700; color:#111827; border-bottom:1px solid var(--hs-border); }
.table-light{ --bs-table-bg:#f3f4f6; }
.table td,.table th{ border-color:#eef1f5; }

.hs-thumb{
  width:56px;height:56px;object-fit:contain;
  border:1px solid #eef1f5;border-radius:.5rem;background:#fff;
}

/* =========================
   Search results grid (2-3 columnas)
   ========================= */

#searchResults{
  display: grid;
  gap: .9rem;
  border-radius: .5rem;

  /* 2-3 columnas segun ancho disponible */
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

@media (max-width: 820px){
  #searchResults{ grid-template-columns: 1fr; }
}

/* card */
.hs-result-item{
  border:1px solid var(--hs-border);
  border-radius:.85rem;
  background:#fff;
  padding:.85rem;
  display:grid;
  grid-template-columns: 72px 1fr;
  gap:.85rem;
  align-items:start;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}

.hs-result-item:hover{
  border-color:#cfd6df;
  box-shadow:0 10px 24px rgba(16,24,40,.06);
  transform: translateY(-1px);
}

.hs-result-media{
  width:72px;height:72px;
  border-radius:.75rem;
  border:1px solid #eef1f5;
  background:#fff;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.hs-result-media img{ width:100%;height:100%;object-fit:contain; }

.hs-result-main{ min-width:0; }

.hs-result-title{
  font-weight:800;
  color:#111827;
  font-size: .98rem;
  line-height:1.2;
  margin:0;
}

.hs-result-subtitle{
  margin:.25rem 0 0;
  color:#4b5563;
  font-size:.9rem;
  line-height:1.25;

  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  /* estandar (quita warning / compat futura) */
  line-clamp: 2;
  box-orient: vertical;

  overflow:hidden;
}

.hs-result-meta{
  margin-top:.55rem;
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
}

.hs-chip{
  font-size:.78rem;
  color:#374151;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  padding:.18rem .5rem;
  border-radius:999px;
}

/* Chip informativo (ID producto) */
.hs-chip--info{
  color: #0b5ed7;
  background: #e7f1ff;
  border: 1px solid #b6d4fe;
}


.hs-chip--ok{ background:#ecfdf3;border-color:#abefc6;color:#067647; }
.hs-chip--warn{ background:#fffbeb;border-color:#fde68a;color:#92400e; }

/* footer actions inside card */
.hs-result-footer{
  grid-column: 1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: .75rem;
  margin-top: .5rem;
}

.hs-price{ text-align:right; line-height:1.1; }
.hs-price .label{ display:block;font-size:.78rem;color:#6b7280; }
.hs-price .value{ display:block;font-weight:900;font-size:1.05rem;color:#111827; }

.hs-btn-add{
  border-radius:.55rem;
  font-weight:700;
  padding:.5rem .9rem;
}
.hs-btn-add:disabled{ opacity:.65; cursor:not-allowed; }

/* empty/skeleton */
.hs-empty{
  grid-column: 1 / -1;
  border:1px dashed var(--hs-border);
  border-radius:.75rem;
  padding:1rem;
  color:var(--hs-muted);
  background:#fafbfc;
}

.hs-skeleton{
  border:1px solid var(--hs-border);
  border-radius:.85rem;
  padding:.85rem;
  background: linear-gradient(90deg, #f4f5f7 0%, #ffffff 50%, #f4f5f7 100%);
  background-size: 200% 100%;
  animation: hsShimmer 1.2s infinite;
  min-height: 128px;
}
@keyframes hsShimmer{
  0%{ background-position:200% 0; }
  100%{ background-position:-200% 0; }
}

/* pager */
.hs-pager{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.5rem;
  margin-top:.75rem;
}
.hs-pager .info{
  margin-right:auto;
  color:#6b7280;
  font-size:.9rem;
}

/* Cart tweaks */
.hs-cart-row-title{ font-weight:700;color:#111827;margin:0; }
.hs-cart-row-sub{ color:#4b5563;font-size:.9rem;margin:.15rem 0 0; }
.hs-qty-input{ max-width:90px;margin:0 auto;text-align:center;border-radius:.55rem; }
.hs-remove-btn{ border-radius:.55rem;padding:.35rem .55rem; }

/* Toast */
.hs-toast-wrap{
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: .6rem;
  z-index: 1080;
  width: min(360px, calc(100vw - 32px));
}

.hs-toast{
  border: 1px solid var(--hs-border);
  background: #fff;
  border-radius: .85rem;
  padding: .75rem .85rem;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.12);
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: .75rem;
  align-items: center;
  transform: translateY(8px);
  opacity: 0;
  animation: hsToastIn .18s ease forwards;
}

@keyframes hsToastIn{ to { transform: translateY(0); opacity: 1; } }

.hs-toast .icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.hs-toast--ok .icon{ background:#ecfdf3;color:#067647;border:1px solid #abefc6; }
.hs-toast--warn .icon{ background:#fffbeb;color:#92400e;border:1px solid #fde68a; }
.hs-toast--err .icon{ background:#fef2f2;color:#b42318;border:1px solid #fecaca; }

.hs-toast .title{ font-weight:800;margin:0;line-height:1.1;color:#111827; }
.hs-toast .msg{ margin:.15rem 0 0;color:#4b5563;font-size:.9rem;line-height:1.2; }

.hs-toast .close{
  border:none;background:transparent;font-size:18px;line-height:1;
  padding:6px 8px;border-radius:10px;color:#6b7280;
}
.hs-toast .close:hover{ background:#f3f4f6; }

/* Cantidad en tarjetas del buscador */
.hs-add-group{
  display:flex;
  align-items:center;
  gap:.6rem;
}

.hs-qty-mini{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.15rem;
  min-width: 68px;
}

.hs-qty-mini-label{
  font-size:.72rem;
  color:#6b7280;
  line-height:1;
}

.hs-qty-mini-input{
  width: 68px;
  padding: .25rem .4rem;
  border-radius: .55rem;
}


/* Quitar flechas (spinners) en costo de conceptos extra */
#svcCost::-webkit-outer-spin-button,
#svcCost::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
#svcCost{
  -moz-appearance: textfield;
}


/* ---- Hik-Store theme tweaks (V2.3) ---- */
:root{ --hik-red:#d32f2f; --hik-red-dark:#b71c1c; }
.accordion-button:not(.collapsed){ background-color: rgba(211,47,47,.10); color: var(--hik-red); }
.accordion-button:not(.collapsed)::after{ filter: hue-rotate(320deg) saturate(4); }
.accordion-button:focus{ box-shadow: 0 0 0 .2rem rgba(211,47,47,.25); }
.accordion#extraAccordion .accordion-button{
  background: var(--hik-red) !important;
  color: #fff !important;
  border-color: var(--hik-red);
}
.accordion#extraAccordion .accordion-button::after{
  filter: brightness(0) invert(1);
}
.accordion#extraAccordion .accordion-button:not(.collapsed){
  background: #fff !important;
  color: var(--hik-red) !important;
  border-color: var(--hik-red);
}
.accordion#extraAccordion .accordion-button:not(.collapsed)::after{
  filter: none;
}
.btn-hik-red{ background: var(--hik-red); border-color: var(--hik-red); color:#fff; }
.btn-hik-red:hover{ background: var(--hik-red-dark); border-color: var(--hik-red-dark); color:#fff; }

/* V2.11 tools modal */
#toolsMenuBtn{ line-height:1; }

/* V2.20 modal header */
.modal-header.bg-danger .btn-close{filter: invert(1) grayscale(100%);}

/* V3.1 red theme */
/* Make primary buttons red across the app (without affecting Bootstrap globally) */
.btn-primary{
  background-color: var(--bs-danger) !important;
  border-color: var(--bs-danger) !important;
}
.btn-primary:hover, .btn-primary:focus{
  background-color: #b02a37 !important; /* bootstrap danger dark-ish */
  border-color: #b02a37 !important;
}
/* Also update outline-primary to outline-danger look */
.btn-outline-primary{
  color: var(--bs-danger) !important;
  border-color: var(--bs-danger) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus{
  background-color: var(--bs-danger) !important;
  border-color: var(--bs-danger) !important;
  color: #fff !important;
}

/* V3.2 print modal */
#printModal .modal-body{background:#fff;}

/* V3.3 */

/* V3.10 descuento */
#descuentoInput::-webkit-outer-spin-button,
#descuentoInput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#descuentoInput { -moz-appearance: textfield; }



/* V3.80: topbar con icono y estado visual por rol */
.hs-topbar{
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}
.hs-topbar .hs-topbar-inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
.hs-topbar .hs-topbar-main{
  position: relative;
  min-height: 56px;
}
.hs-topbar .hs-topbar-tools{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  margin-left: auto;
}
.hs-topbar .hs-topbar-controls{
  display: flex;
  align-items: center;
  gap: .45rem;
}
.hs-topbar .hs-nav-row{
  display: flex;
  justify-content: center;
  align-items: center;
}
.hs-topbar .hs-btn-exit{
  background: #fff;
}
.hs-topbar .hs-mobile-menu-btn{
  background: #fff;
}
.hs-topbar .hs-nav-cluster{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
  padding: .28rem .38rem;
  border: 1px solid #c9ced8;
  border-radius: .75rem;
  background: #f3f4f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.hs-topbar .hs-nav-cluster .btn{
  background: #fff;
}
.hs-topbar .hs-user-chip{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 31px;
  padding: .38rem .72rem .38rem .92rem;
  border: 1px solid #d6d9df;
  border-radius: .7rem;
  background: linear-gradient(180deg, #ffffff 0%, #eef1f5 100%);
  color: #374151;
  white-space: nowrap;
}
.hs-topbar .hs-user-chip::before{
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 999px;
  background: #9aa4b2;
}
.hs-topbar .hs-user-chip-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d6d9df;
  color: #4b5563;
  font-size: .82rem;
  line-height: 1;
}
.hs-topbar .hs-user-chip-name{
  font-weight: 700;
  line-height: 1;
}
.hs-topbar .hs-user-chip-role{
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: .12rem .48rem;
  border-radius: 999px;
  background: #fff;
  color: #b71c1c;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid #f1c5c5;
}
.hs-topbar .hs-user-chip.is-admin::before{
  background: #b71c1c;
}
.hs-topbar .hs-user-chip.is-admin .hs-user-chip-icon{
  color: #b71c1c;
  border-color: #efb4b4;
  background: #fff7f7;
}
.hs-topbar .hs-user-chip.is-admin .hs-user-chip-role{
  background: #fff5f5;
  color: #b71c1c;
  border-color: #efb4b4;
}
.hs-topbar .hs-user-chip.is-sales::before{
  background: #1d4ed8;
}
.hs-topbar .hs-user-chip.is-sales .hs-user-chip-icon{
  color: #1d4ed8;
  border-color: #bfd1ff;
  background: #f4f8ff;
}
.hs-topbar .hs-user-chip.is-sales .hs-user-chip-role{
  background: #f4f8ff;
  color: #1d4ed8;
  border-color: #bfd1ff;
}
.hs-topbar .hs-user-chip.is-default::before{
  background: #6b7280;
}
.hs-topbar .hs-user-chip.is-default .hs-user-chip-role{
  color: #4b5563;
  border-color: #d6d9df;
}
.hs-topbar .hs-logo-center{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hs-topbar .hs-logo-img{
  height: 44px;
}
.hs-topbar .btn-outline-secondary{
  border-color: #9aa4b2;
  color: #4b5563;
}
.hs-topbar .btn-outline-secondary:hover{
  border-color: #b71c1c;
  background: #d32f2f;
  color: #fff;
}
.hs-topbar .btn-outline-secondary:focus{
  border-color: #9aa4b2;
  background: #fff;
  color: #4b5563;
  box-shadow: none;
}
.hs-topbar .btn-outline-secondary:focus-visible{
  border-color: #b71c1c;
  box-shadow: 0 0 0 .2rem rgba(183, 28, 28, .2);
}
.hs-topbar .hs-btn-exit:hover{
  background: #fdf2f2;
  border-color: #b71c1c;
  color: #b71c1c;
}
.hs-mobile-offcanvas .offcanvas-header .btn-close{
  filter: invert(1) grayscale(100%);
}
.hs-offcanvas-nav .btn{
  justify-content: flex-start;
  padding: .7rem .85rem;
  font-weight: 600;
}

@media (max-width: 1199.98px){
  .hs-topbar .hs-nav-row{
    justify-content: flex-start;
  }
  .hs-topbar .hs-nav-cluster{
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .hs-topbar .hs-nav-cluster .btn{
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 767.98px){
  .hs-topbar .hs-topbar-inner{
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
  }
  .hs-topbar .hs-topbar-main{
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .hs-topbar .hs-logo-center{
    position: static;
    transform: none;
    justify-content: center;
    width: 100%;
    pointer-events: auto;
  }
  .hs-topbar .hs-logo-img{
    height: 40px;
  }
  .hs-topbar .hs-topbar-tools{
    width: 100%;
    justify-content: space-between;
    gap: .75rem;
  }
  .hs-topbar .hs-topbar-controls{
    margin-left: auto;
  }
  .hs-topbar .hs-user-chip{
    min-width: 0;
    max-width: calc(100% - 132px);
    padding: .34rem .62rem .34rem .82rem;
  }
  .hs-topbar .hs-user-chip-name{
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hs-topbar .hs-user-chip-role{
    padding: .1rem .42rem;
    font-size: .74rem;
  }
}

/* V3.65 quick lookup en Datos del cliente */
.hs-client-lookup-menu{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 4px);
  z-index:1060;
  max-height:260px;
  overflow:auto;
}
.hs-client-lookup-menu .list-group-item{
  cursor:pointer;
}
.hs-client-lookup-menu .list-group-item:hover,
.hs-client-lookup-menu .list-group-item:focus,
.hs-client-lookup-menu .list-group-item.active{
  background:#dc3545;
  border-color:#dc3545;
  color:#fff;
}
.hs-client-lookup-menu .list-group-item:hover .text-muted,
.hs-client-lookup-menu .list-group-item:focus .text-muted,
.hs-client-lookup-menu .list-group-item.active .text-muted{
  color:rgba(255,255,255,.9) !important;
}
.hs-client-lookup-menu .list-group-item:hover .badge,
.hs-client-lookup-menu .list-group-item:focus .badge,
.hs-client-lookup-menu .list-group-item.active .badge{
  background:#fff !important;
  color:#b42318 !important;
  border-color:#fff !important;
}

.hs-internal-lookup-menu{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 4px);
  z-index:1060;
  max-height:280px;
  overflow:auto;
}
.hs-internal-lookup-menu .list-group-item{
  cursor:pointer;
}
.hs-internal-lookup-menu .list-group-item:hover,
.hs-internal-lookup-menu .list-group-item:focus,
.hs-internal-lookup-menu .list-group-item.active{
  background:#dc3545;
  border-color:#dc3545;
  color:#fff;
}
.hs-internal-lookup-menu .list-group-item:hover .text-muted,
.hs-internal-lookup-menu .list-group-item:focus .text-muted,
.hs-internal-lookup-menu .list-group-item.active .text-muted,
.hs-internal-lookup-menu .list-group-item:hover .badge,
.hs-internal-lookup-menu .list-group-item:focus .badge,
.hs-internal-lookup-menu .list-group-item.active .badge{
  color:rgba(255,255,255,.92) !important;
  border-color:rgba(255,255,255,.55) !important;
}
.hs-internal-lookup-menu .list-group-item:hover .badge,
.hs-internal-lookup-menu .list-group-item:focus .badge,
.hs-internal-lookup-menu .list-group-item.active .badge{
  background:rgba(255,255,255,.12) !important;
}
.hs-selected-catalog{
  margin-top:.5rem;
  padding:.65rem .8rem;
  border:1px solid #b6d4fe;
  border-radius:.7rem;
  background:#eef5ff;
}
.hs-selected-catalog .badge{
  border-radius:999px;
}
.hs-svc-tag{
  display:inline-flex;
  align-items:center;
  padding:.14rem .48rem;
  border-radius:999px;
  border:1px solid #b6d4fe;
  background:#eef5ff;
  color:#0b5ed7;
  font-size:.76rem;
  font-weight:700;
}

.hs-admin-search-sm{
  max-width: 420px;
  width: 100%;
}

.hs-product-acc-btn{
  position: relative;
  font-weight: 600;
}
.hs-product-acc-btn::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 5px;
  border-radius: 999px;
}
.hs-product-acc-title{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.hs-product-acc-new::before{
  background: #dc3545;
}
.hs-product-acc-cat::before{
  background: #6c757d;
}
.hs-product-acc-client::before{
  background: #0d6efd;
}
.hs-product-acc-user::before{
  background: #6f42c1;
}
.hs-product-acc-btn .hs-product-acc-title span[aria-hidden="true"]{
  font-size: 1rem;
  line-height: 1;
}

.hs-template-modal{
  background:
    radial-gradient(circle at top left, rgba(220, 53, 69, .08), transparent 34rem),
    linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.hs-template-panel{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 34px rgba(33, 37, 41, .07);
}
.hs-template-panel-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #edf0f2;
}
.hs-template-active-badge{
  flex: 0 0 auto;
  border-radius: 999px;
}
.hs-template-preview-wrap{
  overflow: hidden;
  min-height: 520px;
  border: 1px solid #ced4da;
  border-radius: .85rem;
  background: #f8f9fa;
}
.hs-template-preview{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 520px;
  overflow: hidden;
  padding: 1rem;
  background: #f1f3f5;
}
.hs-template-preview canvas{
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border-radius: .35rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
}
.hs-template-preview img,
.hs-template-thumb-preview img{
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.hs-template-preview img{
  border-radius: .35rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
}
.hs-template-preview-status{
  align-self: center;
  color: #6c757d;
  font-size: .9rem;
}
.hs-template-actions{
  padding: .85rem;
  border: 1px dashed #d6dbe0;
  border-radius: .85rem;
  background: #fcfcfd;
}
.hs-template-actions .btn:disabled,
.hs-template-actions .form-control:disabled{
  cursor: not-allowed;
}
.hs-template-library{
  padding-top: .25rem;
}
.hs-template-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
}
.hs-template-thumb{
  display: grid;
  gap: .55rem;
  width: 100%;
  padding: .55rem;
  text-align: left;
  border: 1px solid #dee2e6;
  border-radius: .85rem;
  background: #fff;
  color: inherit;
}
.hs-template-thumb.is-selected{
  border-color: #6c757d;
  box-shadow: 0 0 0 .16rem rgba(108, 117, 125, .12);
}
.hs-template-thumb.is-active{
  border-color: #dc3545;
  box-shadow: 0 0 0 .16rem rgba(220, 53, 69, .12);
}
.hs-template-thumb-preview{
  display: block;
  overflow: hidden;
  width: 100%;
  height: 170px;
  padding: 0;
  border: 1px solid #edf0f2;
  border-radius: .7rem;
  background: #f8f9fa;
  cursor: pointer;
}
.hs-template-thumb-preview canvas{
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
.hs-template-thumb-preview img{
  width: 100%;
}
.hs-template-thumb-preview .hs-template-preview-status{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: .5rem;
  text-align: center;
}
.hs-template-thumb-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-width: 0;
  font-size: .85rem;
}
.hs-template-thumb-actions{
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
}

@media (max-width: 767.98px){
  .hs-template-panel{
    padding: .8rem;
  }
  .hs-template-panel-head{
    flex-direction: column;
    align-items: flex-start;
  }
  .hs-template-preview-wrap{
    min-height: 430px;
  }
  .hs-template-preview{
    height: 430px;
  }
}















