:root {
    --bc-purple: #00549c;
    --bc-purple-d: #003e6e;
    --bc-purple-s: #e5eef6;
    --bc-purple-2: #4e86b8;
    --bc-orange: #f06000;
    --bc-orange-s: #fcece0;
    --bc-ink: #34323c;
    --bc-muted: #74747c;
    --bc-faint: #a6a4b0;
    --bc-line: #e9e8ef;
    --bc-line-2: #f1f0f6;
    --bc-surface: #fafafa;
    --bc-bg: #f3f2f7;
    --bc-green: #1e9e73;
    --bc-green-s: #e4f4ee;
    --bc-amber: #e08c00;
    --bc-amber-s: #fcefd4;
    --bc-red: #e02d2d;
    --bc-red-s: #fbe6e6;
    --bc-grey: #8c8796;
    --bc-grey-s: #efeef3;
    --shadow-sm: 0 1px 2px rgba(0, 45, 90, 0.06), 0 1px 1px rgba(0, 45, 90, 0.04);
    --shadow: 0 6px 22px rgba(0, 55, 110, 0.09);
    --radius: 16px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --side-w: 248px;
    --num: "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html,
body {
    margin: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--bc-ink);
    background: var(--bc-bg);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}
.tnum {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}
button {
    font-family: inherit;
}
a {
    color: inherit;
}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-thumb {
    background: #c7d6e6;
    border-radius: 8px;
    border: 3px solid var(--bc-bg);
}

/* ============ LAYOUT ============ */
.app {
    display: grid;
    grid-template-columns: var(--side-w) 1fr;
    min-height: 100vh;
}

/* Sidebar (desktop) */
.side {
    background: linear-gradient(185deg, #003e6e 0%, #00549c 52%, #1a6bb0 100%);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    gap: 6px;
    z-index: 60;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 8px 16px;
}
.brand .mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.brand .mark svg {
    width: 31px;
    height: 31px;
    display: block;
}
.brand .nm {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.3px;
    line-height: 1;
}
.brand .sub {
    font-size: 11px;
    color: #cfc8ea;
    letter-spacing: 1.5px;
    margin-top: 3px;
    text-transform: uppercase;
}
.nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
}
.navlbl {
    font-size: 10.5px;
    letter-spacing: 1.4px;
    color: #b7aee0;
    text-transform: uppercase;
    padding: 14px 10px 6px;
}
.nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #e9e5f7;
    padding: 11px 12px;
    border-radius: 11px;
    font-size: 14.5px;
    cursor: pointer;
    text-align: left;
    transition: 0.13s;
}
.nav button svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    opacity: 0.92;
}
.nav button:hover {
    background: rgba(255, 255, 255, 0.08);
}
.nav button.act {
    background: #fff;
    color: var(--bc-purple-d);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
.nav button.act svg {
    opacity: 1;
}
.side .spacer {
    flex: 1;
}
.side .who {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}
.who .av {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--bc-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    flex: 0 0 auto;
}
.who .nm {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.15;
}
.who .rl {
    font-size: 11px;
    color: #cfc8ea;
}

/* Main */
.main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(243, 242, 247, 0.86);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--bc-line);
    padding: 14px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar .ttl {
    flex: 1;
    min-width: 0;
}
.topbar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.topbar .crumb {
    font-size: 12.5px;
    color: var(--bc-muted);
    margin-top: 1px;
}
.range {
    display: flex;
    background: #fff;
    border: 1px solid var(--bc-line);
    border-radius: 11px;
    padding: 3px;
    gap: 2px;
}
.range button {
    border: 0;
    background: transparent;
    color: var(--bc-muted);
    font-size: 12.5px;
    padding: 7px 11px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.range button.act {
    background: var(--bc-purple);
    color: #fff;
}
.newbtn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: var(--bc-orange);
    color: #fff;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(226, 96, 44, 0.32);
}
.newbtn svg {
    width: 18px;
    height: 18px;
}
.newbtn:hover {
    filter: brightness(1.04);
}

.content {
    padding: 22px 26px 60px;
    max-width: 1180px;
    width: 100%;
}
.view {
    display: none;
    animation: fade 0.22s ease;
}
.view.on {
    display: block;
}
@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .view,
    .sheet {
        animation: none !important;
    }
}

/* ============ COMPONENTS ============ */
.grid {
    display: grid;
    gap: 16px;
}
.card {
    background: #fff;
    border: 1px solid var(--bc-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card.pad {
    padding: 18px;
}
.card h3 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
}
.card .hint {
    font-size: 12px;
    color: var(--bc-muted);
}
.cardhead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

/* KPIs */
.kpis {
    grid-template-columns: repeat(4, 1fr);
}
.kpi {
    padding: 16px 17px;
    position: relative;
    overflow: hidden;
}
.kpi .ic {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.kpi .ic svg {
    width: 20px;
    height: 20px;
}
.kpi .lab {
    font-size: 12.5px;
    color: var(--bc-muted);
    font-weight: 600;
}
.kpi .val {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-top: 3px;
    line-height: 1.05;
}
.kpi .val .cur {
    font-size: 14px;
    font-weight: 700;
    color: var(--bc-faint);
    margin-right: 3px;
}
.kpi .meta {
    font-size: 11.5px;
    color: var(--bc-muted);
    margin-top: 7px;
}
.kpi .meta b {
    color: var(--bc-ink);
}
.ic.g {
    background: var(--bc-green-s);
    color: var(--bc-green);
}
.ic.a {
    background: var(--bc-amber-s);
    color: var(--bc-amber);
}
.ic.r {
    background: var(--bc-red-s);
    color: var(--bc-red);
}
.ic.p {
    background: var(--bc-purple-s);
    color: var(--bc-purple);
}

/* chips / badges */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.chip {
    border: 1px solid var(--bc-line);
    background: #fff;
    color: var(--bc-muted);
    border-radius: 30px;
    padding: 7px 13px;
    font-size: 12.5px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
}
.chip .n {
    background: var(--bc-line-2);
    color: var(--bc-muted);
    border-radius: 20px;
    padding: 0 7px;
    font-size: 11px;
    line-height: 18px;
    min-width: 18px;
    text-align: center;
}
.chip.act {
    background: var(--bc-purple);
    border-color: var(--bc-purple);
    color: #fff;
}
.chip.act .n {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.b-pagado {
    background: var(--bc-green-s);
    color: var(--bc-green);
}
.b-pagado .dot {
    background: var(--bc-green);
}
.b-pendiente {
    background: var(--bc-amber-s);
    color: var(--bc-amber);
}
.b-pendiente .dot {
    background: var(--bc-amber);
}
.b-cancelado {
    background: var(--bc-red-s);
    color: var(--bc-red);
}
.b-cancelado .dot {
    background: var(--bc-red);
}
.b-vencido {
    background: var(--bc-grey-s);
    color: var(--bc-grey);
}
.b-vencido .dot {
    background: var(--bc-grey);
}
.b-activo {
    background: var(--bc-purple-s);
    color: var(--bc-purple);
}
.b-activo .dot {
    background: var(--bc-purple);
}
.b-inactivo {
    background: var(--bc-grey-s);
    color: var(--bc-grey);
}
.b-inactivo .dot {
    background: var(--bc-grey);
}

/* search */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.search {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--bc-line);
    border-radius: 11px;
    padding: 10px 14px;
    background: #fff;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}
.search svg {
    width: 17px;
    height: 17px;
    color: var(--bc-muted);
    flex: 0 0 auto;
}
.search input {
    border: 0;
    outline: 0;
    background: transparent;
    flex: 1;
    font-size: 14px;
    color: var(--bc-ink);
    font-family: inherit;
}

/* table */
.tablewrap {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
thead th {
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--bc-faint);
    font-weight: 700;
    padding: 11px 14px;
    border-bottom: 1px solid var(--bc-line);
    white-space: nowrap;
}
tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--bc-line-2);
    vertical-align: middle;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr.clk {
    cursor: pointer;
    transition: background 0.1s;
}
tbody tr.clk:hover {
    background: var(--bc-purple-s);
}
td.r,
th.r {
    text-align: right;
}
.money {
    font-weight: 700;
    white-space: nowrap;
}
.muted {
    color: var(--bc-muted);
}
.concept {
    font-weight: 600;
}
.ref {
    font-size: 11.5px;
    color: var(--bc-faint);
    font-variant-numeric: tabular-nums;
}
.who-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.who-cell .a {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.who-cell .nm {
    font-weight: 600;
    line-height: 1.1;
}
.who-cell .d {
    font-size: 11px;
    color: var(--bc-muted);
}

.subrow {
    background: var(--bc-surface);
}
.subrow td {
    padding: 0;
}
.subwrap {
    padding: 6px 14px 14px;
}
.miniT {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    background: #fff;
    border: 1px solid var(--bc-line);
    border-radius: 12px;
    overflow: hidden;
}
.miniT th {
    background: var(--bc-line-2);
    font-size: 10px;
    padding: 8px 12px;
    color: var(--bc-muted);
}
.miniT td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--bc-line-2);
}
.linkbtn {
    border: 1px solid var(--bc-line);
    background: #fff;
    color: var(--bc-purple);
    font-weight: 600;
    font-size: 12px;
    padding: 6px 11px;
    border-radius: 9px;
    cursor: pointer;
}
.linkbtn:hover {
    background: var(--bc-purple-s);
}
.linkbtn.danger {
    color: var(--bc-red);
}
.linkbtn.danger:hover {
    background: var(--bc-red-s);
}

.empty {
    text-align: center;
    color: var(--bc-muted);
    font-size: 13.5px;
    padding: 40px 16px;
}

/* charts */
.legend {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.legend .row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
}
.legend .sw {
    width: 11px;
    height: 11px;
    border-radius: 4px;
    flex: 0 0 auto;
}
.legend .lv {
    margin-left: auto;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.legend .lp {
    color: var(--bc-muted);
    font-size: 11.5px;
    min-width: 38px;
    text-align: right;
}
.hbar {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.hbar .row .top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}
.hbar .row .top .v {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.track {
    height: 9px;
    background: var(--bc-line-2);
    border-radius: 6px;
    overflow: hidden;
}
.track > i {
    display: block;
    height: 100%;
    border-radius: 6px;
}
.barsvg {
    width: 100%;
    height: auto;
    display: block;
}
.barsvg .gl {
    stroke: var(--bc-line);
    stroke-width: 1;
}
.barsvg .axt {
    fill: var(--bc-faint);
    font-size: 10px;
}
.barsvg rect.bar {
    transition: opacity 0.1s;
}

/* forms */
.form {
    display: grid;
    gap: 16px;
    max-width: 560px;
}
.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--bc-ink);
    margin-bottom: 7px;
}
.field .desc {
    font-size: 11.5px;
    color: var(--bc-muted);
    font-weight: 400;
    margin-top: -3px;
    margin-bottom: 7px;
}
.inp {
    width: 100%;
    border: 1px solid var(--bc-line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--bc-ink);
    background: #fff;
    outline: none;
}
.inp:focus {
    border-color: var(--bc-purple);
    box-shadow: 0 0 0 3px var(--bc-purple-s);
}
select.inp {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2374747C' stroke-width='2' stroke-linecap='round'><path d='M6 8l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.amount-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.amount-row .inp {
    flex: 1;
    font-size: 22px;
    font-weight: 700;
}
.seg {
    display: flex;
    border: 1px solid var(--bc-line);
    border-radius: 12px;
    overflow: hidden;
}
.seg button {
    border: 0;
    background: #fff;
    color: var(--bc-muted);
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
.seg button.act {
    background: var(--bc-purple);
    color: #fff;
}
.togs {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.tog {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.tog .bx {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1.5px solid #c9c5de;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.tog input {
    display: none;
}
.tog input:checked + .bx {
    background: var(--bc-purple);
    border-color: var(--bc-purple);
}
.tog .bx svg {
    width: 15px;
    height: 15px;
    display: none;
}
.tog input:checked + .bx svg {
    display: block;
}
.gen {
    margin-top: 4px;
    width: 100%;
    border: 0;
    background: var(--bc-purple);
    color: #fff;
    font-weight: 700;
    font-size: 15.5px;
    padding: 15px;
    border-radius: 13px;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(107, 91, 156, 0.3);
}
.gen:hover {
    filter: brightness(1.05);
}
.note {
    font-size: 12px;
    color: var(--bc-muted);
    background: var(--bc-purple-s);
    border-radius: 11px;
    padding: 11px 13px;
    display: flex;
    gap: 9px;
}
.note svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--bc-purple);
    margin-top: 1px;
}

/* send options (post-generate) */
.send-head {
    text-align: center;
    margin-bottom: 6px;
}
.send-head .ok {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bc-green-s);
    color: var(--bc-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.send-head .ok svg {
    width: 26px;
    height: 26px;
}
.pill {
    background: var(--bc-purple-s);
    border-radius: 13px;
    padding: 13px;
    text-align: center;
    margin: 14px 0;
}
.pill .am {
    font-size: 24px;
    font-weight: 800;
    color: var(--bc-purple-d);
}
.pill .by {
    font-size: 12.5px;
    color: var(--bc-purple);
}
.sopts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}
.sopt {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--bc-line);
    border-radius: 13px;
    padding: 14px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}
.sopt:hover {
    border-color: var(--bc-purple);
    background: var(--bc-purple-s);
}
.sopt svg {
    width: 22px;
    height: 22px;
    color: var(--bc-purple);
    flex: 0 0 auto;
}
.qrbox {
    display: flex;
    justify-content: center;
    padding: 6px 0 2px;
}

/* mobile bottom nav */
.botnav {
    display: none;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(18px);
    background: var(--bc-purple-d);
    color: #fff;
    font-size: 13.5px;
    padding: 13px 20px;
    border-radius: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-width: 88%;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
    z-index: 90;
    text-align: center;
}
.toast.on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
    .kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}
/*@media (max-width: 980px) {*/
@media (max-width: 768px) {
    .app {
        grid-template-columns: 1fr;
    }
    .side {
        display: none;
    }
    .content {
        padding: 18px 16px 96px;
    }
    .topbar {
        padding: 12px 16px;
    }
    .botnav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 60;
        background: #fff;
        border-top: 1px solid var(--bc-line);
        padding: 7px 6px calc(7px + var(--safe-b));
        justify-content: space-around;
        box-shadow: 0 -6px 20px rgba(60, 45, 110, 0.07);
    }
    .botnav button {
        border: 0;
        background: transparent;
        color: var(--bc-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 10.5px;
        font-weight: 600;
        cursor: pointer;
        flex: 1;
        padding: 4px 2px;
        border-radius: 10px;
    }
    .botnav button svg {
        width: 21px;
        height: 21px;
    }
    .botnav button.act {
        color: var(--bc-purple);
    }
    .topbar .range {
        display: none;
    }
    .topbar h1 {
        font-size: 17px;
    }
    .newbtn span {
        display: none;
    }
    .newbtn {
        padding: 11px;
        border-radius: 50%;
    }
}
@media (max-width: 680px) {
    .two,
    .three {
        grid-template-columns: 1fr !important;
    }
    .sopts {
        grid-template-columns: 1fr;
    }
    /* responsive tables -> cards */
    table.resp thead {
        display: none;
    }
    table.resp,
    table.resp tbody,
    table.resp tr,
    table.resp td {
        display: block;
        width: 100%;
    }
    table.resp tr {
        border: 1px solid var(--bc-line);
        border-radius: 13px;
        margin-bottom: 11px;
        padding: 6px 4px;
        background: #fff;
    }
    table.resp td {
        border: 0;
        padding: 8px 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
    }
    table.resp td::before {
        content: attr(data-l);
        font-size: 11px;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        color: var(--bc-faint);
        font-weight: 700;
        flex: 0 0 auto;
    }
    table.resp td.r {
        text-align: right;
    }
    table.resp td .who-cell {
        justify-content: flex-end;
    }
    .amount-row .inp {
        font-size: 19px;
    }
}
@media (max-width: 420px) {
    .kpis {
        grid-template-columns: 1fr;
    }
}



/* ADICIONAL */

#fTasaContainer{
    display: none;
}
.qrbox{
    aspect-ratio: 1;
    cursor: pointer;
}

.qrbox,.limit-qrbox {
    width: max-content;
    margin: 0 auto;
    border-radius: 10px;
    interpolate-size: allow-keywords;
    transition: 0.3s;
    height: 0px;
    width: 0px;
    overflow: hidden;
}

.qrbox.show{
    /* padding: 6px; */
    border: 4px solid #aabbcc;
    height: min-content !important;
    width: min-content !important;
}
.limit-qrbox.show{
    /* padding: 6px; */
    height: min-content !important;
    width: min-content !important;
}

button.btn-no-style {
    background: transparent;
    border: none;
    outline: none;
    padding-block: 0;
}

.text-center{
    text-align: center;
}

.gen:disabled{
    background-color: var(--bc-purple-2);
    cursor: not-allowed;
}

.inp.red{
    border-color:red
}
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    max-width: 350px;
    margin:0 auto;
    width: 100%;
    padding:20px 0;
}
.pager .pp {
    font-size: 12px;
    color: var(--bc-muted);
    font-weight: 600;
}
.pager button {
    border: 1px solid var(--bc-line);
    background: #fff;
    color: var(--bc-purple);
    font-weight: 700;
    font-size: 13px;
    padding: 7px 13px;
    border-radius: 9px;
    cursor: pointer;
}
.pager button:disabled {
    color: var(--bc-faint);
    cursor: default;
    background: var(--bc-surface);
}

.subrow {
    background: var(--bc-surface);
}
.subrow td {
    padding: 0;
}
.miniT td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--bc-line-2);
}
.miniT th {
    background: var(--bc-line-2);
    font-size: 10px;
    padding: 8px 12px;
    color: var(--bc-muted);
}
.money {
    font-weight: 700;
    white-space: nowrap;
}
.dark-ref{
    text-align: center;
    margin:8px 0 0;
    font-size: 12px;
    color:#454545;
    font-variant-numeric: tabular-nums;
    font-weight: 600
}
.tpl-id {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--bc-orange);
    background: var(--bc-orange-s);
    border-radius: 6px;
    padding: 1px 7px;
    margin-right: 7px;
    font-variant-numeric: tabular-nums;
}

.flex-row{
    flex-direction: row;
}

.selgrp {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.selgrp label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--bc-faint);
    text-transform: uppercase;
    letter-spacing: .4px;
}
.inp.sm {
    padding: 9px 34px 9px 12px;
    font-size: 13px;
    border-radius: 10px;
    width: auto;
    min-width: 172px;
}

.co-form {
    display: grid;
    position: relative;
    /* grid-template-columns: 1fr auto; */
    align-items: end;
}
.rowacts {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.rowbtn {
    border: 1px solid var(--bc-line);
    background: #fff;
    color: var(--bc-purple);
    font-weight: 600;
    font-size: 11.5px;
    padding: 6px 10px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}
.b-otra {
    background: var(--bc-purple-s);
    color: var(--bc-purple);
}
.b-otra .dot {
    background: var(--bc-purple);
}
.tag-via {
    font-size: 10.5px;
    color: var(--bc-purple);
    font-weight: 700;
    margin-left: 6px;
    white-space: nowrap;
}
.rowbtn:hover{
    background-color: var(--bc-purple-s);
}
.rowbtn.danger {
    color: var(--bc-red);
}
#confirmActionModal .botonera{
    margin-top:40px;
    display:flex;
    justify-content:center;
    gap:10px
}

.subswitch {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--bc-line);
    border-radius: 12px;
    padding: 3px;
    gap: 2px;
    margin-bottom: 16px;
}

.subswitch button {
    border: 0;
    background: transparent;
    color: var(--bc-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
}
.subswitch button.act {
    background: var(--bc-purple);
    color: #fff;
}

.subswitch button svg {
    width: 16px;
    height: 16px;
}
.fgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 14px;
}
.fgrid .col2 {
    grid-column: 1 / -1;
}
.fgrid .field {
    margin: 0;
}
.seg button {
    border: 0;
    background: #fff;
    color: var(--bc-muted);
    padding: 13.5px 14px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
.seg.full button {
    flex: 1;
}
.segYN {
    display: inline-flex;
    border: 1px solid var(--bc-line);
    border-radius: 10px;
    overflow: hidden;
}
.segYN button.act {
    background: var(--bc-purple);
    color: #fff;
}
.segYN button {
    border: 0;
    background: #fff;
    color: var(--bc-muted);
    padding: 9px 16px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}
.lote-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 15px 18px;
    background: var(--bc-purple-s);
    border-radius: 14px;
}
.lote-total .lt-lbl {
    font-size: 12.5px;
    color: var(--bc-purple);
    font-weight: 600;
}
.lote-total .lt-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--bc-purple-d);
    font-variant-numeric: tabular-nums;
}

.lotehead {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.fsec {
    font-size: 11px;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--bc-faint);
    font-weight: 800;
    margin: 16px 0 3px;
    padding-top: 14px;
    border-top: 1px solid var(--bc-line-2);
}
.fsec:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 2px;
}
.modal.wide {
    max-width: 640px;
}
.tel-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 8px;
}
.field label .req {
    color: var(--bc-orange);
    margin-left: 3px;
}

input.is-invalid, select.is-invalid {
    border-color: var(--bc-red) !important;
}
.rkpi {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    min-height: 158px;
}
.rkpi .rk-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 4px;
}
.rkpi .ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex: 0 0 auto;
    margin: 0;
    display: grid;
    place-content: center;
}
.rkpi .rk-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--bc-ink);
    line-height: 1.18;
}
.rkpi .rk-valrow {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    flex-wrap: wrap;
}
.rkpi .rk-foot {
    margin-top: auto;
    padding-top: 12px;
    font-size: 11.5px;
    color: var(--bc-muted);
}
.rkpi .rk-big {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.7px;
    line-height: 1.04;
    color: var(--bc-ink);
    font-variant-numeric: tabular-nums;
}
.rkpi .brk {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 1px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bc-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    line-height: 1.35;
}
.rkpi .ic svg {
    width: 21px;
    height: 21px;
}
tr:has(+ .subrow) {
    background: #d2e7fa;
}
 /*PRÓXIMO*/
/* .subrow + tr {
    background: #0e61aa;
} */
#confirmActionModal .botonera button{

}