.btn-precios-cliente {
  width: 45px;
  background-color: transparent;
  border: 0;
  color: #4f7cec;
}

.btn-precios-cliente:hover {
  color: #3d64d4;
}

.modal-precios-cliente .modal-dialog {
  width: 96%;
  max-width: 1000px;
  margin: 24px auto;
}

.modal-precios-cliente .modal-content {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(61, 100, 212, 0.25);
}

.modal-precios-cliente .pc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(105deg, #4f7cec, #3d64d4);
  color: #fff;
}

.modal-precios-cliente .pc-header-icono {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.modal-precios-cliente .pc-header-texto {
  flex: 1 1 auto;
  min-width: 0;
}

.modal-precios-cliente .pc-titulo {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.modal-precios-cliente .pc-cliente {
  font-size: 14px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-precios-cliente .pc-cerrar {
  flex: 0 0 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 16px;
}

.modal-precios-cliente .pc-cerrar:hover {
  background: rgba(255, 255, 255, 0.28);
}

.modal-precios-cliente .pc-body {
  background: #f4f6fb;
  padding: 16px 20px 20px;
}

.modal-precios-cliente .pc-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-precios-cliente .pc-campo label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
}

.modal-precios-cliente .pc-campo label i {
  color: #4f7cec;
  margin-right: 3px;
}

.modal-precios-cliente .pc-campo-sede {
  flex: 0 0 240px;
}

.modal-precios-cliente .pc-campo-buscar {
  flex: 1 1 auto;
  position: relative;
}

.modal-precios-cliente .pc-campo .form-control {
  height: 44px;
  border: 1px solid #d5dbe8;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: none;
}

.modal-precios-cliente .pc-campo .form-control:focus {
  border-color: #4f7cec;
  box-shadow: 0 0 0 3px rgba(79, 124, 236, 0.15);
}

.modal-precios-cliente .pc-buscar-caja {
  position: relative;
}

.modal-precios-cliente .pc-buscar-caja .form-control {
  padding-left: 40px;
  padding-right: 90px;
}

.modal-precios-cliente .pc-buscar-icono {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #222222;
  font-size: 16px;
}

.modal-precios-cliente .pc-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #222222;
  background: #eef1f7;
  border: 1px solid #dde2ec;
  border-radius: 6px;
  padding: 2px 6px;
}

.modal-precios-cliente .pc-resultados {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  z-index: 1060;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d5dbe8;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.modal-precios-cliente .pc-resultado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f7;
}

.modal-precios-cliente .pc-resultado:last-child {
  border-bottom: 0;
}

.modal-precios-cliente .pc-resultado:hover,
.modal-precios-cliente .pc-resultado.activo {
  background: #eef2ff;
  box-shadow: inset 3px 0 0 #4f7cec;
}

.modal-precios-cliente .pc-resultado-texto {
  min-width: 0;
}

.modal-precios-cliente .pc-resultado-nombre {
  font-weight: 600;
  color: #111111;
  font-size: 14px;
}

.modal-precios-cliente .pc-resultado-codigo {
  color: #222222;
  font-size: 12px;
}

.modal-precios-cliente .pc-resultado-precio {
  font-weight: 700;
  color: #4f7cec;
  white-space: nowrap;
  text-align: right;
}

.modal-precios-cliente .pc-resultado-precio small {
  display: block;
  font-weight: 400;
  color: #222222;
  font-size: 11px;
}

.modal-precios-cliente .pc-sin-resultados {
  padding: 16px;
  color: #222222;
  text-align: center;
}

.modal-precios-cliente .pc-marca {
  display: inline-block;
  background: #e6f6ea;
  color: #1e8e3e;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.modal-precios-cliente .pc-card {
  background: #fff;
  border: 1px solid #e3e7f0;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.modal-precios-cliente .pc-card:last-child {
  margin-bottom: 0;
}

.modal-precios-cliente .pc-card-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f6;
}

.modal-precios-cliente .pc-card-pie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #eef1f6;
  background: #fafbfd;
}

.modal-precios-cliente .pc-editor {
  display: none;
  border: 2px solid #4f7cec;
  box-shadow: 0 6px 18px rgba(79, 124, 236, 0.12);
}

.modal-precios-cliente .pc-editor-producto {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
}

.modal-precios-cliente .pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.modal-precios-cliente .pc-chip {
  font-size: 12px;
  background: #eef1f7;
  color: #111111;
  border-radius: 20px;
  padding: 2px 10px;
}

.modal-precios-cliente .pc-chip-costo {
  background: #eef2ff;
  color: #4f7cec;
  font-weight: 600;
}

.modal-precios-cliente .pc-chip-alerta {
  background: #fff4e5;
  color: #b26a00;
}

.modal-precios-cliente .pc-chip-ok {
  display: none;
  background: #e6f6ea;
  color: #1e8e3e;
  font-weight: 600;
}

.modal-precios-cliente .pc-tabla {
  margin: 0;
}

.modal-precios-cliente .pc-tabla > thead > tr > th {
  background: #f7f8fc;
  color: #111111;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #e3e7f0;
  padding: 9px 12px;
  white-space: nowrap;
  text-align: left !important;
}

.modal-precios-cliente .pc-tabla > thead > tr > th.pc-num {
  text-align: right !important;
}

.modal-precios-cliente .pc-tabla > tbody > tr > td {
  vertical-align: middle;
  border-top: 1px solid #f0f2f7;
  padding: 9px 12px;
  font-size: 13px;
  color: #111111;
}

.modal-precios-cliente .pc-tabla-editor > thead > tr > th.pc-col-cliente {
  background: #eef2ff;
  color: #4f7cec;
}

.modal-precios-cliente .pc-tabla-editor > tbody > tr > td.pc-col-cliente {
  background: #f8faff;
}

.modal-precios-cliente .pc-num {
  text-align: right;
}

.modal-precios-cliente .pc-unidad {
  font-weight: 700;
}

.modal-precios-cliente .pc-factor {
  margin-left: 6px;
  font-size: 12px;
  color: #222222;
}

.modal-precios-cliente .pc-costo {
  color: #111111;
}

.modal-precios-cliente .pc-precio-actual {
  font-weight: 600;
}

.modal-precios-cliente .pc-margen {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
}

.modal-precios-cliente .pc-margen-ok {
  background: #e6f6ea;
  color: #1e8e3e;
}

.modal-precios-cliente .pc-margen-bajo {
  background: #fff4e5;
  color: #b26a00;
}

.modal-precios-cliente .pc-margen-negativo {
  background: #fdecea;
  color: #c62828;
}

.modal-precios-cliente .pc-margen-nulo {
  color: #222222;
}

.modal-precios-cliente .pc-input-grupo {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfd6e6;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.modal-precios-cliente .pc-input-grupo:focus-within {
  border-color: #4f7cec;
  box-shadow: 0 0 0 3px rgba(79, 124, 236, 0.15);
}

.modal-precios-cliente .pc-input-grupo span {
  padding: 0 8px;
  color: #222222;
  font-size: 12px;
  font-weight: 600;
}

.modal-precios-cliente .pc-input-grupo .form-control {
  border: 0;
  box-shadow: none;
  height: 34px;
  padding: 4px 8px 4px 0;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
}

.modal-precios-cliente .pc-input-precio {
  width: 95px;
}

.modal-precios-cliente .pc-input-grupo-margen .form-control {
  width: 75px;
  padding: 4px 0 4px 8px;
  font-weight: 600;
}

.modal-precios-cliente .pc-input-grupo-margen .form-control:disabled {
  background: #f4f6fb;
}

.modal-precios-cliente .pc-input-precio.modificado {
  color: #4f7cec;
}

.modal-precios-cliente tr.pc-bajo-costo > td,
.modal-precios-cliente .pc-tabla-editor > tbody > tr.pc-bajo-costo > td.pc-col-cliente {
  background: #fdecea;
}

.modal-precios-cliente tr.pc-bajo-costo .pc-input-grupo {
  border-color: #d9534f;
}

.modal-precios-cliente tr.pc-bajo-costo .pc-input-precio {
  color: #c62828;
}

.modal-precios-cliente .pc-dif-menor {
  color: #c62828;
  font-weight: 600;
}

.modal-precios-cliente .pc-dif-mayor {
  color: #1e8e3e;
  font-weight: 600;
}

.modal-precios-cliente .pc-dif-igual {
  color: #555555;
}

.modal-precios-cliente .pc-dif,
.modal-precios-cliente .pc-dif-menor,
.modal-precios-cliente .pc-dif-mayor {
  white-space: nowrap;
}

.modal-precios-cliente .pc-dif-menor small,
.modal-precios-cliente .pc-dif-mayor small {
  font-weight: 400;
  margin-left: 2px;
}

.modal-precios-cliente .pc-ayuda {
  font-size: 12px;
  color: #222222;
}

.modal-precios-cliente .pc-editor-acciones {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.modal-precios-cliente .pc-btn {
  border-radius: 9px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid transparent;
}

.modal-precios-cliente .pc-btn-primario {
  background: linear-gradient(105deg, #4f7cec, #3d64d4);
  color: #fff;
}

.modal-precios-cliente .pc-btn-primario:hover,
.modal-precios-cliente .pc-btn-primario:focus {
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 124, 236, 0.35);
}

.modal-precios-cliente .pc-btn-peligro {
  background: #fff;
  color: #c62828;
  border-color: #f1c6c3;
}

.modal-precios-cliente .pc-btn-peligro:hover {
  background: #fdecea;
  color: #c62828;
}

.modal-precios-cliente .pc-btn-texto {
  background: transparent;
  color: #111111;
}

.modal-precios-cliente .pc-btn-texto:hover {
  background: #eef1f7;
}

.modal-precios-cliente .pc-asignados-titulo {
  font-weight: 700;
  color: #111111;
  font-size: 14px;
}

.modal-precios-cliente .pc-asignados-titulo i {
  color: #4f7cec;
  margin-right: 4px;
}

.modal-precios-cliente .pc-contador {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  background: #4f7cec;
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  padding: 1px 8px;
  margin-left: 6px;
}

.modal-precios-cliente .pc-filtro {
  display: none;
  width: 220px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d5dbe8;
  box-shadow: none;
  font-size: 13px;
}

.modal-precios-cliente .pc-asignados-scroll {
  max-height: 320px;
  overflow-y: auto;
}

.modal-precios-cliente .pc-tabla-asignados > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-precios-cliente .pc-tabla-asignados > tbody > tr:hover > td {
  background: #f7f9ff;
}

.modal-precios-cliente .pc-tabla-asignados > tbody > tr.pc-editando > td {
  background: #eef2ff;
}

.modal-precios-cliente .pc-prod-nombre {
  font-weight: 600;
}

.modal-precios-cliente .pc-prod-codigo {
  font-size: 11px;
  color: #222222;
}

.modal-precios-cliente .pc-vacio {
  text-align: center;
  color: #222222;
  padding: 28px 12px !important;
}

.modal-precios-cliente .pc-vacio i {
  font-size: 28px;
  color: #c9d1e3;
  margin-bottom: 8px;
}

.modal-precios-cliente .pc-vacio div {
  font-weight: 600;
  color: #111111;
}

.modal-precios-cliente .pc-acciones-fila {
  white-space: nowrap;
  text-align: right;
}

.modal-precios-cliente .pc-acciones-fila button {
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.modal-precios-cliente .pc-acciones-fila .pcEditarAsignado {
  color: #4f7cec;
}

.modal-precios-cliente .pc-acciones-fila .pcEditarAsignado:hover {
  background: #eef2ff;
}

.modal-precios-cliente .pc-acciones-fila .pcEliminarAsignado {
  color: #c62828;
}

.modal-precios-cliente .pc-acciones-fila .pcEliminarAsignado:hover {
  background: #fdecea;
}

@media (max-width: 768px) {
  .modal-precios-cliente .modal-dialog {
    width: auto;
    margin: 8px;
  }

  .modal-precios-cliente .pc-header {
    padding: 12px 14px;
  }

  .modal-precios-cliente .pc-body {
    padding: 12px;
  }

  .modal-precios-cliente .pc-toolbar {
    flex-direction: column;
  }

  .modal-precios-cliente .pc-campo-sede {
    flex: 1 1 auto;
  }

  .modal-precios-cliente .pc-kbd,
  .modal-precios-cliente .pc-ayuda {
    display: none;
  }

  .modal-precios-cliente .pc-input-precio {
    width: 70px;
  }

  .modal-precios-cliente .pc-input-grupo-margen .form-control {
    width: 58px;
  }

  .modal-precios-cliente .pc-editor-acciones {
    width: 100%;
  }

  .modal-precios-cliente .pc-editor-acciones .pc-btn-primario {
    flex: 1 1 auto;
  }

  .modal-precios-cliente .pc-filtro {
    width: 100%;
  }
}

.modal-precios-cliente .pc-rangos {
  border-top: 1px solid #eef1f6;
  padding: 12px 16px;
}

.modal-precios-cliente .pc-rangos-cabecera {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-precios-cliente .pc-rangos-titulo {
  font-weight: 700;
  color: #111111;
  font-size: 14px;
}

.modal-precios-cliente .pc-rangos-titulo i {
  color: #4f7cec;
  margin-right: 4px;
}

.modal-precios-cliente .pc-rangos-unidad {
  font-weight: 400;
  font-size: 12px;
  color: #222222;
  margin-left: 4px;
}

.modal-precios-cliente .pc-btn-agregar {
  background: #eef2ff;
  color: #4f7cec;
  border-color: #cfd8fb;
  padding: 6px 12px;
}

.modal-precios-cliente .pc-btn-agregar:hover,
.modal-precios-cliente .pc-btn-agregar:focus {
  background: #4f7cec;
  color: #fff;
}

.modal-precios-cliente .pc-btn-agregar:disabled {
  opacity: 0.5;
}

.modal-precios-cliente .pc-vigencia {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-precios-cliente .pc-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  cursor: pointer;
}

.modal-precios-cliente .pc-vigencia-fechas {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-precios-cliente .pc-fecha-caja {
  position: relative;
}

.modal-precios-cliente .pc-fecha-caja i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #222222;
  font-size: 12px;
}

.modal-precios-cliente .pc-fecha {
  width: 170px;
  height: 34px;
  padding-left: 30px;
  border: 1px solid #cfd6e6;
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
}

.modal-precios-cliente .pc-tabla-rangos .form-control.pc-rango-desde,
.modal-precios-cliente .pc-tabla-rangos .form-control.pc-rango-hasta {
  width: 110px;
  height: 34px;
  margin-left: auto;
  text-align: right;
  border: 1px solid #cfd6e6;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
}

.modal-precios-cliente .pc-tabla-rangos .form-control.pc-rango-hasta::placeholder {
  font-weight: 400;
  font-size: 12px;
}

.modal-precios-cliente .pc-acciones-fila .pcQuitarRango {
  color: #c62828;
}

.modal-precios-cliente .pc-acciones-fila .pcQuitarRango:hover {
  background: #fdecea;
}

.modal-precios-cliente .pc-rangos-vacio {
  font-size: 13px;
  color: #222222;
  padding: 10px 12px;
  background: #f7f8fc;
  border: 1px dashed #d5dbe8;
  border-radius: 8px;
}

.modal-precios-cliente .pc-marca-rangos {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f7cec;
  font-size: 10px;
  font-weight: 700;
}

.datepicker.dropdown-menu {
  z-index: 1070 !important;
}

.modal-precios-cliente .pc-tabla-rangos > thead > tr > th.pc-col-cliente {
  background: #eef2ff;
  color: #4f7cec;
}

.modal-precios-cliente .pc-tabla-rangos > tbody > tr > td.pc-col-cliente {
  background: #f8faff;
}

.modal-precios-cliente .form-control {
  color: #111111;
}
