/* ============================================================
   UEPC Buscador de Códigos — buscador.css  v1.5.0
   ============================================================ */

.uepc-bc-wrap {
    font-family: 'Roboto', sans-serif;
    color: #1a2233;
}

.uepc-bc-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- Fila: position relative, botón absolute a la derecha ---- */
.uepc-bc-wrap .bc-search-row {
    position: relative;
    margin-bottom: 14px;
    width: 100%;
}

.uepc-bc-wrap .bc-col-input {
    display: block;
    width: 100%;
}

.uepc-bc-wrap .bc-col-btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
}

/* ---- Input: padding-right reservado para el botón (se sobreescribe inline) ---- */
.uepc-bc-wrap .bc-input {
    display: block;
    width: 100%;
    padding: 11px 16px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    border: 2px solid #dde4f0;
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    color: #1a2233;
    box-sizing: border-box;
}

.uepc-bc-wrap .bc-input:focus        { border-color: #1a3a6b; }
.uepc-bc-wrap .bc-input::placeholder { color: #9aa5bc; }
.uepc-bc-wrap .bc-input:disabled     { opacity: 0.6; cursor: not-allowed; }

/* ---- Botón ---- */
.uepc-bc-wrap .bc-btn {
    display: block;
    height: 100%;
    width: 100%;
    padding: 11px 16px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    background: #1a3a6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
    text-align: center;
    line-height: 1.4;
    box-sizing: border-box;
}

.uepc-bc-wrap .bc-btn:hover    { opacity: 0.88; }
.uepc-bc-wrap .bc-btn:active   { opacity: 0.75; }
.uepc-bc-wrap .bc-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Estado / loader ---- */
.uepc-bc-wrap .bc-status {
    font-size: 0.82rem;
    color: #6b7a99;
    margin-bottom: 10px;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uepc-bc-wrap .bc-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid #dde4f0;
    border-top-color: #1a3a6b;
    border-radius: 50%;
    animation: uepc-bc-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes uepc-bc-spin { to { transform: rotate(360deg); } }

/* ---- Resultados ---- */
.uepc-bc-wrap .bc-resultados {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uepc-bc-wrap .bc-hint,
.uepc-bc-wrap .bc-empty {
    text-align: center;
    padding: 18px 20px;
    color: #9aa5bc;
    font-size: 0.86rem;
}

/* ---- Tarjeta ---- */
.uepc-bc-wrap .bc-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dde4f0;
    padding: 13px 16px;
    transition: box-shadow 0.15s;
}

.uepc-bc-wrap .bc-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

.uepc-bc-wrap .bc-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 7px;
}

.uepc-bc-wrap .bc-codigo {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a6b;
    background: #e8eef8;
    padding: 2px 9px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.4px;
}

.uepc-bc-wrap .bc-concepto {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2233;
    line-height: 1.3;
    padding-top: 2px;
}

.uepc-bc-wrap .bc-detalle {
    font-size: 0.82rem;
    color: #4a5570;
    line-height: 1.5;
    margin-bottom: 8px;
    border-left: 3px solid #dde4f0;
    padding-left: 10px;
}

.uepc-bc-wrap .bc-badges { display: flex; flex-wrap: wrap; gap: 5px; }

.uepc-bc-wrap .bc-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.uepc-bc-wrap .bc-badge-rem    { background: #e0f2e9; color: #1a7a3a; }
.uepc-bc-wrap .bc-badge-norem  { background: #fdecea; color: #b52a1c; }
.uepc-bc-wrap .bc-badge-bon    { background: #e8f0fd; color: #1a3a9b; }
.uepc-bc-wrap .bc-badge-nobon  { background: #f3f3f3; color: #666;    }
.uepc-bc-wrap .bc-badge-desc   { background: #fff3cd; color: #7a5000; }

.uepc-bc-wrap mark {
    background: #fff3a0;
    border-radius: 2px;
    padding: 0 1px;
    color: inherit;
}

.uepc-bc-wrap .bc-mas-resultados {
    text-align: center;
    font-size: 0.79rem;
    color: #9aa5bc;
    padding: 6px 0 0;
}
