/* KP toast (центр экрана) */
.kp-toast{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.98);
  z-index: 10000;

  max-width: 520px;
  width: calc(100% - 32px);
  padding: 14px 16px;

  background: rgba(0,0,0,.86);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.kp-toast.is-visible{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}




.kp-modal { display:none; position:fixed; inset:0; z-index:9999; }
.kp-modal.is-open { display:block; }

.kp-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.55); }
.kp-modal__dialog {
  position:relative;
  max-width:520px;
  margin:6vh auto;
  background:#fff;
  border-radius:12px;
  padding:18px 18px 16px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.kp-modal__close {
  position:absolute; right:10px; top:10px;
  width:34px; height:34px; border:0; background:transparent;
  font-size:26px; line-height:34px; cursor:pointer;
}

.kp-field { margin:10px 0; }
.kp-field label { display:block; margin-bottom:6px; font-weight:600; }
.kp-field input { width:100%; padding:10px 12px; border:1px solid #d7d7d7; border-radius:8px; }

.kp-error { color:#b00020; margin:10px 0; }
.kp-success { color:#0b6b2c; }

body.kp-modal-open { overflow:hidden; }





.highlight {
    background-color: #A1DAF8;
}

.highlight td {
    background-color: #A1DAF8;
}

.d-none {
    display: none !important;
}


.or-separator {
    user-select: none;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    color: rgba(18, 53, 95, 0.65);
    background: #fff;
    border: 1px solid rgba(18, 53, 95, 0.2);
    border-radius: 999px;
    padding: 10px 16px;
}

/* ===== Bulk Excel (пакетный расчет) ===== */
.bulk-group {
    height: 100%;
}

.bulk-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bulk-subtitle {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(18, 53, 95, 0.75);
}

.tooltip-wrap {
    position: relative;
    flex: 0 0 auto;
}

.help-icon {
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(18, 53, 95, 0.2);
    background: #fff;
    color: #4E98DB;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
}

.help-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 152, 219, 0.25);
}

.tooltip-box {
    position: absolute;
    right: 0;
    top: 42px;
    width: min(360px, 86vw);
    background: #fff;
    border: 1px solid rgba(18, 53, 95, 0.2);
    border-radius: 10px;
    padding: 12px 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 50;
}

.tooltip-title {
    font-weight: 800;
    margin-bottom: 6px;
}

.tooltip-text {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(18, 53, 95, 0.9);
}

.tooltip-box .muted {
    color: rgba(18, 53, 95, 0.65);
}

.tooltip-wrap:hover .tooltip-box,
.tooltip-wrap:focus-within .tooltip-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bulk-status {
    font-size: 14px;
    line-height: 1.35;
    color: rgba(18, 53, 95, 0.85);
}

.bulk-status .muted {
    color: rgba(18, 53, 95, 0.65);
}

.bulk-status .error {
    color: #C00000;
    font-weight: 700;
}

.bulk-progress {
    margin-top: 10px;
    height: 8px;
    width: 100%;
    background: rgba(18, 53, 95, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.bulk-progress > div {
    height: 100%;
    width: 0%;
    background: #4E98DB;
    border-radius: 999px;
    transition: width 0.15s ease;
}
