/* ═══════════════════════════════════════════════════════════
   FORXEN — Shared Stylesheet
   Montserrat · Teal #276776 / #55b7bf · Dark #073c43
   ═══════════════════════════════════════════════════════════ */

/* ── Base ──────────────────────────────────────────────────── */
* { font-family: 'Montserrat', sans-serif; }
body.fxn-dashboard { background: #f0f4f5; }

/* ── Cards ─────────────────────────────────────────────────── */
.card-fxn {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(39,103,118,.1);
}

/* ── Typography ────────────────────────────────────────────── */
.section-title { color: #276776; font-weight: 700; font-size: 1rem; }
.text-fxn      { color: #276776; }
.text-fxn-dark { color: #073c43; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-fxn {
    background: #276776;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: .85rem;
}
.btn-fxn:hover  { background: #1e5262; color: #fff; }
.btn-fxn:focus  { box-shadow: 0 0 0 .2rem rgba(39,103,118,.3); color: #fff; }

.btn-outline-fxn {
    border: 1.5px solid #276776;
    color: #276776;
    font-weight: 600;
    font-size: .82rem;
    background: transparent;
}
.btn-outline-fxn:hover { background: #276776; color: #fff; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-label { color: #276776; font-weight: 600; font-size: .82rem; }

.form-control:focus,
.form-select:focus {
    border-color: #55b7bf;
    box-shadow: 0 0 0 .2rem rgba(85,183,191,.2);
}

.filter-select {
    border: 1.5px solid #b0d8e0;
    border-radius: 8px;
    font-size: .85rem;
}
.filter-select:focus { border-color: #276776; box-shadow: none; }

/* ── Table ─────────────────────────────────────────────────── */
.table th {
    font-size: .75rem;
    color: #276776;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid #d8ecf0;
}
.table td { font-size: .82rem; vertical-align: middle; }

.emisor-nombre { font-weight: 600; color: #276776; }
.emisor-rfc    { color: #888; font-size: .72rem; }
.emisor-cfdi   {
    color: #aaa;
    font-size: .70rem;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.folio-text  { color: #555; }
.total-text  { font-weight: 700; color: #073c43; }
.btn-asignar { font-size: .75rem; padding: .25rem .7rem; }

/* ── Badges ────────────────────────────────────────────────── */
.badge-asig {
    background: #d4f4e2; color: #1a6b3c;
    border-radius: 20px; font-size: .72rem;
    padding: .25rem .75rem; font-weight: 600;
}
.badge-sin {
    background: #fff3cd; color: #856404;
    border-radius: 20px; font-size: .72rem;
    padding: .25rem .75rem; font-weight: 600;
}
.badge-fxn {
    background: #e3f4f6; color: #276776;
    border-radius: 20px; font-size: .72rem;
    padding: .25rem .75rem; font-weight: 600;
}

/* ── Stat cards ────────────────────────────────────────────── */
.stat-card { border-radius: 10px; padding: 1rem 1.2rem; }

/* ── Import zone ───────────────────────────────────────────── */
.import-zone {
    border: 2px dashed #b0d8e0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.import-zone:hover,
.import-zone.dragover { border-color: #276776; background: #eaf7f9; }
.import-zone.has-file { border-color: #276776; background: #eaf7f9; }

/* ── Concepto buscador (modal) ─────────────────────────────── */
.concepto-lista {
    max-height: 210px;
    overflow-y: auto;
    border: 1.5px solid #dde;
    border-radius: 8px;
    background: #fff;
}
.concepto-cat {
    font-size: .68rem;
    font-weight: 700;
    color: #276776;
    padding: .3rem .8rem;
    background: #eaf7f9;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: sticky;
    top: 0;
    z-index: 1;
}
.concepto-item {
    padding: .45rem .85rem;
    font-size: .82rem;
    cursor: pointer;
    border-bottom: 1px solid #f4f4f4;
    transition: background .1s;
}
.concepto-item:last-child { border-bottom: none; }
.concepto-item:hover   { background: #eaf7f9; color: #276776; }
.concepto-item.sel     { background: #276776; color: #fff; }
.concepto-item.oculto  { display: none; }

.concepto-sel {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #eaf7f9;
    border: 1.5px solid #55b7bf;
    border-radius: 8px;
    padding: .4rem .75rem;
    font-size: .82rem;
    color: #073c43;
    font-weight: 600;
    margin-top: .4rem;
}
.btn-limpiar {
    background: none;
    border: none;
    color: #276776;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    margin-left: auto;
}

/* ── Pendientes panel ──────────────────────────────────────── */
.pendiente-row { cursor: pointer; transition: background .15s; }
.pendiente-row:hover { background: #eaf7f9; }
.n-sin { font-weight: 700; color: #856404; }

/* ── Misc ──────────────────────────────────────────────────── */
#btn-solo-sin.active { background: #fff3cd; border-color: #856404; color: #856404; }

/* ══════════════════════════════════════════════════════════════
   LOGIN — Split screen
   ══════════════════════════════════════════════════════════════ */
.fxn-login-wrap {
    display: flex;
    min-height: 100vh;
}

.fxn-login-left {
    flex: 0 0 54%;
    background: #073c43;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem;
}
.fxn-login-left .fxn-x-bg {
    position: absolute;
    width: 80%;
    max-width: 500px;
    opacity: .07;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}
.fxn-login-logo {
    position: relative;
    z-index: 1;
    max-width: 380px;
    width: 88%;
}

.fxn-login-right {
    flex: 1;
    background: #f0f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(7,60,67,.12);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
}
.login-divider   { border-color: #eaf7f8; }
.login-footer-txt { color: #bbb; font-size: .68rem; letter-spacing: 1px; }

.btn-login {
    background: #276776;
    border-color: #276776;
    color: #fff;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: .83rem;
    padding: .75rem;
    width: 100%;
    transition: background .2s, border-color .2s;
}
.btn-login:hover { background: #55b7bf; border-color: #55b7bf; color: #fff; }
.btn-login:focus { box-shadow: 0 0 0 .2rem rgba(85,183,191,.35); color: #fff; }

@media (max-width: 767px) {
    .fxn-login-wrap    { flex-direction: column; }
    .fxn-login-left    { flex: 0 0 auto; padding: 2.5rem 2rem; min-height: 38vh; }
    .fxn-login-left .fxn-x-bg { width: 50%; }
    .fxn-login-logo    { max-width: 260px; }
    .fxn-login-right   { padding: 1.5rem; }
    .login-card        { padding: 2rem 1.5rem; }
}
